/*
Theme Name: XmasLight Pro
Theme URI: https://yoursite.com
Author: Your Company
Author URI: https://yoursite.com
Description: Professional Christmas lighting installation services - powered smart lighting for your home.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: xmaslight-pro
Tags: dark, business, responsive, custom-colors, christmas-lighting
*/

/* ── Design tokens (mirror the controller app exactly) ─────────── */
:root {
  --bg0: #0d1117;
  --bg1: #161b22;
  --bg2: #21262d;
  --bg3: #30363d;
  --border: #30363d;
  --border-bright: #484f58;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --red: #ff4d6d;
  --red-dim: #3d1a20;
  --green: #39d353;
  --green-dim: #1a3d20;
  --amber: #f7c948;
  --amber-dim: #3d320a;
  --blue: #58a6ff;
  --blue-dim: #1a2840;
  --purple: #bc8cff;
  --purple-dim: #2d1a40;
  --teal: #2dd4bf;
  --teal-dim: #0a2e2b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --tr: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg0);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--text); }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.gradient-text {
  background: linear-gradient(135deg, var(--red), var(--amber), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); }

/* ── Layout containers ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.section-title { margin-bottom: 12px; }
.section-lead { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }

/* ── Site header / nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13,17,23,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ── Header rows ── */
.hdr-row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Desktop: single row, 64px tall */
.hdr-row-main {
  height: 64px;
}

/* Mobile-only row: hidden on desktop */
.hdr-row-mobile {
  display: none;
}

/* Mobile nav drawer: hidden by default */
.hdr-nav-drawer {
  display: none;
  background: var(--bg1);
  border-top: 1px solid var(--border);
}
.hdr-nav-drawer.open {
  display: block;
}
.site-nav-mobile {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav-mobile a {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--tr);
  text-decoration: none;
  display: block;
}
.site-nav-mobile a:hover { color: var(--text); background: var(--bg2); }

.hdr-logo { flex-shrink: 0; }

.site-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--red), var(--amber), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
  display: block;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.site-nav a {
  padding: 6px 11px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--tr);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.current-menu-item,
.site-nav a.current_page_item { color: var(--text); }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--tr);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { filter: brightness(1.1); color: #fff; }

.mobile-menu-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tr);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: var(--bg3); border-color: var(--border-bright); color: var(--text); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--red); color: #fff !important; border-color: var(--red); }
.btn-primary:hover { filter: brightness(1.1); }

.btn-outline {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-muted);
}
.btn-outline:hover { background: var(--bg2); color: var(--text); border-color: var(--text-muted); }

.btn-green { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.btn-green:hover { background: rgba(57,211,83,0.18); color: var(--green); }

.btn-amber { background: var(--amber-dim); border-color: var(--amber); color: var(--amber); }
.btn-amber:hover { background: rgba(247,201,72,0.18); color: var(--amber); }

.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--tr);
}
.card:hover { border-color: var(--border-bright); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.stat-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.stat-tile .val {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-tile .lbl {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Feature badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  gap: 5px;
}
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.badge-amber { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber); }
.badge-blue { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple); }
.badge-teal { background: var(--teal-dim); color: var(--teal); border: 1px solid var(--teal); }

/* ── Hero section ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,77,109,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(57,211,83,0.06) 0%, transparent 50%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(247,201,72,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.hero-title { margin-bottom: 20px; }
.hero-desc { font-size: 1.125rem; margin-bottom: 36px; max-width: 500px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
}

.hero-app-mock {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.app-mock-bar {
  background: rgba(13,17,23,0.9);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

.app-mock-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex: 1;
  text-align: center;
}

.app-mock-body { padding: 16px; }

.mock-circuit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: var(--tr);
}
.mock-circuit-row.on { border-color: var(--green); }

.mock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mock-name { font-size: 13px; font-weight: 500; flex: 1; }
.mock-zone { font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); }

.mock-toggle {
  width: 36px; height: 20px; border-radius: 10px;
  position: relative; flex-shrink: 0;
}
.mock-toggle.on { background: var(--green); }
.mock-toggle.off { background: var(--bg3); border: 1px solid var(--border); }
.mock-toggle::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  transition: var(--tr);
}
.mock-toggle.on::after { right: 3px; }
.mock-toggle.off::after { left: 3px; }

/* ── Services section ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--tr);
}
.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { font-size: 14px; }

/* ── How it works ───────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 24px 20px;
}

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin: 0 auto 16px;
}

.step-card h4 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 14px; }

/* ── Pricing section ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--tr);
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-dim);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.pricing-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features .na {
  color: var(--text-dim);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Quote form ─────────────────────────────────────────────────── */
.quote-section {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quote-info {
  padding: 48px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.quote-form-wrap { padding: 48px; }

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 10px 14px;
  transition: var(--tr);
  outline: none;
  appearance: none;
}

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

.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-select option { background: var(--bg2); }

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

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

.form-check-group { display: flex; flex-direction: column; gap: 10px; }
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}
.form-check input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial-stars {
  color: var(--amber);
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 14px; }
.author-location { font-size: 12px; color: var(--text-dim); }

/* ── Gallery ────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  transition: var(--tr);
}
.gallery-item:hover { border-color: var(--border-bright); transform: scale(1.01); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 14px 12px;
  background: linear-gradient(transparent, rgba(13,17,23,0.9));
  font-size: 13px;
  font-weight: 500;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--tr);
}
.faq-item:hover { border-color: var(--border-bright); }

.faq-question {
  width: 100%;
  background: var(--bg1);
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--tr);
}
.faq-question:hover { background: var(--bg2); }

.faq-arrow {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform var(--tr);
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg2);
  border-top: 0px solid var(--border);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  border-top-width: 1px;
}
.faq-answer p { padding: 18px 20px; margin: 0; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
}

.footer-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: var(--tr); }
.footer-links a:hover { color: var(--text); }

.footer-contact { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.footer-contact strong { color: var(--text); display: block; font-size: 13px; margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); margin: 0; }

/* ── WordPress core overrides ───────────────────────────────────── */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--radius-lg); border: 1px solid var(--border); }

.wp-block-quote {
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.wp-block-quote p { color: var(--text-muted); font-style: italic; }
.wp-block-quote cite { font-size: 13px; color: var(--text-dim); }

.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.entry-content li { margin-bottom: 6px; }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Alert / notice strip ───────────────────────────────────────── */
.notice-strip {
  background: var(--amber-dim);
  border-bottom: 1px solid var(--amber);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
}

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-info {
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 32px;
  }
  .quote-form-wrap { padding: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .container { padding: 0 16px; }
  /* Mobile header: hide desktop nav + CTA, show mobile row */
  .hdr-row-main { height: auto; padding: 10px 16px; }
  .hdr-cta-desktop { display: none !important; }
  .site-nav { display: none !important; }
  .hdr-row-mobile {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 10px;
    gap: 10px;
  }
  /* Nav drawer hidden until toggled */
  .hdr-nav-drawer { display: none !important; }
  .hdr-nav-drawer.open { display: block !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .quote-info { padding: 24px 20px; }
  .quote-form-wrap { padding: 24px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero { padding: 72px 0 52px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .quote-info { padding: 20px 16px; }
  .quote-form-wrap { padding: 20px 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .stat-tile .val { font-size: 2rem; }
  .pricing-card { padding: 24px 18px; }
  .testi-card { padding: 20px; }
  .card { padding: 20px; }
  .form-check-group { gap: 8px; }
  .form-check { font-size: 13px; }
}

/* ── WordPress pagination ───────────────────────────────────── */
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
  text-decoration: none; transition: var(--tr);
  font-family: var(--font-mono);
}
.nav-links a:hover { background: var(--bg3); border-color: var(--border-bright); color: var(--text); }
.nav-links .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ── WP search form override ────────────────────────────────── */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { flex-shrink: 0; }

/* ── Entry content typography ───────────────────────────────── */
.entry-content { color: var(--text-muted); line-height: 1.8; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--text); }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--text); }
.entry-content a { color: var(--blue); }
.entry-content a:hover { color: var(--text); }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--amber);
}
.entry-content pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.entry-content pre code { background: none; border: none; padding: 0; color: var(--text-muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content table th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.entry-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); }

/* ── WP admin bar adjustment ────────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Prevent horizontal scroll site-wide */
html, body { overflow-x: hidden; max-width: 100%; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   FRONT-PAGE COMPONENT CLASSES
   These replace the inline styles that were blocking light-mode.
   Add these to the bottom of style.css, BEFORE the light-mode block.
   ═══════════════════════════════════════════════════════════════ */
 
/* ── Mock stat grid (hero app mockup) ── */
.mock-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.mock-stat-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.mock-stat-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.mock-stat-lbl {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
}
.mock-val-green  { color: var(--green); }
.mock-val-text   { color: var(--text); }
.mock-val-amber  { color: var(--amber); }
.mock-val-purple { color: var(--purple); }
 
/* ── Stats bar ── */
.stats-bar {
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.stat-tile .val.val-green  { color: var(--green); }
.stat-tile .val.val-blue   { color: var(--blue); }
.stat-tile .val.val-amber  { color: var(--amber); }
.stat-tile .val.val-purple { color: var(--purple); }
 
/* ── Section helpers ── */
.section-bg-alt {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header-center { text-align: center; margin-bottom: 48px; }
.section-label-center  { justify-content: center; display: flex; }
.section-subtext       { max-width: 520px; margin: 12px auto 0; }
.section-cta-center    { text-align: center; margin-top: 32px; }
 
/* ── Service card price ── */
.service-price-wrap { margin-top: 14px; }
 
/* ── Pricing ── */
.btn-full        { width: 100%; justify-content: center; margin-top: 4px; }
.pricing-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 28px;
}
.link-blue { color: var(--blue); }
.link-blue:hover { color: var(--text); }
 
/* ── Gallery ── */
.gallery-placeholder {
  background: var(--bg2);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.gallery-location {
  color: var(--text-dim);
  font-size: 11px;
}
 
/* ── Quote info panel ── */
.quote-info-title { margin-bottom: 16px; }
 
.reasons-list { list-style: none; margin-bottom: 32px; }
.reason-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.reason-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.reason-desc { font-size: 13px; color: var(--text-muted); }
 
.reason-green  { color: var(--green); }
.reason-blue   { color: var(--blue); }
.reason-amber  { color: var(--amber); }
.reason-purple { color: var(--purple); }
 
/* ── Contact box inside quote info ── */
.contact-box {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.contact-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.contact-box-phone {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.contact-phone-link { color: var(--green); }
.contact-phone-link:hover { color: var(--green); opacity: .85; }
.contact-box-hours { font-size: 13px; color: var(--text-muted); }
 
/* ── Form feedback messages ── */
.form-success {
  padding: 20px;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.form-success-title { color: var(--green); font-weight: 600; margin-bottom: 4px; }
.form-success-desc  { font-size: 14px; color: var(--text-muted); }
 
.form-error {
  padding: 14px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--red);
}
 
/* ── Required star ── */
.required-star { color: var(--red); }
 
/* ── Photo upload zone ── */
.photo-drop-zone {
  background: var(--bg2);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
}
.photo-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.photo-icon      { font-size: 28px; margin-bottom: 8px; }
.photo-hint-main { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.photo-hint-sub  { font-size: 12px; color: var(--text-dim); }
.label-optional  { color: var(--text-dim); font-weight: 400; }
 
/* ── Form footer note ── */
.form-privacy-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   Applied when <body> has the class "light-mode" (toggled by JS)
   To tweak any color, find the variable below and adjust its value.
   ═══════════════════════════════════════════════════════════════ */
 
body.light-mode {
 
  /* ── Core backgrounds (dark → light) ──────────────────────────
     --bg0: page background (was near-black, now off-white)
     --bg1: card / footer / drawer background
     --bg2: input fields, secondary surfaces, FAQ answers
     --bg3: hover states, darkest surface
  ── */
  --bg0: #f4f6f9;
  --bg1: #ffffff;
  --bg2: #eef0f4;
  --bg3: #dde1e8;
 
  /* ── Borders ───────────────────────────────────────────────────
     Lightened so they're visible but subtle on white/light surfaces
  ── */
  --border: #d0d7e0;
  --border-bright: #b0bac8;
 
  /* ── Text ──────────────────────────────────────────────────────
     --text:       main headings and body copy  (was near-white)
     --text-muted: secondary text, paragraphs   (was grey)
     --text-dim:   placeholder / least important (was dark grey)
  ── */
  --text: #0d1117;
  --text-muted: #3d4756;
  --text-dim: #6b7685;
 
  /* ── Accent colors — kept vivid so they pop on light backgrounds
     The "-dim" variants are the subtle tinted backgrounds behind
     badges and tags. Lightened so they don't look muddy on white.
  ── */
  --red: #e03050;
  --red-dim: #fde8ec;
 
  --green: #1a8c3a;
  --green-dim: #e6f7eb;
 
  --amber: #b07800;
  --amber-dim: #fdf3d6;
 
  --blue: #1a6fcc;
  --blue-dim: #e3eeff;
 
  --purple: #7c3aed;
  --purple-dim: #f0e8ff;
 
  --teal: #0d7a6e;
  --teal-dim: #e0f7f5;
 
  /* ── Shadows — softer on light backgrounds ── */
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}
 
/* ── Hardcoded color overrides (these don't use variables) ─────── */
 
/* Page base */
body.light-mode {
  background-color: #f4f6f9;
  color: #0d1117;
}
 
/* Header — was rgba(13,17,23,0.93) hardcoded */
body.light-mode .site-header {
  background: rgba(255,255,255,0.97) !important;
  border-bottom-color: #d0d7e0 !important;
}
 
/* Mobile nav drawer */
body.light-mode .hdr-nav-drawer {
  background: #ffffff;
  border-top-color: #d0d7e0;
}
 
/* Nav links */
body.light-mode .site-nav a,
body.light-mode .site-nav-mobile a {
  color: #3d4756 !important;
}
body.light-mode .site-nav a:hover,
body.light-mode .site-nav a.current-menu-item,
body.light-mode .site-nav-mobile a:hover {
  color: #0d1117 !important;
  background: #eef0f4;
}
 
/* Hamburger */
body.light-mode .mobile-menu-toggle {
  color: #3d4756;
  border-color: #d0d7e0;
}
 
/* Notice strip */
body.light-mode .notice-strip {
  background: #fdf3d6;
  border-bottom-color: #b07800;
  color: #7a5200;
}
 
/* Hero gradient overlay — tone down on light bg */
body.light-mode .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(224,48,80,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(26,140,58,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(176,120,0,0.04) 0%, transparent 50%);
}
 
/* Hero tag */
body.light-mode .hero-tag {
  background: #fde8ec;
  border-color: #e03050;
  color: #e03050;
}
 
/* App mock inside hero */
body.light-mode .hero-app-mock {
  background: #ffffff;
  border-color: #d0d7e0;
}
body.light-mode .app-mock-bar {
  background: #f4f6f9;
  border-bottom-color: #d0d7e0;
}
 
/* Cards */
body.light-mode .card,
body.light-mode .service-card,
body.light-mode .testimonial-card,
body.light-mode .pricing-card {
  background: #ffffff;
  border-color: #d0d7e0;
}
body.light-mode .card:hover,
body.light-mode .service-card:hover {
  border-color: #b0bac8;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
 
/* Featured pricing card */
body.light-mode .pricing-card.featured {
  border-color: #e03050;
  box-shadow: 0 0 0 1px #fde8ec;
}
 
/* Stat tiles */
body.light-mode .stat-tile {
  background: #eef0f4;
  border-color: #d0d7e0;
}
 
/* Step numbers */
body.light-mode .step-number {
  background: #eef0f4;
  border-color: #d0d7e0;
  color: #e03050;
}
 
/* Quote / contact form section */
body.light-mode .quote-section {
  background: #ffffff;
  border-color: #d0d7e0;
}
body.light-mode .quote-info {
  background: #eef0f4;
  border-right-color: #d0d7e0;
  border-bottom-color: #d0d7e0;
}
 
/* Form inputs */
body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode .form-textarea {
  background: #ffffff;
  border-color: #d0d7e0;
  color: #0d1117;
}
body.light-mode .form-input:focus,
body.light-mode .form-select:focus,
body.light-mode .form-textarea:focus {
  border-color: #1a6fcc;
  box-shadow: 0 0 0 3px #e3eeff;
}
body.light-mode .form-label {
  color: #3d4756;
}
 
/* FAQ */
body.light-mode .faq-item {
  border-color: #d0d7e0;
}
body.light-mode .faq-question {
  background: #ffffff;
  color: #0d1117;
}
body.light-mode .faq-question:hover {
  background: #eef0f4;
}
body.light-mode .faq-answer {
  background: #f4f6f9;
  border-top-color: #d0d7e0;
}
body.light-mode .faq-arrow {
  color: #6b7685;
}
 
/* Footer */
body.light-mode .site-footer {
  background: #ffffff;
  border-top-color: #d0d7e0;
}
body.light-mode .footer-bottom {
  border-top-color: #d0d7e0;
}
body.light-mode .footer-links a {
  color: #3d4756;
}
body.light-mode .footer-links a:hover {
  color: #0d1117;
}
body.light-mode .footer-contact {
  color: #3d4756;
}
body.light-mode .footer-contact strong {
  color: #0d1117;
}
 
/* Gallery items */
body.light-mode .gallery-item {
  background: #eef0f4;
  border-color: #d0d7e0;
}
body.light-mode .gallery-item-label {
  background: linear-gradient(transparent, rgba(244,246,249,0.92));
  color: #0d1117;
}
 
/* Divider */
body.light-mode .divider {
  border-top-color: #d0d7e0;
}
 
/* Pagination */
body.light-mode .nav-links a,
body.light-mode .nav-links span {
  background: #eef0f4;
  border-color: #d0d7e0;
  color: #3d4756;
}
body.light-mode .nav-links a:hover {
  background: #dde1e8;
  border-color: #b0bac8;
  color: #0d1117;
}
 
/* Entry content */
body.light-mode .entry-content {
  color: #3d4756;
}
body.light-mode .entry-content h2,
body.light-mode .entry-content h3,
body.light-mode .entry-content strong {
  color: #0d1117;
}
body.light-mode .entry-content code {
  background: #eef0f4;
  border-color: #d0d7e0;
  color: #b07800;
}
body.light-mode .entry-content pre {
  background: #eef0f4;
  border-color: #d0d7e0;
}
body.light-mode .entry-content table th {
  border-bottom-color: #d0d7e0;
  color: #6b7685;
}
body.light-mode .entry-content table td {
  border-bottom-color: #d0d7e0;
  color: #3d4756;
}
 
/* WP block quote */
body.light-mode .wp-block-quote {
  background: #eef0f4;
  border-left-color: #e03050;
}
body.light-mode .wp-block-image img {
  border-color: #d0d7e0;
}
 
/* Scroll reveal — make sure it works in light mode too */
body.light-mode .reveal {
  opacity: 0;
  transform: translateY(24px);
}
body.light-mode .reveal.visible {
  opacity: 1;
  transform: none;
}