/* ============================================================
   SWAMP WASH CHRISTMAS LIGHTS — STYLES
   Color system: deep evergreen, rich Christmas red, warm cream,
   white, warm gold accents. Used deliberately, not everywhere.
   ============================================================ */

:root {
  /* Brand palette */
  --evergreen-950: #0b1f18;
  --evergreen-900: #0f2b22;
  --evergreen-800: #163b2f;
  --evergreen-700: #1f4d3d;
  --red-700: #9c2b30;
  --red-600: #b3323a;
  --cream-100: #faf6ee;
  --cream-50: #fdfbf6;
  --white: #ffffff;
  --gold-500: #c69a3f;
  --gold-400: #d8b463;
  --ink-900: #191712;
  --ink-700: #3d3a34;
  --ink-500: #6b6659;
  --line: rgba(25, 23, 18, 0.1);

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-md: 0 12px 32px rgba(11, 31, 24, 0.14);
  --shadow-lg: 0 24px 60px rgba(11, 31, 24, 0.22);
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--evergreen-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-700); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }
.center-text { text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--evergreen-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(179, 50, 58, 0.35);
}
.btn-primary:hover { background: var(--red-700); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 24, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-line1 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-line2 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gold-400);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav ul {
  display: flex;
  gap: 28px;
}
.primary-nav a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:not(.nav-cta):hover {
  color: var(--white);
  border-color: var(--gold-500);
}
.nav-cta { padding: 10px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--evergreen-950);
  background-image: url("../images/hero/christmas-light-installation-hero.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 31, 24, 0.55) 0%, rgba(11, 31, 24, 0.45) 40%, rgba(11, 31, 24, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
  max-width: 780px;
}

.hero-kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--gold-400);
  margin-bottom: 22px;
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.trust-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Sections (shared)
   ------------------------------------------------------------ */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center-text, .center-text .section-head { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-600);
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-lede { font-size: 1.05rem; color: var(--ink-500); margin-bottom: 0; }

/* ------------------------------------------------------------
   We Handle Everything
   ------------------------------------------------------------ */
.handle-everything { background: var(--evergreen-900); }
.handle-everything .eyebrow { color: var(--gold-400); }
.handle-everything h2, .handle-everything .section-lede { color: var(--white); }
.handle-everything .section-lede { color: rgba(255, 255, 255, 0.75); }

.handle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.handle-list li {
  background: var(--evergreen-900);
  padding: 34px 30px;
  display: flex;
  gap: 18px;
}
.handle-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-500);
  flex-shrink: 0;
}
.handle-list h3 {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.handle-list p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  margin: 0;
}

/* ------------------------------------------------------------
   What We Decorate
   ------------------------------------------------------------ */
.decorate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.decorate-grid li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--evergreen-900);
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 14px 24px;
  border-radius: 999px;
}

.decorate-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.decorate-photos li {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.decorate-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.decorate-photos span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(11, 31, 24, 0.65), transparent);
}

/* ------------------------------------------------------------
   Gallery
   ------------------------------------------------------------ */
.gallery-section { background: var(--cream-100); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-item.featured { grid-column: span 2; }

.gallery-item picture,
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.gallery-item img:hover { transform: scale(1.04); }

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(11, 31, 24, 0.65), transparent);
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 18, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
}

/* ------------------------------------------------------------
   Before / After — draggable comparison slider
   ------------------------------------------------------------ */
.ba-compare {
  max-width: 860px;
  margin: 0 auto;
}
.ba-compare-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ba-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-img-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.ba-tag {
  position: absolute;
  top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--white);
  pointer-events: none;
  z-index: 2;
}
.ba-tag-before { left: 16px; background: rgba(11, 31, 24, 0.78); }
.ba-tag-after { right: 16px; background: var(--red-600); }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(11, 31, 24, 0.25);
  pointer-events: none;
  z-index: 3;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--evergreen-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(255, 255, 255, 0.35);
  cursor: ew-resize;
  z-index: 4;
  touch-action: none;
}
.ba-handle:hover { background: var(--cream-100); }
.ba-handle:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   How It Works
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 8px; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--evergreen-900);
  color: var(--gold-400);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------
   Quote section
   ------------------------------------------------------------ */
.quote-section {
  background: var(--evergreen-900);
  background-image: radial-gradient(circle at 15% 20%, rgba(198, 154, 63, 0.12), transparent 45%);
}
.quote-section h2, .quote-section .section-lede { color: var(--white); }
.quote-section .section-lede { color: rgba(255, 255, 255, 0.75); }
.quote-section .section-head { margin-left: auto; margin-right: auto; text-align: center; }

.quote-form-frame {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.quote-form-frame iframe { display: block; width: 100%; border-radius: var(--radius-sm); }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--evergreen-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red-600);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ------------------------------------------------------------
   Service area
   ------------------------------------------------------------ */
.service-area { background: var(--cream-100); }
.service-area h2 { margin-bottom: 16px; }

/* ------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------ */
.final-cta {
  background: linear-gradient(135deg, var(--red-700), var(--red-600));
  color: var(--white);
}
.final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.final-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 30px; }
.final-cta .btn-primary {
  background: var(--white);
  color: var(--red-700);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.final-cta .btn-primary:hover { background: var(--cream-100); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--evergreen-950);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-title {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.footer-sub { font-size: 0.9rem; margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.footer-contact a { transition: color 0.15s ease; }
.footer-contact a:hover { color: var(--gold-400); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--gold-400); }
.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------
   Sticky mobile CTA
   ------------------------------------------------------------ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  text-align: center;
  background: var(--red-600);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .handle-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .primary-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    background: var(--evergreen-950);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    overflow-y: auto;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .primary-nav a:not(.nav-cta) { font-size: 1.1rem; display: block; }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }

  .mobile-sticky-cta { display: block; }
  .section { padding-bottom: 100px; }
  .final-cta { padding-bottom: 96px; }
}

@media (max-width: 720px) {
  .handle-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .decorate-photos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero-content { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item.featured { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
