/* ============================================================
   POLARIZ | GEN-E — Global Stylesheet
   Brand-accurate design system from PDF references
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Brand Colors */
  --brand-green: #1A6B33;
  --brand-green-hover: #14562A;
  --brand-green-light: #1A6B3320;
  --brand-lime: #8DC63F;
  --brand-lime-light: #8DC63F30;

  /* Surfaces */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-tint: #F0F6EA;
  --chip-bg: #E3EFD9;

  /* Text */
  --ink: #17261C;
  --muted: #5B665F;

  /* Borders & Shadows */
  --border: #E1E5DC;
  --shadow-sm: 0 1px 3px rgba(23,38,28,0.04);
  --shadow-md: 0 4px 12px rgba(23,38,28,0.06);
  --shadow-lg: 0 8px 30px rgba(23,38,28,0.08);
  --shadow-hover: 0 8px 24px rgba(23,38,28,0.10);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --announcement-height: 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--announcement-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-green-hover);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 16px;
}

ul, ol {
  list-style: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem); }
h2 { font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); }
h4 { font-size: clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem); }

/* Bold green emphasis — the signature headline pattern */
.text-emphasis, h1 strong, h2 strong, h3 strong {
  font-weight: 700;
  color: var(--brand-green);
}

/* Eyebrow label — POLARIZ GEN-E SERIES */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brand-lime);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

@media (min-width: 1280px) {
  .container { padding: 0 var(--space-xl); }
}

.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section { padding: 72px 0; }
}

@media (min-width: 1280px) {
  .section { padding: 88px 0; }
}

/* Two plain (untinted) sections in a row read as one big gap: halve the seam */
.section:not([style*="background"]):not(.bess-dark-section) + .section:not([style*="background"]):not(.bess-dark-section) {
  padding-top: 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--brand-lime);
  color: var(--ink);
  text-align: center;
  padding: 10px 44px;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.announcement-bar.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.announcement-bar a {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar .dismiss-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.announcement-bar .dismiss-btn:hover {
  opacity: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .header-inner { padding: 0 var(--space-lg); }
}

/* Logo / Wordmark */
.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark-divider {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--brand-lime);
  margin: 0 8px;
  flex-shrink: 0;
}

/* Logo (master SVG from Polariz_GenE_Logo_Final — never retype it) */
.wordmark img { display: block; height: 44px; width: auto; }
.wordmark-sm img { height: 36px; }
.wordmark-footer { margin-bottom: 12px; }
.wordmark-footer img { height: 48px; }
@media (max-width: 767px) {
  .wordmark img { height: 34px; }
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-lime);
  transition: width var(--transition-base);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brand-green);
}

.nav-desktop a.active::after,
.nav-desktop a:hover::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.cart-btn:hover {
  background: var(--surface-tint);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-spring);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--surface-tint);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-links {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--brand-green);
}

.mobile-nav-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  min-height: 44px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 3px solid var(--brand-lime);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.btn-primary:hover {
  background: var(--brand-green-hover);
  border-color: var(--brand-green-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}

.btn-secondary:hover {
  background: var(--brand-green);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--brand-green);
}

.btn-tertiary {
  background: none;
  color: var(--brand-green);
  padding: 8px 0;
  border: none;
  font-weight: 600;
}

.btn-tertiary:hover {
  color: var(--brand-green-hover);
}

.btn-tertiary svg {
  transition: transform var(--transition-fast);
}

.btn-tertiary:hover svg {
  transform: translateX(4px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn:disabled, .btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.card-tint {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

@media (max-width: 640px) {
  .card, .card-flat, .card-tint {
    padding: var(--space-md);
    max-width: 100%;
    overflow: hidden;
  }
}

/* ============================================================
   CHIPS / BADGES
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--chip-bg);
  color: var(--brand-green);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-lime {
  background: var(--brand-lime);
  color: #fff;
}

.chip-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Number chips (01, 02, 03) */
.num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--brand-green);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2xl) 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  display: none;
}

@media (min-width: 768px) {
  .stat-item:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   DIAGONAL CORNER SHAPE (Signature motif)
   ============================================================ */
.diagonal-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(180px, 20vw, 280px);
  height: clamp(120px, 14vw, 180px);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.diagonal-corner:has(svg)::before,
.diagonal-corner:has(svg)::after {
  display: none !important;
}

.diagonal-corner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-green);
  clip-path: polygon(32% 0%, 100% 0%, 100% 100%, 62% 100%);
}

.diagonal-corner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-lime);
  clip-path: polygon(25% 0%, 30% 0%, 60% 100%, 55% 100%);
}

/* Smaller variant for cards */
.diagonal-corner-sm {
  width: 100px;
  height: 70px;
}

.diagonal-corner-sm::before {
  width: 120px;
  height: 120px;
  top: -20px;
  right: -20px;
}

.diagonal-corner-sm::after {
  right: 40px;
  width: 6px;
  height: 120px;
  top: -20px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-helper {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-light);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #D32F2F;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}

.form-error {
  font-size: 0.8125rem;
  color: #D32F2F;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Progress bar for multi-step forms */
.form-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-xl);
}

.form-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.form-step-indicator::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background var(--transition-base);
}

.form-step-indicator:last-child::after {
  display: none;
}

.form-step-indicator.active::after,
.form-step-indicator.completed::after {
  background: var(--brand-green);
}

.form-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.form-step-indicator.active .form-step-dot {
  background: var(--brand-green);
  color: #fff;
}

.form-step-indicator.completed .form-step-dot {
  background: var(--brand-lime);
  color: #fff;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

/* Scroll hint shadow */
.table-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--transition-fast);
}

.table-wrapper.scrolled-end::after {
  opacity: 0;
}

.spec-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.spec-table thead th {
  background: var(--surface-tint);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-green);
  position: sticky;
  top: 0;
  z-index: 2;
}

.spec-table tbody td:first-child,
.spec-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  font-weight: 600;
  min-width: 150px;
}

.spec-table thead th:first-child {
  background: var(--surface-tint);
  z-index: 3;
}

.spec-table tbody tr:hover td {
  background: var(--surface-tint);
}

.spec-table tbody tr:hover td:first-child {
  background: var(--chip-bg);
}

.spec-table tbody tr:last-child td {
  border-bottom: none;
}

/* Highlighted column */
.spec-table .highlight-col {
  background: var(--brand-lime-light) !important;
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.accordion-trigger:hover {
  color: var(--brand-green);
}

.accordion-trigger:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 2px;
  border-radius: 4px;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--muted);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--brand-green);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-content-inner {
  padding-bottom: var(--space-lg);
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--brand-green);
}

.footer-brand-card {
  background: var(--surface-tint);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-subscribe {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  width: 100%;
}

.footer-subscribe .form-input {
  flex: 1;
  min-height: 44px;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--brand-green);
}

/* Footer diagonal bar */
.footer-diagonal-bar {
  height: 6px;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green) 70%, var(--brand-lime) 70%, var(--brand-lime) 100%);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  z-index: 900;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ============================================================
   MOBILE STICKY BOTTOM BAR (product pages)
   ============================================================ */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px var(--space-md);
    gap: var(--space-sm);
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }

  .mobile-bottom-bar .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  /* Make room for the bottom bar & lift WhatsApp above it */
  body.has-bottom-bar {
    padding-bottom: 76px;
  }
  body.has-bottom-bar .whatsapp-float {
    bottom: 76px !important;
  }
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--surface, #FFFFFF);
  border-top: 1px solid var(--border, #E1E5DC);
  padding: 14px 24px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(23, 38, 28, 0.12);
  transform: translateY(115%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.dismissed {
  transform: translateY(115%);
  pointer-events: none;
}

.cookie-banner p {
  font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted, #5B665F);
  margin: 0;
  flex: 1;
}

.cookie-banner p a {
  color: var(--brand-green, #1A6B33);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    gap: 12px;
  }
  .cookie-banner p {
    font-size: 0.78125rem;
    line-height: 1.45;
    width: 100%;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .cookie-banner .btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================
   CART MINI-DRAWER
   ============================================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.cart-drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  font-weight: 700;
  font-size: 1.125rem;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-drawer-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--muted);
}

.cart-drawer-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--border);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.cart-item-remove {
  font-size: 0.75rem;
  color: #D32F2F;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}

.cart-drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: var(--space-md);
}

.cart-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

/* ============================================================
   COMPARE DRAWER
   ============================================================ */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-green);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  z-index: 850;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.compare-bar.visible {
  transform: translateY(0);
}

.compare-bar-items {
  display: flex;
  gap: var(--space-sm);
}

.compare-bar-item {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.img-placeholder {
  background: var(--surface-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-lg);
  min-height: 200px;
  border: 1px dashed var(--border);
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-tint) 25%, #e8ede3 50%, var(--surface-tint) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   MOTION / ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-up, .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   QUOTE MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.visible .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--surface-tint);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--brand-green);
}

.tab-btn.active {
  color: var(--brand-green);
  border-bottom-color: var(--brand-green);
}

.tab-panel {
  display: none;
  padding: var(--space-lg) 0;
}

.tab-panel.active {
  display: block;
}

/* ============================================================
   TOAST / NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 16px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  transform: translateX(120%);
  transition: transform var(--transition-slow);
  max-width: 360px;
}

.toast.visible {
  transform: translateX(0);
}

.toast-success {
  border-left: 3px solid var(--brand-green);
}

.toast-error {
  border-left: 3px solid #D32F2F;
}

/* ============================================================
   PLACEHOLDER HIGHLIGHT (dev mode)
   ============================================================ */
.placeholder-highlight {
  outline: 2px dashed var(--brand-lime);
  outline-offset: 2px;
  position: relative;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-green { color: var(--brand-green); }
.text-lime { color: var(--brand-lime); }
.text-muted { color: var(--muted); }
.text-white { color: #fff; }
.bg-green { background: var(--brand-green); }
.bg-tint { background: var(--surface-tint); }
.bg-dark { background: var(--ink); }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.font-heading { font-family: var(--font-heading); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
.hide-mobile { display: none; }
.hide-desktop { display: block; }

@media (min-width: 768px) {
  .hide-mobile { display: block; }
  .hide-desktop { display: none; }
}

@media (min-width: 1024px) {
  .hide-below-lg { display: block; }
}


/* ============================================================
   LEAD HAND-OFF / CONFIRMATION PANEL
   ============================================================ */
.lead-handoff {
  display: none;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.lead-handoff h4 { font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.lead-handoff p { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.lead-handoff .lead-handoff-note { font-size: 0.8125rem; margin: 12px 0 0; }

/* ============================================================
   PRE-BOOK MODE (until BIS registration): no cart or checkout
   ============================================================ */
.mode-prebook .cart-btn,
.mode-prebook .cart-drawer,
.mode-prebook .cart-drawer-overlay,
.mode-prebook .cart-badge,
.mode-prebook .cart-badge-inline,
.mode-prebook .open-cart { display: none !important; }


@media (max-width: 640px) {
  .announcement-bar { font-size: 0.8125rem; padding: 8px 40px; line-height: 1.4; }
}

/* ============================================================
   SITE PRELOADER
   Animated brand symbol loading screen
   ============================================================ */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: var(--bg, #FAFAF7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
  user-select: none;
  -webkit-user-select: none;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
}

.site-preloader__glow {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.28) 0%, rgba(26, 107, 51, 0.08) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  animation: preloaderPulse 2.2s ease-in-out infinite alternate;
}

.site-preloader__symbol-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-preloader__symbol {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(26, 107, 51, 0.16));
}

.site-preloader__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.site-preloader__brand {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-green, #1A6B33);
  text-transform: uppercase;
}

.site-preloader__sep {
  color: var(--brand-lime, #8DC63F);
  font-weight: 400;
  margin: 0 4px;
}

.site-preloader__caption {
  font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted, #5B665F);
  opacity: 0.9;
}

.site-preloader__track {
  width: 110px;
  height: 3px;
  background: rgba(26, 107, 51, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 2px;
}

.site-preloader__bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(90deg, var(--brand-green, #1A6B33), var(--brand-lime, #8DC63F));
  border-radius: 999px;
  animation: preloaderBar 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes preloaderPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.95;
  }
}

@keyframes preloaderBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader {
    transition: opacity 0.1s linear, visibility 0.1s linear;
  }
  .site-preloader__glow,
  .site-preloader__bar {
    animation: none;
  }
}
