/* =========================================================
   Har Ghar Advisor — Design System
   Palette: Deep teal (trust/institutional) + warm marigold gold (household warmth)
   Type: Fraunces (headline serif, personality) + Inter (body, clean/legible)
   ========================================================= */

:root {
  --teal-900: #0B3D39;
  --teal-800: #0F4F49;
  --teal-700: #14625A;
  --teal-100: #E3EFED;
  --teal-50:  #F3F8F7;
  --gold-600: #B9791E;
  --gold-500: #C98A2C;
  --gold-100: #F7EBD6;
  --cream:    #FAF7F1;
  --ink:      #1C2624;
  --ink-soft: #4A5957;
  --line:     #DDE6E3;
  --white:    #FFFFFF;
  --success:  #2F7D5A;
  --danger:   #B3452F;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1120px;
  --radius: 6px;
}

* { 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;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--teal-700); }
img { max-width: 100%; display: block; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--teal { background: var(--teal-900); color: var(--teal-50); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--tint { background: var(--teal-50); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }

.eyebrow {
  color: var(--gold-600);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: var(--white); }
.btn-primary:hover { background: var(--gold-600); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--teal-800); }
.section--teal .btn-outline { color: var(--white); }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-900);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.brand-text { line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.brand-tag { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; float:left; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--teal-700); }
.nav-cta { margin-left: 4px; color: var(--white) !important;}
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--teal-900); }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0 0 0 30%;
    background: var(--teal-900);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { color: var(--white); font-size: 1.1rem; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-trust .stat-num { font-family: var(--font-head); font-size: 1.7rem; color: var(--teal-800); display: block; }
.hero-trust .stat-label { font-size: 0.82rem; color: var(--ink-soft); }

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-panel h3 { margin-bottom: 14px; }
.hero-panel ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.hero-panel li { margin-bottom: 10px; }

/* ---- Partner strip ---- */
.partner-strip { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.partner-strip .label { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 14px; text-align: center; }
.partner-row {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.partner-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--teal-800);
  background: var(--teal-50);
}

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.benefit-card h3 { margin-bottom: 10px; }
.benefit-card p { color: var(--ink-soft); margin-bottom: 0; }
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

/* ---- Steps (real sequence, numbering justified) ---- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold-600);
}
.step-num::before { content: counter(step, decimal-leading-zero); }

/* ---- Testimonials ---- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial-who { font-weight: 600; color: var(--teal-800); font-style: normal; margin-top: 12px; }
.testimonial-who span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }

/* ---- Tables (insurance types) ---- */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); }
.info-table th, .info-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.info-table th { background: var(--teal-50); color: var(--teal-900); font-family: var(--font-head); font-weight: 600; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  font-family: var(--font-head);
  font-size: 1.08rem;
  cursor: pointer;
  color: var(--teal-900);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--gold-600); }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--teal-900); }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field-error { border-color: var(--danger) !important; }
.error-text { color: var(--danger); font-size: 0.82rem; margin-top: 4px; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.95rem; }
.alert-error { background: #FBEAE5; color: var(--danger); border: 1px solid #EAC5B9; }
.alert-success { background: #E7F3EC; color: var(--success); border: 1px solid #BFE0CC; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--teal-100); margin: 0 auto 26px; }

/* ---- Footer ---- */
.site-footer { background: var(--teal-900); color: var(--teal-100); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--teal-100); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(243,248,247,0.7);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-disclaimer { font-size: 0.78rem; color: rgba(243,248,247,0.55); max-width: 640px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-800);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.page-hero {
  padding: 52px 0 40px;
  background: var(--teal-50);
  border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--ink-soft); font-size: 1.05rem; }
.divider { height: 1px; background: var(--line); border: none; margin: 48px 0; }

/* ---- Supplemental: registration / contact / about / testimonials pages ---- */
.lead-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.lead-form .form-row { display: block; margin-bottom: 18px; }
.lead-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .lead-form .form-grid-2 { grid-template-columns: 1fr; } }
.lead-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--teal-900); }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel],
.lead-form input[type=date], .lead-form input[type=file], .lead-form select, .lead-form textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem; background: var(--white); color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px var(--teal-100);
}
.optional-tag { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }
.consent-row { margin: 22px 0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 400; cursor: pointer; }
.checkbox-label input { width: auto; margin-top: 3px; }
.honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.success-badge {
  width: 64px; height: 64px; line-height: 64px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-800); font-size: 1.8rem;
  margin: 0 auto 20px; font-weight: 700;
}
.next-steps-card {
  text-align: left; background: var(--teal-50); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 32px; margin: 32px 0;
}
.next-steps-card ol { padding-left: 20px; color: var(--ink-soft); }
.next-steps-card li { margin-bottom: 8px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.check-list--x li::before { content: '✕'; color: var(--danger); }

.callout-box { background: var(--gold-100); border-left: 4px solid var(--gold-600); border-radius: var(--radius); padding: 22px 26px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testimonial-card p { font-style: italic; color: var(--ink); font-size: 0.95rem; }
.testimonial-who { font-weight: 600; color: var(--teal-800); font-size: 0.88rem; margin-top: 14px; }

.contact-alt { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.95rem; }
