/* ==========================================================================
   MERIDIAN — Brake Manufacturing Website
   Design System & Global Styles
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette — deep industrial with precision accents */
  --c-ink:        #0b0d10;   /* near-black primary text */
  --c-ink-soft:   #2a2f37;   /* secondary text */
  --c-mute:       #6b7280;   /* muted captions */
  --c-line:       #e5e7eb;   /* hairlines */
  --c-line-strong:#d1d5db;
  --c-bg:         #ffffff;   /* page background */
  --c-bg-alt:     #f6f7f9;   /* alternating sections */
  --c-bg-dark:    #0b0d10;   /* dark sections */
  --c-bg-dark-2:  #111418;

  /* Accent — signal red (brake caliper / safety) */
  --c-accent:     #d61f26;
  --c-accent-dk:  #b3141a;
  --c-accent-soft:#fde8e9;

  /* Secondary accent — steel */
  --c-steel:      #475569;

  /* Typography */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-display: "Archivo", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11,13,16,0.06), 0 1px 3px rgba(11,13,16,0.04);
  --shadow-md: 0 4px 12px rgba(11,13,16,0.08), 0 2px 4px rgba(11,13,16,0.04);
  --shadow-lg: 0 20px 40px -12px rgba(11,13,16,0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1vw + 0.6rem, 17px);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--c-ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--c-ink-soft); line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--c-accent);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: #e9eaec; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b9bdc4; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { padding-inline: 0; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dk); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-bg-alt); transform: translateY(-1px); }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn--outline-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--c-line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo--footer { height: 38px; }
.brand-logo--hero { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  padding: 0.55rem 0.9rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-ink); }
.nav-links a.active { color: var(--c-accent); }
.nav-cta { display: flex; align-items: center; gap: 0.85rem; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--c-ink); position: relative; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; top: 7px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg) translate(5px, 5px); }
body.nav-open .nav-toggle span::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 140px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(1200px 600px at 80% -10%, #1a1f27 0%, transparent 60%),
  linear-gradient(180deg, #0b0d10 0%, #161a20 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 6vw, 5rem); }
.hero .eyebrow { color: var(--c-accent); }
.hero .eyebrow::before { background: var(--c-accent); }
.hero h1 { color: #fff; margin-block: 1.2rem 1.5rem; }
.hero h1 .accent { color: var(--c-accent); }
.hero .lead { color: #b9bdc4; max-width: 540px; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat .n { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stat .l { font-size: 0.8rem; color: #8b9099; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.25rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 40%, #232830 0%, #0d1014 75%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-visual img, .hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(11,13,16,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #28ca5a; box-shadow: 0 0 0 4px rgba(40,202,90,0.2); flex-shrink: 0; }
.hero-badge strong { color: #fff; }
.hero-badge span { color: #9aa0a8; }

/* ---------- Marquee logos / strip ---------- */
.strip { background: var(--c-ink); color: #9aa0a8; padding-block: 1.1rem; border-block: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.marquee { display: flex; gap: 3rem; align-items: center; white-space: nowrap; animation: scrollX 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; }
.marquee .sep { color: var(--c-accent); opacity: 0.9; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-line-strong); }
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-accent);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }

/* ---------- Product cards ---------- */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-ink); }
.product-card .pc-media { aspect-ratio: 16/10; background: var(--c-bg-alt); position: relative; overflow: hidden; border-bottom: 1px solid var(--c-line); }
.product-card .pc-media svg, .product-card .pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-card .pc-media img { object-fit: cover; object-position: center; }
.product-card .pc-body { padding: clamp(1.25rem, 2vw, 1.75rem); flex: 1; display: flex; flex-direction: column; }
.product-card .pc-tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 0.6rem; }
.product-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.product-card p { font-size: 0.92rem; margin-bottom: 1.25rem; flex: 1; }
.product-card .pc-link { font-size: 0.88rem; font-weight: 600; color: var(--c-ink); display: inline-flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.product-card:hover .pc-link { gap: 0.7rem; color: var(--c-accent); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  aspect-ratio: 5/4;
  position: relative;
  overflow: hidden;
}
.split-media svg, .split-media img { width: 100%; height: 100%; }
.split-media img { object-fit: cover; object-position: center; }
.split-body .eyebrow { margin-bottom: 1rem; }
.split-body h2 { margin-bottom: 1.1rem; }
.split-body p { margin-bottom: 1.1rem; }
.split-body ul.checks { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.split-body ul.checks li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--c-ink-soft); font-size: 0.97rem; }
.split-body ul.checks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px;
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2 9 19l11-11-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { padding: 1.5rem; border-left: 2px solid var(--c-accent); }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: #fff; letter-spacing: -0.03em; line-height: 1; }
.stat .l { margin-top: 0.6rem; font-size: 0.85rem; color: #8b9099; }

/* ---------- Steps / Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.5rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}
.step::after {
  content: ""; position: absolute; top: 0.5rem; left: 3rem; right: 0; height: 1px;
  background: var(--c-line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.step p { font-size: 0.92rem; }

/* ---------- Certifications grid ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cert {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.cert:hover { transform: translateY(-3px); border-color: var(--c-accent); box-shadow: var(--shadow-md); }
.cert-seal { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--c-bg-alt); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; color: var(--c-accent); overflow: hidden; }
.cert-seal svg { width: 30px; height: 30px; }
.cert-seal img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cert-photo { width: 100%; height: auto; max-height: 160px; margin: 0 auto 1rem; border-radius: var(--radius); border: 1px solid var(--c-line); overflow: hidden; background: var(--c-bg-alt); }
.cert-photo img { width: 100%; height: 160px; object-fit: contain; object-position: center; background: #fff; padding: 0.5rem; }

/* ---------- Map embed ---------- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-bg-alt); aspect-ratio: 5/4; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.cert-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--c-ink); margin-bottom: 0.35rem; }
.cert-desc { font-size: 0.82rem; color: var(--c-mute); }

/* ---------- Markets map ---------- */
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-bg-dark); border: 1px solid rgba(255,255,255,0.06); }
.map-wrap svg { width: 100%; height: auto; display: block; }
.region-list { display: grid; gap: 1rem; }
.region { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); transition: border-color 0.3s; }
.region:hover { border-color: var(--c-accent); }
.region-tag { font-family: var(--font-display); font-weight: 700; color: var(--c-accent); font-size: 0.85rem; letter-spacing: 0.08em; min-width: 80px; }
.region h4 { color: #fff; font-size: 1rem; margin-bottom: 0.25rem; }
.region p { color: #9aa0a8; font-size: 0.86rem; }

/* ---------- Specs table ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--c-line); }
.spec-table th { background: var(--c-bg-alt); font-weight: 600; color: var(--c-ink); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.spec-table td:first-child { font-weight: 600; color: var(--c-ink); }
.spec-table tbody tr:hover { background: var(--c-bg-alt); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band p { color: #b9bdc4; max-width: 600px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--c-bg-dark); color: #9aa0a8; padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-about p { font-size: 0.9rem; line-height: 1.6; color: #8b9099; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; color: #9aa0a8; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 1.75rem; font-size: 0.85rem; }
.footer-bottom .meta { display: flex; gap: 1.5rem; align-items: center; }
.footer-bottom a:hover { color: #fff; }
.social { display: flex; gap: 0.6rem; }
.social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); transition: all 0.2s; }
.social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.social svg { width: 15px; height: 15px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: 140px; background: var(--c-bg-dark); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-hero h1 { color: #fff; margin-top: 1rem; max-width: 14ch; }
.page-hero .lead { color: #b9bdc4; max-width: 620px; margin-top: 1.25rem; }
.breadcrumbs { font-size: 0.82rem; color: #8b9099; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: 0.4; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Misc utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.muted { color: var(--c-mute); }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; background: var(--c-bg-alt); border: 1px solid var(--c-line);
  border-radius: 100px; font-size: 0.8rem; font-weight: 500; color: var(--c-ink-soft);
}
hr.rule { border: none; border-top: 1px solid var(--c-line); margin-block: 3rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--c-ink); letter-spacing: 0.02em; }
.field label .req { color: var(--c-accent); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.85rem 1rem; border: 1px solid var(--c-line-strong);
  border-radius: var(--radius); background: #fff; color: var(--c-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(11,13,16,0.06);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--c-mute); }
.form-success {
  display: none; padding: 1rem 1.25rem; background: #e8f7ee; border: 1px solid #b7e2c9;
  border-radius: var(--radius); color: #137a3e; font-size: 0.92rem; align-items: center; gap: 0.6rem;
}
.form-success.show { display: flex; }

/* ---------- Contact info cards ---------- */
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); transition: all 0.3s; }
.info-card:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.info-card-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--c-accent-soft); color: var(--c-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-card-icon svg { width: 22px; height: 22px; }
.info-card h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.info-card p, .info-card a { font-size: 0.9rem; color: var(--c-ink-soft); }
.info-card a:hover { color: var(--c-accent); }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.tl-item { position: relative; padding-bottom: 2.25rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c-accent); }
.tl-year { font-family: var(--font-display); font-weight: 700; color: var(--c-accent); font-size: 0.95rem; }
.tl-item h4 { font-size: 1.1rem; margin: 0.2rem 0 0.4rem; }
.tl-item p { font-size: 0.92rem; }

/* ---------- Values ---------- */
.value { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid var(--c-line); }
.value:last-child { border-bottom: none; }
.value-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--c-accent); min-width: 40px; line-height: 1.2; }
.value h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.value p { font-size: 0.95rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/12; max-width: 480px; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 1.5rem var(--gutter) 3rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    border-top: 1px solid var(--c-line);
    z-index: 99;
  }
  body.nav-open .nav-links { display: flex; transform: translateX(0); }
  .nav-links a { padding: 1rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid var(--c-line); }
  /* When nav open, keep the toggle (X) visible in the header; relocate the CTA button into the drawer */
  body.nav-open .nav-cta .btn { display: inline-flex; position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1.5rem; z-index: 101; width: calc(100% - 2 * var(--gutter)); }
  /* Ensure the X toggle stays clickable on top of the open drawer */
  body.nav-open .nav-toggle { display: flex; position: relative; z-index: 101; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
  .hero-stat { display: flex; align-items: baseline; gap: 0.75rem; }
  .hero-stat .l { margin-top: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
