/* ============================================
   STUDIO CIACCHINI — DESIGN SYSTEM
   Premium Dark Theme | Glassmorphism
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors */
  --bg-primary: #07070d;
  --bg-secondary: #0d0d16;
  --bg-card: rgba(15, 15, 25, 0.7);
  --bg-glass: rgba(20, 20, 35, 0.6);
  --bg-glass-light: rgba(255, 255, 255, 0.03);
  
  --gold: #c9a84c;
  --gold-light: #dfc070;
  --gold-dark: #a88a3a;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-gradient: linear-gradient(135deg, #c9a84c 0%, #dfc070 50%, #a88a3a 100%);
  
  --navy: #1a1a2e;
  --navy-light: #252540;
  --navy-dark: #10101e;
  
  --text-primary: #f0ece4;
  --text-secondary: rgba(240, 236, 228, 0.65);
  --text-muted: rgba(240, 236, 228, 0.4);
  
  --border-subtle: rgba(201, 168, 76, 0.12);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 168, 76, 0.3);
  
  --success: #4ade80;
  --error: #f87171;
  --info: #60a5fa;
  --warning: #fbbf24;
  --focus-ring: rgba(223, 192, 112, 0.7);
  --accent-contrast: #07070d;
  --surface-hover: rgba(20, 20, 35, 0.8);
  --nav-surface: rgba(7, 7, 13, 0.85);
  --cookie-surface: rgba(7, 7, 13, 0.95);
  --menu-surface: rgba(7, 7, 13, 0.97);
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;
  --container-narrow: 800px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-medium: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.1);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Navbar Brand */
  --nav-logo-mark-width: 124px;
  --nav-logo-mark-height: 74px;
  --nav-logo-mark-width-scrolled: 92px;
  --nav-logo-mark-height-scrolled: 56px;
  --nav-logo-mark-width-mobile: 90px;
  --nav-logo-mark-height-mobile: 54px;
  --nav-logo-mark-width-mobile-scrolled: 68px;
  --nav-logo-mark-height-mobile-scrolled: 42px;
  --nav-logo-text-size: 1.34rem;
  --nav-logo-text-size-scrolled: 1.12rem;
  --nav-logo-subtext-size: 0.78rem;
  --nav-logo-subtext-size-scrolled: 0.68rem;
  --nav-logo-gap: 14px;
  --nav-logo-gap-scrolled: 12px;
  --nav-brand-gap: 28px;
  --nav-container-width: 1480px;
}

/* --- Light Theme --- */
html.theme-light {
  color-scheme: light;
  --bg-primary: #f8fafc;
  --bg-secondary: #edf2f7;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-light: rgba(15, 23, 42, 0.04);
  
  --gold: #a88a3a;
  --gold-light: #c9a84c;
  --gold-dark: #8a6a1a;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-gradient: linear-gradient(135deg, #a88a3a 0%, #c9a84c 50%, #8a6a1a 100%);
  
  --text-primary: #0f172a;
  --text-secondary: #24364d;
  --text-muted: #516276;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(15, 23, 42, 0.12);
  --border-gold: rgba(201, 168, 76, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.15);
  --accent-contrast: #0f172a;
  --surface-hover: rgba(255, 255, 255, 0.99);
  --nav-surface: rgba(248, 250, 252, 0.96);
  --cookie-surface: rgba(255, 255, 255, 0.98);
  --menu-surface: rgba(248, 250, 252, 0.98);
}

html.theme-light body::before {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(241, 245, 249, 0.8) 0%, transparent 50%);
}

html.theme-light .navbar.scrolled {
  background: var(--nav-surface);
}

html.theme-light .glass-card,
html.theme-light .service-card,
html.theme-light .pillar-card,
html.theme-light .guarantee-card,
html.theme-light .location-card,
html.theme-light .article-card,
html.theme-light .contact-info-card,
html.theme-light .contact-form,
html.theme-light .split-visual-card {
  box-shadow: 0 18px 45px rgba(148, 163, 184, 0.12);
}

html.theme-light .article-card-image {
  background: linear-gradient(135deg, #e6edf5, #f8fafc);
}

html.theme-light .location-map iframe {
  filter: grayscale(15%) brightness(0.98) contrast(1);
}

/* --- High Contrast Theme --- */
html.theme-high-contrast {
  color-scheme: only light;
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: #000000;
  --bg-glass: #000000;
  --bg-glass-light: #000000;
  
  --gold: #ffff00;
  --gold-light: #ffff00;
  --gold-dark: #ffff00;
  --gold-glow: #000000;
  --gold-gradient: #ffff00;
  
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #cccccc;
  
  --border-subtle: #ffffff;
  --border-glass: #ffffff;
  --border-gold: #ffffff;
  --accent-contrast: #000000;
  --surface-hover: #000000;
  --nav-surface: #000000;
  --cookie-surface: #000000;
  --menu-surface: #000000;
}

html.theme-high-contrast * {
  box-shadow: none !important;
}

html.theme-high-contrast body::before {
  display: none;
}

html.theme-high-contrast .navbar.scrolled {
  background: #000000;
  border-bottom: 2px solid #ffffff;
}


/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height, 1.7);
  font-size: var(--font-size-base, 16px);
  overflow-x: hidden;
  min-height: 100vh;
}

body.site-maintenance-active .skip-link,
body.site-maintenance-active .navbar,
body.site-maintenance-active .announcement-banner,
body.site-maintenance-active .whatsapp-float,
body.site-maintenance-active .cookie-banner,
body.site-maintenance-active .footer,
body.site-maintenance-active .a11y-toggle,
body.site-maintenance-active .a11y-panel {
  display: none !important;
}

body.site-maintenance-active #main-content {
  min-height: 100vh;
  animation: none;
}

/* A11y Settings overrides */
html.a11y-font-small { --font-size-base: 14px; }
html.a11y-font-large { --font-size-base: 18px; }
html.a11y-font-xlarge { --font-size-base: 20px; }
html.a11y-line-height-relaxed { --line-height: 1.9; }
html.a11y-line-height-loose { --line-height: 2.2; }
html.a11y-reduce-motion,
html.a11y-reduce-motion body {
  scroll-behavior: auto;
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 26, 46, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-light); }

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

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  transform: translateY(-140%);
  transition: transform var(--transition-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-family: var(--font-body); font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); }

p { color: var(--text-secondary); margin-bottom: 1rem; font-weight: 300; }

.text-gold { color: var(--gold); }
.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-gold {
  background: var(--gold-gradient);
  color: var(--accent-contrast);
  font-weight: 600;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), 0 8px 25px rgba(201, 168, 76, 0.25);
  color: var(--accent-contrast);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--gold-light);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.32);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-soft:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 42px; font-size: 1rem; }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Announcement Banner --- */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 400;
  transition: transform var(--transition-medium);
  background: #1a3a5c;
  color: #fff;
}

.announcement-banner.hidden { transform: translateY(-100%); display: none; }
.announcement-banner.visible { transform: translateY(0); display: flex; }

.banner-content { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.banner-link { 
  color: var(--gold-light); 
  font-weight: 600; 
  text-decoration: underline; 
  text-underline-offset: 3px;
  white-space: nowrap;
}
.banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}
.banner-close:hover { color: #fff; }

body.has-banner .navbar { top: 44px; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
  background: transparent;
}

.navbar.scrolled {
  padding: 20px 0;
  background: var(--nav-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  width: min(calc(100% - 40px), var(--nav-container-width));
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2vw, 42px);
}

.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-logo-mark-height);
  min-width: 0;
  width: max-content;
  padding-left: calc(var(--nav-logo-mark-width) + var(--nav-brand-gap));
  text-decoration: none;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  flex-shrink: 0;
  z-index: 1;
}

.navbar.scrolled .nav-logo {
  min-height: var(--nav-logo-mark-height);
}

.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark--adaptive {
  width: 86px;
  height: 52px;
}

.navbar .logo-mark--adaptive {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--nav-logo-mark-width);
  height: var(--nav-logo-mark-height);
  transition: width var(--transition-medium), height var(--transition-medium), transform var(--transition-fast);
}

.navbar.scrolled .logo-mark--adaptive {
  width: var(--nav-logo-mark-width-scrolled);
  height: var(--nav-logo-mark-height-scrolled);
}

.logo-mark--maintenance {
  width: 168px;
  height: 104px;
  margin: 0 auto 24px;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
}

.logo-mark--adaptive .logo-image {
  position: absolute;
  inset: 0;
}

.logo-image--on-dark {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.logo-image--on-light {
  opacity: 0;
  filter: brightness(0) saturate(100%) drop-shadow(0 4px 12px rgba(15, 23, 42, 0.12));
}

html.theme-light .logo-image--on-dark {
  opacity: 0;
}

html.theme-light .logo-image--on-light {
  opacity: 1;
}

html.theme-high-contrast .logo-image--on-dark {
  opacity: 1;
  filter: brightness(0) invert(1) contrast(200);
}

html.theme-high-contrast .logo-image--on-light {
  opacity: 0;
}

.nav-logo:hover .logo-image,
.footer-logo:hover .logo-image {
  transform: scale(1.03);
}

.maintenance-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.maintenance-card {
  width: min(680px, 100%);
  text-align: center;
  padding: 42px 34px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.maintenance-label {
  margin-bottom: 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.maintenance-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.maintenance-description {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.maintenance-site-name {
  margin-top: 22px;
  color: var(--text-primary);
  font-weight: 600;
}

.logo-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-logo .logo-text {
  font-size: var(--nav-logo-text-size);
  line-height: 1;
  transition: font-size var(--transition-medium);
}

.logo-subtext {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-logo .logo-subtext {
  font-size: var(--nav-logo-subtext-size);
  transition: font-size var(--transition-medium);
}

.navbar.scrolled .nav-logo .logo-text {
  font-size: var(--nav-logo-text-size);
}

.navbar.scrolled .nav-logo .logo-subtext {
  font-size: var(--nav-logo-subtext-size);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: clamp(18px, 1.9vw, 34px);
  justify-self: end;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--bg-card);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-icon--sun {
  opacity: 0;
  transform: scale(0.8) rotate(-18deg);
}

.theme-toggle-icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle[data-theme-state="light"] .theme-toggle-icon--sun,
.theme-toggle[data-theme-state="high-contrast"] .theme-toggle-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle[data-theme-state="light"] .theme-toggle-icon--moon,
.theme-toggle[data-theme-state="high-contrast"] .theme-toggle-icon--moon {
  opacity: 0;
  transform: scale(0.8) rotate(18deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 18px);
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
  padding-inline: clamp(6px, 0.8vw, 20px) 0;
}

.nav-link {
  padding: 8px clamp(10px, 0.9vw, 16px);
  color: var(--text-secondary);
  font-size: clamp(0.82rem, 0.79rem + 0.14vw, 0.92rem);
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 60%; }

.nav-link-cta {
  background: var(--gold-gradient);
  color: var(--accent-contrast) !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-left: clamp(10px, 0.9vw, 20px);
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }

@media (max-width: 1360px) {
  .nav-container {
    width: min(calc(100% - 28px), 1380px);
    padding: 0 18px;
    gap: clamp(14px, 1.4vw, 24px);
  }

  .nav-menu {
    gap: clamp(2px, 0.45vw, 10px);
    padding-inline: 0;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 0.84rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* --- Sections --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  background: var(--gold-glow);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 24px auto;
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
  min-height: var(--hero-min-height, 100vh);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(26, 26, 46, 0.8) 0%, transparent 40%);
  animation: heroFloat 20s ease-in-out infinite;
}

.hero--no-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0) 0%, rgba(7, 7, 13, 0.24) 44%, rgba(7, 7, 13, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

html.theme-light .hero--no-media::after {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.3) 44%, rgba(248, 250, 252, 0.96) 100%);
}

html.theme-high-contrast .hero--no-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.hero--inner {
  padding-top: 136px;
  padding-bottom: 72px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.03);
}

.hero--parallax .hero-media {
  background-attachment: fixed;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(1deg); }
  66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-title .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-actions--triple {
  max-width: 920px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

.hero-stat {
  text-align: center;
  min-width: 0;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-gold);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 150%; }
}

.section-page-body {
  padding-top: 88px;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
}

.glass-card:hover::before { opacity: 1; }

/* --- Service / Area Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  background: var(--surface-hover);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.3rem;
  transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
  background: var(--gold-gradient);
  color: var(--accent-contrast);
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Pillar Cards --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.pillar-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--gold);
}

.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.8;
}

/* --- Credentials Section --- */
.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.credentials-list--left {
  justify-content: flex-start;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 400;
}

.credential-badge .badge-icon {
  color: var(--gold);
  font-size: 1rem;
}

.about-profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.about-profile-media {
  min-height: 320px;
  border-radius: calc(var(--radius-md) - 6px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(201, 168, 76, 0.16), rgba(26, 26, 46, 0.5)),
    var(--bg-secondary);
}

.about-profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Guarantee Cards --- */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.guarantee-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
}

.guarantee-card:hover {
  border-color: var(--border-gold);
  background: var(--surface-hover);
}

.guarantee-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.guarantee-card h4 {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.guarantee-card p {
  font-size: 0.87rem;
  margin-bottom: 0;
}

/* --- Location Cards --- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.location-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.location-photo {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-map {
  width: 100%;
  height: 200px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) brightness(0.7) contrast(1.1);
  transition: filter var(--transition-medium);
}

.location-card:hover .location-map iframe {
  filter: grayscale(30%) brightness(0.8) contrast(1);
}

.location-info {
  padding: 28px;
}

.location-city {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.location-province {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.location-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.location-info p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --- Article Cards --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.article-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.article-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.article-card-link:hover {
  color: inherit;
}

.article-card-link:focus-visible {
  outline-offset: -4px;
}

.article-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-image .placeholder-icon {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
}

.article-card-body {
  padding: 28px;
}

.article-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card-meta .category {
  color: var(--gold);
  font-weight: 500;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.article-card:hover h3 { color: var(--gold); }

.article-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
}

.article-share-panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
}

.article-share-header h3 {
  margin-bottom: 8px;
}

.article-share-header p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.article-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-share-feedback {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-share-feedback[data-state="success"] {
  color: var(--success);
}

.article-share-feedback[data-state="error"] {
  color: var(--error);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
}

.contact-info-card:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-card label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.contact-info-card a, .contact-info-card span {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 400;
}

.contact-form {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.form-help {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0;
}

.form-checkbox a,
.form-disclaimer a {
  color: var(--gold);
}

.form-disclaimer {
  margin: 0;
  max-width: 42ch;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-form .btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--error);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold-glow), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* --- Two-Column Layout --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-content h2 {
  margin-bottom: 20px;
}

.split-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.split-visual {
  position: relative;
}

.split-visual-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.split-visual-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.promo-checklist,
.promo-steps {
  margin: 24px 0 0;
  padding: 0;
}

.promo-checklist {
  list-style: none;
  display: grid;
  gap: 16px;
}

.promo-checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-secondary);
  line-height: 1.7;
}

.promo-checklist-icon {
  color: var(--gold);
  transform: translateY(3px);
}

.promo-process-card h3 {
  margin-bottom: 16px;
}

.promo-process-card p {
  margin-bottom: 0;
}

.promo-steps {
  padding-left: 20px;
  display: grid;
  gap: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- ETS Section Specifics --- */
.ets-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(150px, 0.78fr) minmax(150px, 0.78fr) minmax(150px, 0.78fr) minmax(420px, 2.05fr);
  gap: clamp(36px, 3vw, 64px);
  padding-bottom: 60px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-right: clamp(12px, 2vw, 36px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.footer-order-logo {
  width: 70px;
  height: auto;
  flex: 0 0 auto;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-newsletter {
  min-width: 0;
  align-self: stretch;
}

.footer-newsletter-card {
  height: 100%;
  padding: clamp(24px, 2vw, 34px);
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.footer-newsletter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.footer-newsletter-copy {
  display: grid;
  gap: 18px;
}

.footer-newsletter-header {
  display: grid;
  gap: 14px;
}

.footer-newsletter-header h4 {
  font-size: clamp(1.24rem, 1.8vw, 1.56rem);
  line-height: 1.1;
  margin: 0;
  color: var(--text-primary);
  max-width: 12ch;
}

.footer-newsletter-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

.footer-newsletter-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-newsletter-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.order-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.order-badge img {
  width: clamp(84px, 12vw, 120px);
  height: auto;
  flex: 0 0 auto;
}

.order-badge p {
  color: var(--text-secondary);
}

.newsletter-form-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

.newsletter-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 10px;
  align-items: stretch;
}

.newsletter-form-row input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
}

.newsletter-form-row input::placeholder {
  color: var(--text-muted);
}

.newsletter-form-row .btn {
  min-width: 146px;
  min-height: 56px;
  justify-content: center;
  white-space: nowrap;
}

.newsletter-form-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: -2px 0 2px;
}

.newsletter-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.newsletter-consent input {
  margin-top: 2px;
}

.newsletter-consent span {
  min-width: 0;
}

.newsletter-consent a {
  color: var(--gold);
  display: inline;
  padding: 0;
  transform: none;
}

.newsletter-consent a:hover {
  color: var(--gold-light);
  transform: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-privacy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  transition: all var(--transition-medium);
}

.whatsapp-float.hidden { 
  opacity: 0; 
  transform: scale(0.5) translateY(20px); 
  pointer-events: none; 
}

.whatsapp-float.visible { 
  opacity: 1; 
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-icon svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float.pulse .whatsapp-icon {
  animation: waPulse 2s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: var(--cookie-surface);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 20px 24px;
  transition: transform var(--transition-medium);
}

.cookie-banner.hidden { transform: translateY(100%); display: none; }
.cookie-banner.visible { transform: translateY(0); display: block; }

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  
  .card-grid-3, .location-grid, .pillar-grid, .guarantee-grid, .ets-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-stats { gap: 40px; }
}

@media (max-width: 1180px) {
  .nav-container {
    width: auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--menu-surface);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-menu.active { right: 0; }

  .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-link::after { display: none; }

  .nav-link-cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; }

  .nav-container {
    width: auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--menu-surface);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-menu.active { right: 0; }
  
  .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-glass);
  }
  
  .nav-link::after { display: none; }
  
  .nav-link-cta {
    margin-left: 0;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
  }
  
  .nav-toggle { display: flex; }
  
  .card-grid,
  .card-grid-3,
  .location-grid,
  .pillar-grid,
  .guarantee-grid,
  .ets-services-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .hero {
    min-height: auto;
    padding: 120px 24px 72px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero--inner {
    padding-top: 124px;
    padding-bottom: 56px;
  }
  .hero-media {
    transform: none;
  }
  .hero--parallax .hero-media {
    background-attachment: scroll;
  }
  .hero-stats {
    gap: 28px;
    margin-top: 48px;
  }
  .hero-stat {
    width: min(260px, 100%);
    margin: 0 auto;
  }
  .scroll-indicator {
    display: none;
  }
  .section-page-body {
    padding-top: 64px;
  }
  .about-profile-card {
    grid-template-columns: 1fr;
  }
  .about-profile-media {
    min-height: 280px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-newsletter-card {
    padding: 24px;
  }

  .footer-order-badge,
  .order-badge {
    width: 100%;
  }

  .footer-newsletter-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .newsletter-form-panel {
    padding: 18px;
  }

  .newsletter-form-row {
    grid-template-columns: 1fr;
  }

  .newsletter-form-row .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-order-badge,
  .order-badge {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
  
  .hero-stats { flex-direction: column; gap: 24px; }
  .faq-grid { grid-template-columns: 1fr; }
  
  .cookie-content { flex-direction: column; text-align: center; }
  
  .navbar .logo-copy { display: none; }
  .nav-logo {
    min-height: var(--nav-logo-mark-height-mobile);
    width: var(--nav-logo-mark-width-mobile);
    padding-left: var(--nav-logo-mark-width-mobile);
  }
  .navbar.scrolled .nav-logo {
    min-height: var(--nav-logo-mark-height-mobile);
  }
  .navbar .logo-mark--adaptive {
    width: var(--nav-logo-mark-width-mobile);
    height: var(--nav-logo-mark-height-mobile);
  }
  .navbar.scrolled .logo-mark--adaptive {
    width: var(--nav-logo-mark-width-mobile-scrolled);
    height: var(--nav-logo-mark-height-mobile-scrolled);
  }
  .nav-actions { gap: 8px; margin-left: 0; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: 0.85rem; }
  .btn-lg { padding: 14px 28px; }
  .glass-card { padding: 24px; }
  .service-card { padding: 28px 24px; }
  .contact-form { padding: 28px; }
  .section-label { font-size: 0.72rem; }
  .card-grid { grid-template-columns: 1fr; min-width: 0; }
  .card-grid > * { min-width: 0; }
  .theme-toggle { width: 42px; height: 42px; }
  .navbar .logo-mark--adaptive { width: var(--nav-logo-mark-width-mobile); height: var(--nav-logo-mark-height-mobile); }
  .navbar.scrolled .logo-mark--adaptive { width: var(--nav-logo-mark-width-mobile-scrolled); height: var(--nav-logo-mark-height-mobile-scrolled); }
  .logo-mark--maintenance { width: 132px; height: 84px; }
  .a11y-toggle { left: 16px; bottom: 16px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}

/* --- Page transition --- */
#main-content {
  animation: fadeIn 0.4s var(--ease-out);
  min-height: 60vh;
}

#main-content:focus {
  outline: none;
}

/* --- Loading state --- */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- Accessibility Panel --- */
.a11y-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.a11y-toggle svg {
  width: 18px;
  height: 18px;
}

.a11y-toggle:hover {
  transform: scale(1.06);
  background: var(--bg-card);
}

.a11y-panel {
  position: fixed;
  bottom: 80px;
  left: 24px;
  width: 320px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  z-index: 1050;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-medium);
}

.a11y-panel.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.a11y-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.a11y-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
}

.a11y-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.a11y-close:hover {
  color: var(--text-primary);
}

.a11y-option {
  margin-bottom: 16px;
}

.a11y-option label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a11y-theme-btns, .a11y-size-btns {
  display: flex;
  gap: 8px;
}

.a11y-theme-btns {
  flex-direction: column;
}

.a11y-size-btns {
  flex-wrap: wrap;
}

.a11y-btn {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  flex: 1;
  text-align: center;
}

.a11y-theme-btns .a11y-btn {
  text-align: left;
}

.a11y-size-btns .a11y-btn {
  min-width: calc(50% - 4px);
}

.a11y-btn:hover {
  background: var(--bg-glass);
}

.a11y-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

.a11y-reset {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.3);
}

@media (max-width: 768px) {
  .a11y-panel {
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: 40px; /* Safe area */
  }
}

/* Update Article Card for Image */
.article-card-image {
  background-size: cover;
  background-position: center;
}
