/* ==========================================================================
   GAZEPAYMENT SOLUTIONS PRIVATE LIMITED — Corporate Website
   Stylesheet: mobile-first, flat colours (no gradients), no blue/orange/brown.
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens (CSS custom properties)
   02. Reset & base elements
   03. Layout helpers & utilities
   04. Buttons
   05. Section 1  — Header / Navigation
   06. Section 2  — Hero
   07. Section 3  — About & statistics
   08. Section 4  — Payment solutions
   09. Section 5  — Why choose us (USPs)
   10. Section 6  — Security & compliance
   11. Section 7  — Integration & developer tools
   12. Section 8  — Industries
   13. Section 9  — Testimonials carousel
   14. Section 10 — Pricing
   15. Section 11 — Resources
   16. Section 12 — Contact & inquiry form
   17. Section 13 — Footer
   18. Back-to-top & scroll reveal animations
   19. Responsive breakpoints
   20. Reduced motion & print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand colours */
  --primary: #2B2B2B;          /* Deep charcoal / slate  */
  --primary-dark: #1E1E1E;     /* Darker charcoal        */
  --primary-light: #3D3D3D;    /* Hover state on dark    */
  --secondary: #1A4D3E;        /* Rich emerald green     */
  --secondary-dark: #0F3D31;   /* Deep emerald           */
  --secondary-light: #246B54;  /* Emerald hover          */
  --accent: #C89B3C;           /* Warm gold / brass      */
  --accent-light: #DCAE54;     /* Gold hover / on-dark   */
  --accent-soft: #F0E4C8;      /* Pale gold wash         */

  /* Neutrals */
  --bg-cream: #F9F7F2;         /* Off-white ivory        */
  --bg-white: #FFFFFF;
  --bg-sage: #EDF1EA;          /* Muted sage surface     */
  --bg-mauve: #F1ECEF;         /* Muted mauve surface    */
  --border-light: #E8E4DA;
  --border-sage: #D5DED1;
  --border-dark: rgba(232, 232, 232, 0.16);

  /* Text */
  --text-dark: #1A1A1A;
  --text-muted: #555555;
  --text-light: #E8E8E8;
  --text-light-muted: #B4B4B4;

  /* Elevation — neutral, untinted shadows only */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);

  /* Geometry */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-pill: 999px;

  /* Rhythm */
  --container: 1240px;
  --gutter: 20px;
  --section-y: 64px;
  --header-h: 64px;
  --header-total: 102px;   /* utility bar + brand row, used for the 100vh hero */

  /* Motion */
  --t-fast: 150ms ease;
  --t: 250ms ease;
  --t-slow: 400ms ease;

  /* Type */
  --font-heading: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layering scale */
  --z-base: 1;
  --z-decor: 2;
  --z-sticky: 30;
  --z-drawer: 40;
  --z-float: 50;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--secondary-light); }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, iframe { max-width: 100%; display: block; }

strong { font-weight: 600; }

/* Visible keyboard focus on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--secondary);
  color: var(--accent-light);
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-float);
  background: var(--secondary);
  color: var(--accent-light);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--accent-light);
}


/* ==========================================================================
   03. LAYOUT HELPERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 84px;          /* clears the sticky header */
  position: relative;
}

.section--sage { background-color: var(--bg-sage); }
.section--cream { background-color: var(--bg-cream); }

.section--dark {
  background-color: var(--primary);
  color: var(--text-light);
}
/* `:where()` keeps this at zero specificity so component rules (e.g.
   .price-card__note) still win without needing !important. */
.section--dark :where(p) { color: var(--text-light-muted); }

/* Section heading block */
.section__head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 6px 14px;
  border: 1px solid var(--border-sage);
  background: var(--bg-white);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow--on-dark {
  color: var(--accent-light);
  background: transparent;
  border-color: rgba(200, 155, 60, 0.45);
}

.section__title {
  font-size: 1.95rem;
  margin-bottom: 14px;
}
.section__title--on-dark { color: var(--bg-white); }

.section__lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0;
}
.section__lead--on-dark { color: var(--text-light-muted); }

/* Card grids */
.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

/* Shared card header: icon sits BEFORE the title on the same line,
   never stacked above it. Used by every card type on the page. */
.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.card-head h3 { margin: 0; }
.card-head > i,
.card-head > .feature-card__icon { flex-shrink: 0; }

/* Text helpers */
.text-gold { color: var(--accent); }
.link-gold {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-gold:hover { color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--secondary);
  min-height: 44px;
}
.link-arrow i { transition: transform var(--t-fast); }
.link-arrow:hover i { transform: translateX(4px); }


/* ==========================================================================
   04. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast);
}

/* Emerald button with gold label */
.btn--green {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--accent-light);
}
.btn--green:hover,
.btn--green:focus-visible {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--accent-light);
  box-shadow: var(--shadow-md);
}

/* Gold button with deep emerald label */
.btn--gold {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--secondary-dark);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--secondary-dark);
  box-shadow: var(--shadow-md);
}

/* Outlined variants */
.btn--outline-gold {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent-light);
}
.btn--outline-gold:hover,
.btn--outline-gold:focus-visible {
  background-color: var(--accent);
  color: var(--secondary-dark);
}

.btn--outline-green {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}
.btn--outline-green:hover,
.btn--outline-green:focus-visible {
  background-color: var(--secondary);
  color: var(--accent-light);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn--block { width: 100%; }

.btn[disabled],
.btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}


/* ==========================================================================
   05. SECTION 1 — HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  /* Sits above the drawer and backdrop so the hamburger stays clickable
     (it becomes the close control) while the mobile menu is open. */
  z-index: var(--z-float);
  background-color: var(--primary);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22); }

/* --- Utility top bar --- */
.topbar {
  background-color: var(--primary-dark);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.8rem;
  overflow: hidden;
  max-height: 60px;
  transition: max-height var(--t), opacity var(--t);
}
/* Collapse the utility bar once the user scrolls (keeps the header compact) */
.site-header.is-scrolled .topbar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-height: 38px;
}

.topbar__tagline {
  margin: 0;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__tagline i { color: var(--accent); }

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar__link {
  color: var(--text-light-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar__link i { color: var(--accent); }
.topbar__link:hover { color: var(--accent-light); }
.topbar__link--accent {
  color: var(--accent-light);
  font-weight: 600;
}

/* --- Main navigation bar --- */
.navbar { background-color: var(--primary); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  min-height: var(--header-h);
}

/* Second header row. The nav becomes a fixed drawer below 1200px, which takes
   it out of flow and lets this row collapse to zero height on its own. */
.navrow__inner { padding-block: 0; }

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--bg-white);
  line-height: 1.2;
}
.brand__name-light {
  color: var(--accent);
  font-weight: 600;
}
.brand__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  line-height: 1.6;
}

/* Nav links (desktop layout applied at ≥1200px) */
.nav__list { display: flex; }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover { color: var(--accent-light); }
.nav__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav__item--mobile-only { display: block; }
.nav__mobile-contact { display: none; }

/* Hamburger toggle */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger__bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--accent);
  transition: transform var(--t), opacity var(--t-fast);
}
.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-drawer);
  opacity: 0;
  transition: opacity var(--t);
}
.nav-backdrop.is-visible { opacity: 1; }


/* ==========================================================================
   06. SECTION 2 — HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--primary);
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  padding-block: 40px 44px;
  overflow: hidden;
  scroll-margin-top: 84px;
  border-bottom: 3px solid var(--secondary);
  text-align: center;
  /* Fills the viewport below the sticky header */
  min-height: calc(100vh - var(--header-total));
}
/* Small-viewport unit avoids the mobile browser chrome jump */
@supports (height: 100svh) {
  .hero { min-height: calc(100svh - var(--header-total)); }
}

/* Flat charcoal wash over the photograph — a solid colour at partial alpha,
   not a gradient. Holds the texture back so the type stays high-contrast and
   the palette stays exactly on brand. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(30, 30, 30, 0.82);
  z-index: 0;
}



/* Trust bar — anchors the base of the hero. Rails on one side, headline
   figures on the other, split by a hairline rule. Keeps the supporting detail
   out of the centred stack so the headline carries the composition. */
.hero__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border-dark);
}

.hero__rails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.hero__rails-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  white-space: nowrap;
}
.rail-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.rail-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  background-color: rgba(61, 61, 61, 0.7);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 8px 13px;
}
.rail-chips i { color: var(--accent); }

/* Headline figures */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
}
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--accent);
}
.hero__proof span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}



/* Decorative geometry — purely presentational */
.hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__ring {
  position: absolute;
  top: -180px;
  left: -160px;
  opacity: 0.12;
}
.hero__mesh {
  position: absolute;
  right: -60px;
  bottom: -20px;
  opacity: 0.15;
}

/* Deliberately no z-index: any stacking context here would isolate the photo's
   blend group and the black backdrop would stop dissolving. Paint order over
   .hero__decor is preserved by DOM order instead. */
.hero__inner {
  position: relative;
  z-index: 1;              /* above the ::before overlay */
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}
/* Copy centres itself in whatever height the trust bar leaves behind */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.hero__bar { flex-shrink: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-self: center;      /* the flex column would otherwise stretch the pill */
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(200, 155, 60, 0.5);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin: 0 0 22px;
}

.hero__title {
  margin-inline: auto;
  font-size: 2.7rem;
  line-height: 1.2;
  color: var(--bg-white);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  max-width: 100%;
}

.hero__subtitle {
  font-size: 1.02rem;
  color: var(--text-light-muted);
  max-width: 760px;
  margin: 0 auto 28px;
}
.hero__subtitle strong { color: var(--text-light); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}




/* ==========================================================================
   07. SECTION 3 — ABOUT & STATISTICS
   ========================================================================== */
.about__grid {
  display: grid;
  gap: 36px;
  align-items: start;
}

.about__story p { color: var(--text-muted); }

.checklist {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.checklist i {
  color: var(--secondary);
  margin-top: 5px;
  flex-shrink: 0;
}

/* "At a glance" panel — dark counterpoint to the ivory section, and it fills
   the column height that four loose cards left empty. */
.about__panel {
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  border: 1px solid var(--primary-light);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-md);
}

.about__panel-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.about__panel-foot {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-light-muted);
}
.about__panel-foot i { color: var(--accent); margin-top: 5px; flex-shrink: 0; }
.about__panel-foot strong { color: var(--text-light); }

/* Statistic rows with animated counters */
.stats {
  display: grid;
  grid-template-columns: 1fr;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-dark);
}
.stat-card:last-child { border-bottom: 0; padding-bottom: 4px; }
.stat-card__body { min-width: 0; flex-grow: 1; }

.stat-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--primary-light);
  font-size: 1.15rem;
  color: var(--accent);
}
.stat-card__value {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--bg-white);
  margin: 0 0 2px;
  line-height: 1.1;
}
.stat-card__label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-light-muted);
}
.stat-card__no {
  flex-shrink: 0;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.75;
}


/* ==========================================================================
   08. SECTION 4 — PAYMENT SOLUTIONS
   ========================================================================== */
.feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background-color: var(--bg-sage);
  color: var(--secondary);
  font-size: 1.2rem;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.feature-card:hover .feature-card__icon {
  background-color: var(--secondary);
  color: var(--accent-light);
}
.feature-card__title { font-size: 1.06rem; }
.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}


/* ==========================================================================
   09. SECTION 5 — WHY CHOOSE US (USPs)
   ========================================================================== */
#why { background-color: var(--bg-cream); }

.usp-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-left-color var(--t-fast);
}
.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--secondary);
}
.usp-card__icon {
  width: 30px;
  font-size: 1.25rem;
  color: var(--secondary);
  text-align: center;
}
.usp-card__title { font-size: 1.02rem; }
.usp-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}


/* ==========================================================================
   10. SECTION 6 — SECURITY & COMPLIANCE
   ========================================================================== */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
}
/* Grid items default to min-width:auto, which lets wide children (such as the
   code block) force the column open and push the page into horizontal scroll. */
.split > *,
.card-grid > * { min-width: 0; }

.split .section__title { text-align: left; }
.split .section__lead { text-align: left; }

/* Security feature list */
.sec-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.sec-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sec-list i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--primary-light);
  color: var(--accent);
  font-size: 1.05rem;
}
.sec-list h3 {
  font-size: 1rem;
  color: var(--bg-white);
  margin-bottom: 4px;
}
.sec-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-light-muted);
}

/* Certification badge tiles */
.badges {
  background-color: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.badges__caption {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.badges__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.badge-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background-color: var(--primary);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.badge-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.badge-tile i {
  flex-shrink: 0;
  width: 28px;
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
}
.badge-tile__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.badge-tile__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bg-white);
  letter-spacing: 0.03em;
}
.badge-tile__sub {
  font-size: 0.72rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}
.badges__note {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--text-light-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.badges__note i { color: var(--accent); margin-top: 4px; }


/* ==========================================================================
   11. SECTION 7 — INTEGRATION & DEVELOPER TOOLS
   ========================================================================== */
/* Numbered integration steps */
.steps {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.steps__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps h3 { font-size: 1rem; margin-bottom: 4px; }
.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Platform / SDK chips */
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.tool-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.tool-chips i { color: var(--secondary); }

/* Stylised code window */
.code-window {
  min-width: 0;
  max-width: 100%;
  background-color: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--primary);
  border-bottom: 1px solid var(--border-dark);
}
.code-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-light);
}
.code-window__dot:nth-child(1) { background-color: var(--accent); }
.code-window__dot:nth-child(2) { background-color: var(--secondary-light); }
.code-window__dot:nth-child(3) { background-color: #7E8F7C; }
.code-window__file {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light-muted);
}
.code-window__body {
  margin: 0;
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--text-light);
  tab-size: 2;
}
/* Syntax accents — gold / sage / ivory only */
.c-com { color: #8FA08C; font-style: italic; }
.c-key { color: var(--accent); }
.c-str { color: #BFD3BC; }
.c-num { color: var(--accent-light); }
.c-fn  { color: #E8E8E8; font-weight: 600; }


/* ==========================================================================
   12. SECTION 8 — INDUSTRIES
   ========================================================================== */
.industry-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-sage);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.industry-card__icon {
  width: 32px;
  font-size: 1.35rem;
  color: var(--secondary);
  text-align: center;
  transition: color var(--t-fast);
}
.industry-card:hover .industry-card__icon { color: var(--accent); }
.industry-card h3 { font-size: 1.02rem; }
.industry-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* ==========================================================================
   13. SECTION 9 — TESTIMONIALS CAROUSEL
   ========================================================================== */
.carousel { position: relative; }

.carousel__viewport { overflow: hidden; }

.carousel__track {
  display: flex;
  transition: transform var(--t-slow);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 6px 10px 10px;
  display: flex;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.quote-card__mark {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.quote-card__text {
  font-size: 0.97rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  flex-grow: 1;
}
.quote-card__stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.quote-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}
.quote-card__avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.quote-card__meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.quote-card__meta small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Carousel controls */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.carousel__arrow {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  color: var(--secondary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.carousel__arrow:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--accent-light);
}
.carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel__dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-sage);
  border: 1px solid var(--border-light);
  transition: background-color var(--t-fast), width var(--t-fast);
}
.carousel__dot.is-active::after {
  background-color: var(--accent);
  border-color: var(--accent);
  width: 26px;
  border-radius: var(--radius-pill);
}


/* ==========================================================================
   14. SECTION 10 — PRICING
   ========================================================================== */
.pricing-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--primary-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.price-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  background-color: var(--secondary-dark);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: var(--secondary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-card__name {
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.price-card__for {
  font-size: 0.86rem;
  color: var(--text-light-muted);
  margin-bottom: 20px;
}
.price-card__price {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.1;
  margin-bottom: 6px;
}
.price-card__price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-top: 6px;
}
.price-card__note {
  font-size: 0.8rem;
  color: var(--accent-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}
.price-card__features {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.price-card__features li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-light);
}
.price-card__features i {
  color: var(--accent);
  margin-top: 5px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.pricing-foot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 860px;
  margin: 34px auto 0;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  text-align: left;
}
.pricing-foot i { color: var(--accent); margin-top: 5px; }


/* ==========================================================================
   15. SECTION 11 — RESOURCES
   ========================================================================== */
.resource-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* Photographic thumbnail. Sources are square, so the card crops them to a
   landscape band; the focal point is nudged per image. */
.resource-card__media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 38%;
  background-color: var(--bg-sage);
  border-bottom: 1px solid var(--border-light);
}
.resource-card__media--top { object-position: center top; }

.resource-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 24px 24px;
}
.resource-card__icon {
  width: 30px;
  font-size: 1.2rem;
  color: var(--secondary);
  text-align: center;
}
.resource-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  background-color: var(--bg-sage);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 14px;
}
.resource-card__title { font-size: 1.02rem; }
.resource-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex-grow: 1;
}


/* ==========================================================================
   16. SECTION 12 — CONTACT & INQUIRY FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.contact-form-wrap {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.contact-form__heading {
  font-size: 1.15rem;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.form__row { display: grid; gap: 0; }

.form__group { margin-bottom: 18px; }

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.req { color: var(--secondary); }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.form textarea { resize: vertical; min-height: 120px; }

.form input:hover,
.form select:hover,
.form textarea:hover { border-color: var(--border-sage); }

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--secondary);
  background-color: var(--bg-white);
  outline: none;
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.form input::placeholder,
.form textarea::placeholder { color: #8A8A8A; }

/* Invalid state — colour plus text, never colour alone */
.form .is-invalid { border-color: var(--secondary-dark); background-color: var(--bg-mauve); }

.form__error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7A2E3F;                 /* deep muted mauve-red, no orange/brown */
}
.form__error.is-shown { display: block; }
.form__error::before {
  content: "\f06a";               /* fa-circle-exclamation */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
}

.form__group--check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form__group--check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--secondary);
  flex-shrink: 0;
  cursor: pointer;
}
.form__group--check label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  cursor: pointer;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form__success {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--secondary-dark);
  background-color: var(--bg-sage);
  border: 1px solid var(--border-sage);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
}
.form__success i { color: var(--secondary); margin-top: 4px; }
/* `display: flex` above would otherwise beat the UA rule for [hidden] */
.form__success[hidden] { display: none; }

/* Company details panel */
.contact-info {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.contact-info__heading {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}
.contact-info__list {
  display: grid;
  gap: 22px;
  margin-bottom: 26px;
}
.contact-info__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
}
.contact-info__list i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--primary-light);
  color: var(--accent);
}
.contact-info__list strong {
  display: block;
  color: var(--bg-white);
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.contact-info__list span { color: var(--text-light-muted); }
.contact-info__list a { color: var(--accent-light); }
.contact-info__list a:hover { color: var(--accent); text-decoration: underline; }

.map-embed {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  /* Desaturates the third-party map so it sits inside the brand palette */
  filter: grayscale(60%);
}


/* ==========================================================================
   17. SECTION 13 — FOOTER
   ========================================================================== */
.footer {
  background-color: var(--primary);
  color: var(--text-light-muted);
  padding-top: 54px;
}

.footer__top {
  display: grid;
  gap: 34px;
  padding-bottom: 44px;
}

.brand--footer { margin-bottom: 16px; }

.footer__about {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  margin-bottom: 20px;
  max-width: 380px;
}

.footer__title {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer__list { display: grid; gap: 10px; }
.footer__list a {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  display: inline-block;
  padding: 3px 0;
}
.footer__list a:hover { color: var(--accent-light); }

.footer__list--contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer__list--contact i { color: var(--accent); margin-top: 5px; flex-shrink: 0; }

/* Social icons */
.social { display: flex; gap: 10px; }
.social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--accent);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.social a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--secondary-dark);
}

.footer__bottom {
  background-color: var(--primary-dark);
  border-top: 1px solid var(--border-dark);
  padding-block: 18px;
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.footer__bottom p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-light-muted);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer__legal a {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}
.footer__legal a:hover { color: var(--accent-light); }


/* ==========================================================================
   17b. CUSTOM CURSOR
   Only activated by main.js on fine-pointer devices with motion allowed, so
   the native cursor is never hidden without a working replacement.
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.cursor__dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.cursor__ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  transition: width var(--t-fast), height var(--t-fast), margin var(--t-fast),
              background-color var(--t-fast), border-color var(--t-fast),
              opacity var(--t-fast);
}

/* Shown once the pointer has actually moved */
.cursor.is-visible { opacity: 1; }

/* Over anything interactive the ring opens up and fills faintly */
.cursor__ring.is-hover {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  background-color: rgba(200, 155, 60, 0.14);
  border-color: var(--accent-light);
}
/* Over text fields it narrows to a caret-like bar */
.cursor__ring.is-text {
  width: 3px;
  height: 26px;
  margin: -13px 0 0 -1.5px;
  border-radius: 2px;
  background-color: var(--accent);
  border-color: transparent;
}
.cursor__ring.is-down {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}

/* Hide the native cursor only while the custom one is running */
.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }

.has-custom-cursor .cursor__dot.is-text { opacity: 0; }

/* ==========================================================================
   18. BACK-TO-TOP & SCROLL REVEAL
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-float);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t),
              background-color var(--t-fast);
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background-color: var(--secondary-light); }

/* Intersection-Observer driven reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Stagger children inside grids */
.card-grid .reveal:nth-child(2),
.stats .reveal:nth-child(2) { transition-delay: 80ms; }
.card-grid .reveal:nth-child(3),
.stats .reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .reveal:nth-child(4),
.stats .reveal:nth-child(4) { transition-delay: 240ms; }
.card-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.card-grid .reveal:nth-child(6) { transition-delay: 400ms; }


/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---------- Mobile & tablet: off-canvas navigation (below 1200px) -------- */
@media (max-width: 1199.98px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    z-index: calc(var(--z-drawer) + 1);
    background-color: var(--primary-dark);
    border-left: 3px solid var(--secondary);
    padding: 84px 22px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    /* visibility keeps the closed drawer out of the tab order */
    visibility: hidden;
    transition: transform var(--t-slow), visibility var(--t-slow);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Push the CTA and hamburger together on the right of the header */
  .navbar__cta { margin-left: auto; }

  .nav__list {
    flex-direction: column;
    gap: 2px;
  }
  .nav__link {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-dark);
    border-radius: 0;
  }
  .nav__link:hover { background-color: var(--primary-light); }
  .nav__link.is-active {
    background-color: var(--primary-light);
    border-bottom-color: var(--accent);
  }

  .nav__mobile-contact {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
  }
  .nav__mobile-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 0.88rem;
    color: var(--text-light-muted);
  }
  .nav__mobile-contact i { color: var(--accent); }
}

/* ---------- Utility bar trims down on narrow screens ----------
   Phone and email are repeated inside the mobile drawer and the footer, so
   they are dropped here rather than allowed to crowd the row. */
@media (max-width: 1023.98px) {
  .topbar__link:not(.topbar__link--accent) { display: none; }
}

@media (max-width: 639.98px) {
  .topbar__inner { justify-content: center; }
  .topbar__links { display: none; }
  .topbar__tagline { font-size: 0.74rem; }
}

/* ---------- Small phones and up ---------- */
@media (min-width: 480px) {
  .hero__title { font-size: 3.2rem; }
  .section__title { font-size: 2.15rem; }
  .badges__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet (768px+) ---------- */
@media (min-width: 768px) {
  :root {
    --gutter: 28px;
    --section-y: 84px;
  }

  .section { scroll-margin-top: 96px; }
  .hero { scroll-margin-top: 96px; padding-block: 92px 96px; }
  .hero__title { font-size: 3.8rem; }
  .hero__subtitle { font-size: 1.14rem; }
  .hero__eyebrow { font-size: 0.78rem; }

  .section__title { font-size: 2.4rem; }
  .section__lead { font-size: 1.08rem; }

  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }

  .about__panel { padding: 32px 30px; }
  .stat-card { padding: 20px 0; }
  .stat-card__value { font-size: 1.75rem; }

  .split { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

  .carousel__slide { flex-basis: 50%; max-width: 50%; }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .form__row { grid-template-columns: 1fr 1fr; gap: 0 18px; }

  .contact-form-wrap,
  .contact-info { padding: 36px 32px; }

  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__col--brand { grid-column: 1 / -1; }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .back-to-top { right: 26px; bottom: 26px; }
}

/* ---------- Small desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  :root { --section-y: 96px; }

  .hero__title { font-size: 4.2rem; line-height: 1.08; }
  .section__title { font-size: 2.6rem; }

  .hero__subtitle { max-width: 840px; }

  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }

  .about__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }

  .split--reverse .split__text { order: 2; }

  .carousel__slide { flex-basis: 33.3333%; max-width: 33.3333%; }

  .contact-grid { grid-template-columns: 1.15fr 1fr; gap: 34px; }

  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 30px; }
  .footer__col--brand { grid-column: auto; }
}

/* ---------- Desktop navigation (1200px+) ---------- */
@media (min-width: 1200px) {
  .section { scroll-margin-top: 126px; }
  .hero { scroll-margin-top: 126px; }
  .hero__content { max-width: 1120px; margin-inline: auto; }
  .hero__title { font-size: 4.6rem; }

  .hamburger { display: none; }
  .nav-backdrop { display: none; }

  /* Desktop adds the nav row, so the hero has more header to subtract */
  :root { --header-total: 149px; }

  /* The eleven links get their own full-width row, so each one can breathe
     instead of being squeezed alongside the brand and the CTA. */
  .navrow {
    background-color: var(--primary);
    border-top: 1px solid var(--border-dark);
  }
  .navrow__inner { display: flex; justify-content: center; }

  .nav { display: block !important; }
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
  .nav__link {
    min-height: 46px;
    padding: 0 15px;
    font-size: 0.86rem;
  }

  .nav__item--mobile-only { display: none; }
  .nav__mobile-contact { display: none; }

  .navbar__cta { display: inline-flex; }
}

/* ---------- Large desktop (1500px+) ---------- */
@media (min-width: 1500px) {
  :root { --container: 1340px; }

  .nav__link { padding: 0 19px; }
  .hero__title { font-size: 5rem; }
  .hero__content { max-width: 1220px; margin-inline: auto; }
}

/* ---------- Short viewports ----------
   Declared last so these win over the width-based hero rules above. Trims the
   vertical rhythm so the hero still resolves to exactly one screen on short
   laptops. */
@media (min-width: 1024px) and (max-height: 880px) {
  .hero { padding-block: 34px 38px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__subtitle { margin-bottom: 24px; }
  .hero__title { font-size: 3.6rem; }
  .hero__bar { margin-top: 30px; padding-top: 20px; }
  .hero__rails { margin-top: 24px; }
  /* hide the whole bar, not just the figures, so no orphan rule is left */
  .hero__bar { display: none; }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .hero { padding-block: 26px 30px; }
  .hero__title { font-size: 3rem; margin-bottom: 14px; }
  .hero__subtitle { margin-bottom: 20px; }
  .hero__bar { margin-top: 22px; padding-top: 16px; gap: 16px; }
  .hero__rails { margin-top: 18px; gap: 9px; }
}

/* ---------- Phone & small tablet header trim ----------
   The brand, CTA and hamburger share one row, so each step down in width
   sheds the least important element rather than letting the row overflow. */
@media (max-width: 767.98px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 0.84rem; }
  .brand__tagline { font-size: 0.62rem; }
  .navbar__cta {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  .navbar__cta i { display: none; }
}

@media (max-width: 519.98px) {
  .navbar__cta { display: none; }
}

@media (max-width: 419.98px) {
  .brand__tagline { display: none; }
}


/* ==========================================================================
   20. REDUCED MOTION & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }

  .feature-card:hover,
  .usp-card:hover,
  .industry-card:hover,
  .resource-card:hover,
  .stat-card:hover,
  .price-card:hover,
  .badge-tile:hover { transform: none; }
}

@media print {
  .site-header,
  .back-to-top,
  .hero__decor,
  .carousel__controls,
  .map-embed { display: none !important; }

  body { background: #fff; color: #000; }
  .section--dark,
  .hero,
  .footer { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
