/* =========================================================
   Octagreen Nano — Modern Design System (light + dark)
   ========================================================= */

:root {
  color-scheme: light;

  --c-primary: #2D8E5F;
  --c-primary-dark: #1F6B45;
  --c-primary-darker: #134A2E;
  --c-primary-light: #E8F5EE;
  --c-primary-50: #F2FAF5;
  --c-accent: #F4A949;
  --c-accent-dark: #D88A29;

  --c-ink: #0F2A1D;
  --c-text: #2D3A33;
  --c-muted: #6B7B72;
  --c-line: #E5EBE7;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F7FAF8;
  --c-bg-tint: #EEF6F1;
  --c-surface: #FFFFFF;
  --c-surface-2: #F7FAF8;
  --c-header-bg: rgba(255, 255, 255, 0.95);
  --c-overlay: rgba(15, 42, 29, 0.78);

  --c-success-bg: #ecfdf5;
  --c-success-text: #065f46;
  --c-success-border: #a7f3d0;
  --c-danger-bg: #fef2f2;
  --c-danger-text: #991b1b;
  --c-danger-border: #fecaca;

  --c-success: #16a34a;
  --c-danger: #dc2626;

  --shadow-xs: 0 1px 2px rgba(15, 42, 29, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 42, 29, 0.07);
  --shadow-md: 0 8px 24px rgba(15, 42, 29, 0.09);
  --shadow-lg: 0 16px 48px rgba(15, 42, 29, 0.12);
  --shadow-xl: 0 24px 64px rgba(15, 42, 29, 0.16);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --container: 1200px;
  --container-sm: 960px;

  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --c-primary: #4ABB7E;
  --c-primary-dark: #6BCC95;
  --c-primary-darker: #2D8E5F;
  --c-primary-light: rgba(74, 187, 126, 0.14);
  --c-primary-50: rgba(74, 187, 126, 0.07);

  --c-ink: #F4F8F5;
  --c-text: #C5CFC9;
  --c-muted: #8FA095;
  --c-line: #243029;
  --c-bg: #0E1814;
  --c-bg-soft: #131F19;
  --c-bg-tint: #18261F;
  --c-surface: #16241D;
  --c-surface-2: #1B2D24;
  --c-header-bg: rgba(14, 24, 20, 0.92);
  --c-overlay: rgba(0, 0, 0, 0.72);

  --c-success-bg: rgba(22, 163, 74, 0.12);
  --c-success-text: #6ee7b7;
  --c-success-border: rgba(22, 163, 74, 0.4);
  --c-danger-bg: rgba(220, 38, 38, 0.1);
  --c-danger-text: #fca5a5;
  --c-danger-border: rgba(220, 38, 38, 0.4);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { padding-left: 1.2rem; }
hr { border: 0; height: 1px; background: var(--c-line); margin: 2rem 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .8rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

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

/* honeypot field — invisible to humans, fillable by bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container-sm { max-width: var(--container-sm); }
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.section-muted { background: var(--c-bg-soft); }
.section-tint { background: var(--c-bg-tint); }
.section-dark { background: var(--c-ink); color: var(--c-text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.section-title { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-title p { color: var(--c-muted); font-size: 1.05rem; }
.section-title h2 { margin-bottom: .8rem; }

.row-grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .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: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45, 142, 95, 0.28);
}
[data-theme="dark"] .btn-primary { color: var(--c-bg); box-shadow: 0 8px 20px rgba(74, 187, 126, 0.22); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: 0 12px 26px rgba(45, 142, 95, 0.36); }
[data-theme="dark"] .btn-primary:hover { color: var(--c-bg); }
.btn-secondary {
  background: var(--c-ink);
  color: #fff;
}
[data-theme="dark"] .btn-secondary { background: var(--c-surface-2); color: var(--c-ink); border-color: var(--c-line); }
.btn-secondary:hover { background: #000; color: #fff; }
[data-theme="dark"] .btn-secondary:hover { background: var(--c-surface); }
.btn-outline {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }
[data-theme="dark"] .btn-outline:hover { color: var(--c-bg); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary-dark);
  padding: .5rem .8rem;
}
.btn-ghost:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.btn-light {
  background: rgba(255,255,255,0.95);
  color: var(--c-ink);
}
.btn-light:hover { background: #fff; color: var(--c-primary-darker); }
.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-on-dark:hover { background: #fff; color: #0F2A1D; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  transition: background var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { transform: scale(1.05); background: rgba(45, 142, 95, 0.2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Header / Topbar ---------- */
.topbar {
  background: var(--c-ink);
  color: #cbd5cf;
  font-size: .85rem;
  padding: .6rem 0;
}
[data-theme="dark"] .topbar { background: #050B08; }
.topbar a { color: #cbd5cf; }
.topbar a:hover { color: #fff; }
.topbar-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.topbar-left .item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-left svg { width: 14px; height: 14px; opacity: .85; }
.topbar-right { display: flex; gap: 1rem; align-items: center; }
.topbar-social { display: flex; gap: .4rem; }
.topbar-social a {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: background var(--t-fast);
}
.topbar-social a:hover { background: var(--c-primary); color: #fff; }
.topbar-social svg { width: 12px; height: 12px; fill: currentColor; }
@media (max-width: 720px) {
  .topbar { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.primary-nav > li {
  list-style: none;
  position: relative;
}
.primary-nav > li > a, .primary-nav > li > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-ink);
  border-radius: var(--r-md);
}
.primary-nav > li > a:hover, .primary-nav > li.has-submenu:hover > .nav-link {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}
.primary-nav .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: .25rem;
  opacity: .6;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.primary-nav > li.has-submenu:hover > .submenu,
.primary-nav > li.has-submenu:focus-within > .submenu,
.primary-nav > li.has-submenu.is-open > .submenu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.submenu li { list-style: none; }
.submenu a {
  display: block;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: .9rem;
  font-weight: 500;
}
.submenu a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }

.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-cta .phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700;
  color: var(--c-primary-dark);
}
.nav-cta .phone svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  background: var(--c-primary-light);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-ink); border-radius: 2px;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--c-ink); border-radius: 2px;
  transition: transform var(--t-base);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .phone { display: none; }
  .primary-nav {
    position: fixed;
    inset: 70px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    padding: 1rem 1.25rem 6rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
    border-top: 1px solid var(--c-line);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav > li { width: 100%; }
  .primary-nav > li > a, .primary-nav > li > .nav-link {
    width: 100%;
    padding: .9rem .25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--c-line);
    justify-content: space-between;
  }
  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--c-bg-soft);
    border-radius: var(--r-md);
    padding: .25rem;
    margin: .35rem 0 .5rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }
  .primary-nav > li.has-submenu.is-open > .submenu { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  align-items: center;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s var(--ease);
  z-index: -2;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-overlay) 0%, rgba(15, 42, 29, 0.45) 50%, var(--c-overlay) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 760px;
  padding: 6rem 0;
  animation: heroIn .8s var(--ease) both;
}
.hero .eyebrow { background: rgba(255,255,255,0.15); color: #fff; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 1.4rem;
  display: flex; justify-content: center; gap: .5rem;
  z-index: 2;
}
.hero-dot {
  width: 28px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--t-base), width var(--t-base);
}
.hero-dot.is-active { background: #fff; width: 44px; }

.hero-trust {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  padding: .65rem 0;
  z-index: 2;
}
.hero-trust-row {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1rem 2.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-display);
}
.hero-trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust-row svg { width: 14px; height: 14px; color: var(--c-primary); }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--c-primary-darker) 0%, var(--c-primary-dark) 60%, var(--c-primary) 100%);
  color: #fff;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}
[data-theme="dark"] .page-banner { background: linear-gradient(135deg, #0a2014 0%, #134A2E 60%, #1F6B45 100%); }
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(244, 169, 73, 0.16), transparent 40%);
}
.page-banner-inner { position: relative; }
.page-banner h1 { color: #fff; margin-bottom: .75rem; }
.breadcrumb {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  padding: 0; margin: 0; list-style: none;
  color: rgba(255,255,255,0.85);
  font-size: .9rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before {
  content: '/'; margin-right: .5rem; opacity: .5;
}

/* ---------- Feature cards ---------- */
.feature-cards { margin-top: -3rem; position: relative; z-index: 2; }
.feature-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--c-muted); margin: 0; font-size: .95rem; }

/* ---------- About / split ---------- */
.split {
  display: grid; gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}
.split-media img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.lead { font-size: 1.1rem; color: var(--c-text); }
.text-muted { color: var(--c-muted); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--c-primary-dark);
  line-height: 1;
}
.stat .label { color: var(--c-muted); font-size: .9rem; margin-top: .35rem; }

/* ---------- Pricing pill / starting from ---------- */
.price-pill {
  display: inline-flex; align-items: baseline; gap: .35rem;
  padding: .35rem .8rem;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .8rem;
}
.price-pill .from { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; font-weight: 600; }

/* ---------- Trust badges ---------- */
.trust-bar {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
@media (min-width: 720px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  display: flex; align-items: center; gap: .85rem;
  font-size: .9rem;
  color: var(--c-text);
}
.trust-item svg {
  flex: none; width: 32px; height: 32px;
  padding: 6px; border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}
.trust-item .tlabel { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--c-ink); }
.trust-item .tdesc { font-size: .8rem; color: var(--c-muted); margin-top: 2px; }

/* ---------- Product cards ---------- */
.product-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-base);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary-light);
}
.product-card .media {
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
  position: relative;
  overflow: hidden;
}
.product-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.product-card:hover .media img { transform: scale(1.06); }
.product-card .media .tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--c-primary-darker);
  font-family: var(--font-display); font-weight: 700; font-size: .75rem;
  padding: .3rem .65rem; border-radius: var(--r-pill);
  letter-spacing: .04em; text-transform: uppercase;
}
.product-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.product-card p { color: var(--c-muted); font-size: .92rem; flex: 1; }
.product-card .more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--c-primary-dark);
}
.product-card .more::after { content: '→'; transition: transform var(--t-fast); }
.product-card:hover .more::after { transform: translateX(4px); }

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  background: var(--c-ink);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-base);
}
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 42, 29, 0.85) 100%);
}
.project-card:hover img { transform: scale(1.06); }
.project-card .caption {
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 1rem;
  color: #fff;
  z-index: 1;
}
.project-card .caption .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .15rem;
}
.project-card .caption .meta {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  border: 1px solid var(--c-line);
  position: relative;
}
.testimonial::before {
  content: '“';
  position: absolute; top: 12px; right: 22px;
  font-family: 'Georgia', serif;
  font-size: 4rem;
  color: var(--c-primary-light);
  line-height: 1;
}
.testimonial .stars { color: #f5b042; letter-spacing: 2px; font-size: .95rem; margin-bottom: .5rem; }
.testimonial .text { color: var(--c-text); font-size: .95rem; margin-bottom: 1.2rem; }
.testimonial .person { display: flex; align-items: center; gap: .8rem; }
.testimonial .person img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--c-primary-light);
}
.testimonial .person .name { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }
.testimonial .person .role { font-size: .82rem; color: var(--c-muted); }

/* ---------- Clients ---------- */
.clients {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}
@media (min-width: 720px) { .clients { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .clients { grid-template-columns: repeat(8, 1fr); } }
.client {
  padding: 1.2rem 1rem;
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(0.4);
  opacity: .85;
  transition: filter var(--t-base), opacity var(--t-base);
}
.client:hover { filter: grayscale(0); opacity: 1; }
.client img { max-height: 56px; width: auto; }
[data-theme="dark"] .client { background: var(--c-surface-2); }
[data-theme="dark"] .client img { filter: brightness(0.9) invert(1); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  border-radius: var(--r-xl);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-banner { background: linear-gradient(135deg, #1F6B45, #2D8E5F); color: #fff; }
.cta-banner::before {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
  border-radius: 50%;
}
@media (min-width: 720px) {
  .cta-banner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: .5rem 0 0; }
.cta-banner .actions { display: flex; gap: .75rem; flex-wrap: wrap; position: relative; }

/* ---------- Info / contact strip ---------- */
.info-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-xs);
}
.info-card .icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--c-primary-light); color: var(--c-primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.info-card .icon svg { width: 22px; height: 22px; }
.info-card h4 { margin: 0 0 .35rem; font-size: 1rem; }
.info-card .body { font-size: .92rem; color: var(--c-muted); }
.info-card a { color: var(--c-text); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--c-text); font-family: var(--font-display); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--c-surface);
  color: var(--c-text);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(45, 142, 95, 0.12);
}
.field .hint { font-size: .8rem; color: var(--c-muted); }
.form-card {
  background: var(--c-surface);
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
}
.form-status {
  padding: .85rem 1rem; border-radius: var(--r-md);
  font-size: .9rem;
  display: none;
}
.form-status.is-success { display: block; background: var(--c-success-bg); color: var(--c-success-text); border: 1px solid var(--c-success-border); }
.form-status.is-error { display: block; background: var(--c-danger-bg); color: var(--c-danger-text); border: 1px solid var(--c-danger-border); }

/* ---------- Sidebar ---------- */
.layout-sidebar {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .layout-sidebar { grid-template-columns: 1fr 320px; }
  .layout-sidebar.left-sidebar { grid-template-columns: 320px 1fr; }
}
.sidebar > * + * { margin-top: 1.5rem; }
.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 1rem; margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--c-line);
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li + li { margin-top: .25rem; }
.sidebar-list a {
  display: block; padding: .65rem .85rem;
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: .92rem;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar-list a:hover, .sidebar-list a.active {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}

/* ---------- Article (product) ---------- */
.article {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.article > img { border-radius: var(--r-md); margin-bottom: 1.6rem; }
.article h2 { font-size: 1.6rem; margin-top: 1.5rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.25rem; margin-top: 1.4rem; }
.article h4 { font-size: 1.05rem; margin-top: 1.2rem; color: var(--c-primary-dark); }
.article ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.article ul li {
  position: relative;
  padding: .35rem 0 .35rem 1.6rem;
  font-size: .95rem;
}
.article ul li::before {
  content: '';
  position: absolute; left: 0; top: .8rem;
  width: 16px; height: 16px;
  background: var(--c-primary-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231F6B45'%3E%3Cpath d='M6.7 11.3 3.4 8l1.4-1.4 1.9 1.9 4.5-4.5L12.6 5.4 6.7 11.3Z'/%3E%3C/svg%3E");
}
[data-theme="dark"] .article ul li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234ABB7E'%3E%3Cpath d='M6.7 11.3 3.4 8l1.4-1.4 1.9 1.9 4.5-4.5L12.6 5.4 6.7 11.3Z'/%3E%3C/svg%3E");
}

/* ---------- Tables ---------- */
.tds-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.tds-table th, .tds-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  font-size: .92rem;
}
.tds-table th {
  background: var(--c-primary-light);
  color: var(--c-primary-darker);
  font-family: var(--font-display);
  font-weight: 700;
}
.tds-table tr:nth-child(even) td { background: var(--c-bg-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-item.is-open { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--c-ink);
  cursor: pointer;
}
.faq-q::after {
  content: '+';
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1;
  transition: transform var(--t-base), background var(--t-base);
}
.faq-item.is-open .faq-q::after { content: '−'; background: var(--c-primary); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 1.5rem;
  color: var(--c-text);
  transition: max-height var(--t-base), padding var(--t-base);
}
.faq-item.is-open .faq-a { padding: 0 1.5rem 1.4rem; max-height: 800px; }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: .6rem; }

/* ---------- Colour palette ---------- */
.swatch-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .swatch-grid { grid-template-columns: repeat(6, 1fr); } }
.swatch {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.swatch:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.swatch .chip {
  aspect-ratio: 1.4 / 1;
  display: block;
}
.swatch .info { padding: .65rem .9rem; }
.swatch .name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--c-ink); }
.swatch .code { font-size: .78rem; color: var(--c-muted); font-family: 'SFMono-Regular', Consolas, monospace; }

.palette-section + .palette-section { margin-top: 2rem; }
.palette-section h3 { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #b9c4be;
  padding: 4rem 0 0;
}
[data-theme="dark"] .site-footer { background: #050B08; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: #b9c4be; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: .92rem; line-height: 1.7; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; font-size: .92rem; }
.footer-contact li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .35rem 0; font-size: .9rem;
}
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--c-primary); }
.footer-social { display: flex; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding: 1.5rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom .legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Floating actions ---------- */
.fab-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex; flex-direction: column; gap: .65rem;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 26px; height: 26px; }
.fab.whatsapp { background: #25D366; color: #fff; }
.fab.whatsapp::after {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  z-index: -1;
  animation: pulse 2.4s infinite;
}
.fab.call { background: var(--c-primary); }
[data-theme="dark"] .fab.call { color: #0E1814; }
.fab.top { background: var(--c-ink); display: none; }
.fab.top.is-visible { display: inline-flex; }
[data-theme="dark"] .fab.top { background: var(--c-surface-2); }

@keyframes pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Awards / gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--c-line);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: opacity 200ms; }
  .fab.whatsapp::after { animation: none; }
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.divider {
  width: 60px; height: 4px; border-radius: 4px;
  background: var(--c-primary);
  margin: 0 0 1rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* Loading screen */
.page-loader {
  position: fixed; inset: 0;
  background: var(--c-bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 4px solid var(--c-primary-light);
  border-top-color: var(--c-primary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-darker) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

/* =========================================================
   View transitions (browsers that support it)
   ========================================================= */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Scroll progress bar — top of viewport
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transition: width 80ms linear;
  pointer-events: none;
}

/* =========================================================
   Theme transition "ink pour" overlay
   ========================================================= */
.theme-pour {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  width: 30px; height: 30px;
}
.theme-pour.is-active {
  animation: themePour 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes themePour {
  to { transform: translate(-50%, -50%) scale(180); opacity: 1; }
}

/* =========================================================
   Tilt cards (3D hover)
   ========================================================= */
.product-card[data-tilt] { transform-style: preserve-3d; transition: transform var(--t-base) var(--ease); will-change: transform; }
.product-card[data-tilt] .body, .product-card[data-tilt] .media { transform: translateZ(0); }
.product-card[data-tilt] h3 { transform: translateZ(20px); }
.product-card[data-tilt] .more { transform: translateZ(15px); }
.product-card[data-tilt] .tag { transform: translateZ(30px); }

/* Spotlight effect on cards (radial light follows cursor) */
.spotlight-host { position: relative; overflow: hidden; }
.spotlight-host::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: 2;
}
.spotlight-host:hover::after { opacity: 1; }
[data-theme="dark"] .spotlight-host::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.08), transparent 60%); }

/* =========================================================
   Magnetic buttons
   ========================================================= */
.magnetic { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }

/* =========================================================
   Marquee (logo strip)
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: center;
  height: 80px;
  filter: grayscale(0.4); opacity: .85;
  transition: filter var(--t-base), opacity var(--t-base);
}
.marquee-item:hover { filter: grayscale(0); opacity: 1; }
.marquee-item img { max-height: 48px; width: auto; }
[data-theme="dark"] .marquee-item img { filter: brightness(0.9) invert(1); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   Number count-up
   ========================================================= */
.count-up::after {
  content: attr(data-suffix);
  font-size: .8em;
  margin-left: 2px;
  color: var(--c-primary);
}

/* =========================================================
   Before / After slider
   ========================================================= */
.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  user-select: none;
  touch-action: pan-y;
}
.before-after picture, .before-after img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.before-after .ba-after {
  clip-path: inset(0 0 0 var(--ba, 50%));
}
.before-after .ba-divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--ba, 50%);
  width: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  cursor: ew-resize;
  z-index: 2;
}
.before-after .ba-handle {
  position: absolute;
  top: 50%;
  left: var(--ba, 50%);
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-primary-dark);
  font-weight: 700;
  z-index: 3;
  cursor: ew-resize;
}
.before-after .ba-handle::before { content: '◀'; margin-right: 4px; font-size: 12px; }
.before-after .ba-handle::after { content: '▶'; margin-left: 4px; font-size: 12px; }
.before-after .ba-label {
  position: absolute;
  top: 12px;
  background: rgba(15, 42, 29, 0.78);
  color: #fff;
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  z-index: 1;
}
.before-after .ba-label.before { left: 12px; }
.before-after .ba-label.after { right: 12px; }

/* =========================================================
   Particle layer (subtle floating leaves over hero)
   ========================================================= */
.particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 14px; height: 14px;
  opacity: .4;
  color: var(--c-primary);
  animation: float-up var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.particle svg { width: 100%; height: 100%; fill: currentColor; opacity: .8; }
@keyframes float-up {
  0% { transform: translate(0, 110vh) rotate(0deg); opacity: 0; }
  10% { opacity: .4; }
  90% { opacity: .35; }
  100% { transform: translate(60px, -10vh) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .particle { display: none; } }

/* =========================================================
   Hero brush stroke (CSS-only, re-triggerable on scroll)
   ========================================================= */
.brush-stroke {
  position: relative;
  display: inline-block;
}
.brush-stroke::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2,9 Q60,3 120,8 T240,8 T298,7' stroke='%234ABB7E' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transition: width 1.4s var(--ease) 0.3s;
}
.brush-stroke.is-painting::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .brush-stroke::after { transition: none; width: 100%; }
}

/* =========================================================
   Product filter pills
   ========================================================= */
.product-filter {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.product-filter button {
  padding: .55rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  color: var(--c-text);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  transition: all var(--t-fast);
}
.product-filter button:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.product-filter button.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
[data-theme="dark"] .product-filter button.is-active { color: var(--c-bg); }
.product-card.is-hidden { display: none; }

/* =========================================================
   Recently viewed (sticky widget in footer area)
   ========================================================= */
.recently-viewed {
  position: relative;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
  padding: 2rem 0;
}
.recently-viewed-row {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  -webkit-overflow-scrolling: touch;
}
.recently-viewed-card {
  flex: none;
  width: 220px;
  scroll-snap-align: start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.recently-viewed-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.recently-viewed-card .name { padding: .65rem .85rem; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--c-ink); }
.recently-viewed:empty { display: none; }

/* =========================================================
   Visualizer page
   ========================================================= */
.visualizer-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .visualizer-shell { grid-template-columns: 1fr 320px; } }
.visualizer-stage {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.visualizer-stage svg { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.visualizer-busy { display: none; }
.visualizer-busy.is-active {
  display: flex; align-items: center; gap: .5rem;
  position: absolute; top: 12px; left: 12px;
  background: rgba(15, 42, 29, 0.85); color: #fff;
  padding: .4rem .75rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  z-index: 4;
}
.visualizer-busy .spinner { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
@media (max-width: 999px) {
  .scene-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
  .scene-tabs .scene-tab { flex: none; }
  .visualizer-panel h4 { font-size: .82rem; margin-bottom: .5rem; }
  .visualizer-panel { padding: .85rem; }
  .surface-picker { gap: .25rem; }
  .surface-picker button { padding: .35rem .65rem; font-size: .75rem; }
}
.scene-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.scene-tab {
  padding: .5rem 1rem;
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: var(--c-text);
}
.scene-tab.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
[data-theme="dark"] .scene-tab.is-active { color: var(--c-bg); }

.visualizer-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.visualizer-panel h4 { font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
.surface-picker { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.surface-picker button {
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  background: var(--c-bg-soft);
  border: 1.5px solid var(--c-line);
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  color: var(--c-text);
}
.surface-picker button.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.swatch-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .35rem;
  max-height: 320px;
  overflow-y: auto;
  padding: .25rem;
}
@media (max-width: 700px) {
  .swatch-rail { grid-template-columns: repeat(8, 1fr); max-height: 180px; }
}
.swatch-rail button {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 2px solid var(--c-line);
  cursor: pointer;
  transition: transform var(--t-fast);
  position: relative;
}
.swatch-rail button:hover { transform: scale(1.1); }
.swatch-rail button.is-active { border-color: var(--c-primary); }
.swatch-rail button.is-active::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.visualizer-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

/* =========================================================
   Calculator page
   ========================================================= */
.calc-shell {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .calc-shell { grid-template-columns: 1fr 1fr; } }
.calc-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.calc-result {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.calc-result::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
  border-radius: 50%;
}
.calc-result h3, .calc-result h4 { color: #fff; margin: 0; }
.calc-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  margin: 1rem 0;
}
.calc-row {
  display: flex; justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
}
.calc-row:last-child { border-bottom: 0; }
.calc-row .v { font-weight: 700; }

.range-field {
  display: flex; flex-direction: column; gap: .35rem;
}
.range-field .label-row { display: flex; justify-content: space-between; align-items: center; }
.range-field .label-row label { font-family: var(--font-display); font-weight: 600; color: var(--c-text); }
.range-field .label-row .val {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  padding: .15rem .55rem;
  border-radius: var(--r-pill);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--c-line);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--c-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--c-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-header, .site-footer, .fab-stack, .topbar, .scroll-progress, .particles, .recently-viewed { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Hide any leftover loader if it slips into a page (no-op for new pages) */
.page-loader { display: none !important; }

/* =========================================================
   Product card frame (with heart + compare buttons)
   ========================================================= */
.product-card { position: relative; }
.product-card-link {
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  height: 100%;
}
.card-fav, .card-cmp {
  position: absolute;
  top: 12px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.card-fav { right: 12px; }
.card-cmp { right: 60px; }
.card-fav svg, .card-cmp svg { width: 18px; height: 18px; }
.card-fav:hover, .card-cmp:hover { transform: scale(1.1); }
.card-fav.is-fav { color: #e11d48; background: #fff; }
.card-fav.is-fav svg { fill: currentColor; }
.card-cmp.is-cmp { color: #fff; background: var(--c-primary); }
[data-theme="dark"] .card-fav, [data-theme="dark"] .card-cmp { background: rgba(255,255,255,0.1); color: #fff; }
[data-theme="dark"] .card-fav.is-fav { background: rgba(225, 29, 72, 0.2); color: #ff7295; }
[data-theme="dark"] .card-cmp.is-cmp { background: var(--c-primary); color: var(--c-bg); }

/* =========================================================
   Confetti canvas
   ========================================================= */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  display: none;
}
.confetti-canvas.is-active { display: block; }

/* (Brush re-trigger handled by CSS width transition above.) */

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
  z-index: 99;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   Comparison drawer (sticky bottom)
   ========================================================= */
.compare-drawer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 88;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: min(720px, 95vw);
  animation: drawerIn 380ms var(--ease);
}
@keyframes drawerIn {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.compare-drawer-content {
  display: flex; align-items: center; gap: 1rem;
  padding: .65rem .85rem;
  flex-wrap: wrap;
}
.compare-drawer-list { display: flex; gap: .5rem; align-items: center; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.compare-drawer-item {
  display: flex; align-items: center; gap: .5rem;
  background: var(--c-bg-soft);
  padding: .35rem .6rem;
  border-radius: var(--r-pill);
  font-size: .85rem;
  font-family: var(--font-display); font-weight: 600;
}
.compare-drawer-item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.compare-drawer-remove {
  width: 22px; height: 22px;
  border-radius: 50%; background: var(--c-line);
  font-size: 14px; line-height: 1; color: var(--c-text);
}
.compare-drawer-remove:hover { background: var(--c-danger); color: #fff; }
.compare-drawer-actions { display: flex; gap: .5rem; align-items: center; }
.btn.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
@media (max-width: 640px) {
  .compare-drawer { left: 1rem; right: 1rem; max-width: none; transform: none; }
  @keyframes drawerIn { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  .compare-drawer-actions .btn { flex: 1; }
}

/* =========================================================
   Compare page
   ========================================================= */
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  font-size: .92rem;
}
.compare-table thead th {
  background: var(--c-bg-soft);
  border-bottom: 2px solid var(--c-primary-light);
}
.compare-row-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
  background: var(--c-bg-soft);
}
.compare-card { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; min-width: 200px; }
.compare-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--c-line); }
.compare-card .compare-name { font-size: 1rem; }

/* =========================================================
   Chatbot
   ========================================================= */
.chatbot {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 91;
}
.chatbot-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast);
  position: relative;
}
.chatbot-toggle:hover { transform: translateY(-3px); }
.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-icon-close { display: none; }
.chatbot-toggle.is-open .chatbot-icon-open { display: none; }
.chatbot-toggle.is-open .chatbot-icon-close { display: block; }
.chatbot-pulse {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: rgba(45, 142, 95, 0.5);
  z-index: -1;
  animation: pulse 2.4s infinite;
}
.chatbot-toggle.is-open .chatbot-pulse { display: none; }

.chatbot-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: min(360px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 8rem));
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 250ms, transform 250ms;
  overflow: hidden;
}
.chatbot-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chatbot-header {
  background: linear-gradient(135deg, var(--c-primary-darker), var(--c-primary));
  color: #fff;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
}
.chatbot-body {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  background: var(--c-bg-soft);
  display: flex; flex-direction: column; gap: .65rem;
}
.chat-bubble {
  max-width: 88%;
  padding: .65rem .9rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  line-height: 1.45;
  animation: bubbleIn 240ms var(--ease);
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-bot { background: var(--c-surface); border: 1px solid var(--c-line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-user { background: var(--c-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
[data-theme="dark"] .chat-user { color: var(--c-bg); }
.chat-options { display: flex; flex-direction: column; gap: .35rem; align-items: stretch; margin-left: auto; max-width: 92%; }
.chat-option {
  text-align: left;
  padding: .55rem .85rem;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1.5px solid var(--c-primary-light);
  color: var(--c-primary-dark);
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.chat-option:hover:not([disabled]) { background: var(--c-primary-light); }
.chat-option[disabled] { opacity: 0.5; cursor: not-allowed; }
.chat-option.is-chosen { background: var(--c-primary); color: #fff; border-color: var(--c-primary); opacity: 1; }
[data-theme="dark"] .chat-option.is-chosen { color: var(--c-bg); }
.chatbot-footer {
  padding: .65rem 1rem;
  border-top: 1px solid var(--c-line);
  text-align: center;
  font-size: .82rem;
  background: var(--c-surface);
}

/* =========================================================
   Visualizer additions: mode + time tabs, photo upload
   ========================================================= */
.vis-mode-bar {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: .65rem;
  margin-bottom: 1rem;
}
.vis-mode-tabs { display: flex; gap: .35rem; }
.vis-mode-tab {
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--c-text);
}
.vis-mode-tab.is-active { background: var(--c-ink); color: #fff; }
[data-theme="dark"] .vis-mode-tab.is-active { background: var(--c-surface-2); color: var(--c-ink); }

.vis-time-tabs { display: flex; gap: .35rem; }
.vis-time-tab {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  border: 1.5px solid var(--c-line);
}
.vis-time-tab svg { width: 18px; height: 18px; }
.vis-time-tab.is-active { background: var(--c-primary-light); color: var(--c-primary-dark); border-color: var(--c-primary); }

.vis-photo-upload { margin-bottom: 1rem; }
.vis-photo-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; justify-content: center;
  padding: 2rem 1rem;
  background: var(--c-bg-soft);
  border: 2px dashed var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t-base), background var(--t-base);
}
.vis-photo-dropzone:hover, .vis-photo-dropzone.is-drag {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.vis-photo-tools {
  display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap;
  margin-top: .65rem;
}

/* =========================================================
   Calculator floor plan
   ========================================================= */
.calc-floorplan {
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: .5rem;
  position: relative;
}
.calc-floorplan svg { width: 100%; height: auto; display: block; }

/* =========================================================
   Video card (poster + click-to-play)
   ========================================================= */
.video-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-ink);
  margin: 0 0 1.6rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
}
.video-poster {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.video-poster picture, .video-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.video-poster:hover img { transform: scale(1.04); }
.video-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(15, 42, 29, 0.05), rgba(15, 42, 29, 0.6) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(15,42,29,0.55));
  transition: opacity var(--t-base);
}
.video-poster:hover .video-overlay { opacity: .85; }
.video-play-btn {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-primary-darker);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: transform var(--t-base) var(--ease);
}
.video-play-btn::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: rgba(74, 187, 126, 0.45);
  z-index: -1;
  animation: pulse 2.2s infinite;
}
.video-play-btn::after {
  content: '';
  position: absolute; inset: -16px;
  border-radius: 50%;
  background: rgba(74, 187, 126, 0.25);
  z-index: -2;
  animation: pulse 2.2s 0.4s infinite;
}
.video-poster:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-play-btn svg { width: 38px; height: 38px; margin-left: 6px; }

.video-meta {
  position: absolute;
  left: 1.25rem; bottom: 1.1rem;
  right: 1.25rem;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.video-meta .video-eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  margin-bottom: .35rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-meta .video-title-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.video-card.is-playing .video-overlay,
.video-card.is-playing .video-play-btn,
.video-card.is-playing .video-meta { display: none; }
.video-card.is-playing video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}

/* Brand badge for Izogreen logo (and similar sub-brand marks) */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .4rem .85rem .4rem .55rem;
  background: var(--c-primary-light);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary-darker);
}
.brand-badge img { height: 36px; width: auto; border-radius: 50%; background: #fff; padding: 4px; }
[data-theme="dark"] .brand-badge img { background: #fff; }

/* =========================================================
   Quiz page
   ========================================================= */
.quiz {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.quiz-progress {
  height: 6px;
  background: var(--c-bg-soft);
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  width: 0;
  transition: width 380ms var(--ease);
}
.quiz-stage {
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 380px;
  position: relative;
  transition: opacity 240ms;
}
.quiz-step { animation: quizIn 380ms var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.quiz-step-num {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
}
.quiz-step h2 { margin-top: .5rem; }
.quiz-options {
  display: grid; gap: .65rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 600px) { .quiz-options { grid-template-columns: 1fr 1fr; } }
.quiz-option {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--c-bg-soft);
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--c-ink);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.quiz-option:hover {
  transform: translateY(-2px);
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.quiz-back { margin-top: .5rem; }

.quiz-result {
  text-align: center;
}
.quiz-palette {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0;
}
@media (min-width: 700px) { .quiz-palette { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .quiz-palette { grid-template-columns: repeat(6, 1fr); } }
.quiz-palette-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.quiz-palette-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quiz-palette-chip { aspect-ratio: 1.2 / 1; }
.quiz-palette-info { padding: .5rem .75rem; text-align: left; }
.quiz-palette-name { font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--c-ink); }
.quiz-palette-code { font-size: .75rem; font-family: monospace; color: var(--c-muted); }
.quiz-suggested {
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: left;
  margin: 1rem 0;
}
.quiz-actions {
  display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.5rem;
}
