/* ============================================================
   Lake Travis Youth Mulch Fundraiser
   Aesthetic: Warm editorial / organic craft
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --moss:       #1C3A0C;
  --moss-mid:   #2A5214;
  --sage:       #5A7C3C;
  --leaf:       #8BB85E;
  --bark:       #6B3D1E;
  --bark-light: #9B6040;
  --soil:       #2E1608;
  --straw:      #F3E8C8;
  --parchment:  #E8D69E;
  --cream:      #FAF6EE;
  --ink:        #16120A;
  --muted:      #7A6E5C;
  --border:     #D4C496;
  --red:        #A83222;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ── Subtle grain overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeUp 0.65s 0.00s ease both; }
.anim-2 { animation: fadeUp 0.65s 0.12s ease both; }
.anim-3 { animation: fadeUp 0.65s 0.22s ease both; }
.anim-4 { animation: fadeUp 0.65s 0.32s ease both; }
.anim-5 { animation: fadeUp 0.65s 0.42s ease both; }

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
  background: var(--moss);
  color: var(--straw);
  padding: 2.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal panel */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,0.03) 55%);
  pointer-events: none;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.org-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
  margin-bottom: 1.75rem;
}

.headline-eyebrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1;
  opacity: 0.75;
  display: block;
  margin-bottom: 0.05em;
}

.headline-main {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(3.25rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

.header-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(243, 232, 200, 0.3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.tag-accent {
  background: var(--bark);
  border-color: var(--bark);
}

/* Ghost year watermark */
.header-bg-year {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 1;
  color: rgba(243, 232, 200, 0.055);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── PRICING SECTION ──────────────────────────────────────── */
.pricing-section {
  background: var(--straw);
  padding: 2.75rem 2rem;
}

.section-eyebrow {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.eyebrow-label {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bark);
}

.eyebrow-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

.price-cards {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.price-card {
  background: var(--cream);
  border-top: 3px solid var(--bark);
  padding: 1.1rem 1rem 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.price-card:hover {
  background: #fff;
  transform: translateY(-2px);
}

.price-card:active {
  transform: translateY(0);
}

.price-card-amount {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-card-unit {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.price-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bark);
  margin-top: 0.4rem;
  line-height: 1.35;
}

.pricing-meta {
  max-width: 680px;
  margin: 1.1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mulch-note {
  max-width: 680px;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--bark);
  background: rgba(107, 61, 30, 0.07);
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.6;
}

/* ── DEADLINE BANNER ──────────────────────────────────────── */
.deadline-banner {
  background: var(--bark);
  color: var(--straw);
  padding: 1.4rem 2rem;
}

.deadline-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.deadline-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.65;
  flex-basis: 100%;
}

.deadline-date {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1;
}

.deadline-note {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.8;
}

/* ── FORM SECTION ─────────────────────────────────────────── */
.form-section {
  background: var(--cream);
  padding: 3rem 2rem;
}

.form-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.form-heading {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--moss);
  margin-bottom: 0.4rem;
}

.form-subheading {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Field groups */
.field-group {
  margin-bottom: 1.8rem;
}

.field-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.field-label .opt {
  font-weight: 300;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 0.45rem 0 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  border-bottom-color: var(--moss);
}

input::placeholder,
textarea::placeholder {
  color: #C8BB9A;
  font-weight: 300;
}

textarea {
  resize: vertical;
  min-height: 72px;
  padding-top: 0.5rem;
}

/* Service selection cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.service-card {
  border: 1.5px solid var(--border);
  padding: 0.85rem 0.8rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card:has(input:checked) {
  border-color: var(--moss);
  background: rgba(28, 58, 12, 0.05);
}

.sc-price {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.sc-unit {
  font-size: 0.72rem;
  color: var(--muted);
}

.sc-name {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--moss);
  margin-top: 0.35rem;
  line-height: 1.3;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: stretch;
  width: fit-content;
}

.stepper-btn {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.15s, background 0.15s;
}

.stepper-btn:hover {
  border-color: var(--moss);
  background: rgba(28, 58, 12, 0.04);
}

.stepper-btn:first-child { border-right: none; }
.stepper-btn:last-child  { border-left: none; }

.stepper input[type="number"] {
  width: 70px;
  height: 46px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  -moz-appearance: textfield;
  padding: 0;
  transition: border-color 0.15s;
}

.stepper input[type="number"]::-webkit-inner-spin-button,
.stepper input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.stepper input[type="number"]:focus {
  outline: none;
  border-color: var(--moss);
}

.price-display {
  margin-top: 0.65rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--moss);
  min-height: 1.6rem;
  letter-spacing: -0.01em;
}

/* Contact chips */
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-chip {
  padding: 0.42rem 1.1rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  transition: all 0.15s;
  user-select: none;
}

.contact-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-chip:has(input:checked) {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--straw);
}

/* Conditional fields */
.conditional-field {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.conditional-field.visible {
  max-height: 130px;
  opacity: 1;
}

/* Errors */
.field-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.35rem;
  display: none;
}

.field-error.visible { display: block; }

/* Submit */
.submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--moss);
  color: var(--straw);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  margin-top: 0.5rem;
  -webkit-appearance: none;
  transition: background 0.2s;
}

.submit-btn:hover   { background: var(--moss-mid); }
.submit-btn:active  { background: var(--soil); }
.submit-btn:disabled { background: var(--muted); cursor: not-allowed; }

/* Thank-you state */
#thank-you {
  padding: 3rem 0;
  text-align: center;
}

.ty-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--straw);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1.25rem;
}

.ty-heading {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--moss);
  margin-bottom: 0.4rem;
}

.ty-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
}

/* ── FAQ SECTION ──────────────────────────────────────────── */
.faq-section {
  background: var(--straw);
  padding: 2.75rem 2rem 3rem;
}

.faq-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.faq-heading {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--moss);
  margin-bottom: 1.25rem;
}

details {
  border-bottom: 1px solid var(--parchment);
}

summary {
  list-style: none;
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  -webkit-tap-highlight-color: transparent;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--sage);
  flex-shrink: 0;
}

details[open] summary::after { content: '\2212'; }

details p {
  padding-bottom: 0.9rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--moss);
  color: var(--straw);
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.75;
  line-height: 2;
}

.footer-inner a {
  color: var(--leaf);
  text-decoration: none;
}

.footer-inner a:hover { text-decoration: underline; }

/* ── Google Maps PlaceAutocompleteElement ─────────────────── */
#address-autocomplete {
  width: 100%;
}

gmp-place-autocomplete {
  width: 100%;
  display: block;
  background: var(--cream);
  border: none;
  outline: none;
  box-shadow: none;
}

/* Pierce shadow DOM via ::part() */
gmp-place-autocomplete::part(input) {
  width: 100%;
  background: var(--cream);
  border: none;
  border-bottom: 1.5px solid var(--border);
  padding: 0.45rem 0 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  box-shadow: none;
}

gmp-place-autocomplete::part(input):focus {
  border-bottom-color: var(--moss);
}

gmp-place-autocomplete::part(input)::placeholder {
  color: #C8BB9A;
  font-weight: 300;
}

/* Legacy .pac dropdown (if shown) */
.pac-container {
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  border-radius: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 560px) {
  .price-cards,
  .service-cards {
    grid-template-columns: 1fr;
  }

  .deadline-inner {
    gap: 0.3rem 1rem;
  }
}
