/* ==========================================================================
   Agent Site Template — shared stylesheet
   Neutral, light, insurance-appropriate. Designed to be re-created inside
   the HighLevel page builder, so every value here is a plain number Jazmin
   can type into a field. See build-guide.html for the full token table.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --accent:        #0E7490;  /* teal — buttons, links, icons, accent word */
  --accent-dark:   #0B5A70;  /* hover / pressed */
  --accent-tint:   #E6F3F7;  /* icon tiles, chips, soft fills */
  --accent-tint-2: #F2F9FB;  /* very soft fills */

  /* Neutrals */
  --ink:        #101B29;  /* headings, dark sections, footer */
  --ink-soft:   #1C2E42;  /* dark section gradient partner */
  --body:       #4E5E70;  /* body copy */
  --muted:      #5F6E80;  /* meta, captions, roles — 5.2:1 on white, 4.9:1 on alt */
  --line:       #E3EAF0;  /* borders, dividers */
  --surface:    #FFFFFF;
  --surface-alt:#F5F8FA;  /* alternating section background */

  /* Type */
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 27, 41, .05), 0 1px 3px rgba(16, 27, 41, .04);
  --shadow-md: 0 4px 6px -1px rgba(16, 27, 41, .06), 0 12px 24px -8px rgba(16, 27, 41, .10);
  --shadow-lg: 0 18px 40px -12px rgba(16, 27, 41, .18);

  /* Rhythm */
  --gutter: 24px;
  --maxw: 1160px;
  --section-y: clamp(64px, 8vw, 112px);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* The UA default is `figure { margin: 1em 40px }` — the testimonial cards are
   figures, and it was insetting them 40px out of line with every other grid. */
figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  text-wrap: balance; /* stops orphaned last words; ignored where unsupported */
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -.005em; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600; font-size: .9375rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
/* Must exclude .eyebrow — a bare `.section-head p` outranks `.eyebrow` and was
   stripping the teal, the 12px size and the gap from every section eyebrow. */
.section-head p:not(.eyebrow) {
  font-size: 1.0625rem;
  color: var(--body);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }

.eyebrow--chip {
  background: var(--accent-tint);
  border: 1px solid rgba(14, 116, 144, .18);
  border-radius: var(--r-pill);
  padding: 7px 15px 7px 12px;
  letter-spacing: .06em;
}

/* Headline accent word. A brighter teal than --accent so it separates from the
   near-black headline; only ever used at large sizes, where 3:1 is the bar. */
.accent { color: #0C93AD; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--body); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(14, 116, 144, .55);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(14, 116, 144, .6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint-2);
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn-sm { padding: 12px 22px; font-size: .9375rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* On a phone, ragged-width stacked buttons look unfinished — match them up */
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #12556B 100%);
  display: grid; place-items: center;
  box-shadow: 0 3px 10px -3px rgba(14, 116, 144, .55);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.brand__name span { display: block; font-family: var(--font-body); font-size: .6875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--body);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  transition: color .15s ease, background-color .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav__links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* The in-menu CTA is for the mobile drawer only — on desktop .nav__cta serves it */
@media (min-width: 901px) { .nav__links .btn { display: none; } }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav { min-height: 66px; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 22px;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 1.0625rem; border-radius: var(--r-md); }
  .nav__links .btn { margin-top: 10px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px);
  background:
    radial-gradient(1100px 460px at 88% 8%, var(--accent-tint-2) 0%, transparent 62%),
    var(--surface);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: clamp(1.0625rem, 1.7vw, 1.1875rem); max-width: 34em; margin-bottom: 30px; }
.hero__cta { margin-bottom: 30px; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  /* Stacked full-width on a phone, 4:5 eats most of a screen — crop shallower */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Tinted, not near-white: a broken path in HL should look deliberate, not blank */
  background: var(--accent-tint);
}
@media (min-width: 901px) { .hero__media img { aspect-ratio: 4 / 5; } }
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 58%; height: 58%;
  border-radius: var(--r-lg);
  background: var(--accent-tint);
  z-index: -1;
}

@media (min-width: 901px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* Compact page hero (About / Referrals / Appointments) */
.page-hero {
  padding-block: clamp(52px, 6.5vw, 92px) clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 400px at 50% -10%, var(--accent-tint-2) 0%, transparent 65%),
    var(--surface);
  text-align: center;
}
.page-hero .lead { max-width: 46em; margin-inline: auto; }

/* Appointments only. The booking widget is the whole point of the page, so the
   header above it is squeezed hard to get the calendar onto a phone screen
   without scrolling. */
.page-hero--compact { padding-block: clamp(24px, 3.5vw, 60px) clamp(16px, 2.5vw, 32px); }
.page-hero--compact h1 { font-size: clamp(1.875rem, 4.4vw, 3rem); margin-bottom: 12px; }
.page-hero--compact .eyebrow { margin-bottom: 10px; }
.page-hero--compact + .section { padding-top: clamp(20px, 3vw, 48px); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 116, 144, .28);
}
.card > p { font-size: .9688rem; }

.icon-tile {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--center { margin-inline: auto; }

/* Cards are flex columns so the divider lines up across a row no matter how
   many lines of body copy each card carries. */
.card { display: flex; flex-direction: column; }

.feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  line-height: 1.5;
}
.feature-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

/* Values (About) */
.value-card { text-align: center; padding: 30px 22px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: .9375rem; margin: 0; }

/* --------------------------------------------------------------------------
   8. Split (agent bio)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 901px) {
  .split { grid-template-columns: .9fr 1.1fr; }
  .split--media-right { grid-template-columns: 1.1fr .9fr; }
  .split--media-right .split__media { order: 2; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--accent-tint);
}

.agent-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
}
.agent-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.agent-badge span { font-size: .8125rem; font-weight: 500; color: var(--muted); }

.signature {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex: none;
  background: var(--accent-tint);
}
.avatar--initials {
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: .9375rem;
  color: var(--accent); letter-spacing: .02em;
}
.signature strong {
  display: block; font-family: var(--font-head); font-size: 1.0625rem;
  font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.3;
}
.signature span { font-size: .875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.quote-card__mark { width: 34px; height: 34px; color: var(--accent); opacity: .28; margin-bottom: 16px; }
.quote-card blockquote {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  flex: 1;
}
.quote-card figcaption {
  display: flex; align-items: center; gap: 13px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.quote-card figcaption strong {
  display: block; font-family: var(--font-head); font-size: .9688rem;
  font-weight: 700; color: var(--ink);
}
/* Scoped to the text column — a bare `figcaption span` also caught the
   initials avatar and greyed it out. */
.quote-card figcaption > div span { font-size: .8125rem; color: var(--muted); }

/* Darker than a typical star gold so the shape clears 3:1 against white */
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: #B87C04; }
.stars svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: rgba(14, 116, 144, .3); box-shadow: var(--shadow-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.0313rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .chev {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid; place-items: center;
  transition: transform .22s ease;
}
.faq summary .chev svg { width: 15px; height: 15px; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq__body { padding: 0 24px 24px; }
.faq__body p { font-size: .9688rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. Dark CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(14, 116, 144, .38) 0%, transparent 68%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C3D0DD; max-width: 42em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }
.cta-band .eyebrow { color: #6FC5DA; }

.site-footer {
  background: var(--ink);
  color: #A9B8C7;
  padding-block: clamp(48px, 5vw, 68px) 32px;
  font-size: .9375rem;
}
.footer__grid {
  display: grid;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: #7E90A3; }
.site-footer p { font-size: .9375rem; color: #A9B8C7; }
.footer__col h4 {
  color: #fff;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
/* Footer links are the smallest tap targets on the page — give them room */
@media (max-width: 760px) {
  .footer__col ul { gap: 2px; }
  .footer__col ul a { display: inline-block; padding-block: 9px; }
}
.footer__col a { color: #A9B8C7; }
.footer__col a:hover { color: #fff; }

.footer__legal {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: #7E90A3;
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: #7E90A3; }
.footer__legal a:hover { color: #fff; }

.disclosure {
  margin-top: 22px;
  font-size: .75rem;
  line-height: 1.65;
  color: #8496AA; /* 5.7:1 on the footer ink — it's 12px, it needs the lift */
  max-width: 74ch;
}

/* --------------------------------------------------------------------------
   12. Forms (Referrals)
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
  max-width: 720px;
  margin-inline: auto;
}
.form-card__head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-card__head h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 6px; }
.form-card__head p { font-size: .9375rem; margin: 0; }

.field-grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 7px; }
.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: #C2410C; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  /* Darker than --line: an input boundary needs 3:1, a card border doesn't */
  border: 1.5px solid #B6C3CF;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:user-invalid, .field textarea:user-invalid {
  border-color: #C2410C;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #66758A; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: .8125rem; color: var(--muted); }

.fieldset-block { border: 0; margin: 0 0 30px; padding: 0; }
.fieldset-block legend {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0;
  margin-bottom: 18px;
}

/* Required consent gate — a checkbox, not a paragraph, because a third party's
   phone number is being submitted by someone else. */
.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--accent-tint-2);
  border: 1.5px solid rgba(14, 116, 144, .22);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent label {
  font-size: .9063rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  cursor: pointer;
}
.consent label strong { font-weight: 700; }

.form-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--accent-tint-2);
  border: 1px solid rgba(14, 116, 144, .16);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: .875rem;
  line-height: 1.6;
  margin-top: 26px;
}
.form-note svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 1px; }

.form-status {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: .9375rem;
  font-weight: 500;
  background: var(--accent-tint);
  border: 1px solid rgba(14, 116, 144, .25);
  color: var(--ink);
}
.form-status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   13. Booking (Appointments)
   -------------------------------------------------------------------------- */
.booking {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 860px) { .booking { grid-template-columns: 340px 1fr; } }

/* On a phone the picker comes first — nobody should scroll past three
   paragraphs of explanation to reach the thing the page exists for. */
@media (max-width: 859px) {
  .booking__picker { order: 1; }
  .booking__info { order: 2; border-bottom: 0; border-top: 1px solid var(--line); }
}

.booking__info {
  padding: clamp(26px, 3.4vw, 36px);
  /* Deliberately NOT --surface-alt: the section behind it is that colour, and
     the panel disappeared into the page. */
  background: var(--accent-tint-2);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .booking__info { border-bottom: 0; border-right: 1px solid var(--line); }
}
.booking__info h2 { font-size: 1.3125rem; margin-bottom: 14px; }
.booking__meta { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.booking__meta li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}
.booking__meta svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.booking__info p { font-size: .9063rem; }
.booking__desc { border-top: 1px solid var(--line); padding-top: 20px; }

.booking__picker { padding: clamp(26px, 3.4vw, 36px); }
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.cal__month { font-family: var(--font-head); font-weight: 800; font-size: 1.0625rem; color: var(--ink); }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .15s ease, color .15s ease;
}
.cal__nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal__nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal__nav svg { width: 16px; height: 16px; }

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
/* Under ~600px, 5px gutters push the day cells below the 44px tap minimum —
   drop the gutters and shrink the padding so the cells can actually grow.
   The min-height half of this lives after the .cal__day rules below; putting
   it here let the later `.cal__day { min-height: 40px }` win. */
@media (max-width: 600px) {
  .cal__grid { gap: 1px; }
  .booking__picker { padding-inline: 16px; }
}
.cal__dow {
  text-align: center;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}
.cal__day {
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cal__day:hover:not(:disabled) { background: var(--accent-tint); border-color: rgba(14, 116, 144, .3); }
.cal__day:disabled, .cal__day.is-empty {
  color: #C3CDD7; cursor: default; background: transparent; border-color: transparent;
}
.cal__day.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal__day.is-today:not(.is-selected) { border-color: var(--accent); color: var(--accent); }

/* Must come after the base .cal__day rule to beat its min-height: 40px.
   44px is the tap-target floor, and this is the most-tapped control on the site. */
@media (max-width: 600px) { .cal__day { min-height: 44px; } }

/* Shown on load, before a date is picked, so the card never just stops */
.slots__prompt {
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted); margin-bottom: 0;
}

.slots { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.slots h3 { font-size: .9375rem; margin-bottom: 14px; }
.slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.slot {
  padding: 12px 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.slot:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint-2); }
.slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.slots__empty { font-size: .9375rem; color: var(--muted); margin: 0; }
.slots__confirm { margin-top: 20px; }

.agent-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  max-width: 960px;
  margin: 26px auto 0;
}
/* object-position pulls the crop up — a centred crop of a torso portrait puts
   the face in the top sliver of a 74px circle */
.agent-card img {
  width: 74px; height: 74px; border-radius: 50%;
  object-fit: cover; object-position: center 22%; flex: none;
}

/* Booking confirmed state */
.booked { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.booked__icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center;
}
.booked__icon svg { width: 26px; height: 26px; }
.booked h3 { font-size: 1.25rem; margin-bottom: 8px; }
.booked p { font-size: .9375rem; margin-bottom: 20px; }
.booked strong { color: var(--ink); font-size: 1rem; }
.agent-card h3 { margin-bottom: 3px; }
.agent-card .role { font-size: .8125rem; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.agent-card p { font-size: .9375rem; margin-bottom: 12px; }
.agent-card .contact {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: .9375rem; font-weight: 600;
}
.agent-card .contact a { display: inline-flex; align-items: center; gap: 7px; }
.agent-card .contact svg { width: 16px; height: 16px; }

@media (max-width: 520px) {
  .agent-card { flex-direction: column; align-items: center; text-align: center; }
  .agent-card .contact { justify-content: center; }
}

/* --------------------------------------------------------------------------
   13b. HighLevel merge tokens
   These render the literal {{…}} token so Jazmin can see exactly which value
   belongs in each slot. They are NOT resolved here on purpose.
   -------------------------------------------------------------------------- */
.token {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8125em;
  line-height: 1.4;
  color: var(--accent);
  background: var(--accent-tint-2);
  border: 1.5px dashed rgba(14, 116, 144, .45);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  max-width: 100%;
}
/* On the navy footer the teal-on-tint version disappears */
.site-footer .token {
  color: #8FD4E4;
  background: rgba(143, 212, 228, .1);
  border-color: rgba(143, 212, 228, .4);
}

/* Logo slot in the header/footer lockup */
.token--logo { font-size: .75rem; padding: 7px 10px; }

/* `{{ custom_values.business_logo }}` is ~30 characters and can't wrap, so on a
   phone the lockup has to give something up. The wordmark goes and the logo
   token stays — which is how a real header behaves at this width anyway. */
@media (max-width: 900px) {
  .site-header .brand__name { display: none; }
  .site-header .token--logo { font-size: .6875rem; padding: 6px 8px; }
}
/* The footer column is narrower than the token on small screens. A flex item
   won't shrink below its content by default, so the lockup has to stack and the
   token has to be allowed to break. */
.site-footer .token--logo { white-space: normal; overflow-wrap: anywhere; }
.site-footer .brand { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 760px) {
  .site-footer .brand { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Photo slots — keep the shape the real image occupies so the layout holds */
.token-photo {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: var(--accent-tint);
  border: 2px dashed rgba(14, 116, 144, .4);
  border-radius: var(--r-lg);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875rem;
  line-height: 1.5;
  word-break: break-word;
}
.token-photo--square { aspect-ratio: 1 / 1; width: 100%; }
/* Bigger than the 74px photo it replaces — the token needs room to stay legible */
.token-photo--round {
  width: 104px; height: 104px; flex: none;
  border-radius: 50%; padding: 8px; font-size: .625rem; line-height: 1.35;
}

/* --------------------------------------------------------------------------
   14. Long-form prose (build guide + legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 900px; }
/* Long-form documents need a much tighter heading-to-body ratio than a landing
   page — the global 42px h2 over 17px body reads as shouting in a legal page. */
.prose h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 28px; }
.prose > .lead { margin-bottom: 34px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.15em; }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink);
}
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-alt); font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .8125rem;
  letter-spacing: .04em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--line);
  vertical-align: -4px; margin-right: 9px; }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 0 0 1.5em;
}
.callout--warn { border-left-color: #C2410C; background: #FDF4EF; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
