/* =========================================================
   El Dorado Tax Solutions — Landing Page
   Palette: terracotta + cream + deep green (matches main site)
   Type: Fraunces (display) + Hanken Grotesk (body)
   ========================================================= */

:root {
  --cream:        #f5eee1;
  --cream-2:      #fbf6ec;
  --sand:         #e8ddc8;
  --green:        #2c3b2d;
  --green-deep:   #21301f;
  --terracotta:   #be6a47;
  --terracotta-2: #a4502f;
  --ink:          #2b2620;
  --muted:        #6e6456;
  --cream-on-dark:#f1e9da;
  --gold:         #c99a3f;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -24px rgba(43, 38, 32, 0.45);
  --shadow-sm: 0 6px 22px -12px rgba(43, 38, 32, 0.4);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--terracotta-2); }

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta-2);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0 0 8px; }
.section-title.center { text-align: center; }

.phone-glyph { font-size: 1.05em; line-height: 1; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--terracotta-2); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #8f4326; }

.btn-call { background: var(--green); color: var(--cream-on-dark); }
.btn-call:hover { background: var(--green-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sand); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-2); }
.btn-ghost.on-dark { color: var(--cream-on-dark); border-color: rgba(241, 233, 218, 0.4); }
.btn-ghost.on-dark:hover { border-color: var(--cream-on-dark); color: #fff; }

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  transition: transform 0.3s ease;  /* add */
  will-change: transform;           /* add */
}
.site-header.is-hidden { transform: translateY(-100%); }  /* add */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 120px; width: auto; }
.header-cta-label { color: var(--cream-on-dark); font-size: 0.9rem; font-weight: 600; opacity: 0.85; padding-right: 8px; }

.btn-call { 
    background: var(--terracotta-2); 
    color: #fff; 
}
.btn-call:hover { background: #8f4326; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-glow {
  position: absolute;
  top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(201, 154, 63, 0.30), rgba(190, 106, 71, 0.12) 42%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; margin: 0 0 18px; letter-spacing: -0.01em; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 36ch; }
.hero-copy .lede { max-width: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-actions.center { justify-content: center; }

.trust-strip {
  list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--sand);
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  font-size: 0.92rem; color: var(--muted);
}
.trust-strip strong { color: var(--ink); }
.trust-strip .stars { color: var(--gold); letter-spacing: 1px; }
.trust-strip .stars span { color: var(--muted); letter-spacing: 0; margin-left: 4px; }

/* ---------------- Form card ---------------- */
.form-card {
  background: var(--cream-2);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  scroll-margin-top: 90px;
}
.form-card-head h2 { font-size: 1.5rem; margin: 0 0 6px; }
.form-card-head p { color: var(--muted); margin: 0 0 20px; font-size: 0.96rem; }

.field { margin-bottom: 16px; }
.field label, .field-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
.req { color: var(--terracotta-2); }
.optional { color: var(--muted); font-weight: 400; font-size: 0.85em; }

.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(190, 106, 71, 0.16);
}
.field textarea { resize: vertical; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.13s ease;
}
.chip:hover { border-color: var(--terracotta); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--cream-on-dark); }

.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }

.consent { font-size: 0.72rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }

.form-status { margin-top: 12px; font-size: 0.9rem; font-weight: 600; }
.form-status.error { color: #9a3412; }

.form-success { text-align: center; padding: 18px 8px; }
.success-mark {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--green); color: var(--cream-on-dark);
  border-radius: 50%; font-size: 1.7rem;
}
.form-success h3 { font-size: 1.45rem; margin: 0 0 8px; }
.form-success p { color: var(--muted); margin: 0 0 18px; }

.form-card.is-highlight { animation: cardPulse 1.3s ease; }
@keyframes cardPulse {
  0%   { box-shadow: var(--shadow); }
  28%  { box-shadow: 0 0 0 4px rgba(190, 106, 71, 0.38), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}

/* ---------------- Sections ---------------- */
.section { padding: 70px 0; }

.problems { background: var(--cream-2); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.problems .section-title { max-width: 22ch; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.problem h3 { font-size: 1.2rem; margin: 0 0 8px; }
.problem p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* How it works */
.how .section-title { margin-bottom: 44px; }
.steps { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps li { position: relative; padding-top: 8px; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: #fff; background: var(--terracotta-2); border-radius: 50%;
}
.steps h3 { font-size: 1.25rem; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Relief */
.relief { background: var(--green); color: var(--cream-on-dark); }
.relief .eyebrow { color: var(--gold); }
.relief .section-title { color: #fff; }
.relief-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.relief-copy p { color: rgba(241, 233, 218, 0.82); font-size: 1.05rem; }
.relief-copy em { color: #fff; font-style: italic; }
.relief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.relief-list li {
  position: relative; padding-left: 32px; font-size: 1.05rem; font-weight: 500;
}
.relief-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--green); background: var(--gold);
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
  margin-top: 4px;
}

/* Trust / testimonials */
.trust .section-title { margin-bottom: 40px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  margin: 0; background: var(--cream-2); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 14px; font-size: 1rem; color: var(--ink); }
.testimonial figcaption { font-weight: 700; color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { background: var(--cream-2); border-top: 1px solid var(--sand); }
.faq-inner { max-width: 760px; }
.faq .section-title { margin-bottom: 30px; }
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--sand); border-radius: var(--radius-sm); background: var(--cream); overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-icon { font-family: var(--font-body); font-size: 1.5rem; color: var(--terracotta-2); transition: transform 0.18s ease; line-height: 1; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.22s ease; }
.acc-body p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Final CTA */
.final-cta { background: var(--green-deep); color: var(--cream-on-dark); text-align: center; }
.final-cta-inner { max-width: 640px; }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 12px; }
.final-cta p { color: rgba(241, 233, 218, 0.82); font-size: 1.1rem; margin: 0 0 26px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(241, 233, 218, 0.75); padding: 48px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-brand img { height: 40px; opacity: 0.92; margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 26ch; }
.footer-col h4 { color: var(--cream-on-dark); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }
.footer-col p { margin: 0; }
.footer-col a, .footer-legal a { color: var(--cream-on-dark); }
.footer-legal { border-top: 1px solid rgba(241, 233, 218, 0.16); margin-top: 32px; padding-top: 20px; font-size: 0.82rem; }
.footer-legal p { margin: 0; }

/* Mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--terracotta-2); color: #fff; text-align: center;
  font-weight: 700; text-decoration: none; padding: 14px;
  box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, 0.4);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .problem-grid, .steps, .testimonials { grid-template-columns: 1fr 1fr; }
  .relief-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-cta-label { display: none; }
  .btn-call { padding: 10px 16px; font-size: 0.95rem; }
  .logo img { height: 36px; }
  .hero { padding: 36px 0 44px; }
  .problem-grid, .steps, .testimonials, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .form-card.is-highlight { animation: none !important; }
}