/* ─── DESIGN TOKENS ─── */
:root,
[data-theme='light'] {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-surface-2: #f2f1ee;
  --color-border: #e0ddd8;
  --color-divider: #ebebeb;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6a67;
  --color-text-faint: #b0aeaa;
  --color-text-inverse: #ffffff;

  /* Brand: Ocean Blue (logo exact) */
  --color-navy: #0d2a4a;
  --color-navy-mid: #1a5a8a;

  /* Brand: Ocean Blue — primary */
  --color-primary: #2E87C8;
  --color-primary-hover: #1d6ea8;
  --color-primary-highlight: #ddeef9;

  /* Brand: Sun Gold (logo exact) */
  --color-accent: #F5A61B;
  --color-accent-hover: #d98e0d;
  --color-accent-highlight: #fef3d8;

  /* Semantic */
  --color-success: #2e7d32;
  --color-error: #c62828;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.13);

  --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;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 2.5vw, 3rem);

  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  --transition: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 72px;
  --top-bar-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme='dark'] {
  --color-bg: #0f1321;
  --color-surface: #161c2e;
  --color-surface-2: #1d2538;
  --color-border: #2a3350;
  --color-divider: #222840;
  --color-text: #e8e6e1;
  --color-text-muted: #8890a8;
  --color-text-faint: #4a5168;
  --color-text-inverse: #0f1321;
  --color-primary: #5aaceb;
  --color-primary-hover: #3d95d9;
  --color-primary-highlight: #0e2a40;
  --color-accent: #F5A61B;
  --color-accent-hover: #ffc044;
  --color-accent-highlight: #2d2010;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1321;
    --color-surface: #161c2e;
    --color-surface-2: #1d2538;
    --color-border: #2a3350;
    --color-divider: #222840;
    --color-text: #e8e6e1;
    --color-text-muted: #8890a8;
    --color-text-faint: #4a5168;
    --color-text-inverse: #0f1321;
    --color-primary: #5aaceb;
    --color-primary-hover: #3d95d9;
    --color-primary-highlight: #0e2a40;
    --color-accent: #F5A61B;
    --color-accent-hover: #ffc044;
    --color-accent-highlight: #2d2010;
  }
}

/* ─── BASE RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
.hidden { display: none !important; }

/* ─── SPLASH ─── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0d2a4a 0%, #0e3f70 50%, #1a5a8a 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash.fade-out { opacity: 0; visibility: hidden; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.splash-logo-img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 24px;
  animation: splash-pulse 1.5s ease infinite;
  background: white;
  padding: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
@keyframes splash-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.95; }
}

/* ─── APP SHELL ─── */
#app {
  display: flex; flex-direction: column;
  min-height: 100dvh;
}

/* ─── TOP BAR ─── */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--top-bar-height);
  padding: 0 var(--space-4);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top-bar-logo { display: flex; align-items: center; gap: var(--space-2); }
.top-bar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 3px;
  flex-shrink: 0;
}
.top-bar-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: background var(--transition);
}
.back-btn:hover { background: var(--color-surface-2); }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

/* ─── SCREENS ─── */
#screens { flex: 1; overflow-y: auto; padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-4)); }
.screen { display: none; }
.screen.active { display: block; }
.screen-header {
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: linear-gradient(160deg, #0d2a4a 0%, #1a5a8a 100%);
  color: white;
}
.screen-h1 { font-size: var(--text-2xl); font-weight: 700; color: #fff; }
.screen-sub { font-size: var(--text-base); color: rgba(255,255,255,0.7); margin-top: var(--space-2); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 340px;
  background: linear-gradient(160deg, #0d2a4a 0%, #0e3f70 55%, #1a5a8a 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="400"%3E%3Ccircle cx="320" cy="80" r="120" fill="rgba(245,166,27,0.09)"/%3E%3Ccircle cx="50" cy="300" r="100" fill="rgba(46,135,200,0.1)"/%3E%3C/svg%3E') no-repeat center/cover;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding: var(--space-10) var(--space-6) var(--space-8);
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-6);
  max-width: 32ch;
}
.hero-waves {
  position: relative; z-index: 2;
  line-height: 0;
}
.hero-waves svg { width: 100%; height: 40px; }

/* ─── SECTIONS ─── */
.section {
  padding: var(--space-8) var(--space-5);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

/* ─── HOW IT WORKS ─── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: var(--space-2);
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-highlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.step-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.step-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}
.step-arrow {
  flex-shrink: 0;
  color: var(--color-text-faint);
  font-size: 18px;
  padding-top: 14px;
}

/* ─── QUICK GRID ─── */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.quick-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.quick-card:hover, .quick-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-surface-2);
}
.quick-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.quick-icon--primary { background: var(--color-accent-highlight); color: var(--color-accent); }
.quick-icon--teal { background: var(--color-primary-highlight); color: var(--color-primary); }
.quick-icon--blue { background: #ddeeff; color: #1565c0; }
[data-theme='dark'] .quick-icon--blue { background: #1a2a40; color: #64b5f6; }
.quick-icon--gold { background: #fff8e1; color: #f57f17; }
[data-theme='dark'] .quick-icon--gold { background: #2d2010; color: #ffca28; }

/* ─── PROMO BANNER ─── */
.promo-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5);
  background: linear-gradient(135deg, #0d2a4a 0%, #1a5a8a 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.promo-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.promo-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  margin-top: var(--space-1);
}
.promo-code {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-top: var(--space-1);
}
.promo-code strong { font-weight: 700; }

/* ─── REVIEWS ─── */
.reviews {
  display: flex; flex-direction: column; gap: var(--space-3);
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--color-accent); font-size: var(--text-base); margin-bottom: var(--space-2); letter-spacing: 2px; }
.review-text { font-size: var(--text-sm); color: var(--color-text); line-height: 1.55; font-style: italic; }
.review-author { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); font-weight: 600; }

/* ─── INSTALL BANNER ─── */
.install-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent-highlight);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.install-text {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text);
  font-size: var(--text-sm);
  min-width: 0;
  flex: 1;
}
.install-text svg { flex-shrink: 0; color: var(--color-accent); }
.install-text p { min-width: 0; }
.install-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.install-dismiss {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.install-dismiss:hover { background: rgba(0,0,0,0.08); color: var(--color-text); }

/* ─── SERVICES ─── */
.services-list {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-6) var(--space-5) 0;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card--featured {
  border-color: var(--color-accent);
  background: var(--color-accent-highlight);
}
[data-theme='dark'] .service-card--featured {
  background: var(--color-accent-highlight);
  border-color: var(--color-accent);
}
.service-badge {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  align-self: flex-start;
  letter-spacing: 0.05em;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.service-icon--teal { background: var(--color-primary-highlight); color: var(--color-primary); }
.service-icon--blue { background: #ddeeff; color: #1565c0; }
[data-theme='dark'] .service-icon--blue { background: #1a2a40; color: #64b5f6; }
.service-icon--gold { background: #fff8e1; color: #f57f17; }
[data-theme='dark'] .service-icon--gold { background: #2d2010; color: #ffca28; }
.service-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.service-info p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }
.cta-section {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3);
}
.cta-text {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ─── DELIVERY ─── */
.delivery-steps {
  display: flex; flex-direction: column; gap: 0;
}
.delivery-step {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding-bottom: var(--space-6);
  position: relative;
}
.delivery-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px; top: 48px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--color-border);
}
.d-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), #0a2a5a);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 1;
}
.d-step-content { padding-top: var(--space-2); }
.d-step-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.d-step-content p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

.areas-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.area-chip {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.area-chip--active {
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.areas-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.areas-note a { color: var(--color-primary); font-weight: 600; }

/* ─── CONTACT ─── */
.contact-cards {
  display: flex; flex-direction: column; gap: var(--space-3);
}
.contact-card {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.contact-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon--primary { background: var(--color-accent-highlight); color: var(--color-accent); }
.contact-icon--teal { background: var(--color-primary-highlight); color: var(--color-primary); }
.contact-icon--blue { background: #ddeeff; color: #1565c0; }
[data-theme='dark'] .contact-icon--blue { background: #1a2a40; color: #64b5f6; }
.contact-info { flex: 1; overflow: hidden; }
.contact-label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: var(--space-1); }
.contact-arrow { color: var(--color-text-faint); flex-shrink: 0; }

.hours-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
}
.hours-time { font-weight: 600; color: var(--color-primary); }
.hours-divider { height: 1px; background: var(--color-divider); }

.social-row {
  display: flex; gap: var(--space-3);
}
.social-btn {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.social-btn:hover { color: var(--color-primary); background: var(--color-primary-highlight); transform: translateY(-2px); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,166,27,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-highlight); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.full-width { width: 100%; }

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: space-around;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  height: var(--nav-height);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  transition: color var(--transition);
  padding: 0 var(--space-2);
  min-width: 0;
}
.nav-item.active { color: var(--color-primary); }
.nav-item.active svg { stroke: var(--color-primary); }
.nav-item--order { color: var(--color-text-muted); }
.nav-order-btn {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-accent) 0%, #d98e0d 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(245,166,27,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: var(--space-1);
}
.nav-item--order:hover .nav-order-btn,
.nav-item--order:active .nav-order-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(245,166,27,0.55);
}
.nav-item span { line-height: 1; }
