/* =============================================================================
   TRAVIA TRADERS PRIVATE LIMITED — Global Stylesheet
   -----------------------------------------------------------------------------
   Contents
     01. Design tokens (colour, type, space, elevation)
     02. Reset & base
     03. Typography
     04. Layout primitives
     05. Buttons, links, badges
     06. Utility bar, header & navigation
     07. Hero (home) & page hero (inner pages)
     08. Section furniture
     09. Cards — stat / service / product / feature / testimonial / team
     10. Marquee, process rail, accordion, filters
     11. Forms
     12. CTA band, contact strip, map
     13. Footer
     14. Floating actions & back-to-top
     15. Motion, reveal & reduced-motion
     16. Responsive breakpoints
   ========================================================================== */


/* =============================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Brand palette ----------------------------------------------------- */
  --navy:        #0A1E3D;
  --navy-700:    #123058;
  --navy-500:    #1D4478;
  --navy-100:    #E4E9F0;

  --teal:        #1A7A7A;
  --teal-deep:   #125F5F;   /* AA-safe teal for small text on light surfaces */
  --teal-soft:   #E3F0EF;

  --clay:        #C76B3C;   /* accent — large text, icons, rules */
  --clay-deep:   #A5522A;   /* AA-safe clay for small text on light surfaces */
  --clay-soft:   #F6EAE2;

  --bone:        #F8F6F3;   /* page background */
  --bone-dark:   #EFEBE5;   /* alternating band */
  --white:       #FFFFFF;

  --ink:         #1E1E1E;
  --ink-muted:   #55565A;
  --ink-faint:   #71727A;

  /* --- Semantic surfaces (re-mapped for dark theme) ----------------------- */
  --bg:            var(--bone);
  --bg-alt:        var(--bone-dark);
  --surface:       var(--white);
  --surface-sunk:  #F1EEE9;
  --text:          var(--ink);
  --text-muted:    var(--ink-muted);
  --text-faint:    var(--ink-faint);
  --heading:       var(--navy);
  --accent-text:   var(--clay-deep);
  --link:          var(--teal-deep);
  --border:        rgba(10, 30, 61, 0.12);
  --border-strong: rgba(10, 30, 61, 0.24);
  --dark-band:     var(--navy);

  --ok:      #146C3F;
  --danger:  #B3261E;

  /* --- Typography -------------------------------------------------------- */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-xs:   0.75rem;      /* 12 */
  --fs-sm:   0.875rem;     /* 14 */
  --fs-base: 1rem;         /* 16 */
  --fs-md:   1.0625rem;    /* 17 */
  --fs-lg:   clamp(1.125rem, 0.4vw + 1.03rem, 1.25rem);
  --fs-h4:   clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  --fs-h3:   clamp(1.3125rem, 0.9vw + 1.1rem, 1.625rem);
  --fs-h2:   clamp(1.75rem, 2.2vw + 1.15rem, 2.75rem);
  --fs-h1:   clamp(2.125rem, 3.6vw + 1.1rem, 3.75rem);

  --lh-tight: 1.14;
  --lh-snug:  1.32;
  --lh-body:  1.68;

  /* --- Spacing scale ----------------------------------------------------- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  2.5rem;
  --s-8:  3rem;
  --s-9:  4rem;

  --section-y: clamp(3.5rem, 6vw, 6.5rem);
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);

  /* --- Radius & elevation ------------------------------------------------ */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 9px;
  --r-lg: 16px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(10, 30, 61, 0.05), 0 2px 8px rgba(10, 30, 61, 0.05);
  --sh-2: 0 2px 6px rgba(10, 30, 61, 0.06), 0 12px 28px rgba(10, 30, 61, 0.08);
  --sh-3: 0 6px 14px rgba(10, 30, 61, 0.09), 0 26px 56px rgba(10, 30, 61, 0.13);

  /* --- Motion ------------------------------------------------------------ */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 520ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* --- Z-index scale -----------------------------------------------------
     The drawer lives inside the header, so the nav backdrop must sit BELOW
     the header for the open drawer to paint above it. */
  --z-float:    80;
  --z-backdrop: 90;
  --z-header:   100;
  --z-drop:     110;
  --z-drawer:   120;
  --z-skip:     300;

  /* --- Decorative -------------------------------------------------------- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* --- Dark theme ---------------------------------------------------------- */
[data-theme="dark"] {
  --bg:            #060F1F;
  --bg-alt:        #0A1930;
  --surface:       #0D2242;
  --surface-sunk:  #0A1B34;
  --text:          #E9E6E1;
  --text-muted:    #B0B9C6;
  --text-faint:    #909AAB;
  --heading:       #F2EFEA;
  --accent-text:   #E39262;
  --link:          #62CCC5;
  --border:        rgba(233, 230, 225, 0.14);
  --border-strong: rgba(233, 230, 225, 0.28);
  --dark-band:     #08152B;
  --teal-soft:     rgba(26, 122, 122, 0.2);
  --clay-soft:     rgba(199, 107, 60, 0.18);
  --navy-100:      rgba(233, 230, 225, 0.1);
  --ok:            #4FBF83;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.34);
  --sh-3: 0 6px 14px rgba(0, 0, 0, 0.45), 0 26px 56px rgba(0, 0, 0, 0.5);
}


/* =============================================================================
   02. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;      /* sticky-header clearance for in-page anchors */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t-base), color var(--t-base);
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

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

/* Components set an explicit `display`, which would otherwise beat the UA
   rule for [hidden] — the product filter relies on this. */
[hidden] { display: none !important; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Consistent, always-visible keyboard focus ring */
:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--teal); color: #fff; }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.is-locked { overflow: hidden; }


/* =============================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

p { text-wrap: pretty; }
p + p { margin-top: var(--s-4); }

strong { font-weight: 600; color: var(--heading); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px; height: 2px;
  background: var(--clay);
}
.eyebrow--light { color: #EDBE9E; }

.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }
.measure { max-width: 68ch; }
.text-center { text-align: center; }


/* =============================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }

.section--dark {
  background: var(--dark-band);
  color: #C5CEDB;
  position: relative;
  overflow: hidden;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark strong { color: #fff; }
.section--dark a { color: #7FD6CE; }

.section-head { max-width: 720px; margin-bottom: var(--s-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--s-4); color: var(--text-muted); font-size: var(--fs-lg); }
.section--dark .section-head p { color: #B4C0D0; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rule { height: 1px; background: var(--border); border: 0; margin-block: var(--s-7); }
.stack > * + * { margin-top: var(--s-4); }


/* =============================================================================
   05. BUTTONS, LINKS, BADGES
   ========================================================================== */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;                /* ≥ 44px touch target */
  padding: 0.8rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-base), border-color var(--t-base),
              color var(--t-base), box-shadow var(--t-base), transform var(--t-fast);
}
.btn:hover { box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

.btn--primary:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
/* Solid accent buttons use the deeper terracotta: white on --clay is only
   3.75:1, which fails AA for button text. --clay-deep gives 5.47:1. */
.btn--accent { --btn-bg: var(--clay-deep); --btn-bd: var(--clay-deep); }
.btn--accent:hover { --btn-bg: #8C4522; --btn-bd: #8C4522; }
.btn--teal { --btn-bg: var(--teal-deep); --btn-bd: var(--teal-deep); }
.btn--teal:hover { --btn-bg: #0E4C4C; --btn-bd: #0E4C4C; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--heading); --btn-bd: var(--border-strong); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
[data-theme="dark"] .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.45); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }

.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Arrow text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 16px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9.5 1L14 5l-4.5 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h13M9.5 1L14 5l-4.5 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform var(--t-base);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .badge { color: var(--link); }
.badge--clay { background: var(--clay-soft); color: var(--clay-deep); }
[data-theme="dark"] .badge--clay { color: var(--accent-text); }

/* Checklist */
.checklist { display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.7rem; color: var(--text-muted); font-size: var(--fs-base); }
.checklist li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 0.22em;
  border-radius: 50%;
  background: var(--teal-soft);
  -webkit-mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%23125F5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}
.section--dark .checklist li { color: #C5CEDB; }


/* =============================================================================
   06. UTILITY BAR, HEADER & NAVIGATION
   ========================================================================== */

.utility-bar {
  background: var(--navy);
  color: #BDC8D8;
  font-size: var(--fs-xs);
}
[data-theme="dark"] .utility-bar { background: #050D1B; }
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 40px;
  padding-block: 0.3rem;
}
.utility-bar__group { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #BDC8D8;
  text-decoration: none;
  transition: color var(--t-fast);
}
.utility-bar__item:hover { color: #fff; }
.utility-bar__item svg { opacity: 0.8; flex: none; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.26);
  color: #BDC8D8;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { background: rgba(255,255,255,0.14); color: #fff; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
/* The frosted backdrop lives on a pseudo-element: `backdrop-filter` on the
   header itself would make it the containing block for the fixed mobile
   drawer, trapping the drawer inside the header's box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(10, 30, 61, 0.08);
}

.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: 74px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--heading);
  margin-right: auto;
}
/* The mark stands on its own — no badge, no gradient. `currentColor` drives the
   navy half so it inverts on dark backgrounds; the accent half stays terracotta. */
.brand__mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  color: var(--heading);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}

/* --- Primary nav --------------------------------------------------------- */
.main-nav > ul { display: flex; align-items: center; gap: 0.15rem; }

.main-nav a,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.main-nav a:hover,
.nav-trigger:hover { color: var(--link); background: var(--surface-sunk); }

.main-nav > ul > li > a[aria-current="page"],
.nav-trigger[aria-current="true"] { color: var(--heading); font-weight: 600; position: relative; }
.main-nav > ul > li > a[aria-current="page"]::after,
.nav-trigger[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
}

.nav-item { position: relative; }
.nav-trigger svg { transition: transform var(--t-fast); }
.nav-item.is-open > .nav-trigger svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: var(--z-drop);
  min-width: 272px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.nav-item.is-open > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; width: 100%; padding: 0.6rem 0.75rem; font-weight: 500; }
.nav-dropdown a span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-faint);
  margin-top: 2px;
  white-space: normal;
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 3.5px auto;
  background: var(--heading);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  background: rgba(6, 15, 31, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }


/* =============================================================================
   07. HERO & PAGE HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(26, 122, 122, 0.17) 0%, transparent 58%),
    radial-gradient(90% 80% at 2% 96%, rgba(199, 107, 60, 0.14) 0%, transparent 55%),
    var(--bg);
  padding-block: clamp(2.75rem, 5vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .hero::after { mix-blend-mode: screen; opacity: 0.05; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--teal-deep); position: relative; }
[data-theme="dark"] .hero h1 em { color: var(--link); }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.13em;
  background: var(--clay);
  opacity: 0.3;
  border-radius: 2px;
}

.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-bottom: var(--s-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hero__tagline li { display: inline-flex; align-items: center; gap: 0.8rem; }
.hero__tagline li::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--clay);
}
.hero__tagline li:last-child::after { display: none; }

.hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; margin-bottom: var(--s-6); }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__proof svg { color: var(--teal-deep); flex: none; }
[data-theme="dark"] .hero__proof svg { color: var(--link); }

/* --- Hero visual --------------------------------------------------------- */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}
.hero__panel {
  position: absolute;
  inset: 5% 2% 8% 4%;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy) 0%, #14375F 52%, var(--teal-deep) 128%);
  box-shadow: var(--sh-3);
  overflow: hidden;
  /* Contains the ::before/::after layers below — without it their z-indexes
     escape into .hero__visual and paint over the floating chips. */
  isolation: isolate;
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 38% 32%, #000 8%, transparent 76%);
  mask-image: radial-gradient(circle at 38% 32%, #000 8%, transparent 76%);
}
.hero__panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Photograph fills the panel; the navy wash keeps the floating chips legible
   and ties the image back to the brand palette. */
.hero__panel img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__panel::after {          /* brand wash, above the photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, rgba(10, 30, 61, 0.44) 0%, rgba(10, 30, 61, 0.05) 46%, rgba(18, 95, 95, 0.36) 100%);
  pointer-events: none;
}
.hero__panel::before { z-index: 2; }   /* grid lines sit on top of the wash */

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  animation: floaty 7s ease-in-out infinite;
}
.hero__chip-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--teal-soft);
  color: var(--teal-deep);
}
[data-theme="dark"] .hero__chip-icon { color: var(--link); }
/* nowrap keeps the shrink-to-fit chip from sizing narrower than its own text */
.hero__chip-text strong { display: block; font-size: var(--fs-sm); line-height: 1.25; white-space: nowrap; }
.hero__chip-text span { display: block; font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }
.hero__chip--1 { top: 2%; right: 0; }
.hero__chip--2 { bottom: 26%; left: -5%; animation-delay: -2.4s; }
.hero__chip--3 { bottom: 0; right: 8%; animation-delay: -4.8s; }
.hero__chip--3 .hero__chip-icon { background: var(--clay-soft); color: var(--clay-deep); }
[data-theme="dark"] .hero__chip--3 .hero__chip-icon { color: var(--accent-text); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100% 130% at 84% 0%, rgba(26, 122, 122, 0.42) 0%, transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, #10294B 100%);
  color: #C5CEDB;
  padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(3rem, 5.5vw, 5rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: var(--s-4); }
.page-hero p { color: #B4C0D0; font-size: var(--fs-lg); max-width: 60ch; }
.page-hero .btn-row { margin-top: var(--s-6); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--s-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: #9AAABF;
}
.breadcrumb a { color: #9AAABF; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: #64748B; }
.breadcrumb [aria-current="page"] { color: #EDBE9E; }


/* =============================================================================
   08. SECTION FURNITURE
   ========================================================================== */

/* Trust / stat bar */
.stat-bar { position: relative; z-index: 2; margin-top: calc(var(--section-y) * -0.55); }
.stat-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.stat {
  padding: clamp(1.25rem, 2.4vw, 2rem) clamp(0.75rem, 2vw, 1.75rem);
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.stat__num sup { font-size: 0.44em; color: var(--clay); top: -0.85em; margin-left: 2px; }
.stat__label {
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Split copy / media */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split--media-first > *:first-child { order: -1; }
/* Form + sidebar pages. Kept as a class, not an inline style, so the
   single-column rule in the responsive block can still win on mobile. */
.split--form { grid-template-columns: 1.55fr 1fr; align-items: start; }
.split--top { align-items: start; }

/* Decorative frame — drop a real photo in as <img> to replace the artwork */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: linear-gradient(150deg, var(--navy) 0%, #163963 55%, var(--teal-deep) 100%);
  aspect-ratio: 4 / 3.2;
}
.frame > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Absolute so the photo fills the frame regardless of the <picture> wrapper,
   which is inline by default and would not stretch to 100% height. */
.frame picture { position: absolute; inset: 0; display: block; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame--accent { background: linear-gradient(150deg, #86462A 0%, var(--clay) 60%, #D9925F 100%); }
.frame__caption {
  position: absolute;
  left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.note { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.6; }


/* =============================================================================
   09. CARDS
   ========================================================================== */

/* --- Service pillar ------------------------------------------------------ */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--clay);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-slow);
}
.service-card:hover,
.service-card:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-4px);
}
.service-card:hover::before,
.service-card:focus-within::before { transform: scaleY(1); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  background: var(--teal-soft);
  color: var(--teal-deep);
  transition: background-color var(--t-base), color var(--t-base);
}
[data-theme="dark"] .service-card__icon { color: var(--link); }
.service-card:hover .service-card__icon { background: var(--navy); color: #fff; }
[data-theme="dark"] .service-card:hover .service-card__icon { background: var(--teal-deep); color: #fff; }

.service-card__index {
  position: absolute;
  top: clamp(1rem, 2vw, 1.4rem);
  right: clamp(1rem, 2vw, 1.4rem);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--heading);
  opacity: 0.09;
}
.service-card h3 { margin-bottom: var(--s-3); }
.service-card > p { color: var(--text-muted); font-size: var(--fs-base); }
.service-card ul {
  margin-top: var(--s-4);
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.service-card ul li { display: flex; gap: 0.55rem; }
.service-card ul li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--clay);
}
.service-card .link-arrow { margin-top: auto; padding-top: var(--s-5); align-self: flex-start; }

/* --- Product category ---------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.product-card:hover,
.product-card:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-4px);
}
.product-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--navy) 0%, #17395F 60%, var(--teal-deep) 130%);
  color: #fff;
}
.product-card__media .pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
.product-card__glyph { position: relative; transition: transform var(--t-slow); }
.product-card:hover .product-card__glyph { transform: scale(1.12); }
.product-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card__media img { transform: scale(1.07); }
/* Keeps photographed cards tonally consistent with the illustrated ones */
.product-card__media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 61, 0.1) 0%, rgba(10, 30, 61, 0.02) 45%, rgba(10, 30, 61, 0.34) 100%);
  pointer-events: none;
}

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); }
.product-card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.product-card p { font-size: var(--fs-sm); color: var(--text-muted); }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-4); }
.product-card__tags li {
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}
.product-card__foot { margin-top: auto; padding-top: var(--s-5); }

/* --- Feature ------------------------------------------------------------- */
.feature {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-1); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--clay-soft);
  color: var(--clay-deep);
}
[data-theme="dark"] .feature__icon { color: var(--accent-text); }
.feature h3 { font-size: var(--fs-h4); margin-bottom: 0.35rem; }
.feature p { font-size: var(--fs-sm); color: var(--text-muted); }

.section--dark .feature { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.13); }
.section--dark .feature p { color: #B4C0D0; }
.section--dark .feature__icon { background: rgba(199,107,60,0.24); color: #EDBE9E; }

/* --- Testimonials -------------------------------------------------------- */
.tslider { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.tslider__track { display: flex; transition: transform var(--t-slow); }
.tslider__slide { flex: 0 0 100%; min-width: 0; padding: clamp(1.5rem, 4vw, 3rem); }
.tslider__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.55;
  color: var(--clay);
  margin-bottom: var(--s-4);
}
.tslider__quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.55;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.section--dark .tslider__quote { color: #fff; }
.tslider__author { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.tslider__avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.tslider__author strong { display: block; font-size: var(--fs-base); }
.tslider__author span:not(.tslider__avatar) { display: block; font-size: var(--fs-sm); color: var(--text-muted); }
.section--dark .tslider__author strong { color: #fff; }
.section--dark .tslider__author span { color: #A3B0C2; }

.tslider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.tslider__btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  color: var(--heading);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tslider__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.section--dark .tslider__btn { border-color: rgba(255,255,255,0.32); color: #fff; }
.section--dark .tslider__btn:hover { background: #fff; color: var(--navy); }

.tslider__dots { display: flex; gap: 0.5rem; }
.tslider__dot {
  position: relative;
  width: 30px; height: 4px;
  padding: 0;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  transition: background-color var(--t-fast), width var(--t-base);
}
.tslider__dot::after { content: ""; position: absolute; inset: -20px -6px; }  /* 44px hit area */
.tslider__dot[aria-selected="true"] { background: var(--clay); width: 44px; }
.section--dark .tslider__dot { background: rgba(255,255,255,0.3); }
.section--dark .tslider__dot[aria-selected="true"] { background: var(--clay); }

/* --- Team & certifications ---------------------------------------------- */
.team-card {
  text-align: center;
  padding: var(--s-6) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }

/* --- Photographed variant ------------------------------------------------
   Environmental portraits read better full-bleed than cropped into a small
   circle, so the photo takes the head of the card and the text sits below. */
.team-card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-sunk);
}
.team-card__photo picture { position: absolute; inset: 0; display: block; }
.team-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.team-card--photo:hover .team-card__photo img { transform: scale(1.05); }
.team-card__photo::after {          /* keeps portraits tonally consistent */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 61, 0.04) 0%, rgba(10, 30, 61, 0.22) 100%);
  pointer-events: none;
}
.team-card__body { padding: var(--s-5); }
.team-card__avatar {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--teal-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.team-card h3 { font-size: var(--fs-h4); }
.team-card__role {
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.team-card p { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-muted); }

.cert-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.cert-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
}
[data-theme="dark"] .cert-card__icon { background: var(--teal-deep); }
.cert-card strong { display: block; font-size: var(--fs-base); }
.cert-card span:not(.cert-card__icon) { display: block; font-size: var(--fs-sm); color: var(--text-muted); }

/* --- Info card ----------------------------------------------------------- */
.info-card {
  display: flex;
  gap: var(--s-4);
  height: 100%;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.info-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--teal-soft);
  color: var(--teal-deep);
}
[data-theme="dark"] .info-card__icon { color: var(--link); }
.info-card h3 { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; }
.info-card p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 0.3rem; }
.info-card a { display: block; font-size: var(--fs-sm); margin-top: 0.3rem; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }


/* =============================================================================
   10. MARQUEE, PROCESS RAIL, ACCORDION, FILTERS
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: 0.9rem;
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  border-block: 1px solid rgba(255,255,255,0.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
[data-theme="dark"] .marquee { background: #050D1B; }
.marquee__track { display: flex; gap: var(--s-7); width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-7);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Process rail -------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.process__step { position: relative; padding-top: var(--s-6); }
.process__step::before {
  content: "";
  position: absolute;
  top: 17px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.process__step:last-child::before { right: 50%; }
.process__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-top: calc(var(--s-6) * -1);
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--clay);
  color: var(--accent-text);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.section--alt .process__num { background: var(--bg-alt); }
.process__step h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.process__step p { font-size: var(--fs-sm); color: var(--text-muted); }

.section--dark .process__step::before { background: rgba(255,255,255,0.18); }
.section--dark .process__num { background: var(--dark-band); color: #EDBE9E; }
.section--dark .process__step p { color: #B4C0D0; }

/* --- Accordion ----------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--heading);
  transition: color var(--t-fast);
}
.accordion__trigger:hover { color: var(--link); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity var(--t-fast);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; }

.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-base); }
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding-bottom: var(--s-5); color: var(--text-muted); max-width: 76ch; }

/* --- Filter chips -------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--s-7); }
.filter-chip {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--heading); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .filter-chip[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); }

.filter-empty {
  display: none;
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.filter-empty.is-visible { display: block; }


/* =============================================================================
   11. FORMS
   ========================================================================== */

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--heading); }
.field label .req { color: var(--accent-text); }
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { min-height: 136px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%2355565A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.2);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }
.field__error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--danger);
}
[data-theme="dark"] .field__error { color: #F09189; }
.field.is-invalid .field__error { display: flex; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.35rem 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--teal-deep);
  cursor: pointer;
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.25rem 1rem; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.form-status.is-visible { display: flex; }
.form-status--ok {
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  color: var(--ok);
}
.form-status--error {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 34%, transparent);
  color: var(--danger);
}
[data-theme="dark"] .form-status--error { color: #F09189; }
.form-status svg { flex: none; margin-top: 2px; }
.form-status strong { color: inherit; }
/* Focus is moved here after submit so it is announced — indicate it in the
   status colour rather than the global accent ring */
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }


/* =============================================================================
   12. CTA BAND, CONTACT STRIP, MAP
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 140% at 88% 8%, rgba(199, 107, 60, 0.36) 0%, transparent 58%),
    linear-gradient(110deg, var(--navy) 0%, #123354 100%);
  color: #C5CEDB;
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #B4C0D0; margin-top: var(--s-3); max-width: 48ch; }

.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.contact-strip__item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.contact-strip__item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.contact-strip__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
}
[data-theme="dark"] .contact-strip__icon { background: var(--teal-deep); }
.contact-strip__item strong { display: block; font-size: var(--fs-base); }
/* :not() keeps this off the icon span, which must stay display:grid */
.contact-strip__item span:not(.contact-strip__icon) { display: block; }
.contact-strip__item span span { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-1);
  background: var(--surface-sunk);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.hours-list li,
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.hours-list li:last-child,
.spec-list li:last-child { border-bottom: 0; }
.hours-list span:first-child,
.spec-list span:first-child { color: var(--text-muted); }
.hours-list span:last-child,
.spec-list span:last-child { font-weight: 600; color: var(--heading); text-align: right; }


/* --- Trade corridors ------------------------------------------------------
   Origin → destination rows used on the home page's global-reach band.       */
.corridor-list {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.corridor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem clamp(0.9rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-sm);
}
.corridor:last-child { border-bottom: 0; }
.corridor__place { color: #fff; font-weight: 600; white-space: nowrap; }
.corridor__arrow { flex: none; color: var(--clay); }
.corridor__mode {
  margin-left: auto;
  flex: none;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B4C0D0;
}

/* --- Region chips ---------------------------------------------------------*/
.region-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--s-5); }
.region-list li {
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #D3DBE6;
}

/* --- Audience card (who we serve) ----------------------------------------*/
.audience-card {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-top: 3px solid var(--teal);
  transition: transform var(--t-base), box-shadow var(--t-base), border-top-color var(--t-base);
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-top-color: var(--clay);
}
.audience-card__tag {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}
.audience-card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-3); }
.audience-card p { font-size: var(--fs-sm); color: var(--text-muted); }


/* =============================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy);
  color: #A3B0C2;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  font-size: var(--fs-sm);
}
[data-theme="dark"] .site-footer { background: #050D1B; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: var(--s-8);
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-4);
}
.site-footer p { line-height: 1.7; }
.site-footer a { color: #A3B0C2; text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand .brand { margin-bottom: var(--s-4); color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #7C8CA3; }
.footer-brand .brand__mark { color: #fff; }

.footer-links { display: grid; gap: 0.7rem; }
.footer-links a { display: inline-block; }

.footer-contact li { display: flex; gap: 0.7rem; margin-bottom: var(--s-4); line-height: 1.6; }
.footer-contact svg { flex: none; margin-top: 3px; color: #EDBE9E; }

.footer-social { display: flex; gap: 0.6rem; margin-top: var(--s-5); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.18);
  color: #A3B0C2;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer-social a:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.34); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-xs);
  color: #7C8CA3;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer-bottom a { color: #7C8CA3; }


/* =============================================================================
   14. FLOATING ACTIONS & BACK-TO-TOP
   ========================================================================== */

.float-stack {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--sh-2);
  transition: transform var(--t-base), box-shadow var(--t-base), background-color var(--t-base),
              opacity var(--t-base), visibility var(--t-base);
}
.float-btn:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.float-btn--email { background: var(--teal-deep); }
.float-btn--email:hover { background: #0E4C4C; }
.float-btn--top { background: var(--navy); border: 1px solid rgba(255,255,255,0.22); opacity: 0; visibility: hidden; }
.float-btn--top.is-visible { opacity: 1; visibility: visible; }
.float-btn--top:hover { background: var(--navy-700); }

/* Tooltip label */
.float-btn::after {
  content: attr(data-label);
  position: absolute;
  right: 64px;
  padding: 0.35rem 0.7rem;
  background: var(--navy);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--r-xs);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.float-btn:hover::after, .float-btn:focus-visible::after { opacity: 1; }


/* =============================================================================
   15. MOTION, REVEAL & REDUCED MOTION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }

/* Without JS everything must still be readable */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .main-nav {
  position: static;
  transform: none;
  clip-path: none;
  visibility: visible;
  width: auto;
  box-shadow: none;
}
.no-js .main-nav > ul { transform: none; opacity: 1; }

@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; }
  .marquee__track, .hero__chip { animation: none; }
}


/* =============================================================================
   16. RESPONSIVE
   ========================================================================== */

@media (max-width: 1120px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; }
  .hero__chip--1 { right: 0; }
  .hero__chip--2 { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 90px; }

  /* Mobile navigation drawer */
  .nav-toggle { display: grid; }

  /* The closed drawer is revealed with clip-path rather than translated off the
     right edge — an off-viewport fixed panel makes the page pannable on touch. */
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: var(--z-drawer);
    width: min(360px, 88vw);
    padding: var(--s-8) var(--s-5) var(--s-7);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--sh-3);
    overflow-y: auto;
    overscroll-behavior: contain;
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path var(--t-base), visibility var(--t-base);
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

  /* Contents slide in behind the wipe, entirely inside the clipped box */
  .main-nav > ul {
    transform: translateX(18px);
    opacity: 0;
    transition: transform var(--t-base) 60ms, opacity var(--t-base) 60ms;
  }
  .main-nav.is-open > ul { transform: none; opacity: 1; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .main-nav a,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.75rem;
    font-size: var(--fs-md);
  }
  .main-nav > ul > li > a[aria-current="page"]::after,
  .nav-trigger[aria-current="true"]::after { display: none; }
  .main-nav > ul > li > a[aria-current="page"],
  .nav-trigger[aria-current="true"] { background: var(--surface-sunk); color: var(--link); }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.15rem 0 0.4rem 0.75rem;
    padding: 0 0 0 var(--s-4);
    background: transparent;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.is-open > .nav-dropdown { display: block; }
  .nav-dropdown a { font-size: var(--fs-sm); }

  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; margin-top: var(--s-5); }

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

  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .process__step:nth-child(2)::before { right: 50%; }

  .split { grid-template-columns: 1fr; }
  .split--media-first > *:first-child { order: 0; }

  .contact-strip { grid-template-columns: 1fr; }

  .stat-bar { margin-top: 0; }
  .stat-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }

  .utility-bar__address { display: none; }
  .utility-bar__inner { justify-content: space-between; }
}

@media (min-width: 981px) {
  .nav-cta-mobile { display: none; }
  .nav-backdrop { display: none; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }
  body { font-size: var(--fs-base); }

  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }

  .process { grid-template-columns: 1fr; }
  .process__step { padding-top: 0; }
  .process__step::before { display: none; }
  .process__num { margin-top: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Keep the headline, drop the sub-label — the icon and label still read */
  .hero__chip { padding: 0.55rem 0.7rem; }
  .hero__chip-text span { display: none; }
  .hero__chip--2 { display: none; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { max-width: none; }

  .float-btn { width: 48px; height: 48px; }
  .float-btn::after { display: none; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.1rem; }
  .brand__sub { letter-spacing: 0.14em; }
  .stat-bar__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

/* Print — strip chrome, keep content legible */
@media print {
  .site-header, .utility-bar, .float-stack, .marquee, .cta-band, .nav-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
