/* ═══════════════════════════════════════════════════════════════════════
   RIPTIDE DIGITAL — Shared Stylesheet
   Coastal editorial aesthetic. Warm cream, navy, teal accents.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --sand: #d4b896;
  --sand-light: #e8d5b8;
  --navy: #1a2744;
  --navy-light: #2d3f5e;
  --navy-dark: #111c30;
  --teal: #2d8f8f;
  --teal-light: #3aadad;
  --teal-dark: #236e6e;
  --teal-glow: rgba(45,143,143,0.12);
  --text: #1a2744;
  --text-light: #5a6478;
  --text-muted: #8b92a0;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body); background: var(--cream); color: var(--text);
  line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Smooth theme transitions on all themed elements */
nav, .card, .price-card, .cta-band, footer, .section-eyebrow, .section-title,
.section-title em, .page-hero h1 em, .btn-primary, .nav-cta, .nav-brand,
.footer-brand span, .nav-brand span, .wave-divider path {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, fill 0.5s ease;
}

/* ─── Grain Overlay ─── */
body::after {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}

/* ─── Utility ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }
.reveal-d5 { transition-delay: 0.60s; }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 0; background: var(--nav-bg, rgba(250,247,242,0.85));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border, rgba(26,39,68,0.06));
  transition: all 0.3s ease;
}
nav.scrolled { padding: 12px 0; box-shadow: 0 4px 30px var(--nav-border, rgba(26,39,68,0.06)); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--navy); text-decoration: none; letter-spacing: -0.3px;
}
.nav-brand span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-light);
  text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: var(--teal); transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; background: var(--navy); color: var(--cream);
  border: none; border-radius: 6px; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.25s ease; text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--teal); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(45,143,143,0.2); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: all 0.3s;
}

/* ─── Section Shared ─── */
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: ''; width: 40px; height: 1.5px; background: var(--teal);
}
.section-eyebrow.centered {
  justify-content: center; text-align: center;
}
.section-eyebrow.centered::after {
  content: ''; width: 40px; height: 1.5px; background: var(--teal);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px);
  font-weight: 600; letter-spacing: -0.5px; margin-bottom: 16px; color: var(--navy);
}
.section-title.centered { text-align: center; }
.section-title em {
  font-style: italic;
  color: var(--teal);
}
.section-subtitle {
  font-size: 17px; color: var(--text-light); max-width: 600px; line-height: 1.7;
  margin-bottom: 48px;
}
.section-subtitle.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; background: var(--teal); color: var(--white);
  border: none; border-radius: 8px; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(45,143,143,0.3); }
.btn-primary:hover::before { left: 100%; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 32px; background: var(--cream); color: var(--navy);
  border: none; border-radius: 8px; font-family: var(--font-body);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s; text-decoration: none;
}
.btn-light:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* ─── Page Hero (Interior pages) ─── */
.page-hero {
  padding: 160px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,143,143,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(42px, 5vw, 60px);
  font-weight: 600; line-height: 1.15; letter-spacing: -1px;
  color: var(--navy); margin-bottom: 16px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.page-hero-desc {
  font-size: 18px; color: var(--text-light); max-width: 560px; line-height: 1.8;
}

/* ─── Wave Divider ─── */
.wave-divider { width: 100%; height: 80px; overflow: hidden; margin: -1px 0; }
.wave-divider svg { width: 100%; height: 100%; display: block; }
.wave-divider.flip { transform: scaleY(-1); }
.wave-divider path { fill: var(--white); }

/* ─── Cards ─── */
.card {
  padding: 36px 32px; border-radius: 16px; border: 1px solid rgba(26,39,68,0.06);
  background: var(--white); position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sand));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(26,39,68,0.08); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
  background: var(--teal-glow); color: var(--teal);
}
.card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin-bottom: 10px; color: var(--navy);
}
.card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* ─── Feature List ─── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; font-size: 15px; color: var(--text-light);
}
.feature-list li::before {
  content: '✓'; width: 24px; height: 24px; border-radius: 6px;
  background: var(--teal-glow); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

/* ─── Pricing Cards ─── */
.price-card {
  padding: 40px 32px; border-radius: 20px; border: 1px solid rgba(26,39,68,0.08);
  background: var(--cream); position: relative; transition: all 0.3s ease;
}
.price-card.featured {
  background: var(--navy); color: var(--cream); border-color: transparent;
  transform: scale(1.04); box-shadow: 0 30px 60px rgba(26,39,68,0.2);
}
.price-card:not(.featured):hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(26,39,68,0.08); }
.price-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.price-card:not(.featured) .price-tag { background: var(--teal-glow); color: var(--teal); }
.price-card.featured .price-tag { background: rgba(45,143,143,0.2); color: var(--teal-light); }
.price-amount {
  font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; margin-bottom: 4px;
}
.price-card.featured .price-amount { color: var(--cream); }
.price-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.price-card.featured .price-period { color: rgba(250,247,242,0.5); }
.price-desc {
  font-size: 15px; line-height: 1.6; margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(26,39,68,0.08);
}
.price-card.featured .price-desc { border-color: rgba(250,247,242,0.1); color: rgba(250,247,242,0.7); }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li { padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: '→'; color: var(--teal); font-weight: 600; }
.price-card.featured .price-features li { color: rgba(250,247,242,0.8); }
.price-card.featured .price-features li::before { color: var(--teal-light); }
.price-btn {
  display: block; width: 100%; padding: 14px; text-align: center;
  border-radius: 8px; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.price-card:not(.featured) .price-btn { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.price-card:not(.featured) .price-btn:hover { background: var(--navy); color: var(--cream); }
.price-card.featured .price-btn { background: var(--teal); border: 1.5px solid var(--teal); color: var(--white); }
.price-card.featured .price-btn:hover { background: var(--teal-light); }

/* ─── CTA Band ─── */
.cta-band {
  padding: 100px 0; background: var(--navy); color: var(--cream);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(45,143,143,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(212,184,150,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px);
  font-weight: 600; letter-spacing: -0.5px; margin-bottom: 16px; position: relative;
}
.cta-band p {
  font-size: 18px; color: rgba(250,247,242,0.6); max-width: 500px;
  margin: 0 auto 36px; position: relative; line-height: 1.7;
}

/* ─── Footer ─── */
footer {
  padding: 64px 0 32px; background: var(--navy-dark); color: rgba(250,247,242,0.5);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(250,247,242,0.06);
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: rgba(250,247,242,0.7); margin-bottom: 12px;
}
.footer-brand span { color: var(--teal); }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col-title {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(250,247,242,0.3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 14px; color: rgba(250,247,242,0.5); text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--teal-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 13px; color: rgba(250,247,242,0.3); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(250,247,242,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,247,242,0.4); text-decoration: none;
  font-size: 14px; transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--teal); color: var(--teal-light); background: rgba(45,143,143,0.1); }

/* ─── Portfolio Grid ─── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.portfolio-item {
  border-radius: 16px; overflow: hidden; position: relative;
  background: var(--white); border: 1px solid rgba(26,39,68,0.06);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(26,39,68,0.1); }
.portfolio-preview {
  height: 280px; position: relative; overflow: hidden;
}
.portfolio-preview iframe {
  width: 200%; height: 200%; transform: scale(0.5); transform-origin: top left;
  border: none; pointer-events: none;
}
.portfolio-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,39,68,0.6));
  opacity: 0; transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { padding: 24px 28px; }
.portfolio-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.portfolio-info h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  color: var(--navy); margin-bottom: 8px;
}
.portfolio-info p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ─── Process Steps ─── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.process-step { text-align: center; position: relative; }
.process-step::after {
  content: '→'; position: absolute; top: 36px; right: -20px;
  font-size: 20px; color: var(--sand); font-weight: 300;
}
.process-step:last-child::after { display: none; }
.process-number {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  background: var(--teal-glow); color: var(--teal); border: 2px solid rgba(45,143,143,0.2);
}
.process-step h4 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
.process-step p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ─── Contact Form ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px; letter-spacing: 0.3px;
}
.form-input, .form-textarea {
  width: 100%; padding: 14px 16px; background: var(--white);
  border: 1.5px solid rgba(26,39,68,0.1); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  transition: all 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-select {
  width: 100%; padding: 14px 16px; background: var(--white);
  border: 1.5px solid rgba(26,39,68,0.1); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  transition: all 0.2s; outline: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238b92a0'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.contact-info-card {
  background: var(--navy); color: var(--cream); border-radius: 20px;
  padding: 40px 36px; position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 20% 80%, rgba(45,143,143,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.contact-info-item { margin-bottom: 28px; position: relative; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 6px;
}
.contact-info-value {
  font-size: 16px; color: rgba(250,247,242,0.8); line-height: 1.6;
}
.contact-info-value a {
  color: rgba(250,247,242,0.8); text-decoration: none;
  border-bottom: 1px solid rgba(250,247,242,0.15); transition: border-color 0.2s;
}
.contact-info-value a:hover { border-color: var(--teal-light); }

/* ─── Stats Row ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 60px 0; text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  color: var(--teal); line-height: 1;
}
.stat-label {
  font-size: 14px; color: var(--text-light); margin-top: 6px;
}

/* ─── Team ─── */
.team-section { padding: 80px 0; }
.team-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
}
.value-card {
  text-align: center; padding: 32px 24px;
}
.value-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: var(--teal-glow);
}
.value-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--navy); margin-bottom: 8px;
}
.value-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .page-hero { padding: 130px 0 60px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .price-card.featured { transform: none; }
  .team-values { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   THEME SYSTEM — Five switchable aesthetics
   Each theme overrides CSS custom properties on body.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Theme Switcher — Floating Sidebar ─── */
.theme-switcher {
  position: fixed; top: 50%; left: 0; transform: translateY(-50%);
  z-index: 1001;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px;
  background: rgba(20,20,30,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(255,255,255,0.06); border-left: none;
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}
.theme-switcher-label {
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(250,247,242,0.3); writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg); margin-bottom: 4px;
}
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1.5px solid rgba(255,255,255,0.08); border-radius: 10px;
  background: transparent; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.theme-btn:hover {
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255,255,255,0.08);
}
.theme-btn.active {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.theme-btn-text {
  display: none; /* Hidden by default, shown on hover via JS tooltip */
}
.theme-dot {
  width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
/* Tooltip on hover */
.theme-btn::after {
  content: attr(data-label);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: 4px 10px; border-radius: 6px;
  background: rgba(20,20,30,0.9); color: rgba(250,247,242,0.8);
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.5px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(-50%) translateX(-4px);
}
.theme-btn:hover::after {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .theme-switcher {
    top: auto; bottom: 16px; left: 50%; transform: translateX(-50%);
    flex-direction: row; border-radius: 14px; border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 12px; gap: 8px;
  }
  .theme-switcher-label { display: none; }
  .theme-btn { width: 32px; height: 32px; }
  .theme-dot { width: 16px; height: 16px; }
  .theme-btn::after { display: none; }
}

/* ─── Theme: Midnight ─── Dark luxury, amber accents, Cormorant Garamond */
body.theme-midnight {
  --cream: #0c0c10; --cream-dark: #111118; --sand: #8b6b3d; --sand-light: #a07830;
  --navy: #f0e6d3; --navy-light: #d4c4aa; --navy-dark: #08080c;
  --teal: #c4813a; --teal-light: #daa060; --teal-dark: #a06828;
  --teal-glow: rgba(196,129,58,0.12);
  --text: #f0e6d3; --text-light: #b0a898; --text-muted: #6a6060;
  --white: #14141a;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Karla', sans-serif;
  --nav-bg: rgba(12,12,16,0.92); --nav-border: rgba(240,230,211,0.06);
}
body.theme-midnight .nav-toggle span { background: var(--text); }
body.theme-midnight .cta-band { background: #f0e6d3; }
body.theme-midnight .cta-band h2 { color: #0c0c10; }
body.theme-midnight .cta-band p { color: rgba(12,12,16,0.5); }
body.theme-midnight .cta-band .btn-primary { background: #c4813a; }
body.theme-midnight footer { background: #08080c; }
body.theme-midnight .wave-divider path { fill: #14141a; }

/* ─── Theme: Verdant ─── Organic botanical, forest green, Libre Baskerville */
body.theme-verdant {
  --cream: #f4f1ea; --cream-dark: #e8e3d8; --sand: #a8b89a; --sand-light: #c4d4b8;
  --navy: #1a2e1a; --navy-light: #2d4a2d; --navy-dark: #0f1a0f;
  --teal: #3a7d44; --teal-light: #4ea85a; --teal-dark: #2a5e32;
  --teal-glow: rgba(58,125,68,0.12);
  --text: #1a2e1a; --text-light: #4a6048; --text-muted: #7a8a78;
  --white: #faf8f4;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --nav-bg: rgba(244,241,234,0.88); --nav-border: rgba(26,46,26,0.06);
}
body.theme-verdant .nav-toggle span { background: var(--navy); }
body.theme-verdant .wave-divider path { fill: #faf8f4; }

/* ─── Theme: Slate ─── Ultra minimal, black & white, Bebas Neue + Work Sans */
body.theme-slate {
  --cream: #fafafa; --cream-dark: #f0f0f0; --sand: #cccccc; --sand-light: #e0e0e0;
  --navy: #111111; --navy-light: #333333; --navy-dark: #080808;
  --teal: #d94040; --teal-light: #e85656; --teal-dark: #b83030;
  --teal-glow: rgba(217,64,64,0.08);
  --text: #111111; --text-light: #555555; --text-muted: #999999;
  --white: #ffffff;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --nav-bg: rgba(250,250,250,0.9); --nav-border: rgba(0,0,0,0.06);
}
body.theme-slate .section-title { letter-spacing: 2px; text-transform: uppercase; }
body.theme-slate .page-hero h1 { letter-spacing: 2px; text-transform: uppercase; }
body.theme-slate .section-title em { font-style: normal; }
body.theme-slate .page-hero h1 em { font-style: normal; }
body.theme-slate .nav-brand { letter-spacing: 3px; text-transform: uppercase; }
body.theme-slate .nav-toggle span { background: #111; }
body.theme-slate .wave-divider path { fill: #ffffff; }

/* ─── Theme: Neon ─── Dark tech, electric cyan, Syne + Manrope */
body.theme-neon {
  --cream: #0a0e1a; --cream-dark: #0e1220; --sand: #1a2040; --sand-light: #252e50;
  --navy: #e8ecf4; --navy-light: #c8d0e0; --navy-dark: #060810;
  --teal: #00d4ff; --teal-light: #40e0ff; --teal-dark: #00a8cc;
  --teal-glow: rgba(0,212,255,0.1);
  --text: #e8ecf4; --text-light: #8898b8; --text-muted: #4a5878;
  --white: #10142a;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --nav-bg: rgba(10,14,26,0.92); --nav-border: rgba(0,212,255,0.08);
}
body.theme-neon .nav-toggle span { background: var(--text); }
body.theme-neon .section-title em { font-style: normal; font-weight: 800; }
body.theme-neon .page-hero h1 em { font-style: normal; font-weight: 800; }
body.theme-neon .nav-brand { letter-spacing: 1px; font-weight: 800; }
body.theme-neon .cta-band { background: #e8ecf4; }
body.theme-neon .cta-band h2 { color: #0a0e1a; }
body.theme-neon .cta-band p { color: rgba(10,14,26,0.5); }
body.theme-neon .cta-band .btn-primary { background: #00d4ff; color: #0a0e1a; }
body.theme-neon footer { background: #060810; }
body.theme-neon .wave-divider path { fill: #10142a; }
