/* ==========================================================================
   Waylink Life Science (P) Ltd — Design Tokens & Base
   ========================================================================== */

:root {
  /* Brand color system — derived from the WLSPL company presentation
     (deep purple → blue → green "proof bar" gradient device). */
  --purple-950: #1B1033;
  --purple-800: #2E1A57;
  --purple-700: #3E2170;
  --purple-600: #522C8C;
  --purple-500: #6B3FA8;
  --purple-100: #EFE8F9;

  --blue-700: #10559C;
  --blue-600: #1670C2;
  --blue-500: #2085E0;
  --blue-100: #E4F0FD;

  --green-600: #1F8F57;
  --green-500: #2FA968;
  --green-100: #E4F7ED;

  --ink-900: #15111F;
  --ink-700: #3D3750;
  --ink-500: #665F79;
  --ink-300: #9992AC;

  --surface: #FFFFFF;
  --surface-soft: #F8F6FC;
  --surface-tint: #F1ECFA;
  --line: #E4DEF0;
  --line-strong: #CFC6E6;

  --proof-gradient: linear-gradient(90deg, var(--purple-500) 0%, var(--blue-500) 55%, var(--green-500) 100%);
  --hero-gradient: radial-gradient(120% 140% at 82% 8%, #3E5FB0 0%, rgba(62,95,176,0) 45%), linear-gradient(160deg, var(--purple-950) 0%, var(--purple-700) 48%, var(--purple-600) 78%, var(--blue-700) 100%);
  --panel-gradient-purple: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  --panel-gradient-blue: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  --panel-gradient-green: linear-gradient(135deg, #1D7A50, var(--green-500));

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(21, 17, 31, 0.06), 0 1px 1px rgba(21, 17, 31, 0.04);
  --shadow-md: 0 8px 24px rgba(27, 16, 51, 0.09), 0 2px 6px rgba(27, 16, 51, 0.06);
  --shadow-lg: 0 20px 48px rgba(27, 16, 51, 0.16), 0 6px 16px rgba(27, 16, 51, 0.08);

  --container: 1200px;
  --duration-fast: 160ms;
  --duration-base: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---- Base --------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--surface);
  min-height: 100dvh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 1.55rem + 2.6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem); }
h4 { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); }

p.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-500); line-height: 1.6; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-7); } }

.section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-7); }
@media (min-width: 1024px) {
  .section { padding-block: var(--space-10); }
  .section-tight { padding-block: var(--space-8); }
}
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--hero-gradient); color: #EFEAFB; position: relative; overflow: hidden; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #FFFFFF; }

.skip-link {
  position: absolute; left: 0; top: -48px; z-index: 200;
  background: var(--purple-700); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; transition: top var(--duration-base) var(--ease-out);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---- Eyebrow / mono labels ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-500);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.section-dark .eyebrow { color: #C9B9F5; }
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--proof-gradient);
  display: inline-block;
  border-radius: 2px;
}

.proof-bar { width: 88px; height: 4px; border-radius: var(--radius-pill); background: var(--proof-gradient); margin-block: var(--space-4) var(--space-5); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #fff; color: var(--purple-700); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-solid { background: var(--purple-700); color: #fff; }
.btn-solid:hover { background: var(--purple-600); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark { border-color: var(--line-strong); color: var(--ink-900); }
.btn-outline-dark:hover { border-color: var(--purple-500); background: var(--purple-100); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: 0.65rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; }
@media (max-width: 480px) { .nav-logo img { height: 40px; } }
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-700);
}
.nav-links a { padding-block: 0.4rem; position: relative; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--proof-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
  border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--purple-700); }
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5); gap: var(--space-1); }
.mobile-menu a { display: block; padding: 0.85rem 0.25rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu .btn { width: 100%; margin-top: var(--space-3); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: var(--space-9) var(--space-8);
  position: relative;
}
.hero-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 1024px) {
  .hero { padding-block: var(--space-10) var(--space-9); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}
.hero h1 { margin-block: var(--space-4) var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-lede { max-width: 46ch; color: #D9D0F0; font-size: clamp(1.02rem, 1rem + 0.2vw, 1.15rem); }

.watermark {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
}

/* ---- Stat strip ----------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-7);
}
@media (min-width: 640px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: #fff; padding: var(--space-5) var(--space-4); }
.stat-cell .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem); color: var(--purple-700); display:block; }
.stat-cell .label { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.2rem; display: block; }
.stat-strip--dark { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.18); }
.stat-strip--dark .stat-cell { background: rgba(20,12,40,0.35); }
.stat-strip--dark .stat-cell .num { color: #fff; }
.stat-strip--dark .stat-cell .label { color: #CBC0E8; }

/* ---- Cards & grids --------------------------------------------------------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.section-head { max-width: 62ch; margin-bottom: var(--space-7); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---- Industries / icon tiles ---------------------------------------------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-100); color: var(--purple-700);
  flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---- Value / advantage cards ------------------------------------------------ */
.value-card { display: flex; flex-direction: column; gap: var(--space-3); }
.value-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--green-600); font-weight: 700; }

/* ---- Product cards ---------------------------------------------------------- */
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-top {
  padding: var(--space-5);
  color: #fff;
  position: relative;
  min-height: 132px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.product-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.product-card-body .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }

.accent-purple { background: var(--panel-gradient-purple); }
.accent-blue { background: var(--panel-gradient-blue); }
.accent-green { background: var(--panel-gradient-green); }
.accent-teal { background: linear-gradient(135deg, #12716F, #1E9C8E); }
.accent-indigo { background: linear-gradient(135deg, #362A78, #5A3FAE); }

/* ---- Badges / pills ---------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  color: var(--ink-700);
  background: var(--surface-soft);
}
.pill-purple { background: var(--purple-100); color: var(--purple-700); border-color: #DCCBF2; }
.pill-blue { background: var(--blue-100); color: var(--blue-700); border-color: #C7E1FB; }
.pill-green { background: var(--green-100); color: var(--green-600); border-color: #C3EDD5; }
.pill-light { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.32); }

/* ---- Spec table -------------------------------------------------------------- */
.spec-table { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-soft); }
.spec-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
@media (min-width: 560px) { .spec-row { grid-template-columns: 1fr 1fr; } }
.spec-cell { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .spec-cell:nth-child(odd) { border-right: 1px solid var(--line); } }
.spec-row:last-child .spec-cell { border-bottom: none; }
.spec-label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 0.25rem; }
.spec-value { font-family: var(--font-mono); font-weight: 700; color: var(--ink-900); font-size: 0.95rem; }

/* ---- Comparison table --------------------------------------------------------- */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.compare-table { min-width: 720px; }
.compare-table th, .compare-table td { text-align: left; padding: 0.9rem 1.1rem; font-size: 0.92rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--purple-700); }
.compare-table thead th:last-child { background: var(--green-600); }
.compare-table tbody tr:nth-child(odd) { background: var(--surface-soft); }
.compare-table tbody td:first-child { font-weight: 600; color: var(--ink-900); }
.compare-table tbody td:last-child { color: var(--green-600); font-weight: 500; }

/* ---- Process / timeline -------------------------------------------------------- */
.process-flow { display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 900px) { .process-flow { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.process-step { position: relative; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; counter-increment: step; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: #fff; background: var(--proof-gradient);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
@media (min-width: 900px) {
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 34px; left: 100%; width: var(--space-4); height: 2px;
    background: var(--line-strong); transform: translateX(-2px);
  }
}

/* ---- Lab capability grid ---------------------------------------------------------- */
.lab-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.lab-card .icon-tile { background: var(--blue-100); color: var(--blue-700); }

/* ---- Cert badges ---------------------------------------------------------------- */
.cert-badge { text-align: center; padding: var(--space-6) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.cert-badge .mark { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--purple-700); }
.cert-badge .sub { font-size: 0.82rem; color: var(--ink-500); margin-top: 0.3rem; }

/* ---- World reach map ---------------------------------------------------------------- */
.world-map-wrap { position: relative; }
.world-map-wrap svg { width: 100%; height: auto; }
.map-dot { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) { .map-dot { animation: none; } }

/* ---- Reveal-on-scroll ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- CTA band ------------------------------------------------------------------------- */
.cta-band { border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); text-align: center; position: relative; overflow: hidden; }
.cta-band .proof-bar { margin-inline: auto; }

/* ---- Footer --------------------------------------------------------------------------- */
.site-footer { background: var(--purple-950); color: #C9BEE6; position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: var(--space-7); padding-block: var(--space-9) var(--space-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-4); }
.site-footer .logo img { height: 32px; filter: brightness(0) invert(1); }
.site-footer a:hover { color: #fff; }
.footer-office { margin-bottom: var(--space-5); }
.footer-office .kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8F80BE; margin-bottom: 0.35rem; display:block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); font-size: 0.82rem; }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); font-size: 0.92rem; }

/* ---- Forms ---------------------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink-900); }
.field .req { color: var(--purple-500); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 1rem;
  background: #fff;
  min-height: 48px;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--purple-500); box-shadow: 0 0 0 4px var(--purple-100); outline: none;
}
.field .hint { font-size: 0.8rem; color: var(--ink-500); }
.form-note { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); font-size: 0.9rem; color: var(--ink-500); }

/* ---- Utility --------------------------------------------------------------------------- */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.text-center { text-align: center; }
.text-muted { color: var(--ink-500); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: none; margin-block: var(--space-7); }

/* ==========================================================================
   Mega menu (expanded ~40-page IA)
   ========================================================================== */
.nav-item { position: relative; }
.nav-item > button.nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; padding: 0.4rem 0; font: inherit; font-weight: 600;
  font-size: 0.94rem; color: var(--ink-700); cursor: pointer;
}
.nav-item > button.nav-drop-trigger svg { width: 14px; height: 14px; transition: transform var(--duration-base) var(--ease-out); }
.nav-item.is-open > button.nav-drop-trigger svg { transform: rotate(180deg); }
.nav-item.is-open > button.nav-drop-trigger { color: var(--purple-700); }
.mega-panel {
  display: none;
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--space-5); min-width: 320px; z-index: 110;
}
.nav-item.is-open .mega-panel { display: block; }
.mega-panel.mega-wide { min-width: 620px; }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.mega-wide .mega-grid { grid-template-columns: 1fr 1fr; }
.mega-col-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-300); margin-bottom: 0.6rem; display: block; }
.mega-panel a.mega-link { display: block; padding: 0.45rem 0.5rem; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink-700); }
.mega-panel a.mega-link:hover { background: var(--surface-soft); color: var(--purple-700); }
.mega-panel a.mega-link .desc { display: block; font-size: 0.78rem; color: var(--ink-500); font-weight: 400; margin-top: 0.1rem; }
.mega-panel .mega-hub-link { display: block; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 0.88rem; font-weight: 700; color: var(--purple-700); }

/* Mobile mega menu (accordion inside slide-down) */
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu details summary { padding: 0.85rem 0.25rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu details summary::-webkit-details-marker { display: none; }
.mobile-menu details[open] summary { color: var(--purple-700); }
.mobile-menu details .sub-links { padding: 0 0.25rem 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mobile-menu details .sub-links a { display: block; padding: 0; border: none; font-weight: 500; font-size: 0.94rem; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--ink-500); padding-block: var(--space-4); }
.breadcrumbs a { color: var(--ink-500); font-weight: 500; }
.breadcrumbs a:hover { color: var(--purple-700); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .current { color: var(--ink-900); font-weight: 600; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faq-item summary {
  padding: 1.1rem 1.3rem; font-weight: 600; color: var(--ink-900); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; transition: transform var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out); }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); background: var(--purple-100); color: var(--purple-700); }
.faq-item .faq-a { padding: 0 1.3rem 1.1rem; color: var(--ink-500); line-height: 1.65; }

/* ==========================================================================
   Certification cards / documents grid
   ========================================================================== */
.doc-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
.doc-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.doc-card .doc-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--purple-100); color: var(--purple-700); display: flex; align-items: center; justify-content: center; }
.doc-card .doc-meta { flex: 1; min-width: 0; }
.doc-card .doc-meta .name { font-weight: 600; color: var(--ink-900); display: block; }
.doc-card .doc-meta .sub { font-size: 0.82rem; color: var(--ink-500); }
.doc-card .doc-action { flex-shrink: 0; font-size: 0.85rem; font-weight: 700; color: var(--purple-700); white-space: nowrap; }
.doc-card.doc-pending { opacity: 0.6; }
.doc-card.doc-pending .doc-action { color: var(--ink-300); }

/* ==========================================================================
   Photo frames (real facility / product photography)
   ========================================================================== */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--surface-tint); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4) var(--space-5) var(--space-3);
  background: linear-gradient(0deg, rgba(19,10,40,0.82), rgba(19,10,40,0));
  color: #fff; font-size: 0.85rem; font-weight: 600;
}
.photo-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid .photo-frame { aspect-ratio: 4 / 3; }

/* ==========================================================================
   Copy protection (deterrent only — see main.js for the companion handlers)
   ========================================================================== */
body.no-copy {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
body.no-copy input, body.no-copy textarea {
  -webkit-user-select: text; user-select: text;
}

/* ==========================================================================
   Intro / logo splash animation
   ========================================================================== */
.intro-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--hero-gradient);
  display: flex; align-items: center; justify-content: center;
  padding: 8vw;
  animation: introFadeOut 0.9s ease 2.8s forwards;
}
.intro-splash .intro-mark {
  width: min(520px, 72vw); height: auto;
  animation: introZoom 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-splash.is-hidden { display: none; }
@keyframes introZoom {
  0% { transform: scale(1.28); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes introFadeOut {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-splash { display: none; }
}
.no-js .intro-splash { display: none; }

/* ---- Product-name emphasis (themed per page) ------------------------------ */
.prod-name { font-weight: 650; color: var(--prod-accent, var(--purple-600)); }
.section-dark .prod-name, .product-card-top .prod-name, .cta-band .prod-name { color: #fff; }
