:root {
  --ink: #0b3540;
  --ink-2: #124a57;
  --teal: #137a76;
  --aqua: #cfeae6;
  --mist: #f0f7f5;
  --sun: #f4a259;
  --sun-dark: #e48d3f;
  --text: #25393f;
  --muted: #5d7177;
  --line: #d9e6e3;
  --radius: 14px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font-body); color: var(--text); font-size: 1.04rem; line-height: 1.7; background: #fff; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; }

/* ---------- NAV ---------- */
.site-nav { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); padding: .55rem 0; }
.site-nav .navbar-brand { color: var(--ink); margin-right: 1rem; }
.site-nav .navbar-brand img { width: 44px; height: 44px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .5rem .7rem; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--teal); }
.btn-call { background: var(--ink); color: #fff; border-radius: 999px; font-weight: 600; padding: .5rem 1.1rem; white-space: nowrap; }
.btn-call:hover { background: var(--teal); color: #fff; }
.navbar-toggler { border-color: var(--line); }
@media (max-width: 575.98px) {
  .brand-name { font-size: .92rem; }
  .brand-sub { font-size: .62rem; }
  .site-nav .navbar-brand img { width: 38px; height: 38px; }
}

/* ---------- HERO (split panel) ---------- */
.hero { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 70px); max-height: 820px; }
.hero-panel { background: var(--ink); color: #fff; display: flex; align-items: center; position: relative; padding: 3.5rem 1.5rem 4rem; }
.hero-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--sun), var(--teal)); }
.hero-content { max-width: 560px; margin: 0 auto; }
.hero-eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--sun); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); color: #fff; font-weight: 600; margin-bottom: 1.25rem; letter-spacing: -.01em; }
.hero-title em { font-style: italic; color: var(--aqua); }
.hero-subtitle { color: #d8ebe8; font-size: 1.12rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo { background: url('img/hero.webp') 22% center / cover no-repeat; min-height: 300px; }
.btn-sun { background: var(--sun); color: var(--ink); font-weight: 700; border: 0; border-radius: 999px; padding-left: 1.6rem; padding-right: 1.6rem; }
.btn-sun:hover { background: var(--sun-dark); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); font-weight: 600; border-radius: 999px; padding-left: 1.6rem; padding-right: 1.6rem; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-photo { order: -1; }
@media (min-width: 992px) {
  .hero { grid-template-columns: 5fr 7fr; }
  .hero-photo { order: 0; min-height: 0; }
  .hero-panel { padding: 4rem 3rem 4rem max(3rem, calc((100vw - 1320px) / 2 + 12px)); }
  .hero-content { margin: 0; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 5.5rem 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #d8ebe8; }
.section-ink .section-title { color: #fff; }
.section-ink .kicker { color: var(--sun); }
.kicker { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: .6rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; margin-bottom: 1.4rem; }
.sub-title { font-size: 1.4rem; font-weight: 600; margin-bottom: .9rem; }
.sub-title i { color: var(--teal); margin-right: .35rem; }
.mini-title { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.lead-copy { font-size: 1.15rem; color: var(--ink-2); }
@media (max-width: 767.98px) { .section { padding: 3.75rem 0; } }

/* welcome callouts */
.callout-stack { display: grid; gap: .9rem; }
.callout { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; transition: transform .2s, background .2s; }
.callout:nth-child(2) { background: var(--teal); }
.callout:nth-child(3) { background: var(--ink-2); }
.callout:hover { transform: translateX(4px); color: #fff; }
.callout > i:first-child { font-size: 1.8rem; color: var(--sun); }
.callout span { flex: 1; line-height: 1.15; }
.callout small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.callout .go { opacity: .7; }
.badges { display: flex; align-items: center; justify-content: center; gap: 2.2rem; margin-top: 1.8rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.badges img { height: 52px; width: auto; }

/* about */
.portrait-wrap { position: relative; max-width: 340px; }
.portrait-wrap::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius); background: var(--aqua); z-index: 0; }
.portrait { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: var(--radius); }
.pull-quote { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; line-height: 1.55; color: var(--ink); border-left: 4px solid var(--sun); padding: .2rem 0 .2rem 1.4rem; margin: 0 0 1.6rem; }
.pull-quote cite { display: block; margin-top: .6rem; font-family: var(--font-body); font-style: normal; font-size: .9rem; font-weight: 600; color: var(--teal); }
.timeline { list-style: none; padding: 0; margin: 0 0 1.4rem; border-left: 2px solid var(--aqua); }
.timeline li { display: flex; gap: 1rem; align-items: baseline; padding: .55rem 0 .55rem 1.2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1.1rem; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }
.timeline .yr { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--teal); min-width: 3.4rem; }

.photo-band { position: relative; height: clamp(220px, 32vw, 380px); overflow: hidden; background: var(--ink); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; display: block; }
.photo-band-cap { position: absolute; right: 0; bottom: 0; background: var(--ink); color: #fff; font-family: var(--font-head); font-size: 1.15rem; padding: .7rem 1.6rem; border-top-left-radius: var(--radius); }

/* team (8 cells: 2x4 / 4x2) */
.team-card { height: 100%; padding: 1.6rem 1.3rem; border-radius: var(--radius); background: var(--mist); border-top: 5px solid var(--teal); }
.team-card.alt { border-top-color: var(--sun); }
.team-card.dark { background: var(--ink); border-top-color: var(--sun); }
.team-card h3 { font-size: 1.45rem; margin-bottom: .3rem; }
.team-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.team-card.dark h3 { color: #fff; }
.team-card.dark p { color: var(--aqua); }

/* new patients */
.photo-card { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .25rem; font-weight: 500; }
.check-list li::before { content: "\F26A"; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--teal); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: 0 8px 30px rgba(11,53,64,.05); }
.info-card.accent { background: var(--aqua); border-color: var(--aqua); }
.info-card > :last-child { margin-bottom: 0; }
.form-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.form-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.form-list a { display: inline-block; margin-left: .4rem; padding: .1rem .7rem; border-radius: 999px; background: var(--mist); font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--teal); border: 1px solid var(--aqua); }
.form-list a:hover { background: var(--teal); color: #fff; }

/* accordions */
.proc-acc { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(19,122,118,.25); --bs-accordion-active-bg: var(--mist); --bs-accordion-active-color: var(--ink); }
.proc-acc .accordion-item { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proc-acc .accordion-item:last-child { margin-bottom: 0; }
.proc-acc .accordion-button { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--ink); padding: 1.1rem 1.4rem; }
.proc-acc .accordion-button:not(.collapsed) { box-shadow: none; }
.proc-acc .accordion-body { padding: 1.4rem 1.5rem 1.6rem; font-size: .98rem; color: var(--text); }
.proc-acc .accordion-body::after { content: ""; display: table; clear: both; }
.proc-acc .accordion-body h4 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
.proc-acc .accordion-body h4:first-child { margin-top: 0; }
.proc-acc .accordion-body ul { padding-left: 1.2rem; }
.proc-acc .accordion-body li { margin-bottom: .45rem; }
.proc-img { float: right; width: 150px; height: auto; margin: 0 0 .8rem 1.2rem; border-radius: 10px; }
@media (max-width: 575.98px) { .proc-img { float: none; display: block; margin: 0 0 1rem; width: 180px; } }
.proc-acc.on-dark .accordion-item { background: #fff; border-color: transparent; }

/* gallery 4x1 desktop, 2x2 mobile */
.gal { width: 100%; height: auto; aspect-ratio: 960 / 342; object-fit: cover; border-radius: var(--radius); display: block; }
@media (max-width: 991.98px) { .gal { aspect-ratio: 4 / 3; } }
#smiles .gal { aspect-ratio: 4 / 3; }
#smiles .col:nth-child(1) .gal { object-position: 30% center; }
#smiles .col:nth-child(2) .gal { object-position: 28% center; }
#smiles .col:nth-child(3) .gal { object-position: 32% center; }
#smiles .col:nth-child(4) .gal { object-position: 50% center; }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .8rem; font-size: 1.05rem; }
.contact-list i, .mini-title i { color: var(--teal); }
.contact-list i { font-size: 1.25rem; margin-top: .1rem; }
.hours { width: 100%; }
.hours th, .hours td { padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--ink); font-weight: 600; }
.hours td { text-align: right; }
.map-wrap { height: 100%; min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* footer */
.site-footer { background: var(--ink); color: #c4dcd9; padding: 4rem 0 1.5rem; margin-top: 5.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.logo-chip { display: inline-flex; background: #f7f4ec; padding: .45rem; border-radius: 12px; }
.logo-chip img { width: 56px; height: 56px; display: block; }
.footer-name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; line-height: 1.2; }
.footer-name small { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-top: .25rem; }
.footer-h { font-family: var(--font-body); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.powered { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); text-align: center; }
.powered a { display: inline-block; padding: .6rem 1.4rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); font-size: .95rem; }
.powered a i { color: var(--sun); }
.powered a:hover { background: var(--sun); color: var(--ink); }
.powered a:hover i { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .callout { transition: none; } }
