/* ==========================================================================
   IMPEL FASHION — MAIN STYLESHEET
   Apparel Buying House & Sourcing Agent | impelfashion.com

   Architecture (read this before editing):
   1. Font-face          — self-hosted variable fonts
   2. Reset & base        — resets, base element styles
   3. Typography          — heading/body classes
   4. Layout utilities     — container, section, grid helpers
   5. Navbar               — glass sticky nav
   6. Buttons               — primary / secondary / text
   7. Badges & pills         — category pills, cert badges
   8. Cards                  — product/category/service cards
   9. Forms                   — inputs, textareas, selects
   10. Hero                    — slideshow structure (see animations.css for motion)
   11. Trust bar & stats         — certification strip + counters
   12. Timeline                   — process / company history
   13. FAQ accordion
   14. Footer
   15. Utility classes              — reveal hooks, visually-hidden, etc.

   Depends on: tokens.css (load first), animations.css, responsive.css
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* 1. FONT FACES — self-hosted variable fonts (no external CDN dependency) */
/* ---------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable-latin.woff2') format('woff2-variations'),
       url('../fonts/inter-variable-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-variable-latin.woff2') format('woff2-variations'),
       url('../fonts/plus-jakarta-sans-variable-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------- */
/* 2. RESET & BASE                                                        */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  /* v2: crystal clean, pure white — flat fill, no tint. */
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  /* background-attachment:fixed is expensive/buggy on mobile Safari — scroll normally there */
  body { background-attachment: scroll; }
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* Focus states — visible, on-brand, never the harsh browser default */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------- */
/* 3. TYPOGRAPHY                                                          */
/* ---------------------------------------------------------------------- */
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: 700;
}

.text-hero   { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: 800; }
h1, .h1      { font-size: var(--fs-h1); }
h2, .h2      { font-size: var(--fs-h2); }
h3, .h3      { font-size: var(--fs-h3); font-weight: 600; }
h4, .h4      { font-size: var(--fs-lead); font-weight: 600; }

p { color: var(--color-text); }
p.lead { font-size: var(--fs-lead); color: var(--color-charcoal); line-height: 1.6; }
small, .text-small { font-size: var(--fs-small); }

.text-muted { color: var(--color-text-muted); }
.text-on-dark { color: var(--color-text-on-dark); }
.text-on-dark .text-muted,
.text-on-dark-muted { color: var(--color-text-on-dark-muted); }
.text-gold { color: var(--color-gold); }
.text-accent { color: var(--color-accent); }
.text-cyan { color: var(--color-cyan); }
.text-teal { color: var(--color-teal); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent-600);
}

/* ---------------------------------------------------------------------- */
/* 3b. DARK-BACKGROUND CONTRAST SAFETY NET                                */
/* Every container that sits on a dark/photo background gets its text     */
/* colors flipped automatically here — this is a systemic fix, not a      */
/* per-instance one, precisely because per-instance overrides are how a   */
/* "navy text on navy background" bug slips through in the first place.   */
/* Applies to: .hero, .page-hero, .section--navy, .footer, .trustbar,     */
/* .stats — every dark section in the site, present and future.           */
/* ---------------------------------------------------------------------- */
.hero, .page-hero, .section--navy, .footer, .trustbar, .stats {
  color: var(--color-text-on-dark);
}
.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.footer h1, .footer h2, .footer h3, .footer h4 {
  color: var(--color-white);
}
.hero p, .page-hero p, .section--navy p, .footer p, .trustbar p, .stats p {
  color: var(--color-text-on-dark-muted);
}
.hero .eyebrow, .page-hero .eyebrow, .section--navy .eyebrow,
.footer .eyebrow, .trustbar .eyebrow, .stats .eyebrow {
  color: var(--color-cyan);
}
.hero .btn--text, .page-hero .btn--text, .section--navy .btn--text,
.footer .btn--text, .trustbar .btn--text, .stats .btn--text {
  color: var(--color-white);
}
.hero .btn--secondary, .page-hero .btn--secondary, .section--navy .btn--secondary {
  color: var(--color-white);
  border-color: rgba(244,243,240,0.4);
}
.hero .btn--secondary:hover, .page-hero .btn--secondary:hover, .section--navy .btn--secondary:hover {
  border-color: var(--color-cyan);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--space-2); }
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { color: var(--color-text-muted); }

/* ---------------------------------------------------------------------- */
/* 4. LAYOUT UTILITIES                                                    */
/* ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.section { padding-block: var(--section-padding-y); position: relative; overflow: hidden; isolation: isolate; }
.section--tight { padding-block: calc(var(--section-padding-y) * 0.6); }
.section--navy { background: var(--color-navy); }
.section--surface { background: var(--color-surface); }
.section--border-top { border-top: 1px solid var(--color-border); }
.section > .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------- */
/* 4b. AMBIENT ANIMATED BACKGROUNDS                                       */
/* Every section stays quietly "alive" — slow-drifting soft light, not a  */
/* particle effect or video. Pure CSS transform/opacity on a pseudo-      */
/* element, so it costs nothing on the network and is cheap to render.    */
/* Ref direction: fcigroup.com's ambient section motion, adapted to a     */
/* static, performance-safe technique (see 00_MASTER_INSTRUCTION.md       */
/* Lighthouse 95+ requirement — a looped background video on every        */
/* section would blow that budget; this delivers the same "always something
/* softly moving" feeling without the weight).                            */
/* ---------------------------------------------------------------------- */
.section::before,
.footer::before,
.trustbar::before,
.stats::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  /* v2: light sections stay pure white (fallback = transparent). Dark
     sections re-declare --glow-a/--glow-b below to keep their ambient glow. */
  background:
    radial-gradient(36% 40% at 16% 20%, var(--glow-a, transparent) 0%, transparent 70%),
    radial-gradient(30% 34% at 84% 78%, var(--glow-b, transparent) 0%, transparent 70%);
  animation: bg-drift 24s var(--ease-out-soft) infinite alternate;
}
.section--navy::before,
.footer::before,
.trustbar::before,
.stats::before,
.page-hero::before {
  --glow-a: rgba(46,143,224,0.18);
  --glow-b: rgba(47,217,200,0.16);
}

/* Faint animated grid texture — dark sections only, echoes the export-
   route "network" motif. Extremely subtle (3-4% opacity). */
.section--navy::after,
.footer::after,
.trustbar::after,
.stats::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(244,243,240,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,243,240,0.6) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 40s linear infinite;
}

@keyframes bg-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2.5%, 3%, 0) scale(1.04); }
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .section::before, .footer::before, .trustbar::before, .stats::before, .page-hero::before,
  .section--navy::after, .footer::after, .trustbar::after, .stats::after {
    animation: none;
  }
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }

/* ---------------------------------------------------------------------- */
/* 5. NAVBAR — frosted glass, sticky, shrinks on scroll                   */
/* ---------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(160%);
  border-bottom: 1px solid rgba(229, 226, 220, 0.6);
  transition: height var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.nav.is-scrolled {
  height: var(--nav-height-scrolled);
  box-shadow: 0 1px 0 rgba(46,143,224,0.12), 0 12px 32px rgba(11,28,44,0.08);
  border-bottom-color: rgba(46,143,224,0.15);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* v2: logo source is now tight-cropped (transparent top/bottom padding
   removed), so the glyph fills the box — set the size purely via height, no
   scale hack. Bigger than v1. */
.nav__logo { display: flex; align-items: center; height: 48px; overflow: visible; transition: height var(--dur-base) var(--ease-out); }
.nav__logo img { height: 100%; width: auto; flex: 0 0 auto; max-width: none; object-fit: contain; }
.nav.is-scrolled .nav__logo { height: 50px; }
/* Desktop: push the logo to the largest size the bar can hold — the header
   itself is unchanged (--nav-height 86px, 68px once scrolled); these leave
   ~5px breathing room top/bottom so nothing clips. Declared after the
   .is-scrolled rule above so the scrolled size here wins on desktop. */
@media (min-width: 768px) {
  .nav__logo { height: 76px; }
  .nav.is-scrolled .nav__logo { height: 60px; }
}

.nav__menu { display: flex; align-items: center; gap: var(--space-5); }
.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
  padding-block: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav__admin-link {
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--color-accent-600);
  padding: 6px 12px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.nav__admin-link:hover { background: var(--color-accent); color: var(--color-white); box-shadow: 0 4px 12px rgba(46,143,224,0.35); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--color-navy); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------- */
/* Transparent nav OVER the hero at the top of the page — so the header no  */
/* longer reads as a solid bar cutting across the model. On scroll the nav  */
/* gets its glass background + dark text back (.is-scrolled, set in main.js  */
/* at scrollY>40). Every page's top is a dark hero (.hero / .page-hero with */
/* dark scrim), so white text/logo is readable everywhere at the top.       */
/* ---------------------------------------------------------------------- */
/* The header is its own LIGHT band sitting ABOVE the hero — the hero is
   pushed down by var(--nav-height) (see .hero / .page-hero), so the bar never
   cuts across the model and the logo reads in its real colours on the light
   bar (no white filter, no glow — exact shape). At-top only drops the shadow;
   .is-scrolled deepens it. */
.nav:not(.is-scrolled) { box-shadow: none; }

/* Skip link — accessibility. Fully off-canvas via transform (not just a
   negative `top`, which can leave a sliver visible if the element is
   taller than the offset) until keyboard focus brings it into view. */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* 6. BUTTONS                                                             */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: var(--btn-height-mobile);
  padding-inline: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
@media (min-width: 768px) { .btn { height: var(--btn-height); padding-inline: var(--space-5); } }

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — sky-blue fill, animated cyan underline (not a color-swap hover) */
.btn--primary {
  position: relative;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(46,143,224,0.35);
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  left: var(--space-4); right: var(--space-4); bottom: 9px;
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn--primary:hover { background: var(--color-accent-600); box-shadow: 0 8px 22px rgba(46,143,224,0.45); }
.btn--primary:hover::after { transform: scaleX(1); }

/* Secondary — outline, sky-blue border throughout */
.btn--secondary {
  background: transparent;
  color: var(--color-accent-600);
  border: 1.5px solid var(--color-accent);
}
.btn--secondary:hover { background: var(--color-accent-100); border-color: var(--color-accent-600); color: var(--color-accent-600); }

/* Tertiary — text link with icon, for lower-emphasis actions (e.g. download) */
.btn--text {
  height: auto;
  padding: 0;
  color: var(--color-navy);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.btn--text:hover { border-color: var(--color-accent); }

.btn--sm { height: 40px; padding-inline: var(--space-3); font-size: var(--fs-micro); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* 7. BADGES & PILLS                                                      */
/* ---------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.pill--solid { background: var(--color-accent-100); border-color: transparent; color: var(--color-accent-600); }
.pill--teal { border-color: var(--color-teal); color: var(--color-teal); }

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* 8. CARDS                                                               */
/* ---------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateY(0) translateZ(0);
  transition: transform 0.35s var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  transform-style: preserve-3d;
  overflow: hidden;
}
/* JS (tilt.js) writes --rx/--ry as the pointer moves over the card, giving
   a real perspective tilt — the "3D" feel requested — without a 3D engine. */
.card:hover {
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-8px) translateZ(0);
  box-shadow: var(--shadow-card-hover);
}
/* Glossy light sweep that follows the cursor — reinforces the 3D read */
.card::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.5), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.card:hover::before { opacity: 1; }
@media (hover: none) {
  /* Touch devices: skip the tilt/gloss, keep the lift */
  .card:hover { transform: translateY(-6px); }
  .card::before { display: none; }
}

.card__media { border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; aspect-ratio: 4 / 5; position: relative; background: var(--color-navy-50); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s var(--ease-out-soft);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: var(--space-4); }
.card__eyebrow { margin-bottom: var(--space-1); }
.card__title { margin-bottom: var(--space-1); }
.card__text { color: var(--color-text-muted); font-size: var(--fs-small); }
.card__link { margin-top: var(--space-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-small); color: var(--color-navy); }
.card__link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Service / process icon card (no image, icon + text) */
.card--icon { padding: var(--space-5) var(--space-4); text-align: left; }
.card--icon .icon-tile {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-navy-50);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.card--icon .icon-tile svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------- */
/* 8b. PRODUCT GALLERY — subcategory filter chips + 2-col zoom grid       */
/* ---------------------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filter-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-charcoal);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--color-accent); color: var(--color-accent-600); }
.filter-chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-navy-50);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,28,44,0.82) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-within::after { opacity: 1; }
.gallery-item.is-hidden { display: none; }

/* Shown when an intentionally-empty subcategory is selected (admin fills it
   in later). Spans the whole grid so it centres under the chips. */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-navy-400, #64748b);
  font-size: 0.95rem;
  padding: var(--space-6) var(--space-4);
}

/* Hover reveal: product name + details slide up from the bottom */
.gallery-item__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-3) calc(var(--space-3) + 2px);
  color: #fff;
  text-align: left;
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out-soft),
              opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover .gallery-item__info,
.gallery-item:focus-within .gallery-item__info {
  transform: translateY(0);
  opacity: 1;
}
.gallery-item__name {
  font-family: var(--font-display, inherit);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.gallery-item__details {
  font-size: 0.72rem;
  line-height: 1.35;
  opacity: 0.9;
}
@media (hover: none) {
  /* Touch devices: keep the label visible (no hover state) */
  .gallery-item::after { opacity: 1; }
  .gallery-item__info { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
  .gallery-grid { gap: var(--space-4); }
}

/* ---------------------------------------------------------------------- */
/* 9. FORMS                                                               */
/* ---------------------------------------------------------------------- */
.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.field-hint { font-size: var(--fs-micro); color: var(--color-text-muted); margin-top: 4px; }

.input, .textarea, .select {
  width: 100%;
  height: 56px;
  padding-inline: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { height: auto; min-height: 140px; padding-block: var(--space-2); resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px var(--color-accent-100);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); opacity: 0.8; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); color: var(--color-text-muted); }
.checkbox-row input { margin-top: 3px; accent-color: var(--color-navy); }

/* ---------------------------------------------------------------------- */
/* 10. HERO — structure only (animation states live in animations.css)   */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: var(--nav-height);
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy);
}

.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* Gradient scrim: legible text without darkening the whole photo */
/* Text stays left for every slide (owner preference) — one fixed, strong
   scrim on that side, tuned deliberately darker than v1 so the subtitle
   stays legible over every photo in the rotation, not just the darker ones. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* top strip darkened so the transparent nav's white logo/links stay
       readable over any slide (nav overlays the hero — see .nav rules) */
    linear-gradient(180deg, rgba(11,28,44,0.45) 0%, rgba(11,28,44,0.12) 22%, rgba(11,28,44,0.6) 100%),
    linear-gradient(90deg, rgba(11,28,44,0.82) 0%, rgba(11,28,44,0.55) 32%, rgba(11,28,44,0.1) 58%);
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 3;
  width: 100%;
  padding-block: var(--space-8) var(--space-10);
}
.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}
.hero__text {
  max-width: 640px;
}

.hero__label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: var(--space-3);
}
.hero .hero__eyebrow { color: var(--color-cyan); font-size: var(--fs-small); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.hero .hero__title { color: var(--color-white); margin-bottom: var(--space-3); text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero .hero__subtitle {
  color: rgba(244,243,240,0.92);
  font-size: var(--fs-lead);
  max-width: 560px;
  margin-bottom: var(--space-5);
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.hero__controls {
  position: absolute; top: var(--space-4); right: var(--container-padding-x); z-index: 4;
}
.hero__pause {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(11,28,44,0.35);
  border: 1px solid rgba(244,243,240,0.3);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}
.hero__pause svg { width: 16px; height: 16px; }
.hero__pause .icon-play { display: none; }
.hero.is-paused .icon-pause { display: none; }
.hero.is-paused .icon-play { display: block; }

.hero__scroll-cue {
  position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-cue span.line { width: 1px; height: 28px; background: linear-gradient(180deg, currentColor, transparent); }

/* ---------------------------------------------------------------------- */
/* 10b. PAGE HERO — shared inner-page banner (About/Services/Compliance/  */
/*      Products/Blog/Contact). Smaller and calmer than the homepage      */
/*      hero — these pages don't need to re-establish first impression,   */
/*      just orient the visitor.                                         */
/* ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  margin-top: var(--nav-height);
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-navy);
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,28,44,0.55) 0%, rgba(11,28,44,0.35) 40%, rgba(11,28,44,0.85) 100%);
}
.page-hero__content { position: relative; z-index: 2; width: 100%; padding-block: var(--space-6); }
.page-hero .breadcrumb { color: var(--color-text-on-dark-muted); font-size: var(--fs-small); margin-bottom: var(--space-2); display: flex; gap: 8px; align-items: center; }
.page-hero .breadcrumb a { color: var(--color-text-on-dark-muted); }
.page-hero .breadcrumb a:hover { color: var(--color-cyan); }
.page-hero h1 { color: var(--color-white); max-width: 760px; }
.page-hero p.lead { color: var(--color-text-on-dark-muted); max-width: 640px; margin-top: var(--space-2); }

/* ---------------------------------------------------------------------- */
/* 11. TRUST BAR & STATS                                                  */
/* ---------------------------------------------------------------------- */
.trustbar {
  position: relative;
  background: var(--color-navy);
  overflow: hidden;
}
.trustbar__route-strip { position: absolute; inset: 0; opacity: 0.35; pointer-events: none; }

.trustbar__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.trustbar__item { display: flex; align-items: center; gap: 10px; color: var(--color-text-on-dark); font-size: var(--fs-small); font-weight: 500; }
.trustbar__item svg { width: 18px; height: 18px; color: var(--color-cyan); flex-shrink: 0; }

.trustbar__certs { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* Certification badges on dark backgrounds: most cert bodies (BSCI, SEDEX,
   OEKO-TEX, ACCORD, RSC) supply logos on an opaque white background and
   several trademark guidelines prohibit recoloring the mark — so instead
   of inverting/recoloring, each logo sits on its own small white "chip".
   Works identically regardless of whether the source file has alpha. */
.cert-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 8px;
  padding: 8px 12px;
  height: 44px;
}
.cert-chip img { height: 100%; width: auto; object-fit: contain; }

.trustbar__certs .cert-chip { height: 38px; padding: 6px 10px; }

/* Compliance ("Buyer Protection") section — these are the actual trust
   proof-points on the page, so they get real presence, not a thumbnail row */
#compliance .cert-chip { height: 84px; width: 100%; padding: 16px 20px; border-radius: var(--radius-md); }

.stats { position: relative; overflow: hidden; background: var(--color-navy); border-top: 1px solid rgba(244,243,240,0.08); }
.stats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); text-align: center; }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__value .suffix { color: var(--color-cyan); }
.stat__label { color: var(--color-text-on-dark-muted); font-size: var(--fs-small); }

/* ---------------------------------------------------------------------- */
/* 11b. GLOBAL REACH MAP — signature animated export-route visualization  */
/* ---------------------------------------------------------------------- */
.globalmap__stage { max-width: 1100px; margin-inline: auto; }
.globalmap__svg { width: 100%; height: auto; overflow: visible; }

.map-continent { fill: rgba(244,243,240,0.06); }

.map-route {
  fill: none;
  stroke: url(#route-gradient);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  opacity: 0.85;
  stroke-dashoffset: 1400;
  animation: route-draw 3s var(--ease-out-soft) forwards, route-drift 30s linear infinite;
}
.map-route-glow {
  fill: none;
  stroke: var(--color-cyan);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.08;
  filter: blur(2px);
}

.map-node-origin circle.pulse {
  fill: none;
  stroke: var(--color-cyan);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse-ring 2.6s ease-out infinite;
}
.map-node-origin circle.core { fill: var(--color-cyan); }

.map-node circle.dot {
  fill: var(--color-accent);
  animation: map-dot-pulse 2.4s var(--ease-out-soft) infinite;
}
.map-node text, .map-node-origin text {
  fill: var(--color-text-on-dark);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.map-node-origin text { fill: var(--color-white); font-size: 17px; font-weight: 700; }

@keyframes map-pulse-ring {
  0%   { r: 8;  opacity: 0.9; }
  100% { r: 34; opacity: 0; }
}
@keyframes map-dot-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

.globalmap__legend {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
}
.globalmap__legend li {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); color: var(--color-text-on-dark-muted);
}
.globalmap__legend .swatch {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0;
}
.globalmap__legend li.is-origin .swatch { background: var(--color-cyan); }

@media (prefers-reduced-motion: reduce) {
  .map-route { animation: none; stroke-dashoffset: 0; }
  .map-node-origin circle.pulse { animation: none; opacity: 0; }
  .map-node circle.dot { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* 12. TIMELINE — shared component for Process (Inquiry->Shipment) and    */
/*     Company History (2005->2026)                                      */
/* ---------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline__track {
  position: relative;
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--space-3);
  scrollbar-width: thin;
}
.timeline__track::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 26px;
  height: 1px;
  background: var(--color-border);
}
.timeline__step {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(280px, 78vw);
  position: relative;
  padding-top: var(--space-6);
}
.timeline__num {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-accent);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.timeline__step h4 { margin-bottom: 6px; }
.timeline__step p { color: var(--color-text-muted); font-size: var(--fs-small); }

/* ---------------------------------------------------------------------- */
/* 13. FAQ ACCORDION                                                      */
/* ---------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-lead);
  color: var(--color-navy);
}
.faq__icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--color-navy);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq__item[data-open="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq__item[data-open="true"] .faq__icon::before { background: var(--color-accent); }

.faq__answer { overflow: hidden; height: 0; }
.faq__answer p { padding-bottom: var(--space-3); color: var(--color-text-muted); max-width: 680px; }

/* ---------------------------------------------------------------------- */
/* 14. FOOTER                                                             */
/* ---------------------------------------------------------------------- */
.footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0B1C2C 0%, #08141F 100%);
  color: var(--color-text-on-dark);
  border-top: 1px solid rgba(47,217,200,0.18);
}
/* Thin glowing top seam — echoes the export-route lines, gives the
   navy->navy boundary with the section above a defined, premium edge */
.footer::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan) 20%, var(--color-accent) 50%, var(--color-cyan) 80%, transparent);
  opacity: 0.5;
  z-index: -1;
}
.footer__top, .footer__bottom { position: relative; z-index: 1; }
.footer__top { padding-block: var(--space-10); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
/* Colourful logo on the dark footer: sit it on a white pill so the real
   brand colours (incl. the navy wordmark) stay visible. */
.footer__logo { display: inline-flex; align-items: center; background: #fff; padding: 9px 16px; border-radius: 12px; margin-bottom: var(--space-3); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.footer__logo img { height: 40px; width: auto; display: block; }
.footer__desc { color: var(--color-text-on-dark-muted); font-size: var(--fs-small); max-width: 320px; margin-bottom: var(--space-3); }
.footer h5 { color: var(--color-white); font-family: var(--font-heading); font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: var(--color-text-on-dark-muted); font-size: var(--fs-small); transition: color var(--dur-fast); }
.footer__links a:hover { color: var(--color-cyan); }
.footer__contact li { color: var(--color-text-on-dark-muted); font-size: var(--fs-small); margin-bottom: 10px; display: flex; gap: 10px; }
.footer__contact svg { width: 16px; height: 16px; color: var(--color-cyan); flex-shrink: 0; margin-top: 3px; }

.footer__certs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.footer__certs .cert-chip { height: 32px; padding: 5px 8px; }

.footer__bottom {
  border-top: 1px solid rgba(244,243,240,0.1);
  padding-block: var(--space-3);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  font-size: var(--fs-micro);
  color: var(--color-text-on-dark-muted);
}
.footer__socials { display: flex; gap: var(--space-2); }
.footer__socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(244,243,240,0.2); display: flex; align-items: center; justify-content: center; transition: border-color var(--dur-fast), background var(--dur-fast); }
.footer__socials a:hover { border-color: var(--color-cyan); background: var(--color-cyan-100); }
.footer__socials svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------- */
/* 15. UTILITIES                                                          */
/* ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.divider { height: 1px; background: var(--color-border); border: none; }

/* backtotop is a flex child of .fab-stack (see below) — sizing/position
   come from the shared .fab class on the element itself. Only its own
   color + scroll-triggered show/hide stay here. */
.backtotop {
  background: var(--color-accent);
  color: var(--color-white);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast), visibility var(--dur-fast), background-color var(--dur-fast);
}
.backtotop:hover { background: var(--color-accent-600); }
.backtotop.is-visible { opacity: 1; visibility: visible; }
.backtotop svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------- */
/* Floating quick-contact stack — WhatsApp / AI Assistant / Email / Back-  */
/* to-top. One flex column so all 4 share identical size + gap.           */
/* ---------------------------------------------------------------------- */
.fab-stack {
  position: fixed; right: var(--space-3); bottom: var(--space-3);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.fab {
  position: relative;
  width: 64px; height: 64px; /* matches Botpress's own real button's natural size —
    sized to THEM instead of forcing their box to shrink, which was distorting it */
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11,28,44,0.28);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.fab:hover, .fab:focus-visible { transform: translateY(-3px) scale(1.06); }
.fab svg { width: 28px; height: 28px; position: relative; z-index: 1; }

.fab--whatsapp {
  background: #25D366;
  box-shadow: 0 10px 24px rgba(37,211,102,0.4);
}
.fab--whatsapp:hover { background: #21bd5c; }
/* Soft pulsing halo, same language as the loader's glow-blob drift */
.fab--whatsapp::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,0.35);
  animation: fab-pulse 2.4s var(--ease-out-soft) infinite;
  z-index: 0;
}

/* Invisible placeholder that reserves the middle slot in the stack — its
   only job is to give positionBotpressLauncher() (main.js) a live, already-
   responsive target rect to copy onto Botpress's real #fab-root element.
   See that function for why: not a real button, never shown, never clicked. */
.fab-stack__bot-slot {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.fab--email {
  background: var(--color-accent-600);
}
.fab--email:hover { background: var(--color-accent); }

@media (max-width: 640px) {
  .fab-stack { right: var(--space-2); gap: 12px; }
  /* Keep 64px on mobile too: Botpress's real launcher (pinned to the bot slot
     by positionBotpressLauncher) renders at a fixed 64px, so shrinking the
     other .fab icons made the bot look bigger than the rest. Same size = all
     four icons match. */
}
@media (prefers-reduced-motion: reduce) {
  .fab--whatsapp::before { animation: none; }
}

/* Botpress's real default launcher (id="fab-root") is repositioned on top
   of .fab-stack__bot-slot above, in JS — see positionBotpressLauncher() in
   main.js for why (two earlier CSS-only attempts to hide/replace it broke
   the chat button; this way we never touch its visibility, only where the
   browser paints it, so its own open/close logic is never at risk). No CSS
   needed here — deliberately left as a marker for anyone editing this file. */

/* ---------------------------------------------------------------------- */
/* Inquiry popup — shows once per session (see popup.js), same             */
/* data-form="inquiry" pipeline as the contact page, so leads land in the  */
/* same admin Inquiries list / CEO dashboard automatically.                */
/* ---------------------------------------------------------------------- */
.popup-inquiry {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.popup-inquiry.is-open { opacity: 1; visibility: visible; }
.popup-inquiry__backdrop {
  position: absolute; inset: 0;
  background: rgba(11,28,44,0.6);
  backdrop-filter: blur(4px);
}
.popup-inquiry__card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--color-white);
  border-radius: 20px;
  padding: var(--space-5) var(--space-4) var(--space-4);
  box-shadow: 0 30px 80px rgba(11,28,44,0.4);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-base) var(--ease-out);
}
.popup-inquiry.is-open .popup-inquiry__card { transform: translateY(0) scale(1); }
.popup-inquiry__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: var(--color-bg-alt, #F1F5F9);
  color: var(--color-charcoal, #1F2933);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.popup-inquiry__close:hover { background: var(--color-border); }
.popup-inquiry__eyebrow {
  color: var(--color-accent); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-1);
}
.popup-inquiry__card h3 { font-size: var(--fs-h4, 1.4rem); margin-bottom: var(--space-1); color: var(--color-navy); }
.popup-inquiry__sub { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: var(--space-3); }
.popup-inquiry__card form { display: flex; flex-direction: column; gap: var(--space-2); }
.popup-inquiry__card .btn { margin-top: var(--space-1); }

/* Thank-you panel shown after a successful inquiry (contact page + popup) */
.form-thankyou {
  text-align: center;
  padding: var(--space-4) var(--space-2);
  animation: fade-up var(--dur-base) var(--ease-out) both;
}
.form-thankyou__check {
  width: 60px; height: 60px; margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(46,143,224,0.35);
}
.form-thankyou h3 { color: var(--color-navy); margin-bottom: var(--space-1); }
.form-thankyou p { color: var(--color-text-muted); font-size: var(--fs-small); max-width: 320px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .popup-inquiry, .popup-inquiry__card { transition: none; }
}


/* --- v2 fix: mobile off-canvas menu readability -------------------------
   The transparent-nav rules paint nav links white for the hero overlay.
   When the mobile menu panel is open its background is light, so those
   white links became invisible. Higher specificity than
   `.nav:not(.is-scrolled) .nav__link`, so it wins in both nav states.
   (menu-open link colour) */
.nav .nav__menu.is-open .nav__link,
.nav:not(.is-scrolled) .nav__menu.is-open .nav__link {
  color: var(--color-charcoal);
}
.nav .nav__menu.is-open .nav__admin-link,
.nav:not(.is-scrolled) .nav__menu.is-open .nav__admin-link {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
