/* =========================================================================
   theme.css — Johnson Family Law & Mediation — Reference Design
   Layered on top of Bootstrap 5.3 (loaded first via CDN).

   Brand: Poppins · navy #262261 · teal #35C8C6 · deep teal #31708C.
   Ported from the design-canvas export. Bootstrap is themed through its own
   CSS variables; a small set of signature classes carry the distinctive bits.
   ========================================================================= */

/* ---- 1. Design tokens (single source of truth) ----------------------- */
:root {
  /* Palette */
  --brand-navy:       #262261;   /* headings / ink / primary button */
  --brand-navy-2:     #1B1A45;   /* text on teal buttons */
  --brand-teal:       #35C8C6;   /* accent / hover borders / CTA-on-dark */
  --brand-teal-2:     #7FE3E0;   /* teal hover (on dark) */
  --brand-teal-deep:  #31708C;   /* links / icons / deep accent / btn hover */
  --brand-green:      #2E9E9B;   /* eyebrow / kicker */
  --brand-body:       #3B3B58;   /* body text */
  --brand-muted:      #6A6A8E;   /* secondary text */
  --brand-muted-2:    #5A5A7C;   /* card body text */
  --brand-line:       #E2EFED;   /* hairlines / card borders */
  --brand-line-in:    #D8E8E6;   /* input borders */
  --brand-mint:       #EFF9F8;   /* soft tint background */
  --brand-soft:       #F6FBFB;   /* section alt background */
  --brand-teal-tint:  #E3F5F4;   /* icon-circle background */
  --brand-surface:    #FFFFFF;

  /* Type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --fs-body:       16px;
  --fw-head:       600;

  --fs-h1:         46px;   /* interior page-header H1 */
  --fs-h2:         36px;   /* major section headings */
  --fs-h3:         28px;   /* service-row / sub headings */
  --fs-h4:         20px;
  --fs-h5:         17px;
  --fs-h6:         15px;

  --fs-display-5:  48px;   /* Home hero H1 */
  --fs-display-6:  34px;

  --fs-lead:       17px;
  --container:     1140px;
  --container-pad: 24px;
  --prose-max:     820px;

  /* Shape */
  --radius:     16px;

  /* Buttons — ported: pill, 2px border, navy primary */
  --btn-font:      1rem;
  --btn-pad-y:     .9375rem;   /* 15px */
  --btn-pad-x:     2rem;       /* 32px */
  --btn-border:    2px;
  --btn-radius:    999px;
  --btn-sm-font:   .9375rem;   /* 15px */
  --btn-sm-pad-y:  .6875rem;   /* 11px */
  --btn-sm-pad-x:  1.5rem;     /* 24px */

  /* Rhythm */
  --section-y: 96px;

  /* ---- 2. Map onto Bootstrap variables ------------------------------- */
  --bs-primary: var(--brand-navy);
  --bs-primary-rgb: 38, 34, 97;
  --bs-body-color: var(--brand-body);
  --bs-body-bg: var(--brand-surface);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--fs-body);
  --bs-body-line-height: 1.65;
  --bs-emphasis-color: var(--brand-navy);
  --bs-secondary-color: var(--brand-muted);
  --bs-border-color: var(--brand-line);
  --bs-link-color: var(--brand-teal-deep);
  --bs-link-color-rgb: 49, 112, 140;
  --bs-link-hover-color: var(--brand-navy);
  --bs-border-radius: var(--radius);
  --bs-btn-border-radius: var(--btn-radius);
}

/* ---- 3. Type scale & layout (tuned to source) ------------------------ */
body { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
input, select, textarea { accent-color: var(--brand-teal-deep); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  color: var(--brand-navy);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }
h6, .h6 { font-size: var(--fs-h6); }
.display-5 { font-size: var(--fs-display-5); }
.display-6 { font-size: var(--fs-display-6); }
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { line-height: 1.12; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--brand-body); text-wrap: pretty; }

.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
  max-width: var(--container);
  padding-inline: var(--container-pad);
}

.kicker {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--brand-green); display: block;
}

/* ---- 4. Components ---------------------------------------------------- */
.btn {
  --bs-btn-font-size: var(--btn-font); --bs-btn-font-weight: 600; --bs-btn-line-height: 1.2;
  --bs-btn-padding-y: var(--btn-pad-y); --bs-btn-padding-x: var(--btn-pad-x);
  --bs-btn-border-width: var(--btn-border); --bs-btn-border-radius: var(--btn-radius);
}
.btn-lg {
  --bs-btn-font-size: var(--btn-font);
  --bs-btn-padding-y: var(--btn-pad-y); --bs-btn-padding-x: var(--btn-pad-x);
  --bs-btn-border-radius: var(--btn-radius);
}
.btn-sm {
  --bs-btn-font-size: var(--btn-sm-font);
  --bs-btn-padding-y: var(--btn-sm-pad-y); --bs-btn-padding-x: var(--btn-sm-pad-x);
  --bs-btn-border-radius: var(--btn-radius);
}
.btn-primary {
  --bs-btn-bg: var(--brand-navy); --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-bg: var(--brand-teal-deep); --bs-btn-hover-border-color: var(--brand-teal-deep);
  --bs-btn-active-bg: var(--brand-teal-deep); --bs-btn-active-border-color: var(--brand-teal-deep);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-navy); --bs-btn-border-color: var(--brand-teal);
  --bs-btn-hover-bg: var(--brand-mint); --bs-btn-hover-color: var(--brand-navy);
  --bs-btn-hover-border-color: var(--brand-teal);
}
/* Bright-teal CTA used on dark bands */
.btn-teal {
  --bs-btn-font-weight: 600;
  --bs-btn-bg: var(--brand-teal); --bs-btn-border-color: var(--brand-teal);
  --bs-btn-color: var(--brand-navy-2);
  --bs-btn-hover-bg: var(--brand-teal-2); --bs-btn-hover-border-color: var(--brand-teal-2);
  --bs-btn-hover-color: var(--brand-navy-2);
}
/* Outline-on-dark (CTA bands, footer) */
.btn-outline-light {
  --bs-btn-border-color: rgba(255,255,255,.5); --bs-btn-color: #fff;
  --bs-btn-hover-bg: rgba(255,255,255,.12); --bs-btn-hover-border-color: rgba(255,255,255,.5);
  --bs-btn-hover-color: #fff;
}

/* Sticky, blurred navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-line);
  padding-top: .5rem; padding-bottom: .5rem;
}
.navbar .nav-link {
  font-weight: 500; font-size: 15px; color: var(--brand-muted);
  border-radius: 999px; padding: .5rem .9rem;
}
.navbar .nav-link:hover { color: var(--brand-navy); background: var(--brand-mint); }
.navbar .nav-link.active { color: var(--brand-navy); font-weight: 600; background: var(--brand-mint); }
.brand-name { font-family: var(--font-head); font-weight: 600; color: var(--brand-navy); }

.card { border-color: var(--brand-line); border-radius: var(--radius); }

.py-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.bg-soft { background: var(--brand-soft); }
.bg-tint { background: var(--brand-mint); }
.bg-deep { background: var(--brand-navy); color: #fff; }
/* soft page-header wash used on interior pages */
.page-header-wash { background: linear-gradient(180deg, var(--brand-mint), #FDFEFE); }

/* ---- 4b. Reusable building blocks ------------------------------------ */
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-mint); color: var(--brand-teal-deep);
}
.feature-icon.lg { width: 76px; height: 76px; border-radius: 20px; }
.feature-icon.circle { border-radius: 999px; background: var(--brand-teal-tint); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list i, .check-list svg { color: var(--brand-green); flex: none; margin-top: 2px; }

.step-card { background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 24px; height: 100%; }
.step-num { font-family: var(--font-head); font-weight: 700; color: var(--brand-teal-deep); }

/* Dark rounded CTA band (navy→teal gradient) */
.cta-band {
  background: linear-gradient(115deg, var(--brand-navy), var(--brand-teal-deep));
  color: #fff; border-radius: 22px; padding: clamp(36px, 6vw, 64px);
}
.cta-band h2, .cta-band .h2 { color: #fff; }

/* Framed portrait (rounded rect, teal border) */
.portrait-round {
  width: 100%; max-width: 340px; border-radius: 20px;
  border: 3px solid var(--brand-teal);
  box-shadow: 0 18px 40px -18px rgba(38,34,97,.35);
}

.prose { max-width: var(--prose-max); margin-inline: auto; }
.prose p { line-height: 1.8; }
.prose h2 { margin-top: 2.2rem; }

/* ---- 5. Signature components ----------------------------------------- */

/* Hero — white panel floating over a mint gradient + faint logo watermark.
   (No photo, so verify.sh's hero-photo containment check is intentionally
   skipped; .hero-photo / .hero-overlay / .hero-badge are defined for the
   convention and reused by other layouts.) */
.hero { position: relative; background: var(--brand-mint); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(135deg, #EFF9F8 0%, #DDF2F0 55%, #CBEAE8 100%);
}
.hero-watermark {
  position: absolute; right: clamp(-60px, 4vw, 120px); top: 50%;
  transform: translateY(-50%); height: 82%; opacity: .14; pointer-events: none;
}
.hero-overlay { position: relative; padding-block: clamp(32px, 6vw, 90px); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-panel {
  position: relative; background: #fff; border-radius: 24px;
  box-shadow: 0 24px 60px -24px rgba(38,34,97,.4);
  padding: clamp(28px, 5vw, 48px); max-width: 620px;
}
.hero-badge {
  background: #fff; border: 1px solid var(--brand-line); border-radius: 16px;
  padding: 14px 18px;
}

/* Trust strip */
.trust-bar { background: var(--brand-soft); border-block: 1px solid var(--brand-line); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item span:last-child { font-size: 14px; font-weight: 600; color: var(--brand-navy); }

/* Service cards */
.service-card {
  background: #fff; border: 1px solid var(--brand-line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 12px;
  height: 100%; transition: border-color .15s, box-shadow .15s;
}
.service-card:hover { border-color: var(--brand-teal); box-shadow: 0 10px 26px -14px rgba(38,34,97,.3); }
.service-card .service-title { font-weight: 600; color: var(--brand-navy); font-size: 16.5px; }
.service-card .service-summary { font-size: 14px; color: var(--brand-muted-2); line-height: 1.6; }
.service-card.feature { background: var(--brand-navy); border-color: var(--brand-navy); justify-content: center; }
.service-card.feature:hover { background: var(--brand-teal-deep); border-color: var(--brand-teal-deep); }

/* Testimonials carousel */
.quote-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 360px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 0 20px; scrollbar-width: thin;
}
.quote-card {
  margin: 0; background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 18px; padding: 26px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px;
}
.quote-mark { color: var(--brand-teal); font-size: 40px; line-height: .6; font-weight: 700; font-family: Georgia, serif; }
.quote-card blockquote { margin: 0; font-size: 14.5px; line-height: 1.7; color: #44446A; }
.quote-card figcaption { font-weight: 600; color: var(--brand-navy); font-size: 14px; margin-top: auto; }
.quote-card figcaption .muted { font-weight: 400; color: var(--brand-muted); }
/* star rating (not used in this brand, kept for convention) */
.stars { color: var(--brand-teal); letter-spacing: 2px; }

/* Booking widget */
.booking-card {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 18px; padding: clamp(20px, 4vw, 28px);
  display: flex; flex-direction: column; gap: 16px;
}
.booking-step-title { font-weight: 600; color: var(--brand-navy); font-size: 17px; }
.service-tab {
  text-align: left; border: 2px solid var(--brand-line); background: var(--brand-soft);
  border-radius: 16px; padding: 20px 22px; cursor: pointer; font-family: inherit; width: 100%;
  transition: border-color .15s;
}
.service-tab:hover { border-color: var(--brand-teal); }
.service-tab.active { border-color: var(--brand-teal); background: #fff;
  box-shadow: 0 10px 26px -16px rgba(38,34,97,.35); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: #9A9AB4; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; width: 100%; border-radius: 10px; font-family: inherit; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand-line-in); background: #fff; color: var(--brand-navy); cursor: pointer;
}
.cal-day:hover:not(:disabled) { border-color: var(--brand-teal); }
.cal-day.is-selected { border-color: var(--brand-navy); background: var(--brand-navy); color: #fff; font-weight: 600; }
.cal-day:disabled, .cal-day.is-blocked { border-color: #E2E5EA; background: #F4F6F8; color: #C4C4D4; cursor: not-allowed; }
.cal-day.is-empty { border: none; background: transparent; cursor: default; }
.cal-nav {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--brand-line-in);
  background: #fff; color: var(--brand-teal-deep); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-nav:disabled { background: #F4F6F8; color: #C4C4D4; cursor: not-allowed; }
.time-slot {
  padding: 13px 10px; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--brand-line-in); background: #fff; color: var(--brand-navy); cursor: pointer;
}
.time-slot:hover:not(:disabled) { border-color: var(--brand-teal); }
.time-slot.is-selected { border-color: var(--brand-navy); background: var(--brand-navy); color: #fff; }
.time-slot:disabled, .time-slot.is-blocked { border-color: #E2E5EA; background: #F4F6F8; color: #C4C4D4; cursor: not-allowed; text-decoration: line-through; }
.field-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--brand-navy); margin-bottom: 6px; }
.field-input {
  width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1.5px solid var(--brand-line-in);
  border-radius: 12px; font-family: inherit; font-size: 15px; color: var(--brand-body); background: #fff;
}
.field-input:focus { outline: none; border-color: var(--brand-teal); }
.field-input.is-invalid, .field-input.is-invalid:focus { border-color: #B23A48; }
.field-hint { font-size: 12.5px; color: var(--brand-muted); margin-top: 5px; }
.form-errors { background: #FCEDEF; border: 1.5px solid #E5B8BF; color: #8A2A38; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; }
.form-errors ul { margin: 0; padding-left: 20px; }
.stripe-field { background: #fff; border: 1.5px solid var(--brand-line-in); border-radius: 12px; overflow: hidden; }
.stripe-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #635BFF; font-weight: 600; }
.confirm-card {
  background: var(--brand-mint); border: 1.5px solid var(--brand-teal); border-radius: 20px;
  padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.confirm-check {
  width: 52px; height: 52px; border-radius: 999px; background: var(--brand-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* Tappable contact cards */
.contact-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-body);
  background: #fff; border: 1px solid var(--brand-line); border-radius: 14px; padding: 15px 18px; font-size: 15px;
}
.contact-card:hover { border-color: var(--brand-teal); color: var(--brand-body); }

/* Chip nav (Family Law jump links) */
.chip {
  background: #fff; border: 1px solid #DCEEEC; color: var(--brand-teal-deep);
  font-size: 13.5px; font-weight: 500; padding: 8px 15px; border-radius: 999px; text-decoration: none;
}
.chip:hover { border-color: var(--brand-teal); color: var(--brand-navy); }

/* Info panel card (mediation pricing etc.) */
.info-card { background: #fff; border: 1px solid var(--brand-line); border-radius: 18px; padding: 26px; }
.info-card.dark { background: var(--brand-navy); color: #C7E8E7; border-color: var(--brand-navy); }
.info-card.dark .info-title { color: #fff; }

/* ---- 6. Footer ------------------------------------------------------- */
.site-footer { background: var(--brand-navy); color: #C9C7E6; padding: 56px 0 32px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand-teal-2); }
.footer-heading { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; opacity: .7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-social {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social:hover { background: rgba(255,255,255,.12); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); font-size: 13.5px; color: #A9A7D4; }
.footer-legal a { color: #A9A7D4; }
.footer-legal a:hover { color: #fff; }

/* ---- 7. Responsive tuning -------------------------------------------- */
@media (max-width: 991.98px) {
  :root { --fs-display-5: 34px; --fs-h1: 32px; --fs-h2: 28px; --fs-h3: 24px; }
}
@media (max-width: 575.98px) {
  :root { --section-y: 56px; }
  .row { --bs-gutter-x: 1.5rem; }
}
