/* DoubleDee Health Resources - site styles */
:root {
  --ink: #0e3436;        /* deep teal ink: text and dark sections */
  --ink-2: #164a4c;
  --teal: #1b7a77;       /* primary (darkened logo teal for contrast) */
  --teal-bright: #3fb3ad;/* logo teal, decorative only */
  --aqua: #dcf3f1;       /* logo badge tint */
  --mist: #f4faf9;       /* page background */
  --sun: #f4b740;        /* call-to-action accent */
  --line: #c6e2df;
  --white: #ffffff;
  --muted: #47605f;
  --radius-lg: 28px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;      /* 18px base for readability */
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 500; font-size: 1.05rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffcb63; color: var(--ink); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--ink); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-line { color: var(--white); }
.on-dark .btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Enrollment ribbon */
.ribbon { background: var(--ink); color: var(--white); font-size: .95rem; }
.ribbon .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 2rem; padding: .55rem 0; text-align: center; }
.ribbon p { margin: 0; }
.ribbon strong { color: var(--sun); font-weight: 700; }
.ribbon a { color: var(--white); font-weight: 700; }

/* Header */
.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; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: 58px; }
.brand-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--teal); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--display); font-size: .82rem; letter-spacing: .08em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav a, .sub-toggle { font-family: var(--display); font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.site-nav > ul > li > a:hover, .sub-toggle:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.sub-toggle::after { content: ""; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .9rem); left: -1rem; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(14, 52, 54, .14); display: none; }
.sub a { display: block; padding: .6rem .8rem; border-radius: 8px; }
.sub a:hover { background: var(--aqua); }
.has-sub.open .sub { display: block; }
.nav-toggle { display: none; }
.nav-call { padding: .7rem 1.2rem; font-size: 1rem; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; background: var(--ink); color: var(--white); border: 0; border-radius: 999px; padding: .6rem 1.1rem; font-family: var(--display); font-size: 1rem; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; gap: 1rem; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a, .sub-toggle { display: flex; width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .sub-toggle { justify-content: space-between; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem .8rem; min-width: 0; }
}

/* Hero */
.hero { background: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 4.5rem 0 5rem; }
.hero-note { font-size: 1rem; color: var(--muted); margin-bottom: 1.2rem; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.25rem; max-width: 52ch; color: var(--ink-2); }
.hero .btn-row { margin: 1.8rem 0 1.4rem; }
.hours { font-size: .98rem; color: var(--muted); margin: 0; }

/* The signature element: the logo's circular badge, scaled up around Demond */
.hero-art { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.hero-art::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #effbfa 0%, var(--aqua) 55%, #bfe9e5 100%); }
.hero-art::after { content: ""; position: absolute; inset: -3%; border-radius: 50%; border: 2px solid var(--teal-bright); opacity: .55; }
.hero-art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid var(--white); }
.hero-badge { position: absolute; z-index: 2; left: -6%; bottom: 4%; background: var(--ink); color: var(--white); padding: .8rem 1.2rem; border-radius: 18px; font-size: .95rem; line-height: 1.35; }
.hero-badge strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding: 3rem 0 4rem; gap: 3.5rem; }
  .hero-art { width: min(78%, 360px); grid-row: 1; }
  .hero-badge { left: -10%; }
}

/* Generic sections */
.section { padding: 5rem 0; }
.section-white { background: var(--white); }
.section-aqua { background: var(--aqua); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--sun); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-dark .section-head p { color: #cfe5e3; }

/* Coverage paths */
.paths { display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); gap: 1rem; }
.path-intro { background: var(--teal); color: var(--white); padding: 2rem 1.6rem; border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) var(--radius-lg); }
.path-intro h2 { font-size: 1.7rem; color: var(--white); }
.path-intro p { color: #e3f5f3; margin: 0; }
.path { background: var(--ink); color: var(--white); padding: 2rem 1.4rem 1.6rem; border-radius: var(--radius-sm); display: flex; flex-direction: column; }
.path:last-child { border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-sm); }
.path h3 { font-size: 1.45rem; color: var(--white); }
.path p { color: #cfe5e3; font-size: 1rem; flex: 1; }
.path .learn { color: var(--white); font-family: var(--display); font-size: 1rem; margin-bottom: 1rem; }
.path .learn:hover { color: var(--sun); }
.path .btn { align-self: flex-start; padding: .65rem 1.2rem; font-size: .98rem; }
@media (max-width: 1100px) { .paths { grid-template-columns: repeat(2, 1fr); } .path-intro { grid-column: 1 / -1; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm); } .path:last-child { border-radius: var(--radius-sm); } }
@media (max-width: 600px) { .paths { grid-template-columns: 1fr; } }

/* Self-shop band */
.shop-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.shop-band h2 { margin-bottom: .3em; }
.shop-band p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 800px) { .shop-band { grid-template-columns: 1fr; } }

/* Why a broker */
.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.why-photo img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; object-position: center 30%; }
.why-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.6rem; }
.why-list li { padding-left: 1.4rem; border-left: 4px solid var(--teal-bright); }
.why-list h3 { margin-bottom: .3em; }
.why-list p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .why { grid-template-columns: 1fr; gap: 2.5rem; } .why-photo { max-width: 380px; } }

/* Carriers */
.carriers { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.carriers li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-family: var(--display); font-size: 1rem; }
.fine { font-size: .92rem; color: var(--muted); margin-top: 1.4rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem; margin: 0; }
.review .stars { color: #e3a21a; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: .6rem 0 1rem; }
.review figcaption { font-family: var(--display); font-weight: 500; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.contact-info dl { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-info dt { font-family: var(--display); font-weight: 500; color: var(--sun); }
.contact-info dd { margin: 0; }
.contact-info dd a { color: var(--white); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.lead-form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; }
.field .req { color: #b4321f; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--mist); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; background: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: .9rem; color: var(--muted); }
.consent { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: .15rem; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.form-error { grid-column: 1 / -1; background: #fdecea; color: #8a1f12; border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: 1rem; display: none; }
.form-error.show { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .lead-form { padding: 1.4rem; } }

/* Interior pages */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-bottom: 1.6rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.6rem; }
.card h3 { color: var(--teal); }
.card p:last-child { margin-bottom: 0; }
.notice { background: var(--white); border-left: 6px solid var(--teal); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; font-size: 1rem; max-width: 80ch; }
.notice strong { font-family: var(--display); font-weight: 500; }
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.date { background: var(--white); border-radius: var(--radius-sm); padding: 1.3rem; border-top: 5px solid var(--sun); }
.date h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.date p { margin: 0; color: var(--muted); font-size: 1rem; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: start; }
.about-grid img { border-radius: 50%; border: 10px solid var(--aqua); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid img { max-width: 320px; } }
.booking-frame { width: 100%; min-height: 820px; border: 0; background: var(--white); border-radius: var(--radius-sm); }

/* Footer */
.site-footer { background: #0a2829; color: #cfe5e3; padding: 4rem 0 6rem; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); margin-bottom: .8rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.foot-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.foot-brand img { width: 72px; height: 72px; }
.disclaimers { border-top: 1px solid #23504f; padding-top: 2rem; font-size: .9rem; display: grid; gap: .9rem; }
.disclaimers p { margin: 0; max-width: 110ch; }
.disclaimers strong { color: var(--white); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--ink); border-top: 3px solid var(--sun); }
  .mobile-bar a { color: var(--white); text-align: center; padding: .85rem .3rem; font-family: var(--display); font-size: 1rem; text-decoration: none; }
  .mobile-bar a + a { border-left: 1px solid #23504f; }
  .mobile-bar a.book { background: var(--sun); color: var(--ink); }
  .nav-call { display: none; }
}

@media (max-width: 760px) {
  .ribbon { font-size: .85rem; }
  .ribbon .wrap { gap: .1rem 1rem; padding: .45rem 0; }
  .ribbon a { display: none; }
}
.review { display: flex; flex-direction: column; }
.review blockquote { flex: 1; }
.review-meta { display: block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--muted); }
.ribbon-msgs { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 2rem; }
.ribbon-msgs a { color: var(--white); }
