/* ============================================================
   Emberstone Capital - Tax Planning Homepage Stylesheet
   Scope: index.html only. Other pages continue to use site.css.
   Palette: deep navy, green, white, subtle gold (per landing brief)
   ============================================================ */
:root {
  --navy:        #0B2545;
  --navy-deep:   #071A33;
  --green:       #1E6F4A;
  --green-dark:  #165538;
  --green-soft:  #E6F2EB;
  --gold:        #C9A227;
  --gold-soft:   #F4EBCF;
  --white:       #FFFFFF;
  --off-white:   #F5F7F6;
  --ink:         #1B2430;
  --ink-muted:   #4E5A68;
  --line:        #D9DFE4;
  --cream-text:  #EEF2F5;
  --radius:      10px;
  --shadow:      0 10px 30px rgba(11, 37, 69, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.7;
  padding-bottom: 84px; /* room for the sticky mobile button */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 5vw, 2.3rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
p { margin-bottom: 1rem; }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.top-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 44px; width: auto; }
.brand-name {
  display: none; /* shown from 600px up */
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  white-space: nowrap;
}
.top-cta:hover { background: #d9b33a; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.3;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 6px 18px rgba(30, 111, 74, 0.28); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d9b33a; color: var(--navy); }
.btn-wide { width: 100%; max-width: 420px; }
.btn-support {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}
.btn-support.light { color: #B9C6D6; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  padding: 2.75rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.subhead { font-size: 1.15rem; color: var(--ink-muted); max-width: 640px; margin: 0 auto 1.75rem; }
.support { max-width: 620px; margin: 1.5rem auto 1.25rem; }

/* Check-inspired visual */
.check-visual {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, #EAF4EE 0%, #F7F3E6 100%);
  border: 1px solid #C8D6CD;
  border-radius: 8px;
  padding: 1.1rem 1.25rem 0.9rem;
  text-align: left;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.check-visual::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(11, 37, 69, 0.18);
  border-radius: 5px;
  pointer-events: none;
}
.check-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; }
.check-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-size: 0.95rem;
}
.check-no { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.08em; }
.check-line { display: flex; align-items: baseline; gap: 0.6rem; border-bottom: 1px solid rgba(11, 37, 69, 0.35); padding-bottom: 0.25rem; margin-bottom: 0.7rem; }
.check-label { font-size: 0.72rem; color: var(--ink-muted); white-space: nowrap; line-height: 1.2; }
.check-fill { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: 1rem; }
.check-script { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--navy); font-size: 1.15rem; }
.check-foot { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.3rem; }
.check-foot span { white-space: nowrap; }
.check-note { font-size: 0.82rem; color: var(--ink-muted); max-width: 560px; margin: 0.75rem auto 0; line-height: 1.5; }

/* Promise block */
.promise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: fit-content;
  max-width: 100%;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 0.5rem auto 1.75rem;
}
.section-navy .promise { margin-left: 0; }
.promise-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.promise-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; color: var(--navy); }
.promise-dark .promise-label { color: var(--gold); }
.promise-dark .promise-text { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 3.25rem 0; }
.section-soft { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--cream-text); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--cream-text); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.25rem; }

.callout {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
}
.closing { font-size: 1.1rem; margin: 1.5rem 0 1.25rem; }
.closing.center { text-align: center; margin-top: 2rem; }
.quote-head { font-style: italic; }
.subhead-light { color: var(--gold) !important; font-size: 1.25rem; font-family: Georgia, "Times New Roman", serif; margin-bottom: 1.5rem; }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.75rem 0; }
.compare-col {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.compare-col.highlight { background: var(--green); border-color: var(--green); }
.compare-col h3 { margin-bottom: 0.75rem; }
.compare-col ul { list-style: none; }
.compare-col li { padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; }
.compare-col li::before { content: "\2022"; position: absolute; left: 0.35rem; color: var(--gold); font-weight: 700; }
.compare-col.highlight li::before { content: "\2713"; color: var(--white); left: 0; }

/* Check list */
.check-list { list-style: none; margin: 1.25rem 0 1.75rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RISE grid */
.rise-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.rise-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.rise-letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.rise-word { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); font-weight: 700; margin: 0.25rem 0 0.6rem; }
.rise-step p:last-child { margin-bottom: 0; color: var(--ink-muted); }

/* Numbered steps */
.steps { list-style: none; margin: 1.5rem 0 2rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.step-num {
  flex: 0 0 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps p:last-child { margin-bottom: 0; color: var(--ink-muted); }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--white); }
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 0.85rem; color: var(--green); font-size: 1.4rem; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 1.25rem 1.1rem; color: var(--ink-muted); }

/* Qualifying question + calendar */
.qualify { margin: 1.5rem 0 1.25rem; }
.qualify-q { font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.qualify-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.calendar-wrap { background: var(--white); border-radius: var(--radius); padding: 0.5rem; margin-top: 0.5rem; }
.calendar-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--ink);
}
.calendar-placeholder p { color: var(--ink-muted); }
.placeholder-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--gold-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
}
#ghl-calendar { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); }

/* Final CTA block on the homepage */
.final-cta { margin-top: 1.5rem; }
.final-cta-lead { font-size: 1.05rem; }

/* ---------- Form page (tax-discovery.html) ---------- */
.form-page { padding-bottom: 0; }
.top-link { color: var(--white); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.top-link:hover { color: var(--gold); }
.form-section { padding-top: 2.25rem; }
.form-section h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
.form-section .subhead { margin: 0 0 1.75rem; }
.lead-form { background: var(--off-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.field label, .choice-set legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.95rem; }
.req { color: var(--green); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 111, 74, 0.18); }
.choice-set { border: 0; padding: 0; }
.choice { display: flex; align-items: center; gap: 0.7rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; padding: 0.8rem 0.9rem; margin-bottom: 0.5rem; cursor: pointer; font-weight: 500; }
.choice input { width: 1.2rem; height: 1.2rem; accent-color: var(--green); margin: 0; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.income-field { border-left: 3px solid var(--gold); padding-left: 0.9rem; }
.has-error input, .has-error select, .has-error .choice { border-color: #B42318; }
.form-error { color: #B42318; font-weight: 600; margin: 0.25rem 0 0.75rem; }
.consent-block { margin: 1.25rem 0 1.5rem; }
.consent-item { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.8rem; }
.consent-item input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--green); }
.consent-item label { font-size: 0.82rem; line-height: 1.5; color: var(--ink-muted); }
.consent-disclaimer { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.5; }
.form-alert { border-radius: var(--radius); padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; }
.form-alert-success { background: var(--green-soft); border: 1px solid #BBDCC8; text-align: center; }
.form-alert-success h2 { margin-bottom: 0.5rem; }
.form-alert-error { background: #FDECEA; border: 1px solid #F3B6B0; color: #7A271A; }
.form-alert-error p { margin: 0; color: #7A271A; }
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 2rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #B9C6D6;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #e3c75a; }
.footer-brand { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer-contact { line-height: 1.8; }
.footer-links { margin: 0.5rem 0 1.25rem; }
.disclosure { font-size: 0.82rem; line-height: 1.6; max-width: 680px; margin: 0 auto 0.9rem; }
.footer-fine { font-size: 0.8rem; margin-bottom: 0.35rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.6rem 0.75rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  width: calc(100% - 84px); /* keeps the bottom-right corner clear for the chat widget bubble */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta .btn { width: 100%; padding: 0.85rem 1rem; font-size: 1rem; }
.sticky-cta.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .brand-name { display: inline; }
}
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero { padding: 4.5rem 0 4rem; }
  .section { padding: 4.5rem 0; }
  .compare { grid-template-columns: 1fr 1fr; }
  .rise-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .brand img { height: 52px; }
  .brand-name { font-size: 0.92rem; }
}
@media (min-width: 1000px) {
  .rise-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta { transition: none; }
}
