/* M Branch Financial — alternative life insurance funnel
   Deep forest green ground, warm cream text, tan accent.
   Contrast ratios noted are WCAG, measured against --bg unless stated. */

:root {
  --bg: #1F3D2C;           /* rich forest green: page background */
  --panel: #284A37;        /* slightly lighter green: client story cards */
  --deep: #152B1F;         /* darkest green: behind the video */
  --footer-bg: #132519;    /* footer band: deeper forest green */

  --text: #F4EFE4;         /* brand cream: body text and headings (10.4:1) */
  --text-soft: #D6D9CC;    /* secondary text, footer (8.3:1; 6.9:1 on panel) */
  --accent: #D9C08A;       /* light tan: labels, links, small emphasis (6.7:1) */
  --rule: #C4A870;         /* brand tan: thin lines and outlines only */
  --locked: #B8BFAE;       /* locked button text (6.3:1) */

  --btn-bg: #F4EFE4;       /* unlocked buttons: cream fill... */
  --btn-text: #1F3D2C;     /* ...with forest green text (10.4:1) */
  --btn-hover: #FFFFFF;

  --radius: 5px;
  --col: 680px;
  --gutter: 20px;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Header / logo (not a link) ─────────────────────────── */
.site-header { padding: 16px 0 12px; }
.logo { width: 168px; height: auto; margin: 0 auto; }

/* ── Type ───────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 21px; line-height: 1.3; }

.sub {
  font-size: 19px;
  line-height: 1.45;
  text-align: center;
  margin: 10px 0 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

.intro { padding-bottom: 16px; }

p { margin: 0 0 1em; }

/* Thin tan rule between sections */
.section { padding: 32px 0; border-top: 1px solid var(--rule); }
.section > h2 { margin-bottom: 16px; }

/* ── Video ──────────────────────────────────────────────── */
.video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  outline: 1px solid rgba(196, 168, 112, 0.45);
}
.video wistia-player { display: block; width: 100%; }
.video wistia-player:not(:defined) {
  display: block;
  padding-top: 56.25%;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--deep);
  color: var(--text-soft);
  font-size: 18px;
}

.trust {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--text-soft);
}
.trust strong { color: var(--text); font-weight: 600; }

/* ── Lists ──────────────────────────────────────────────── */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 12px;
  height: 2px;
  background: var(--rule);
}
.list li:last-child { margin-bottom: 0; }

/* Temporary [CONFIRM WITH MATT] / [PLACEHOLDER] markers: remove before launch */
.confirm {
  font-weight: 600;
  color: #7a2e1f;
  background: #f6e3dc;
  padding: 0 4px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); text-decoration: none; }
.btn small {
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin-top: 2px;
}

/* Locked: outline only, not clickable */
.btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--rule);
  color: var(--locked);
  cursor: not-allowed;
  pointer-events: none;
}

.btn.just-unlocked { animation: settle 1.4s ease-out 1; }
@keyframes settle {
  0%   { outline: 4px solid rgba(217, 192, 138, 0.9); outline-offset: 2px; }
  100% { outline: 4px solid rgba(217, 192, 138, 0);   outline-offset: 8px; }
}

/* ── Video page: next-step area ─────────────────────────── */
.next-steps { padding: 28px 0 32px; }
.next-hint {
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--accent);
}
.step + .step { margin-top: 20px; }
.step-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 18px;
  color: var(--accent);
}

/* keep the space, just hide (so nothing jumps) */
.is-gone { visibility: hidden; }

/* ── Proof (client stories) ─────────────────────────────── */
.proof { position: relative; }
.proof-inner { transition: opacity 0.8s ease; }
.proof.is-locked .proof-inner { visibility: hidden; opacity: 0; }
.proof-waiting {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: var(--text-soft);
}
.proof:not(.is-locked) .proof-waiting { display: none; }

.stories { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.story {
  background: var(--panel);
  border-top: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}
.story h3 { margin-bottom: 6px; }
.story p { margin: 0; color: var(--text-soft); }
.story blockquote {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  color: var(--text);
}
.story .story-video { margin-top: 14px; }

.fine {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--text-soft);
}

/* ── Booking calendar ───────────────────────────────────── */
.calendar { margin: 8px 0 0; }
.calendar iframe {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 760px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
}
.calendar-placeholder {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-soft);
}

.after-cal { margin-top: 20px; }

/* ── Privacy draft ──────────────────────────────────────── */
.draft-banner {
  border: 2px solid #7a2e1f;
  color: #7a2e1f;
  background: #f6e3dc;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  margin: 16px 0 0;
}
.policy h2 { margin-top: 28px; margin-bottom: 8px; font-size: 22px; }

/* ── Footer: deeper green band, full width ─────────────── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  padding: 40px 0 28px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.5;
}
.site-footer p { margin: 0 0 14px; }
.site-footer .firm {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--text);
  margin-bottom: 4px;
}
/* Tree on the left, a light divider, then business name and title */
.footer-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-id p:last-child { margin-bottom: 0; }
.footer-id-text {
  border-left: 1px solid rgba(196, 168, 112, 0.5);  /* light tan divider, like the main logo */
  padding-left: 14px;
}
@media (max-width: 719px) {
  .site-footer .firm { font-size: 19px; }
}
.footer-tree {
  flex: none;
  width: 64px;    /* phones; larger on computers below */
  height: 50px;
  object-fit: cover;
  object-position: 0 0;   /* shows only the tree from the full logo */
}
.footer-label {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.footer-licensing { margin-top: 12px; }
.footer-licensing .footer-label { margin-bottom: 8px; }
.licences { margin: 0 0 14px; }
.licences div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(196, 168, 112, 0.3);
}
.licences dt { color: var(--text); }
.licences dd { margin: 0; font-variant-numeric: tabular-nums; }

.footer-legal {
  border-top: 1px solid rgba(196, 168, 112, 0.3);
  padding-top: 20px;
  margin-top: 8px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;
  border-top: 1px solid rgba(196, 168, 112, 0.3);
  padding-top: 8px;
  margin-top: 6px;
}
.site-footer a { color: var(--accent); display: inline-block; padding: 12px 0; }

/* Single call-to-action under a list */
.cta { padding: 4px 0 40px; }

/* ── Larger screens ─────────────────────────────────────── */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .site-header { padding: 32px 0 20px; }
  .logo { width: 220px; }
  h1 { font-size: 38px; }
  .sub { font-size: 21px; margin-top: 14px; }
  .intro { padding-bottom: 28px; }
  h2 { font-size: 28px; }
  .section { padding: 44px 0; }
  .stories { grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-footer { padding-top: 52px; }
  .site-footer .wrap { max-width: 1000px; }
  .footer-tree { width: 104px; height: 81px; }
  .footer-id { gap: 22px; }
  .footer-id-text { padding-left: 22px; }
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-licensing { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .proof-inner { transition: none; }
  .btn.just-unlocked { animation: none; }
}

/* Smallest phones: keep "M Branch Financial Corp." on one line beside the tree */
@media (max-width: 380px) {
  .footer-tree { width: 54px; height: 42px; }
  .footer-id { gap: 10px; }
  .footer-id-text { padding-left: 10px; }
}

/* Before-you-start: main button right under the video */
.cta-top { padding: 20px 0 32px; }
.btn-big {
  min-height: 76px;
  font-size: 22px;
  box-shadow: 0 0 0 4px rgba(217, 192, 138, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25);
}
@media (min-width: 720px) {
  .btn-big { font-size: 24px; min-height: 84px; }
}

/* Client stories: centred heading block with breathing room before the cards */
.proof-head { text-align: center; margin: 0 auto 28px; max-width: 560px; }
.proof .proof-head h2 { margin: 0; font-size: 26px; line-height: 1.25; text-wrap: balance; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 10px 3px;
}
.proof-lede { margin: 12px 0 0; color: var(--text-soft); text-wrap: balance; }
@media (min-width: 720px) {
  .proof .proof-head h2 { font-size: 32px; }
  .proof-head { margin-bottom: 36px; }
}

/* Booking calendar: message while GoHighLevel loads it */
.calendar-loading {
  margin: 0;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-soft);
}
/* Smallest phones: let the calendar use the full screen width */
@media (max-width: 359px) {
  .calendar { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .calendar iframe { border-radius: 0; }
}

/* Privacy policy */
.policy h3 { font-size: 19px; margin: 18px 0 8px; }
.policy .list { margin-bottom: 1em; }
.policy .list .list { margin: 10px 0 0; }
.policy .list li { margin-bottom: 10px; }
