/* =============================================================
   VERDE WIRE — UI Design System
   UI Designer • Multilingual cable-manufacturing site
   Brand: Red (matches logo) · OKLCH tokens + tinted neutrals.
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — RED scale (matches logo #D9363C) */
  --red-50:   oklch(97% 0.015 25);
  --red-100:  oklch(93% 0.04 25);
  --red-200:  oklch(85% 0.085 25);
  --red-300:  oklch(76% 0.13 25);
  --red-400:  oklch(65% 0.17 25);
  --red-500:  oklch(56% 0.20 25);    /* Core brand — matches logo */
  --red-600:  oklch(48% 0.18 25);
  --red-700:  oklch(40% 0.15 25);     /* Darker for gradients/CTAs */
  --red-800:  oklch(33% 0.12 25);
  --red-900:  oklch(26% 0.09 25);

  /* Tinted neutral — warm slate (complements red, never pure gray) */
  --ink-900: oklch(21% 0.015 250);
  --ink-800: oklch(27% 0.014 250);
  --ink-700: oklch(34% 0.013 250);
  --ink-600: oklch(43% 0.011 250);
  --ink-500: oklch(52% 0.009 250);
  --ink-400: oklch(62% 0.007 250);
  --ink-300: oklch(72% 0.006 250);

  --paper:      oklch(98.5% 0.004 250);
  --surface:    oklch(100% 0 0);
  --surface-2:  oklch(97% 0.006 250);
  --surface-3:  oklch(93.5% 0.01 250);
  --line:       oklch(90% 0.01 250);
  --line-strong:oklch(82% 0.013 250);

  /* Semantic */
  --success: oklch(62% 0.14 150);
  --warning: oklch(72% 0.14 75);
  --danger:  oklch(58% 0.22 25);
  --info:    oklch(60% 0.12 230);

  /* Brand semantic aliases */
  --brand:        var(--red-600);
  --brand-strong: var(--red-700);
  --brand-soft:   var(--red-50);
  --on-brand:     oklch(99% 0 0);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  --fs-2xl:  clamp(2.1rem, 1.4rem + 3vw, 3.2rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);

  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-base: 1.6;

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

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows (depth via elevation) */
  --shadow-1: 0 1px 2px oklch(21% 0.015 250 / 0.06), 0 2px 8px oklch(21% 0.015 250 / 0.05);
  --shadow-2: 0 6px 18px oklch(21% 0.015 250 / 0.08), 0 2px 6px oklch(21% 0.015 250 / 0.05);
  --shadow-3: 0 20px 45px oklch(21% 0.015 250 / 0.12), 0 8px 18px oklch(21% 0.015 250 / 0.07);
  --ring: 0 0 0 3px oklch(56% 0.20 25 / 0.30);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
  --maxw: 1200px;
}

/* ---------- Dark Theme ---------- */
:root[data-theme="dark"] {
  --paper:      oklch(14% 0.008 250);
  --surface:    oklch(18% 0.01 250);
  --surface-2:  oklch(22% 0.012 250);
  --surface-3:  oklch(27% 0.014 250);
  --line:       oklch(32% 0.014 250);
  --line-strong:oklch(42% 0.016 250);

  --ink-900: oklch(96% 0.008 250);
  --ink-800: oklch(90% 0.01 250);
  --ink-700: oklch(82% 0.012 250);
  --ink-600: oklch(72% 0.012 250);
  --ink-500: oklch(64% 0.01 250);
  --ink-400: oklch(56% 0.009 250);

  --brand:        var(--red-400);
  --brand-strong: var(--red-300);
  --brand-soft:   oklch(24% 0.05 25);
  --on-brand:     oklch(16% 0.02 250);

  --shadow-1: 0 1px 2px oklch(0% 0 0 / 0.4);
  --shadow-2: 0 8px 22px oklch(0% 0 0 / 0.45);
  --shadow-3: 0 24px 50px oklch(0% 0 0 / 0.55);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[data-theme="dark"] body { color: var(--ink-700); font-weight: 350; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.02em; }
a { color: var(--brand-strong); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-strong); font-weight: 500;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-title { font-size: var(--fs-xl); margin-top: var(--s-3); max-width: 18ch; }
.section-lead { margin-top: var(--s-4); color: var(--ink-500); max-width: 56ch; font-size: var(--fs-md); }
.center { text-align: center; }
.center .section-title, .center .section-lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 0.85rem 1.5rem; border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  transition: transform var(--ease) 0.3s, background var(--ease) 0.3s, box-shadow var(--ease) 0.3s, border-color var(--ease) 0.3s;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand-strong); color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--red-800); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-2px); }
.btn--soft { background: var(--brand-soft); color: var(--brand-strong); }
.btn--soft:hover { background: var(--red-100); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-base); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: oklch(99% 0 0 / 0.72);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--ease) 0.3s, background var(--ease) 0.3s;
}
:root[data-theme="dark"] .header { background: oklch(14% 0.008 250 / 0.78); }
.header.scrolled { box-shadow: var(--shadow-1); }
.header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink-900); letter-spacing: -0.03em; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
}
.brand__mark img { width: 100%; height: auto; object-fit: contain; }
.brand b { color: var(--brand-strong); }

.nav { display: flex; align-items: center; gap: var(--s-2); margin-inline: auto; }
.nav a {
  color: var(--ink-600); font-weight: 500; font-size: var(--fs-sm);
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill); position: relative;
  transition: color var(--ease) 0.2s, background var(--ease) 0.2s;
}
.nav a:hover { color: var(--ink-900); background: var(--surface-2); }
.nav a.active { color: var(--brand-strong); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-700); display: grid; place-items: center;
  transition: border-color var(--ease) 0.2s, color var(--ease) 0.2s, transform var(--ease) 0.2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 44px;
  padding-inline: 0.85rem; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-700); font-weight: 500; font-size: var(--fs-sm);
  transition: border-color var(--ease) 0.2s, color var(--ease) 0.2s;
}
.lang__btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.lang__btn svg { width: 18px; height: 18px; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); padding: var(--s-2); opacity: 0; transform: translateY(-8px) scale(0.98);
  pointer-events: none; transition: opacity var(--ease) 0.22s, transform var(--ease) 0.22s; z-index: 60;
}
.lang.open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  width: 100%; padding: 0.7rem 0.8rem; border: none; background: none; border-radius: var(--r-sm);
  color: var(--ink-700); font-size: var(--fs-sm); text-align: start;
}
.lang__item:hover { background: var(--surface-2); }
.lang__item[aria-current="true"] { color: var(--brand-strong); font-weight: 600; }
.lang__item small { color: var(--ink-400); font-family: var(--font-mono); font-size: var(--fs-xs); }
.lang__item[aria-current="true"] small { color: var(--brand); }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, var(--red-100) 0%, transparent 60%),
    radial-gradient(50% 60% at 8% 90%, var(--red-50) 0%, transparent 55%);
}
:root[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(55% 50% at 80% 10%, oklch(28% 0.06 25 / 0.45) 0%, transparent 60%),
    radial-gradient(50% 60% at 5% 95%, oklch(24% 0.05 25 / 0.35) 0%, transparent 55%);
}
.hero__grid {
  position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-700); box-shadow: var(--shadow-1);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px oklch(62% 0.14 150 / 0.18); }
.hero h1 { font-size: var(--fs-hero); margin-top: var(--s-5); }
.hero h1 .accent { color: var(--brand-strong); }
.hero__sub { margin-top: var(--s-5); font-size: var(--fs-md); color: var(--ink-500); max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__meta { display: flex; gap: var(--s-6); margin-top: var(--s-7); flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-900); line-height: 1; }
.hero__meta span { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 0.35rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Network visual */
.hero__visual { position: relative; aspect-ratio: 1 / 1; }
.hero__visual svg { width: 100%; height: 100%; overflow: visible; }
.node { fill: var(--surface); stroke: var(--red-400); stroke-width: 2; }
.node--core { fill: var(--red-600); stroke: var(--red-500); }
.link { stroke: var(--line-strong); stroke-width: 1.5; }
.pulse { fill: var(--red-500); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .signal { animation: dash 3.4s var(--ease) infinite; }
  .node--core { animation: breathe 3s ease-in-out infinite; }
  @keyframes dash { to { stroke-dashoffset: -28; } }
  @keyframes breathe { 50% { r: 13; } }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-1);
}
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink-900); line-height: 1; }
.stat b em { font-style: normal; color: var(--brand-strong); }
.stat span { display: block; margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Product cards ---------- */
.cards { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--s-7); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  transition: transform var(--ease) 0.35s, box-shadow var(--ease) 0.35s, border-color var(--ease) 0.35s;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--red-300)); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease) 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--red-200); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: var(--s-5);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.card p { color: var(--ink-500); font-size: var(--fs-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.chip {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-600);
  padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}

/* ---------- Product Cards (with images) ---------- */
.cards--products { grid-template-columns: repeat(2, 1fr); }
.card--product {
  display: flex; flex-direction: column; overflow: hidden;
}
.card--product .card__img {
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.card--product .card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--ease) 0.5s;
}
.card--product:hover .card__img img { transform: scale(1.04); }
.card--product .card__body { padding: var(--s-5) var(--s-5) var(--s-6); flex: 1; display: flex; flex-direction: column; }
.card--product h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.card--product p { color: var(--ink-500); font-size: var(--fs-sm); flex: 1; }
.card--product .chips { margin-top: auto; }

@media (max-width: 767px) {
  .cards--products { grid-template-columns: 1fr; }
}

/* ---------- Applications ---------- */
.apps { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, 1fr); margin-top: var(--s-7); }
.app {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  transition: transform var(--ease) 0.35s, box-shadow var(--ease) 0.35s;
}
.app:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.app__top { padding: var(--s-6); background: linear-gradient(160deg, var(--red-700), var(--red-900)); color: #fff; }
.app__top .tag { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.app__top h3 { color: #fff; font-size: var(--fs-lg); margin-top: var(--s-2); }
.app__body { padding: var(--s-6); color: var(--ink-500); font-size: var(--fs-sm); flex: 1; }
.app__foot { padding: 0 var(--s-6) var(--s-6); }
.app__foot a { font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: var(--s-2); }
.app__foot a svg { width: 16px; height: 16px; transition: transform var(--ease) 0.25s; }
.app__foot a:hover svg { transform: translateX(4px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-1); }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.about__stats .stat { text-align: start; padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.about__stats .stat b { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.about p { color: var(--ink-500); }
.about p + p { margin-top: var(--s-4); }

/* ---------- Services ---------- */
.svc { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); margin-top: var(--s-7); }
.svc__item { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--ease) 0.3s, transform var(--ease) 0.3s; }
.svc__item:hover { border-color: var(--red-200); transform: translateY(-3px); }
.svc__ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.svc__ico svg { width: 22px; height: 22px; }
.svc__item h4 { font-size: var(--fs-base); margin-bottom: 0.3rem; }
.svc__item p { font-size: var(--fs-sm); color: var(--ink-500); }

/* ---------- Certifications / Partners ---------- */
.certs { margin-top: var(--s-7); display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
.cert-group { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); background: var(--surface); box-shadow: var(--shadow-1); }
.cert-group h3 { font-size: var(--fs-md); margin-bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-3); }
.cert-group h3 svg { width: 22px; height: 22px; color: var(--brand-strong); }
.logos { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.logo-pill {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.6rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2);
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-700);
}
.logo-pill svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- CTA band (refined Option B) ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, var(--red-800), var(--red-900));
  color: #fff; text-align: center;
  box-shadow: 0 18px 44px -20px rgb(127 29 29 / 0.6);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 85% at 88% 12%, rgba(255,255,255,0.16), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band__inner { max-width: 760px; margin-inline: auto; }
.cta-band h2 {
  color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  letter-spacing: -0.01em; line-height: 1.12; margin-bottom: var(--s-3);
}
.cta-band p {
  color: rgba(255,255,255,0.92); margin-top: var(--s-4);
  max-width: 54ch; margin-inline: auto; font-size: var(--fs-lg); line-height: 1.6;
}
.cta-band__actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; margin-top: var(--s-7); }

/* Buttons on the red band: solid white + outline combo */
.cta-band .btn--white,
.cta-band .btn--primary {
  background: #fff; color: var(--red-800); border: 2px solid #fff;
}
.cta-band .btn--white:hover,
.cta-band .btn--primary:hover {
  background: var(--red-50); border-color: var(--red-50);
  transform: translateY(-2px); box-shadow: 0 10px 26px rgb(0 0 0 / 0.22);
}
.cta-band .btn--outline-white,
.cta-band .btn--ghost {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55);
}
.cta-band .btn--outline-white:hover,
.cta-band .btn--ghost:hover {
  background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--ink-300); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
:root[data-theme="dark"] .footer { background: oklch(10% 0.008 250); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-6); }
.footer .brand { color: #fff; }
.footer .brand b { color: var(--red-300); }
.footer p { color: var(--ink-400); font-size: var(--fs-sm); max-width: 34ch; margin-top: var(--s-4); }
.footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-4); font-family: var(--font-body); font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer ul a { color: var(--ink-300); font-size: var(--fs-sm); }
.footer ul a:hover { color: var(--red-300); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid oklch(100% 0 0 / 0.1); font-size: var(--fs-xs); color: var(--ink-400); }
.footer__social { display: flex; gap: var(--s-3); }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid oklch(100% 0 0 / 0.15); display: grid; place-items: center; color: var(--ink-300); transition: all var(--ease) 0.25s; }
.footer__social a:hover { border-color: var(--red-300); color: var(--red-300); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Chat Sales Agent ---------- */
.chat-fab {
  position: fixed; inset-block-end: clamp(1rem, 3vw, 1.8rem); inset-inline-end: clamp(1rem, 3vw, 1.8rem);
  width: 60px; height: 60px; border-radius: 50%; border: none; z-index: 70;
  background: linear-gradient(145deg, var(--red-500), var(--red-700)); color: #fff;
  box-shadow: var(--shadow-3); display: grid; place-items: center;
  transition: transform var(--ease) 0.3s, box-shadow var(--ease) 0.3s;
}
.chat-fab:hover { transform: scale(1.06); box-shadow: 0 24px 50px oklch(33% 0.12 25 / 0.5); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab .badge { position: absolute; top: -2px; inset-inline-end: -2px; width: 18px; height: 18px; background: var(--danger); border: 3px solid var(--paper); border-radius: 50%; animation: pulse-badge 2s infinite; }
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.chat-fab .close-ic { display: none; }
.chat-fab.open .chat-ic { display: none; }
.chat-fab.open .close-ic { display: block; }

.chat-panel {
  position: fixed; inset-block-end: clamp(5rem, 9vw, 6.5rem); inset-inline-end: clamp(1rem, 3vw, 1.8rem);
  width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 9rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); z-index: 70; display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.97); pointer-events: none;
  transition: opacity var(--ease) 0.3s, transform var(--ease) 0.3s;
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { background: linear-gradient(150deg, var(--red-700), var(--red-900)); color: #fff; padding: var(--s-5); display: flex; align-items: center; gap: var(--s-3); }
.chat-head__ava { width: 42px; height: 42px; border-radius: 50%; background: oklch(100% 0 0 / 0.18); display: grid; place-items: center; flex: none; }
.chat-head__ava img { width: 26px; height: 26px; border-radius: 50%; }
.chat-head__ava svg { width: 22px; height: 22px; }
.chat-head__meta b { font-family: var(--font-display); font-size: var(--fs-base); display: block; }
.chat-head__meta span { font-size: var(--fs-xs); color: oklch(92% 0.02 250); display: inline-flex; align-items: center; gap: 0.35rem; }
.chat-head__meta .live { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px oklch(62% 0.14 150 / 0.4); }
.chat-head__close { margin-inline-start: auto; background: oklch(100% 0 0 / 0.12); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background var(--ease) 0.2s; }
.chat-head__close:hover { background: oklch(100% 0 0 / 0.24); }
.chat-head__close svg { width: 18px; height: 18px; }

.chat-body { flex: 1; overflow-y: auto; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); background: var(--surface-2); }
.msg { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.5; animation: pop 0.3s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.msg--bot { background: var(--surface); border: 1px solid var(--line); color: var(--ink-700); border-end-start-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--brand-strong); color: var(--on-brand); border-end-end-radius: 4px; align-self: flex-end; }
.msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-400); animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.2s; }
.msg--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0 var(--s-5) var(--s-3); background: var(--surface-2); }
.chat-quick button {
  font-size: var(--fs-xs); font-weight: 600; padding: 0.45rem 0.8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-600);
  transition: all var(--ease) 0.2s;
}
.chat-quick button:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }

.chat-input { display: flex; gap: var(--s-2); padding: var(--s-4); border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input {
  flex: 1; min-width: 0; padding: 0.7rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: var(--fs-sm); background: var(--surface-2); color: var(--ink-900);
}
.chat-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(56% 0.20 25 / 0.18); }
.chat-input button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: none; background: var(--brand-strong); color: var(--on-brand); display: grid; place-items: center; transition: transform var(--ease) 0.2s; }
.chat-input button:hover { transform: scale(1.05); }
.chat-input button svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; order: -1; }
  .about { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .header__actions .btn, .header__actions .lang { display: none; }
  .burger { display: grid; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .apps, .svc, .certs { grid-template-columns: 1fr; }
  .mobile-nav { display: block; }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: var(--paper);
  padding: var(--s-6); transform: translateY(-100%); transition: transform var(--ease) 0.35s; overflow-y: auto;
}
.mobile-nav.open { transform: none; }
.mobile-nav a { display: block; padding: var(--s-4); font-size: var(--fs-md); font-weight: 600; color: var(--ink-800); border-bottom: 1px solid var(--line); }
.mobile-nav .lang-mobile { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.mobile-nav .lang-mobile button { padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: 600; }
.mobile-nav .lang-mobile button[aria-current="true"] { border-color: var(--brand); color: var(--brand-strong); }

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: var(--s-5); }
}

/* ---------- RTL ---------- */
:root[dir="rtl"] .eyebrow::before { order: 2; }
:root[dir="rtl"] .app__foot a svg { transform: scaleX(-1); }
:root[dir="rtl"] .chat-head__close { margin-inline-start: 0; margin-inline-end: auto; }
:root[dir="rtl"] .msg--bot { border-end-start-radius: 16px; border-end-end-radius: 4px; }
:root[dir="rtl"] .msg--user { border-end-end-radius: 16px; border-end-start-radius: 4px; }

/* =============================================================
   PAGE: ABOUT US
   ============================================================= */
.header--solid { background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }
.nav__active { color: var(--brand); font-weight: 700; }
.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }

/* Building photo moved under "Our Story" */
.about-building-img { margin-top: var(--s-6); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.about-building-img img { display: block; width: 100%; height: auto; }

.grid--2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
@media (max-width: 768px) { .grid--2col { grid-template-columns: 1fr; } }

/* Floor Plan */
.floor-plan { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s-6); border: 1px solid var(--line); }
.floor-plan h3 { margin-bottom: var(--s-5); }
.floor-plan__building { display: flex; flex-direction: column; gap: 0.3rem; }
.floor { display: flex; align-items: center; gap: var(--s-4); padding: 0.85rem 1rem; border-radius: var(--r-md); transition: background 0.2s; cursor: default; }
.floor:hover { background: var(--surface-3); }
.floor__num { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); min-width: 2.5rem; padding: 0.25rem 0.5rem; border-radius: var(--r-sm); text-align: center; background: var(--ink-100); color: var(--ink-800); }
.floor--production .floor__num { background: var(--red-100); color: var(--red-900); }
.floor--prod-main .floor__num { background: var(--red-500); color: #fff; }
.floor__name { font-weight: 500; font-size: var(--fs-sm); color: var(--ink-700); }
.floor-plan__info { display: flex; gap: var(--s-6); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.stat-inline b { display: block; font-size: var(--fs-xl); color: var(--brand); }
.stat-inline span { font-size: var(--fs-xs); color: var(--ink-500); }

/* Stats Band — clean integrated design */
.stats-band {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-10) 0;
}
.stats-band .stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.stats-band .stat { text-align: center; min-width: 130px; padding-inline: var(--s-4); }
.stats-band .stat b { display: block; font-size: var(--fs-2xl); color: var(--brand); font-weight: 700; line-height: 1.2; }
.stats-band .stat span { display: block; font-size: var(--fs-xs); color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; margin-top: var(--s-2); font-weight: 500; }

/* Timeline — redesigned to prevent year/content overlap */
.section--timeline { background: var(--surface-2); margin-top: var(--s-8); padding: var(--s-10) 0; }
.timeline { position: relative; padding-left: 3.5rem; }
.timeline::before { content: ''; position: absolute; left: 1.15rem; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 1px; }
.timeline__item { position: relative; padding-bottom: var(--s-8); display: grid; grid-template-columns: 4rem 1fr; gap: var(--s-5); align-items: start; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--brand);
  width: 4rem;
  text-align: right;
  line-height: 1;
  padding-top: 0.2rem;
}
.timeline__dot {
  position: absolute;
  left: 0.82rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--brand);
  z-index: 1;
}
.timeline__dot--active {
  background: var(--red-500);
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px oklch(52% 0.16 25 / 0.25), 0 0 18px oklch(50% 0.18 25 / 0.35);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 4px oklch(52% 0.16 25 / 0.25), 0 0 18px oklch(50% 0.18 25 / 0.35); } 50% { box-shadow: 0 0 0 7px oklch(52% 0.16 25 / 0.2), 0 0 24px oklch(50% 0.18 25 / 0.28); } }
.timeline__content h4 { font-size: var(--fs-lg); margin-bottom: 0.3rem; color: var(--ink-900); }
.timeline__content p { color: var(--ink-500); line-height: 1.65; }

/* CTA Band button styles (base layout/decoration defined above) */
.btn--white { background: #fff; color: var(--red-700); }
.btn--white:hover { background: var(--ink-50); transform: translateY(-2px); box-shadow: 0 8px 24px rgb(0 0 0 / 0.18); }
.btn--outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.cards--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 768px) { .cards--3col { grid-template-columns: 1fr; } }

/* =============================================================
   PAGE: PRODUCTS
   ============================================================= */
.page-hero { padding: var(--s-12) 0 var(--s-8); text-align: center; background: linear-gradient(180deg, var(--surface-2) 0%, var(--paper) 100%); }
.page-hero .eyebrow { margin-bottom: var(--s-2); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--s-3); }
.page-hero p { font-size: var(--fs-lg); color: var(--ink-500); max-width: 600px; margin: 0 auto; }

/* About page hero — solid brand red, high contrast (must come after base .page-hero) */
.page-hero--about {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8B1E1E;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(45% 0.20 25 / 0.35), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, oklch(40% 0.18 25 / 0.20), transparent 60%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero--about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-45deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 41px);
  pointer-events: none;
}
.page-hero--about .eyebrow { color: oklch(85% 0.12 25); margin-bottom: var(--s-2); letter-spacing: 0.15em; font-weight: 600; }
.page-hero--about > * { position: relative; }
.page-hero--about h1 { color: #fff; margin-bottom: var(--s-3); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-hero--about p { color: oklch(92% 0.02 250); max-width: 620px; margin: 0 auto; font-size: var(--fs-lg); line-height: 1.65; }

.cat-tabs { display: flex; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-8); flex-wrap: wrap; }
.cat-tab { padding: 0.6rem 1.4rem; border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: all 0.2s; color: var(--ink-700); }
.cat-tab:hover { border-color: var(--red-400); color: var(--red-700); }
.cat-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-6); }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all 0.3s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__img { aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__body { padding: var(--s-5); }
.product-card__cat { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.product-card__title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 0.35rem; }
.product-card__desc { font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.55; margin-bottom: var(--s-4); }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: var(--s-4); }
.product-card__spec { font-family: var(--font-mono); font-size: 0.7rem; padding: 0.2rem 0.55rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-600); }
.product-card__actions { display: flex; gap: var(--s-2); }
.product-card__actions .btn { flex: 1; font-size: var(--fs-sm); justify-content: center; }

/* Spec Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.75); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox__inner { background: var(--paper); border-radius: var(--r-lg); max-width: 90vw; max-height: 90vh; overflow: auto; position: relative; box-shadow: 0 24px 80px rgb(0 0 0 / 0.3); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-800); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; }
.lightbox__close:hover { background: var(--red-600); }
.lightbox__body { padding: var(--s-6); }
.lightbox__body img { max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }

/* =============================================================
   PAGE: BLOG
   ============================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s-6); }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all 0.3s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red-100), var(--surface-2)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card__img svg { width: 48px; height: 48px; color: var(--red-400); opacity: 0.5; }
.blog-card__body { padding: var(--s-5); }
.blog-card__meta { display: flex; align-items: center; gap: var(--s-3); margin-bottom: 0.5rem; font-size: var(--fs-xs); color: var(--ink-400); }
.blog-card__date { font-family: var(--font-mono); }
.blog-card__tag { padding: 0.15rem 0.55rem; background: var(--red-50); color: var(--red-700); border-radius: var(--r-pill); font-weight: 600; }
.blog-card__title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 0.4rem; line-height: 1.35; }
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--brand); }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.55; }

/* Blog Detail */
.article-hero { padding: var(--s-10) 0 var(--s-6); text-align: center; background: linear-gradient(180deg, var(--surface-2) 0%, var(--paper) 100%); }
.article-hero .blog-card__meta { justify-content: center; margin-bottom: var(--s-3); }
.article-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 720px; margin: 0 auto var(--s-4); line-height: 1.25; }
.article-body { max-width: 740px; margin: 0 auto; padding: var(--s-8) 0 var(--s-12); }
.article-body h2 { font-size: 1.5rem; margin: var(--s-7) 0 var(--s-3); padding-bottom: 0.5rem; border-bottom: 2px solid var(--red-100); }
.article-body h3 { font-size: 1.2rem; margin: var(--s-5) 0 var(--s-2); }
.article-body p { margin-bottom: var(--s-4); line-height: 1.75; color: var(--ink-700); }
.article-body ul, .article-body ol { margin-bottom: var(--s-4); padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.35rem; line-height: 1.6; color: var(--ink-700); }
.article-body blockquote { border-left: 4px solid var(--brand); padding: var(--s-4) var(--s-5); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--s-5) 0; font-style: italic; color: var(--ink-600); }
.article-body img { max-width: 100%; border-radius: var(--r-md); margin: var(s-5) 0; border: 1px solid var(--line); }

/* Blog Filter */
.blog-filter { display: flex; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-6); flex-wrap: wrap; }
.blog-filter button { padding: 0.5rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-sm); cursor: pointer; transition: all 0.2s; color: var(--ink-600); }
.blog-filter button:hover { border-color: var(--red-400); }
.blog-filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.35rem; margin-top: var(--s-8); }
.pagination button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: all 0.2s; }
.pagination button:hover { border-color: var(--brand); color: var(--brand); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =============================================================
   PAGE: FAQ
   ============================================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-category { margin-bottom: var(--s-6); }
.faq-category__title { font-size: var(--fs-lg); font-weight: 700; color: var(--brand); margin-bottom: var(--s-3); padding-bottom: 0.5rem; border-bottom: 2px solid var(--red-100); display: flex; align-items: center; gap: 0.5rem; }
.faq-category__title svg { width: 20px; height: 20px; flex-shrink: 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 0.5rem; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item__q { width: 100%; padding: 1rem 1.25rem; background: var(--paper); border: none; text-align: left; font-size: var(--fs-base); font-weight: 600; color: var(--ink-800); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item__q:hover { background: var(--surface-2); }
.faq-item__q svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform 0.3s; color: var(--ink-400); }
.faq-item.open .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-item__a { max-height: 500px; }
.faq-item__a-inner { padding: 1rem 1.25rem; color: var(--ink-600); line-height: 1.7; font-size: var(--fs-sm); border-top: 1px solid var(--line); background: var(--surface-1); }

/* FAQ Search */
.faq-search { max-width: 480px; margin: 0 auto var(--s-8); position: relative; }
.faq-search input { width: 100%; padding: 0.9rem 1.25rem 0.9rem 3rem; border: 2px solid var(--line); border-radius: var(--r-full); font-size: var(--fs-base); background: var(--paper); transition: border-color 0.2s; }
.faq-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(56% 0.20 25 / 0.12); }
.faq-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ink-400); width: 20px; height: 20px; pointer-events: none; }

/* =============================================================
   PAGE: CONTACT
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { }
.contact-info__item { display: flex; gap: var(--s-4); margin-bottom: var(--s-5); }
.contact-info__icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--red-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--red-600); }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-size: var(--fs-xs); color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.contact-info__value { font-weight: 600; color: var(--ink-800); }
.contact-info__value a { color: inherit; text-decoration: none; }
.contact-info__value a:hover { color: var(--brand); }

.contact-form { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s-6); border: 1px solid var(--line); }
.form-group { margin-bottom: var(--s-4); }
.form-group label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-base); font-family: inherit; background: var(--paper); transition: border-color 0.2s; color: var(--ink-800); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px oklch(56% 0.20 25 / 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

.map-container { border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--line); margin-top: var(--s-8); height: 380px; background: var(--surface-2); }
.map-container iframe { width: 100%; height: 100%; border: none; }

.social-links { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.social-link { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-600); transition: all 0.2s; }
.social-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social-link svg { width: 20px; height: 20px; }

/* =============================================================
   WHATSAPP FAB
   ============================================================= */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgb(37 211 102 / 0.4);
  transition: all 0.3s; text-decoration: none;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgb(37 211 102 / 0.5); }
.whatsapp-fab::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #25D366; animation: wa-ring 2s infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* =============================================================
   ADMIN DASHBOARD
   ============================================================= */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--ink-900); color: #fff; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar__brand { padding: var(--s-5) var(--s-5); border-bottom: 1px solid rgb(255 255 255 / 0.1); display: flex; align-items: center; gap: 0.75rem; }
.admin-sidebar__brand img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.admin-sidebar__brand span { font-weight: 700; font-size: var(--fs-lg); }
.admin-sidebar__nav { flex: 1; padding: var(--s-4) 0; }
.admin-sidebar__link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem var(--s-5); color: rgb(255 255 255 / 0.7); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: all 0.15s; }
.admin-sidebar__link:hover { background: rgb(255 255 255 / 0.08); color: #fff; }
.admin-sidebar__link.active { background: var(--red-600); color: #fff; border-right: 3px solid var(--red-300); }
.admin-sidebar__link svg { width: 20px; height: 20px; flex-shrink: 0; }
.admin-sidebar__footer { padding: var(--s-4) var(--s-5); border-top: 1px solid rgb(255 255 255 / 0.1); font-size: var(--fs-xs); color: rgb(255 255 255 / 0.4); }

.admin-main { flex: 1; background: var(--surface-2); overflow-y: auto; }
.admin-topbar { background: var(--paper); padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.admin-topbar__title { font-weight: 700; font-size: var(--fs-lg); }
.admin-topbar__user { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--ink-600); }
.admin-page { padding: var(--s-6); }

/* Dashboard Stats Cards */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); margin-bottom: var(--s-6); }
.dash-stat { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-5); border: 1px solid var(--line); }
.dash-stat__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.dash-stat__label { font-size: var(--fs-sm); color: var(--ink-500); }
.dash-stat__icon { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.dash-stat__value { font-size: 2rem; font-weight: 700; color: var(--ink-900); }
.dash-stat__change { font-size: var(--fs-xs); color: var(--green-600); font-weight: 600; margin-top: 0.25rem; }
.dash-stat__change.negative { color: var(--red-600); }

/* Admin Table */
.admin-table-wrap { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--surface-2); padding: 0.85rem 1rem; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); text-align: left; font-weight: 600; }
.admin-table td { padding: 0.85rem 1rem; font-size: var(--fs-sm); border-top: 1px solid var(--line); color: var(--ink-700); vertical-align: middle; }
.admin-table tr:hover td { background: var(--surface-1); }
.admin-thumb { width: 48px; height: 36px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.status-badge { display: inline-flex; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); font-size: 0.7rem; font-weight: 600; }
.status-badge--active { background: oklch(94% 0.08 145); color: oklch(40% 0.15 145); }
.status-badge--draft { background: var(--ink-100); color: var(--ink-600); }

/* Admin Actions */
.admin-actions { display: flex; gap: 0.35rem; }
.btn-icon { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-500); transition: all 0.15s; }
.btn-icon:hover { border-color: var(--brand); color: var(--brand); }
.btn-icon.danger:hover { border-color: var(--red-500); color: var(--red-600); }
.btn-icon svg { width: 16px; height: 16px; }

/* Admin Form (Product/Article create/edit) */
.admin-form { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6); border: 1px solid var(--line); max-width: 800px; }
.admin-form h2 { margin-bottom: var(--s-5); }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 640px) { .admin-form .form-row { grid-template-columns: 1fr; } }

/* Rich Text Editor Placeholder */
.rich-editor { border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.rich-toolbar { display: flex; gap: 1px; padding: 0.4rem; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rich-toolbar button { width: 32px; height: 32px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-600); font-weight: 700; font-size: 0.85rem; }
.rich-toolbar button:hover { background: var(--surface-3); border-color: var(--line); }
.rich-toolbar button.active { background: var(--red-50); border-color: var(--red-300); color: var(--red-700); }
.rich-area { min-height: 250px; padding: 1rem; outline: none; font-family: inherit; font-size: var(--fs-base); line-height: 1.7; }

/* Login Page */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--red-800), var(--red-500)); }
.login-box { background: var(--paper); border-radius: var(--r-xl); padding: var(--s-8); width: 100%; max-width: 420px; box-shadow: 0 24px 80px rgb(0 0 0 / 0.25); }
.login-box__logo { text-align: center; margin-bottom: var(--s-6); }
.login-box__logo img { width: 56px; height: 56px; margin-bottom: 0.75rem; }
.login-box__logo h2 { font-size: 1.5rem; }
.login-box__logo p { color: var(--ink-500); font-size: var(--fs-sm); }
.login-box .btn { width: 100%; justify-content: center; padding: 0.85rem; }

/* Chart placeholder */
.chart-placeholder { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); padding: var(--s-5); height: 280px; display: flex; align-items: center; justify-content: center; color: var(--ink-400); font-size: var(--fs-sm); }

/* Responsive admin */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .admin-table { display: block; overflow-x: auto; }
}
