/* ==========================================================================
   Skaggs Tree Service — Design Tokens & Component Styles
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — warm cream / off-white */
  --color-bg: #f7f3e9;
  --color-surface: #fbf8f1;
  --color-surface-2: #ffffff;
  --color-surface-offset: #efe8d6;
  --color-surface-offset-2: #e6dcc3;
  --color-surface-dynamic: #ddd0ac;
  --color-divider: #ded2ae;
  --color-border: #cdbd8f;

  /* Text — deep bark brown/near-black green */
  --color-text: #201d15;
  --color-text-muted: #5c5642;
  --color-text-faint: #948d70;
  --color-text-inverse: #f7f3e9;

  /* Primary Accent — deep forest green */
  --color-primary: #1f4d33;
  --color-primary-hover: #163a26;
  --color-primary-active: #0f2a1b;
  --color-primary-highlight: #d4e0d2;

  /* Secondary Accent — warm wood amber */
  --color-amber: #b9762c;
  --color-amber-hover: #9c611f;
  --color-amber-active: #7c4c17;
  --color-amber-highlight: #f0dcb8;

  /* Fixed hero-on-photo colors — always light, independent of light/dark theme,
     since the hero always sits over a dark photo + gradient overlay */
  --hero-text: #fdfbf5;
  --hero-text-muted: #e9e3d1;
  --hero-accent: #f5b968;

  /* Warning / urgency (storm) — burnt rust */
  --color-warning: #a13d1f;
  --color-warning-hover: #832f16;
  --color-warning-active: #63220f;
  --color-warning-highlight: #ecd3c4;

  /* Success */
  --color-success: #3f7a34;
  --color-success-hover: #2e5c26;
  --color-success-highlight: #d7e6d1;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — tone matched to warm surface */
  --shadow-sm: 0 1px 2px oklch(0.25 0.03 90 / 0.10);
  --shadow-md: 0 6px 16px oklch(0.25 0.03 90 / 0.14);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 90 / 0.20);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #14180f;
  --color-surface: #191d13;
  --color-surface-2: #1e2317;
  --color-surface-offset: #232819;
  --color-surface-offset-2: #2b311f;
  --color-surface-dynamic: #343b25;
  --color-divider: #30361f;
  --color-border: #454d2d;
  --color-text: #eae4d2;
  --color-text-muted: #b3ab8d;
  --color-text-faint: #7d7660;
  --color-text-inverse: #201d15;

  --color-primary: #6fae82;
  --color-primary-hover: #8ec49e;
  --color-primary-active: #a6d3b3;
  --color-primary-highlight: #24352a;

  --color-amber: #e0a054;
  --color-amber-hover: #ecb56f;
  --color-amber-active: #f4c98d;
  --color-amber-highlight: #3c3020;

  --color-warning: #d97a4f;
  --color-warning-hover: #e39572;
  --color-warning-active: #edb090;
  --color-warning-highlight: #3f2a20;

  --color-success: #7fbb6f;
  --color-success-hover: #98cb8a;
  --color-success-highlight: #26331f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

/* ==========================================================================
   Type Scale (fluid clamp)
   ========================================================================== */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ==========================================================================
   Global element styles
   ========================================================================== */

body {
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 640px) {
  .wrap { padding-inline: var(--space-10); }
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

h2.section-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber-hover);
}
[data-theme='light'] .eyebrow { color: var(--color-amber-active); }

.lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
}

a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-amber);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-amber-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: color-mix(in oklab, var(--color-text-inverse) 45%, transparent);
  color: var(--color-text-inverse);
}
.btn-outline:hover {
  background: color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
}
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);
}
.site-header--hidden { transform: translateY(-100%); }
.site-header--scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.15;
  white-space: nowrap;
}
.logo-word small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
@media (min-width: 480px) {
  .logo-mark { width: 42px; height: 42px; }
  .logo-word { font-size: var(--text-lg); }
  .logo-word small { font-size: var(--text-xs); }
}
@media (max-width: 400px) {
  .logo-word small { display: none; }
}

.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--color-primary); }

@media (min-width: 1280px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none !important; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .header-actions { gap: var(--space-3); }
}

.phone-pill {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.phone-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 640px) {
  .phone-pill { display: inline-flex; }
}
.phone-pill:hover { border-color: var(--color-primary); background: var(--color-primary-highlight); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--color-surface-offset); color: var(--color-primary); }
@media (min-width: 1280px) { .mobile-nav { display: none !important; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--hero-text);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.12 0.03 150 / 0.42) 0%, oklch(0.10 0.03 150 / 0.68) 55%, oklch(0.07 0.02 150 / 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16) var(--space-20);
  width: 100%;
}
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: color-mix(in oklab, white 14%, transparent);
  border: 1px solid color-mix(in oklab, white 25%, transparent);
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: var(--space-6);
  color: var(--hero-text);
  text-shadow: 0 2px 20px oklch(0 0 0 / 0.35);
}
.hero h1 em {
  font-style: normal;
  color: var(--hero-accent);
}
.hero .lede {
  color: var(--hero-text-muted);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 12px oklch(0 0 0 / 0.3);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-ctas .btn { font-size: var(--text-base); padding: var(--space-4) var(--space-8); }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: var(--space-6);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: left;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-left: 1px solid color-mix(in oklab, white 20%, transparent);
  padding-left: var(--space-4);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-amber-hover);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.trust-label {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 78%, transparent);
  letter-spacing: 0.02em;
}
.stars { color: var(--color-amber-hover); font-size: var(--text-base); letter-spacing: 1px; }

/* ==========================================================================
   Intro / value prop
   ========================================================================== */
.intro-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); }
}
.intro-copy h2 { font-size: var(--text-2xl); color: var(--color-text); margin-block: var(--space-4) var(--space-6); font-weight: 600; }
.intro-copy p { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.intro-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.intro-media-caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  background: color-mix(in oklab, black 45%, transparent);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  backdrop-filter: blur(6px);
}

.checklist { display: flex; flex-direction: column; gap: var(--space-3); margin-block: var(--space-6); }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text); font-weight: 500; }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-primary); margin-top: 2px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services-header { max-width: 62ch; margin-bottom: var(--space-12); }
.services-header h2 { font-size: var(--text-2xl); font-weight: 600; margin-block: var(--space-4) var(--space-3); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card--feature { grid-column: span 2; grid-row: span 2; }
}

.service-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.service-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-card--feature .service-card-body { padding: var(--space-6); }
.service-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-amber);
  font-weight: 600;
}
.service-card h3 { font-size: var(--text-lg); font-weight: 600; }
.service-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ==========================================================================
   Storm CTA band
   ========================================================================== */
.storm-band {
  position: relative;
  color: var(--hero-text);
  overflow: hidden;
}
.storm-media { position: absolute; inset: 0; z-index: 0; }
.storm-media img { width: 100%; height: 100%; object-fit: cover; }
.storm-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, oklch(0.12 0.03 40 / 0.92) 0%, oklch(0.14 0.03 40 / 0.78) 45%, oklch(0.16 0.03 40 / 0.45) 100%);
}
.storm-inner { position: relative; z-index: 1; max-width: 640px; }
.storm-inner h2 { font-size: var(--text-2xl); font-weight: 600; margin-block: var(--space-4) var(--space-5); }
.storm-inner p { color: var(--hero-text-muted); margin-bottom: var(--space-6); }
.storm-facts { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.storm-fact { display: flex; gap: var(--space-3); align-items: baseline; font-size: var(--text-sm); }
.storm-fact strong { color: var(--hero-accent); font-family: var(--font-display); font-size: var(--text-base); }
.storm-fact span { color: var(--hero-text-muted); }

/* ==========================================================================
   Reputation / trust badges
   ========================================================================== */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (min-width: 700px) {
  .badges-grid { grid-template-columns: repeat(4, 1fr); }
}
.badge-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: left;
}
.badge-icon { width: 28px; height: 28px; color: var(--color-amber); margin-bottom: var(--space-4); }
.badge-value { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-primary); }
.badge-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }

.sample-quotes { margin-top: var(--space-10); display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .sample-quotes { grid-template-columns: repeat(2, 1fr); } }
.sample-quote {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  position: relative;
}
.sample-quote footer {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  font-style: italic;
}

/* ==========================================================================
   Service area
   ========================================================================== */
.area-grid {
  display: grid;
  gap: var(--space-12);
}
@media (min-width: 900px) {
  .area-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.area-list { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.area-chip {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}
.area-map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
}
.area-map-frame svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   Process
   ========================================================================== */
.process-list {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 800px) {
  .process-list { grid-template-columns: repeat(3, 1fr); }
}
.process-step { position: relative; padding-left: var(--space-12); }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
}
.process-step h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.process-step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section { background: var(--color-primary); color: var(--hero-text); border-radius: var(--radius-xl); }
[data-theme='dark'] .contact-section { background: var(--color-surface-offset); }
.contact-grid { display: grid; gap: var(--space-10); padding: clamp(var(--space-8), 5vw, var(--space-16)); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-copy h2 { font-size: var(--text-2xl); font-weight: 600; margin-block: var(--space-4) var(--space-4); }
.contact-copy p { color: var(--hero-text-muted); margin-bottom: var(--space-6); }
.contact-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--hero-text);
  padding: var(--space-4) var(--space-6);
  border: 1px solid color-mix(in oklab, white 30%, transparent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}
.contact-phone-cta:hover { background: color-mix(in oklab, white 10%, transparent); }
.contact-phone-cta svg { width: 24px; height: 24px; }

.contact-detail-list { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-detail { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--hero-accent); }
.contact-detail strong { display: block; font-size: var(--text-sm); }
.contact-detail span { color: var(--hero-text-muted); }

.contact-form {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 500px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  min-height: 44px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); text-align: center; }
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-success-highlight);
  color: var(--color-success-hover);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-12) var(--space-8); }
.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 40ch; }
.footer-col h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-4); color: var(--color-text); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: var(--color-text-muted); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: 0 -4px 16px oklch(0 0 0 / 0.15);
}
.mobile-call-bar svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .mobile-call-bar { display: none; }
}

/* ==========================================================================
   Skip link & scroll reveal
   ========================================================================== */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-4); }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Body bottom padding to account for mobile call bar */
body { padding-bottom: 56px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ==========================================================================
   Floating pitch-video PiP bubble
   ========================================================================== */
.video-pip {
  position: fixed;
  right: var(--space-4);
  bottom: 76px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.video-pip[hidden] { display: none; }
.video-pip.is-hiding { opacity: 0; transform: translateY(12px); pointer-events: none; }

@media (min-width: 900px) {
  .video-pip { bottom: var(--space-5); right: var(--space-5); }
}

.pip-frame {
  position: relative;
  width: 108px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.28);
  border: 2px solid var(--color-surface);
  background: #0a0a0a;
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
@media (min-width: 900px) {
  .pip-frame { width: 160px; }
}
.video-pip[data-state="expanded"] .pip-frame {
  width: min(240px, 62vw);
}
@media (min-width: 900px) {
  .video-pip[data-state="expanded"] .pip-frame { width: 300px; }
}

.pip-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pip-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-surface);
  border: 2px solid var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.25);
}
.pip-close svg { width: 13px; height: 13px; }

.pip-sound {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(0 0 0 / 0.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.pip-sound svg { width: 16px; height: 16px; }
.pip-sound .icon-loud { display: none; }
.video-pip[data-muted="false"] .pip-sound .icon-muted { display: none; }
.video-pip[data-muted="false"] .pip-sound .icon-loud { display: block; }
.video-pip[data-state="expanded"] .pip-sound { display: none; }

.pip-caption {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.2);
  max-width: 200px;
  text-align: right;
}
.video-pip[data-state="expanded"] .pip-caption { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pip-frame { transition: none; }
}
