/*
Theme Name: BGC Group
Theme URI: https://branniaglocalconnect.com
Author: BGC Design
Author URI: https://branniaglocalconnect.com
Description: A custom corporate business theme built to match the BGC homepage mockup. Orange & white, single-page style homepage with hero banner, about, services, why-choose-us, founder message, industries, testimonials, contact and footer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bgc
*/

/* =========================================================
   BGC Group Theme — main stylesheet
   Palette:  --orange #F5A623 | dark #1d1d1d | grey #efefef
   ========================================================= */

:root {
  --orange: #f5a623;
  --orange-dark: #e2951a;
  --orange-soft: #fef2e0;
  --ink: #1d1d1d;
  --body: #222222;
  --grey-bg: #efefef;
  --grey-card: #d9d9d9;
  --footer: #1f1f1f;
  --white: #ffffff;
  --maxw: 1400px;
  --radius: 14px;
  --font:
    "Montserrat", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial,
    sans-serif;
  --heading-font: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--font);
}
p {
  margin: 0 0 14px;
  color: var(--body)
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 50px 0;
}
.section-title {
  text-align: center;
  font-size: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-sub {
  text-align: center;
  color: var(--body);
  margin-bottom: 40px;
}

/* Utility: justify text to both edges (spreads words across the line).
   Add class "bgc-justify" to a block/element; applies to its paragraphs too.
   The last line stays left-aligned so it doesn't stretch awkwardly. */
.bgc-justify,
.bgc-justify p,
.bgc-justify li {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 11px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}
.btn:hover {
  background: var(--orange-dark);
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
}
.brand--logo {
  line-height: 0;
}
.site-header .custom-logo-link {
  display: inline-block;
}
.site-header .custom-logo {
  max-height: 48px;
  width: 125px;
  height: auto;
  display: block;
}
.brand .b {
  color: var(--ink);
}
.brand .g {
  color: var(--ink);
}
.brand .c {
  color: var(--orange);
  position: relative;
}
.brand .globe {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  position: relative;
  top: 3px;
  margin-left: -4px;
  background:
    linear-gradient(var(--orange), var(--orange)) center/2px 100% no-repeat,
    linear-gradient(var(--orange), var(--orange)) center/100% 2px no-repeat;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  transition: 0.2s;
}
.main-nav a:hover {
  color: var(--orange);
}
/* Active page → filled orange pill (covers every class WP marks it with). */
.main-nav .current a,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-page-ancestor > a,
.main-nav a.active,
.main-nav a[aria-current] {
  background: var(--orange);
  color: #fff;
}

/* ---------------- Hero (image-only banner) ---------------- */
.hero {
  background: #fff;
  line-height: 0;
}
.hero-link {
  display: block;
}
.hero-link img {
  width: 100%;
  height: auto;
  display: block;
}
/* Hero slider — only present when 2+ slides are configured. All slides are
   stacked in the same grid cell (height = the tallest slide) and crossfade
   via opacity, so switching slides never shifts the page layout. */
.hero--slider {
  position: relative;
}
.hero-slider-track {
  display: grid;
}
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.hero--slider .hero-slider-prev,
.hero--slider .hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.hero--slider .hero-slider-prev {
  left: 16px;
}
.hero--slider .hero-slider-next {
  right: 16px;
}
.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}
@media (max-width: 600px) {
  .hero--slider .hero-slider-prev,
  .hero--slider .hero-slider-next {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* ---------------- Card Slider (reusable) ---------------- */
.bgc-slider .bgc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bgc-slider-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.bgc-slider-track {
  display: flex;
  gap: 22px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.bgc-slide {
  flex: 0 0 calc((100% - (22px * (var(--pv, 4) - 1))) / var(--pv, 4));
  box-sizing: border-box;
  border-radius: 14px;
  padding: 28px 22px;
  background: var(--card-bg, #fff);
  color: var(--card-fg, #1d1d1d);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transition:
    background 0.25s,
    color 0.25s;
}

.service-subheading {
  font-weight: 800;
  font-size: 1.13rem;
}

.bgc-slider.has-hover .bgc-slide:hover {
  background: var(--card-bg-hover, #f5a623);
  color: var(--card-fg-hover, #fff);
  .service-heading {
    color: #fff;
  }
}
/* let the customizable text color flow to all inner elements */
.bgc-slide :where(h1, h2, h3, h4, h5, h6, p, span, div, li, a, strong, em) {
  color: inherit;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.slider-arrow:hover {
  background: var(--orange);
  color: #fff;
}
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: #fff;
  color: var(--ink);
}
@media (max-width: 768px) {
  .bgc-slide {
    flex-basis: calc(
      (100% - (22px * (var(--pv-mobile, 1) - 1))) / var(--pv-mobile, 1)
    );
  }
}

/* ---------------- About Us: shared headings ---------------- */
.bgc-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 13px;
  color: #f5a623;
  margin: 0 0 14px;
}
.bgc-heading {
  text-align: center;
  font-family: var(--heading-font);
  color: #2b2b3a;
  font-size: 38px;
  line-height: 1.25;
  margin: 0 auto 18px;
  max-width: 820px;
}
.bgc-subtext {
  text-align: center;
  color: var(--body);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------------- About Us: Team grid ---------------- */
.bgc-team-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 24px;
}
.bgc-team-card {
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 32px 18px;
  text-align: center;
  background: #fff;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.bgc-team-card:hover {
  background: var(--hl, #fff7eb);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.bgc-team-avatar {
  width: var(--av-w, 130px);
  height: var(--av-h, 130px);
  border-radius: var(--av-r, 50%);
  overflow: hidden;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgc-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bgc-team-name {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 4px;
}
.bgc-team-role {
  color: var(--body);
  font-size: 14px;
  margin: 0;
}
@media (max-width: 960px) {
  .bgc-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .bgc-team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- About Us: CTA band ---------------- */
.bgc-cta {
  background-color: #f6f2fb;
  border-radius: 8px;
  text-align: center;
  padding: 84px 20px;
  color: #3a3a48;
  background-repeat: no-repeat;
}
.bgc-cta .container {
  max-width: 720px;
}
.bgc-cta .bgc-heading,
.bgc-cta .bgc-subtext {
  color: inherit;
}
.bgc-cta .bgc-subtext {
  opacity: 0.85;
}
.bgc-cta-btn {
  display: inline-block;
  background: var(--btn, #f5a623);
  color: #fff;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 6px;
  margin-top: 8px;
  transition: filter 0.2s ease;
}
.bgc-cta-btn:hover {
  filter: brightness(0.94);
  color: #fff;
}

/* ---------------- Feature items (icon + text) — S1 list / S2 grid ---------------- */
/* Layout wrappers: choose one. Both reuse the .bgc-feature item. */
.bgc-feature-list {
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.bgc-feature-grid {
  display: grid;
  grid-template-columns: repeat(var(--feature-cols, 2), 1fr);
  gap: 40px 48px;
}

/* The item: icon beside title + text */
.bgc-feature {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.bgc-feature__icon {
  flex: 0 0 auto;
  width: var(--feature-icon-size, 64px);
  height: var(--feature-icon-size, 64px);
  font-size: calc(var(--feature-icon-size, 64px) * 0.68);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--feature-icon-color, #5b6bd6);
}
.bgc-feature__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bgc-feature__body {
  flex: 1;
  min-width: 0;
}
.bgc-feature__title {
  font-family: var(
    --font
  ); /* Montserrat, to match the mockup (not the serif) */
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px !important;
  color: var(--ink);
}
.bgc-feature__text {
  margin: 0;
  color: var(--body);
}
@media (max-width: 768px) {
  .bgc-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Overlay cards (image + hover text) ---------------- */
.bgc-overlay .bgc-overlay-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bgc-overlay-viewport {
  flex: 1;
  min-width: 0;
}
.bgc-overlay-track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 90px;
  padding: 0px 35px;
}

.bgc-overlay-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.bgc-overlay-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.bgc-overlay-layer {
  position: absolute;
  inset: 0;
  background: var(--ov-color, #1d1d1d);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bgc-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--ov-text, #fff);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bgc-overlay-card:hover .bgc-overlay-layer,
.bgc-overlay.is-always .bgc-overlay-layer {
  opacity: var(--ov-op, 0.7);
}
.bgc-overlay-card:hover .bgc-overlay-text,
.bgc-overlay.is-always .bgc-overlay-text {
  opacity: 1;
  transform: none;
}
.bgc-overlay-text :where(h1, h2, h3, h4, h5, h6, p, span, div, a) {
  color: inherit;
  margin: 0;
}
.bgc-overlay .slider-arrow {
  display: none;
}
@media (max-width: 768px) {
  .bgc-overlay-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
  }
  .bgc-overlay-viewport {
    overflow: hidden;
  }
  .bgc-overlay-card {
    flex: 0 0 calc((100% - (16px * (var(--cols-mobile, 1) - 1))) / var(--cols-mobile, 1));
  }
  .bgc-overlay .slider-arrow {
    display: flex;
  }
}

/* ---------------- Certificate generator ---------------- */
.bgc-certificate .cert-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.bgc-certificate .cert-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 22px;
  margin-bottom: 26px;
}
.bgc-certificate .cert-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}
.bgc-certificate .cert-field input {
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
}
.bgc-certificate .cert-field input:focus {
  outline: none;
  border-color: var(--cert-btn, #f5a623);
}
.bgc-certificate .cert-preview {
  position: relative;
  line-height: 0;
  border: 1px solid #eee;
}
.bgc-certificate .cert-template {
  width: 100%;
  height: auto;
  display: block;
}
.bgc-certificate .cert-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bgc-certificate .cert-download {
  display: inline-block;
  margin-top: 22px;
  background: var(--cert-btn, #f5a623);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 13px 34px;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.bgc-certificate .cert-download:hover {
  filter: brightness(0.95);
}

/* ---------------- Tabs ---------------- */
/* Content column fixed to 40% of the screen width. */
.bgc-tabs__inner {
  width: 80vw;
  max-width: 100%;
  margin: 0 auto;
}
.bgc-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 22px;
}
.bgc-tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: var(--body);
  padding: 12px 18px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bgc-tab-btn:hover {
  color: var(--ink);
}
.bgc-tab-btn.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--tab-active, #f5a623);
}
.bgc-tabs__panels {
  background: var(--panel-bg, transparent);
  border-radius: 8px;
}
.bgc-tab-panel {
  display: none;
}
.bgc-tab-panel.is-active {
  display: block;
}
/* When a content background is set, give the panel some breathing room. */
.bgc-tabs[style*="--panel-bg"] .bgc-tab-panel.is-active {
  padding: 22px 24px;
}
@media (max-width: 768px) {
  .bgc-tabs__inner {
    width: 100%;
  }
}

/* ---------------- Contact split (image + form) ---------------- */
.bgc-contact-split .cs-row {
  display: flex;
  gap: 56px;
  align-items: center;
}
.bgc-contact-split .cs-row--reverse {
  flex-direction: row-reverse;
}
.bgc-contact-split .cs-media,
.bgc-contact-split .cs-body {
  flex: 1;
  min-width: 0;
}
.bgc-contact-split .cs-media img {
  width: 100%;
  height: auto;
  display: block;
}
.bgc-contact-split .bgc-eyebrow {
  text-align: left;
}
.bgc-contact-split .bgc-heading {
  text-align: left;
  max-width: none;
  margin: 0 0 16px;
  font-size: 34px;
}
.bgc-contact-split .cs-text {
  color: var(--body);
  line-height: 1.7;
  margin: 0 0 26px;
}
/* CF7 form → two-column field grid */
.bgc-contact-split .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.bgc-contact-split .wpcf7-form > p {
  margin: 0;
}
.bgc-contact-split .wpcf7-form br {
  display: none;
}
.bgc-contact-split .hidden-fields-container {
  display: none;
}
.bgc-contact-split .wpcf7-form > p:has(textarea),
.bgc-contact-split .wpcf7-form > p:has(.wpcf7-submit),
.bgc-contact-split .wpcf7-response-output {
  grid-column: 1 / -1;
}
.bgc-contact-split label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #3a3a48;
}
.bgc-contact-split .wpcf7-form-control:not(.wpcf7-submit):not([type='checkbox']):not([type='radio']) {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--body);
}
.bgc-contact-split .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--btn, #5c6bc0);
}
.bgc-contact-split textarea.wpcf7-form-control {
  min-height: 150px;
  resize: vertical;
}
.bgc-contact-split .wpcf7-submit {
  background: var(--btn, #5c6bc0);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.bgc-contact-split .wpcf7-submit:hover {
  filter: brightness(0.95);
}
@media (max-width: 860px) {
  .bgc-contact-split .cs-row,
  .bgc-contact-split .cs-row--reverse {
    flex-direction: column;
    gap: 32px;
  }
  .bgc-contact-split .wpcf7-form {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Contact (shortcode form) ---------------- */
.bgc-contact {
  text-align: center;
}
.bgc-contact-form {
  max-width: 900px;
  margin: 0 auto;
}
/* Fields in one row: each field's <label> becomes a flex item (CF7 wraps each
   field in <label> inside its own <p>). The submit sits on its own centered line. */
.bgc-contact .wpcf7-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  justify-content: center;
  align-items: flex-start;
}
.bgc-contact .wpcf7-form > p {
  display: contents;
}
.bgc-contact .wpcf7-form br {
  display: none;
}
.bgc-contact .wpcf7-form > p > label,
.bgc-contact .wpcf7-form > label {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 13px;
  color: var(--body);
}
.bgc-contact .wpcf7-form-control-wrap {
  display: block;
}
.bgc-contact
  .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not(
    [type="radio"]
  ):not([type="file"]) {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 30px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  color: var(--body);
  background: #fafafa;
  margin: 0;
}
.bgc-contact .wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: var(--orange);
}
/* Keep the submit's paragraph as a full-width block so the button centers on its own line. */
.bgc-contact .wpcf7-form > p:has(.wpcf7-submit) {
  display: block;
  flex-basis: 100%;
  text-align: center;
  margin: 10px 0 0;
}
.bgc-contact .wpcf7-response-output {
  flex-basis: 100%;
}
.bgc-contact .wpcf7-submit {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 12px 34px;
  text-transform: uppercase;
  border-radius: 7px;
  font-size: 14px;
  transition: background 0.2s ease;
}
.bgc-contact .wpcf7-submit:hover {
  background: var(--orange-dark);
}
@media (max-width: 768px) {
  .bgc-contact .wpcf7-form > p > label,
  .bgc-contact .wpcf7-form > label {
    flex-basis: 100%;
  }
}

/* ---------------- Flip Cards (Industries) ---------------- */
.bgc-flip .bgc-flip-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bgc-flip-viewport {
  flex: 1;
  min-width: 0;
}
.bgc-flip-track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: 20px;
}
.bgc-flip-card {
  position: relative;
  perspective: 900px;
}
.bgc-flip-card .flip-inner {
  display: grid;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.bgc-flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}
/* Both faces share one grid cell, so the card grows to the taller face. */
.flip-front,
.flip-back {
  grid-area: 1 / 1 / 2 / 2;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front {
  background: var(--card-bg, #d9d9d9);
  color: var(--card-fg, #1d1d1d);
}
.flip-back {
  background: var(--card-bg-hover, #f5a623);
  color: var(--card-fg-hover, #fff);
  /* font-size: 12px; */
  font-weight: 400;
  transform: rotateY(180deg);
}
.flip-front :where(h1, h2, h3, h4, h5, h6, p, span, div, a),
.flip-back :where(h1, h2, h3, h4, h5, h6, p, span, div, a) {
  color: inherit;
  margin: 0;
}

.service-heading {
  color: #f5a623;
  font-size: 2.5rem;
  font-family: "Montserrat";
}

.bgc-flip .slider-arrow {
  display: none;
}
@media (max-width: 768px) {
  .bgc-flip-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
  }
  .bgc-flip-viewport {
    overflow: hidden;
  }
  .bgc-flip-card {
    flex: 0 0
      calc(
        (100% - (16px * (var(--cols-mobile, 1) - 1))) / var(--cols-mobile, 1)
      );
  }
  .bgc-flip .slider-arrow {
    display: flex;
  }
}

/* ---------------- Image + Text (reusable two-column flex) ---------------- */
.bgc-media-text .mt-row {
  display: flex;
  align-items: center;
  gap: 60px;
}
.bgc-media-text .mt-row--reverse {
  flex-direction: row-reverse;
}
.bgc-media-text .mt-col {
  flex: 1;
  min-width: 0;
}
.bgc-media-text .mt-media img {
  height: auto;
  display: block;
}
.bgc-media-text .mt-body > *:first-child {
  margin-top: 0;
}
.bgc-media-text .mt-body h1,
.bgc-media-text .mt-body h2,
.bgc-media-text .mt-body h3 {
  margin-bottom: 14px;
}
.bgc-media-text .mt-body .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--body);
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .bgc-media-text .mt-row,
  .bgc-media-text .mt-row--reverse {
    flex-direction: column;
    gap: 30px;
  }
}
/* Pills (partially-filled progress bars) */
.bgc-pills {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.bgc-pill {
  background: var(--track, #d9d9d9);
  border-radius: 20px;
  height: 34px;
  position: relative;
  overflow: hidden;
}
.bgc-pill .fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding-left: 22px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: width 0.6s ease;
}

/* ---------------- About ---------------- */
.about .container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-figure {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
}
.about-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.about-circle img {
  width: 270px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  margin-top: -40px;
  border-radius: 6px;
}
.about-body {
  flex: 1;
}
.about-body .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--body);
  font-size: 13px;
  margin-bottom: 6px;
}
.about-body h2 {
  font-size: 26px;
  margin-bottom: 18px;
}
.about-founder {
  margin-top: 18px;
}
.about-founder strong {
  color: var(--ink);
  display: block;
}

/* ---------------- What we do ---------------- */
.services {
  background: var(--grey-bg);
  position: relative;
}
.services-track {
  display: flex;
  gap: 22px;
  align-items: stretch;
}
.service-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transition: 0.25s;
}
.service-card .num {
  font-size: 44px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.service-card h3 {
  font-size: 18px;
  margin: 16px 0 10px;
}
.service-card p {
  font-size: 13px;
}
.service-card.is-active {
  background: var(--orange);
  color: #fff;
  transform: translateY(-6px);
}
.service-card.is-active .num,
.service-card.is-active h3 {
  color: #fff;
}
.service-card.is-active p {
  color: rgba(255, 255, 255, 0.9);
}

.car-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 4;
}
.car-arrow.prev {
  left: -8px;
}
.car-arrow.next {
  right: -8px;
}

/* ---------------- Why choose us ---------------- */
.why .container {
  display: flex;
  gap: 56px;
  align-items: center;
}
.why-left {
  flex: 1;
}
.why-left p {
  margin-bottom: 26px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}
.bar {
  background: var(--grey-card);
  border-radius: 20px;
  height: 34px;
  position: relative;
  overflow: hidden;
}
.bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--orange);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding-left: 22px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.why-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.why-right .big {
  grid-column: 1 / span 2;
}
.why-right img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-right .big img {
  height: 200px;
}
.why-right .sm img {
  height: 120px;
}

/* ---------------- Founder message ---------------- */
.founder {
  background: var(--orange);
  color: #fff;
}
.founder .container {
  display: flex;
  align-items: center;
  gap: 50px;
}
.founder-photo {
  flex: 0 0 230px;
}
.founder-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.35);
}
.founder-body h2 {
  color: var(--ink);
  font-size: 26px;
  margin-bottom: 16px;
}
.founder-body p {
  color: #fff;
  font-size: 14px;
}
.founder-name {
  margin-top: 14px;
  border-top: 2px solid rgba(0, 0, 0, 0.35);
  display: inline-block;
  padding-top: 10px;
  width: 60px;
}
.founder-body .fn {
  color: var(--ink);
  font-weight: 700;
  margin-top: 8px;
}

/* ---------------- Industries ---------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.ind-card {
  background: var(--grey-card);
  border-radius: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 14px;
  padding: 14px;
  line-height: 1.35;
}
.ind-card.is-active {
  background: var(--orange);
  color: #fff;
  font-weight: 400;
  text-transform: none;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------------- Testimonials ---------------- */
.testimonials {
  background: var(--grey-bg);
  position: relative;
  text-align: center;
}
.testi-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--orange);
}
.testi-quote {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: 14px;
}
.stars {
  color: var(--orange);
  letter-spacing: 4px;
  font-size: 18px;
}
.testi-name {
  margin-top: 10px;
  font-weight: 700;
  color: var(--ink);
}
.testi-name::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--ink);
  margin: 8px auto;
}

/* ---------------- Get in touch ---------------- */
.contact {
  text-align: center;
}
.contact-form {
  max-width: 900px;
  margin: 0 auto;
}
.contact-fields {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.contact-fields input {
  flex: 1;
  min-width: 220px;
  border: 1px solid #d5d5d5;
  border-radius: 30px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  color: var(--body);
  background: #fafafa;
}
.contact-fields input:focus {
  outline: none;
  border-color: var(--orange);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--footer);
  color: #c9c9c9;
  padding: 56px 0 24px;
  font-size: 13px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 8px;
}
.site-footer a:hover {
  color: var(--orange);
}
.footer-block {
  margin-bottom: 16px;
}
.footer-block .lbl {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 36px;
  padding-top: 18px;
  text-align: center;
  color: #9a9a9a;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .about .container,
  .why .container,
  .founder .container {
    flex-direction: column;
    text-align: center;
  }
  .services-track {
    flex-wrap: wrap;
  }
  .service-card {
    flex: 1 1 45%;
  }
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .bars {
    margin: 0 auto;
  }
  .why-right {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
}

/* ---------------- Mobile menu drawer ---------------- */
.nav-toggle,
.nav-close,
.nav-overlay {
  display: none;
}
.nav-toggle,
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  padding: 6px;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-close {
    display: block;
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 26px;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(80vw, 300px);
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 64px 22px 24px;
    overflow-y: auto;
  }
  body.nav-open .main-nav {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }
  .main-nav a {
    display: block;
  }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }
}

.testimonial-card {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}


.bgc-justify {
  text-align: justify;
  text-align-last: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
