/* =====================================================================
   Teller County Christmas Lights — styles
   Mobile-first. Colors and spacing live in the :root block.
   ===================================================================== */

:root {
  --green-900: #0f2a1d;
  --green-800: #16382a;
  --green-700: #1f4d39;
  --green-600: #2a6a4e;
  --red-600: #b5302a;
  --red-700: #962520;
  --gold-400: #e9c46a;
  --cream: #faf7f0;
  --cream-2: #f1ece0;
  --ink: #1b1f1d;
  --ink-soft: #4a524d;
  --line: #ddd6c6;
  --white: #ffffff;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 42, 29, 0.08);
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5rem; color: var(--green-900); }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); }

small, .muted { color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--red-600); color: var(--white); }
.btn-primary:hover { background: var(--red-700); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: var(--white); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.95rem; background: var(--red-600); color: var(--white); white-space: nowrap; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: wait; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green-900);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand span { color: var(--gold-400); }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--white); }
.nav a:not(.btn) { display: none; }
@media (min-width: 760px) {
  .nav a:not(.btn) { display: inline; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(233,196,106,0.18), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-800));
  color: var(--white);
  padding: 0 0 3rem;
}
.hero-photo {
  position: relative;
  max-height: 52vh;
  min-height: 220px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 52vh;
  object-fit: cover;
  object-position: center 60%;
}
/* Soft fade so the photo melts into the green instead of a hard edge */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(15,42,29,0), var(--green-900));
  pointer-events: none;
}
.hero h1 { color: var(--white); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
}
.lead {
  font-size: 1.15rem;
  max-width: 38rem;
  color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.hero-points li::before { content: "✓ "; color: var(--gold-400); }
@media (min-width: 760px) {
  .hero { padding: 0 0 4.5rem; }
  .hero-photo { margin-bottom: 3rem; }
  .hero-points { grid-template-columns: repeat(3, auto); gap: 1.5rem; }
}

/* ---------- Sections ---------- */

.section { padding: 3rem 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark a { color: var(--gold-400); }
.section-intro { max-width: 42rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
@media (min-width: 760px) { .section { padding: 4.5rem 0; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* ---------- Estimate ---------- */

.estimate-grid { display: grid; gap: 1.25rem; max-width: 820px; }

.estimate-contact {
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.estimate-contact .form-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .estimate-contact .form-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.estimate-inputs .form-error { margin-top: 1rem; }
.estimate-inputs .btn-block { margin-top: 1rem; }
.req { color: var(--red-600); font-weight: 700; }
.required-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.75rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.75rem 0 0;
}
.requester {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--cream-2);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin: 0 0 1rem;
}

fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
fieldset:last-child { margin-bottom: 0; }
legend { font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-row label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}
.choice-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-row label:has(input:checked) {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}
.choice-row label:has(input:focus-visible) { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.tree-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.number-field { display: grid; gap: 0.3rem; font-size: 0.9rem; }
.number-field span { display: grid; line-height: 1.2; }
.number-field small { color: var(--ink-soft); font-size: 0.8rem; }
.number-field input {
  width: 100%;
  padding: 0.6rem;
  font-size: 1.05rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.field-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0.6rem 0 0; }

/* Collapsible panel under the "house posts" question */
.posts-panel {
  margin-top: 0.9rem;
  padding: 1rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sub-legend { font-weight: 600; font-size: 0.95rem; margin: 0 0 0.5rem; }
.posts-panel .field-note + .sub-legend,
.posts-panel .choice-row + .sub-legend { margin-top: 1rem; }
.posts-row { grid-template-columns: repeat(2, 1fr); max-width: 320px; margin-bottom: 1.1rem; }
.posts-row .number-field input { background: var(--white); }

.panel-disclaimer {
  font-size: 0.88rem;
  color: var(--green-900);
  background: rgba(233,196,106,0.22);
  border-left: 3px solid var(--gold-400);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin: 0 0 1rem;
}
.tree-groups { display: grid; gap: 1rem; }
@media (min-width: 700px) { .tree-groups { grid-template-columns: 1fr 1fr; } }
.tree-group-title { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 0.4rem; }
.tree-group .posts-row { margin-bottom: 0; max-width: none; }

/* Wrap-style picture cards */
.wrap-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.wrap-card {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
}
.wrap-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.wrap-card:has(input:checked) { border-color: var(--green-700); box-shadow: 0 0 0 2px rgba(31,77,57,0.15); }
.wrap-card:has(input:focus-visible) { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.wrap-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: var(--green-800);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.wrap-styles-2 { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
.deck-posts-row { grid-template-columns: 1fr; max-width: 160px; }
.wrap-name { font-weight: 600; font-size: 0.95rem; }
.wrap-detail { font-size: 0.8rem; color: var(--ink-soft); }

.estimate-result { text-align: left; }
.result-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.25rem; }
.result-price { font-size: clamp(2rem, 7vw, 2.6rem); font-weight: 700; color: var(--green-900); margin: 0 0 0.75rem; line-height: 1.1; }
.result-breakdown { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.92rem; border-top: 1px solid var(--line); }
.result-breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.result-breakdown li span:last-child { white-space: nowrap; font-weight: 600; }
.result-breakdown li.deposit { color: var(--ink-soft); }
.result-breakdown li.deposit span:last-child { font-weight: 500; }
.result-note { font-size: 0.86rem; color: var(--ink-soft); }
.result-fineprint { font-size: 0.8rem; color: var(--ink-soft); margin: 0.75rem 0 0; text-align: center; }

/* Optional discounts inside the result box */
.discounts { margin: 0 0 1rem; padding-top: 0.25rem; }
.discount-row { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 480px) { .discount-row { grid-template-columns: repeat(3, 1fr); } }
.discount-card {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  text-align: center;
  user-select: none;
}
.discount-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.discount-card:has(input:checked) { border-color: var(--green-700); background: var(--green-700); color: var(--white); }
.discount-card:has(input:checked) .discount-detail { color: var(--gold-400); }
.discount-card:has(input:focus-visible) { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.discount-name { font-weight: 600; font-size: 0.95rem; }
.discount-detail { font-size: 0.82rem; color: var(--ink-soft); }
.discount-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(233,196,106,0.22);
  border-left: 3px solid var(--gold-400);
  border-radius: 6px;
}
.discount-result-label { font-size: 0.9rem; color: var(--green-900); }
.discount-result-price { font-weight: 700; font-size: 1.15rem; color: var(--green-900); white-space: nowrap; }
.fee-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.6rem 0 0; }

/* ---------- Quote request form ---------- */

.quote-request { margin-top: 1.5rem; }
.form-intro { color: var(--ink-soft); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.field > span { font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); }
.field input.invalid, .field select.invalid { border-color: var(--red-600); }
.field input[type="file"] { padding: 0.5rem; background: var(--cream); }
.file-hint { font-size: 0.82rem; }

.estimate-summary {
  margin: 1.25rem 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--cream-2);
  border-radius: 8px;
  font-size: 0.95rem;
}
.phone-check {
  font-size: 0.9rem;
  color: var(--green-900);
  background: rgba(233,196,106,0.22);
  border-left: 3px solid var(--gold-400);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin: 0 0 1.25rem;
}
.form-contact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.95rem;
}
.form-contact p { margin: 0; }
.form-contact-title { font-weight: 600; margin-bottom: 0.25rem !important; }
.color-help { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.link-btn {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 2px solid var(--green-700);
  border-radius: 999px;
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}
.link-btn:hover { background: var(--green-700); color: var(--white); }
.form-error { color: var(--red-700); font-weight: 600; margin: 0 0 0.75rem; }
.quote-thanks { border-color: var(--green-600); }
.quote-thanks h3 { color: var(--green-700); }

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

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 2.75rem;
}
.step-card {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
/* Number badge */
.step-card::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
}
.step-card h3 { margin-bottom: 0.4rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* String of little lights hanging over the top edge of each card.
   Drawn entirely with CSS gradients: a wire plus four colored bulbs that repeat. */
.step-lights {
  position: absolute;
  top: -6px;
  left: 14px;
  right: 14px;
  height: 16px;
  background-image:
    radial-gradient(circle 3px at 7px 10px,  #e63946 98%, transparent),
    radial-gradient(circle 3px at 21px 10px, #f4c95d 98%, transparent),
    radial-gradient(circle 3px at 35px 10px, #2a9d8f 98%, transparent),
    radial-gradient(circle 3px at 49px 10px, #4895ef 98%, transparent),
    radial-gradient(circle 7px at 7px 10px,  rgba(230,57,70,0.28), transparent),
    radial-gradient(circle 7px at 21px 10px, rgba(244,201,93,0.35), transparent),
    radial-gradient(circle 7px at 35px 10px, rgba(42,157,143,0.28), transparent),
    radial-gradient(circle 7px at 49px 10px, rgba(72,149,239,0.28), transparent),
    linear-gradient(to bottom, transparent 5px, #5a5a5a 5px, #5a5a5a 6px, transparent 6px);
  background-size: 56px 16px;
  background-repeat: repeat-x;
  pointer-events: none;
}

/* Arrows between the cards: down on phones, right on wide screens, hidden in the 2-column middle. */
.step-card:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -2.35rem;
  transform: translateX(-50%);
  color: var(--red-600);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .step-card:not(:last-child)::after { display: none; }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.25rem; }
  .step-card:not(:last-child)::after {
    display: block;
    content: "→";
    left: auto;
    right: -1.95rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

.steps-notice {
  text-align: center;
  max-width: 46rem;
  margin: 2rem auto 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Lights ---------- */

.lights-grid { display: grid; gap: 2rem; }
.light-group h3 small { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; margin-left: 0.4rem; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.swatches-5 { grid-template-columns: repeat(3, 1fr); max-width: 920px; }
@media (min-width: 760px) { .swatches-5 { grid-template-columns: repeat(5, 1fr); } }
.swatch { margin: 0; }
.swatch-img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top; /* crop from the bottom so houses line up across photos */
  border-radius: 10px;
  background: var(--green-800);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
}
.swatch-img.swatch-tall { aspect-ratio: 2 / 3; object-position: center; }
.swatch figcaption { margin-top: 0.4rem; font-size: 0.92rem; font-weight: 600; }

/* ---------- Included ---------- */

.included-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.included-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  align-content: start;
  gap: 0.2rem;
}
.included-grid strong { color: var(--green-900); }
.included-grid span { color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 700px) { .included-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .included-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Service area ---------- */

.towns {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.towns li {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.6rem; max-width: 50rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-700); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* ---------- Contact / footer ---------- */

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.contact-inner p { margin: 0; color: rgba(255,255,255,0.9); }

.privacy { padding: 2.5rem 0; }
.privacy h2 { font-size: 1.25rem; }
.privacy p { max-width: 50rem; font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.site-footer { padding: 1.75rem 0; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer p { margin: 0.2rem 0; }
