/* Magic City Christmas Lights — marketing site styles.
   Deep-navy luxury palette, warm-white glow accents, gold serif headings.
   Mobile-first; phone and tablet viewports are the primary targets. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-var.woff2") format("woff2");
}

:root {
  --bg: #070a17;
  --bg-raised: #0b1128;
  --bg-card: #0d142e;
  --line: rgba(201, 164, 92, 0.22);
  --gold: #c9a45c;
  --gold-bright: #e9d3a1;
  --warm: #ffedc2;
  --text: #eae7de;
  --text-dim: #aab0c2;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  /* Room for the sticky call bar on small screens. */
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.25rem; color: var(--gold); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: var(--warm); }

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

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.measure { max-width: var(--measure); }

section { padding: 4rem 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--text); }
.dim { color: var(--text-dim); }

/* ---------- Buttons (≥48px touch targets) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn-gold {
  background: linear-gradient(180deg, #e2c288, var(--gold));
  color: #241a08;
  box-shadow: 0 0 24px rgba(201, 164, 92, 0.35);
}

.btn-gold:hover {
  color: #241a08;
  box-shadow: 0 0 36px rgba(233, 211, 161, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--warm); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.header-phone {
  display: none;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0.4rem;
}

.header-phone:hover { color: var(--warm); }

.header-cta { min-height: 48px; padding: 0.55rem 1.2rem; font-size: 0.98rem; }

@media (min-width: 640px) {
  .header-phone { display: inline-flex; align-items: center; gap: 0.4rem; }
  .wordmark { font-size: 1.3rem; }
}

/* ---------- Hero with animated C9 string ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 4.5rem;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(255, 237, 194, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(201, 164, 92, 0.08), transparent 65%),
    var(--bg);
}

.hero-lights {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-inner { text-align: center; }

.hero h1 { margin-bottom: 0.6rem; }

.hero .lead {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--text-dim);
}

.hero-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--warm);
  margin: 1.4rem 0 0.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-urgency {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--gold);
}

/* C9 bulb twinkle. Each .bulb group contains a .glow ellipse. */
.bulb .glow {
  animation: twinkle 3.4s ease-in-out infinite;
  transform-origin: center;
}

.bulb:nth-of-type(4n)   .glow { animation-delay: -0.6s; animation-duration: 3.1s; }
.bulb:nth-of-type(4n+1) .glow { animation-delay: -1.7s; }
.bulb:nth-of-type(4n+2) .glow { animation-delay: -2.5s; animation-duration: 3.9s; }
.bulb:nth-of-type(4n+3) .glow { animation-delay: -1.1s; animation-duration: 2.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bulb .glow { animation: none; opacity: 0.85; }
  .btn { transition: none; }
}

/* ---------- Section shells ---------- */

.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2.2rem; }

/* ---------- Included / promise cards ---------- */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .card-grid-5 { grid-template-columns: repeat(5, 1fr); }
                             .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.card h3 { margin-bottom: 0.35rem; font-size: 1.12rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; }

.card .glyph {
  display: inline-block;
  color: var(--warm);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 8px rgba(255, 237, 194, 0.55));
}

/* ---------- How it works ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.steps h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--gold-bright); }
.steps p { color: var(--text-dim); font-size: 0.97rem; margin: 0; }

/* ---------- Pricing anchor ---------- */

.price-figure {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 10vw, 5rem);
  color: var(--warm);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255, 237, 194, 0.35);
  margin: 0.6rem 0 0.2rem;
}

.price-unit { font-size: 0.35em; color: var(--gold); font-weight: 500; }

.price-note { color: var(--text-dim); max-width: 52ch; }

.includes-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) { .includes-list { grid-template-columns: repeat(2, 1fr); } }

.includes-list li { padding-left: 1.6rem; position: relative; color: var(--text); }

.includes-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- Guarantee ---------- */

.guarantee {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 120% at 50% -30%, rgba(255, 237, 194, 0.08), transparent 60%),
    var(--bg-card);
  padding: 2.2rem 1.6rem;
  text-align: center;
}

.guarantee blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  color: var(--warm);
  margin: 0 auto 0.6rem;
  max-width: 26ch;
}

/* ---------- Service areas ---------- */

.area-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 820px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }

.area-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: border-color 120ms ease, color 120ms ease;
}

.area-grid a:hover { border-color: var(--gold); color: var(--warm); }

/* ---------- Lead form ---------- */

.estimate-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.4rem;
  max-width: 34rem;
  margin-inline: auto;
}

@media (min-width: 640px) { .estimate-panel { padding: 2.5rem 2.4rem; } }

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: var(--radius);
}

.field textarea { min-height: 104px; resize: vertical; }

.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-note { font-size: 0.88rem; color: var(--text-dim); margin-top: 0.9rem; text-align: center; }

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}

.form-status.ok { color: var(--warm); }
.form-status.err { color: #f2a9a9; }

/* Honeypot — visually removed, still in the DOM for bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 3rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.footer-grid { display: grid; gap: 2rem; }

@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer h3 { font-size: 1rem; color: var(--gold); margin-bottom: 0.6rem; }

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }

.site-footer a { color: var(--text-dim); text-decoration: none; padding-block: 0.15rem; display: inline-block; }
.site-footer a:hover { color: var(--warm); }

.footer-legal { margin-top: 2.2rem; font-size: 0.85rem; }

/* ---------- Sticky tap-to-call (phones / small tablets) ---------- */

.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 10, 23, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

.call-bar .btn { width: 100%; min-height: 54px; font-size: 1.1rem; }

@media (min-width: 900px) { .call-bar { display: none; } }

/* ---------- Neighborhood pages ---------- */

.page-hero { padding: 3rem 0 2.5rem; }

.page-hero .hero-lights { margin-bottom: 0.5rem; }

.breadcrumbs { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-dim); }

.area-body h2 { font-size: 1.45rem; margin-top: 2rem; }

.cta-band {
  text-align: center;
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.cta-band .hero-ctas { margin-top: 1.4rem; }
