/* ==========================================================================
   Mark D. Sueoka, DDS — site.css
   Built by Kristo Design LLC
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-2: #163a5f;
  --blue: #2969b0;
  --blue-soft: #e8f0fa;
  --teal: #3aa6a0;
  --sand: #f7f3ee;
  --cream: #fbfaf7;
  --ink: #1b2430;
  --muted: #5d6b7a;
  --line: #e4e8ee;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 71, .08);
  --shadow-lg: 0 24px 60px rgba(14, 42, 71, .14);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d6e2ef; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .9rem;
}
.section--navy .eyebrow { color: #8fc1ff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font: 700 .98rem/1 var(--font-body); padding: 1rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(41,105,176,.28); }
.btn--primary:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-soft); color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Top bar + header ------------------------------------------------------- */
.topbar { background: var(--navy); color: #c9d7e6; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(14,42,71,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-size: 1.28rem; font-weight: 600; display: block; }
.brand__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .96rem; padding: .55rem .9rem; border-radius: 999px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__cta .btn { padding: .8rem 1.25rem; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--navy); }
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 78px;
    background: var(--cream); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav__links.is-open a { padding: .9rem 1rem; font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .nav__cta .btn--primary { display: none; }
  .topbar .hide-sm { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(41,105,176,.14), transparent 65%); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--blue); font-weight: 500; }
.hero .lead { margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__trust div { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.hero__trust strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); font-weight: 600; }
.hero__visual { position: relative; aspect-ratio: 4 / 4.6; }
.hero__card {
  position: absolute; inset: 0 0 8% 10%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 120%);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__art { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__art svg { width: 62%; height: auto; opacity: .95; }
.hero__badge {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: .85rem; font-size: .9rem; line-height: 1.3;
}
.hero__badge strong { color: var(--navy); display: block; font-size: 1rem; }
.hero__badge span { color: var(--muted); }
.hero__badge .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex-shrink: 0; }
.hero__badge .ico svg { width: 22px; height: 22px; }
.hero__badge--a { left: 0; bottom: 18%; }
.hero__badge--b { right: -4%; top: -3%; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: .95rem; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero__badge--b { right: 0; }
}

/* Page hero (inner pages) ----------------------------------------------- */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,105,176,.13), transparent 65%);
}
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.3rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card__more svg { width: 16px; height: 16px; }
.card__more { white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 700; font-size: .92rem; color: var(--blue); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.8rem; flex-wrap: wrap; }
.section-head .lead { margin: 0; }

/* Split / about ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__media { position: relative; }
.split__media .frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--blue-soft); }
.split__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split__media .stamp {
  position: absolute; right: -14px; bottom: -22px; background: var(--navy); color: #fff; border-radius: 18px;
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-lg); max-width: 210px; line-height: 1.3; font-size: .9rem;
}
.split__media .stamp strong { font-family: var(--font-head); font-size: 2rem; display: block; color: #fff; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }

/* Testimonials ----------------------------------------------------------- */
.quote {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; height: 100%;
}
.quote blockquote { margin: 0 0 1.5rem; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.5; color: #fff; font-weight: 400; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: #fff; font-size: .95rem; }
.quote figcaption span { display: block; font-weight: 500; color: #9fb6cf; font-size: .84rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: var(--blue); color: #fff; flex-shrink: 0;
}

/* Financing band --------------------------------------------------------- */
.band {
  border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(120deg, var(--blue-soft), #f2f7fd 60%, #fff); border: 1px solid #d9e6f5;
}
.band__logo { background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); display: grid; place-items: center; min-height: 150px; }
.band__logo img { max-height: 110px; width: auto; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* CTA -------------------------------------------------------------------- */
.cta {
  border-radius: 28px; padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 140%); color: #d6e2ef;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center;
}
.cta::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta h2 { color: #fff; }
.cta .btn-row { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Info tiles (hours / contact) ------------------------------------------ */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .info { grid-template-columns: 1fr; } }
.info .card { padding: 1.8rem; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-weight: 700; color: var(--navy); }
.hours li.is-closed span:last-child { color: var(--muted); font-weight: 500; }
.hours li.is-today { color: var(--blue); }
.hours li.is-today span:first-child::after { content: " · Today"; font-weight: 700; font-size: .8rem; }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: #eef1f4; color: var(--muted); margin-bottom: .8rem; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: #e3f5ef; color: #1d8a63; }

/* Services list ---------------------------------------------------------- */
.svc { display: flex; gap: 1.1rem; align-items: flex-start; }
.svc .card__icon { margin: 0; flex-shrink: 0; }

/* Team ------------------------------------------------------------------- */
.doc { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }
.doc__photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4/4.4; background: var(--blue-soft); box-shadow: var(--shadow-lg); position: relative; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
.meta-list { display: grid; gap: 1rem; margin: 1.6rem 0; }
.meta-list div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.meta-list dt { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); padding-top: 3px; }
.meta-list dd { margin: 0; }
@media (max-width: 520px) { .meta-list div { grid-template-columns: 1fr; gap: .2rem; } }

.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member__photo { aspect-ratio: 4/4.2; background: linear-gradient(160deg, var(--blue-soft), #dbe7f5); position: relative; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.frame, .doc__photo { position: relative; }
.initials, .member__photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 3.4rem; color: var(--blue); opacity: .55; }
.member__body { padding: 1.5rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.member__role { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .3rem; }
.member h3 { margin-bottom: .6rem; }
.member p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.tag { font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: var(--sand); color: var(--navy); }

/* Resources -------------------------------------------------------------- */
.doc-file { display: flex; align-items: center; gap: 1.2rem; padding: 1.6rem; }
.doc-file .card__icon { margin: 0; width: 64px; height: 64px; flex-shrink: 0; }
.doc-file h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.doc-file .btn { margin-left: auto; }
@media (max-width: 620px) { .doc-file { flex-wrap: wrap; } .doc-file .btn { margin-left: 0; width: 100%; } }
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800;
}
.step h3 { font-size: 1.08rem; margin: .4rem 0 .2rem; font-family: var(--font-body); font-weight: 800; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(41,105,176,.12); }
.hp { position: absolute; left: -5000px; }
.form__note { font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.form__status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; font-weight: 600; display: none; }
.form__status.is-ok { display: block; background: #e3f5ef; color: #1d6b4e; }
.form__status.is-err { display: block; background: #fdecec; color: #9b2c2c; }
.contact-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .card__icon { margin: 0; width: 46px; height: 46px; flex-shrink: 0; }
.contact-line .card__icon svg { width: 22px; height: 22px; }
.contact-line small { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.contact-line a, .contact-line strong { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.alert { display: flex; gap: .9rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: #fff6e8; border: 1px solid #f6dfb5; color: #6b4a12; font-size: .95rem; }
.alert svg { width: 22px; height: 22px; flex-shrink: 0; color: #d48b12; margin-top: 2px; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; background: var(--blue-soft); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map { aspect-ratio: 4/3; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #0a2038; color: #a9bbcf; padding: 4.5rem 0 0; font-size: .95rem; }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 800; }
.site-footer a { color: #d6e2ef; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__mark { background: var(--blue); }
.site-footer .brand__sub { color: #8aa1b9; }
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #7d93ab; }
.footer__bottom a { color: #9fb3c8; }

/* Mobile sticky call bar ------------------------------------------------- */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .callbar .btn { padding: .85rem 1rem; font-size: .92rem; }
  body { padding-bottom: 76px; }
}

/* Reveal animation ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .member, .btn { transition: none; }
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Small-screen refinements */
@media (max-width: 560px) {
  .topbar .container { justify-content: center; }
  .topbar .hide-xs { display: none; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: .62rem; letter-spacing: .12em; white-space: nowrap; }
  .brand__mark { width: 40px; height: 40px; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero__trust div { font-size: .78rem; }
  .hero__trust strong { font-size: 1.2rem; }
  .hero__trust br { display: none; }
  .hero__visual { max-width: 340px; }
  .hero .btn-row .btn { width: 100%; }
}

/* Photography */
.hero__card picture, .frame picture, .doc__photo picture { display: block; width: 100%; height: 100%; }
.hero__card img { object-position: 42% center; }
.frame img { object-position: 55% 35%; }

/* v3 — larger CareCredit logo */
@media (min-width: 821px) { .band { grid-template-columns: 1.15fr 1fr; } }
.band__logo { padding: 1.25rem; min-height: 220px; }
.band__logo img { max-height: none; width: 100%; max-width: 420px; height: auto; }
@media (max-width: 820px) { .band__logo { min-height: 0; } .band__logo img { max-width: 340px; } }

/* v3 — testimonial avatars */
.quote .avatar {
  width: 48px; height: 48px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
  color: var(--navy); background: linear-gradient(140deg, #ffffff 0%, #d9e8f8 100%);
  box-shadow: 0 0 0 3px rgba(143,193,255,.35), 0 6px 14px rgba(0,0,0,.25);
}
.quote figcaption { padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); }
.quote { margin: 0; }
.quote figcaption .avatar { display: grid; place-items: center; line-height: 1; }

/* v3.1 — logo sizing that Safari resolves correctly */
.band__logo { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; }
.band__logo img { display: block; flex: 0 0 100%; width: 100%; max-width: 420px; height: auto; }
.logo-fallback { display: grid; gap: .3rem; text-align: center; padding: 1.5rem; }
.logo-fallback strong { font-family: var(--font-body); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #0a5aa8; letter-spacing: -.01em; }
.logo-fallback span { color: var(--muted); font-size: .95rem; font-weight: 600; }
