/* Brookville Dental Associates — sand paper, deep pine, terracotta */
:root {
  --sand: #f4eee3;
  --paper: #fbf8f2;
  --pine: #113f3b;
  --pine-deep: #0b2b28;
  --teal: #1f6f68;
  --clay: #b84a26;
  --clay-dark: #9a3c1c;
  --clay-text: #a4401f;
  --brass: #d3b26c;
  --ink: #1d2b29;
  --ink-soft: #46554f;
  --line: rgba(17, 63, 59, .16);
  --radius: 18px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
.container-xl { --bs-gutter-x: 3rem; }   /* matches the g-5 row gutters so nothing overflows on phones */
section[id], header[id], article[id] { scroll-margin-top: 4.75rem; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--pine); line-height: 1.08; letter-spacing: -.01em; }
h1, h2 { text-wrap: balance; }
h2 em, h1 em { font-style: italic; color: var(--clay-text); }
p { color: var(--ink-soft); }
a { color: var(--teal); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: .6rem 1rem; z-index: 10000; }
.skip-link:focus { left: .5rem; top: .5rem; }

.eyebrow {
  font: 700 .78rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-text);
  margin-bottom: 1rem;
}
.eyebrow-brass { color: var(--brass); }

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; letter-spacing: .01em; }
.btn-clay { background: var(--clay); color: #fff; border: 2px solid var(--clay); }
.btn-clay:hover, .btn-clay:focus-visible { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
.btn-outline-pine { color: var(--pine); border: 2px solid var(--pine); background: transparent; }
.btn-outline-pine:hover, .btn-outline-pine:focus-visible { background: var(--pine); color: #fff; }
.btn i { margin-right: .35rem; }
a:focus-visible, .btn:focus-visible, .navbar-toggler:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.text-link { display: inline-block; font-weight: 700; color: var(--pine); text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; margin-top: .5rem; }
.text-link:hover { color: var(--clay-text); border-color: var(--clay); }
.text-link i { transition: transform .2s; }
.text-link:hover i { transform: translateX(4px); }

/* ---------- nav ---------- */
.site-nav { background: rgba(244, 238, 227, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: .6rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; font: 400 1.5rem/1 var(--serif); color: var(--pine); white-space: nowrap; margin-right: 1rem; }
.navbar-brand:hover { color: var(--pine); }
.navbar-brand em { color: var(--clay-text); }
.brand-mark { flex: none; }
.navbar-toggler { border: 1px solid var(--line); color: var(--pine); font-size: 1.6rem; padding: .1rem .5rem; line-height: 1.2; }
.navbar-toggler:focus { box-shadow: none; }
.site-nav .nav-link { font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5rem .8rem; white-space: nowrap; }
.site-nav .nav-link:hover { color: var(--clay-text); }
.nav-cta { margin-left: .5rem; }
.nav-cta .btn { white-space: nowrap; padding: .45rem 1.1rem; }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding: .75rem 0 1rem; }
  .site-nav .nav-link { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { display: block; text-align: center; padding: .7rem 1rem; }
}
@media (max-width: 575.98px) { .navbar-brand { font-size: 1.25rem; gap: .45rem; margin-right: .5rem; } .brand-mark { width: 28px; height: 28px; } }
@media (max-width: 359.98px) { .navbar-brand { font-size: 1.1rem; } }

/* ---------- hero: typographic-forward ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6.5rem); background:
  radial-gradient(60rem 30rem at 85% 10%, rgba(211, 178, 108, .22), transparent 60%),
  var(--sand); overflow: hidden; }
.hero-title { font-size: clamp(3.1rem, 8.4vw, 7rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; color: var(--ink); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-tags { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .92rem; font-weight: 600; color: var(--teal); }
.hero-tags li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-right: .5rem; vertical-align: .18em; }

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, 30rem);
  margin-inline: auto;
  border-radius: 999px 999px 26px 26px;      /* a dental arch */
  background: url('img/hero.webp') 78% center/cover no-repeat;
  box-shadow: 0 0 0 10px var(--sand), 0 0 0 12px var(--brass), 0 30px 60px -20px rgba(17, 63, 59, .35);
}
.hero-badge {
  position: absolute; left: -1.25rem; bottom: 2.5rem;
  display: flex; align-items: center; gap: .8rem;
  background: var(--pine); color: #fff; border-radius: 16px; padding: .9rem 1.2rem;
  box-shadow: 0 14px 30px -10px rgba(11, 43, 40, .55);
}
.hero-badge i { font-size: 1.5rem; color: var(--brass); }
.hero-badge span { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.35; color: #d9e6e3; }
.hero-badge strong { color: #fff; font-size: 1rem; }
@media (max-width: 991.98px) {
  .hero-photo { aspect-ratio: 1 / 1; width: min(100%, 24rem); }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -1rem; width: max-content; }
}
@media (max-width: 575.98px) {
  .hero-cta .btn { width: 100%; }
  .hero-badge { padding: .7rem 1rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-paper { background: var(--paper); }
.section-pine { background: var(--pine); color: #d9e6e3; }
.section-pine h2, .section-pine h3 { color: #fff; }
.section-pine p { color: #c3d6d2; }
.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.display { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: 1.5rem; }
.lead-copy { font-size: 1.2rem; color: var(--ink); }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--teal); line-height: 1.25; }

/* welcome */
.doctors-card { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.25rem 1.5rem; text-align: center; box-shadow: 0 24px 50px -28px rgba(17, 63, 59, .45); border: 1px solid var(--line); }
.doctors-card img { width: 100%; height: auto; }
.doctors-card figcaption { font-family: var(--serif); font-size: 1.35rem; color: var(--pine); line-height: 1.3; margin-top: .5rem; }
.doctors-card figcaption i { color: var(--clay-text); }
.doctors-card figcaption span { display: inline-block; }
.mission { margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--pine); border-radius: var(--radius); }
.mission .eyebrow { color: var(--brass); margin-bottom: .4rem; display: block; }
.mission p { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif); color: #fff; margin: 0; }

/* services */
.svc { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.svc-num { font: 400 1.05rem var(--serif); color: var(--clay-text); letter-spacing: .2em; display: block; margin-bottom: .5rem; }
.svc h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.25rem; }
.list-title { font: 700 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay-text); margin: 1.5rem 0 .75rem; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--sand); border: 1px solid var(--line); color: var(--pine); font-weight: 600; font-size: .92rem; border-radius: 999px; padding: .3rem .95rem; }
.chips li small { font-weight: 500; color: var(--ink-soft); }
.chips-sm li { font-size: .85rem; font-weight: 500; background: #fff; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--ink-soft); }
.checks li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--teal); font-size: 1.1rem; }
.note { background: var(--sand); border-left: 4px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; margin: 1.25rem 0 1.5rem; }
.note h4 { font-size: 1.5rem; margin-bottom: .4rem; }
.note h4 i { color: var(--clay-text); margin-right: .35rem; font-size: 1.15rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.inset-media { position: relative; padding-bottom: 2.5rem; }
.inset-media .main { width: 100%; border-radius: var(--radius); display: block; }
.inset-media .inset { position: absolute; right: -.5rem; bottom: 0; width: 44%; border-radius: 14px; border: 6px solid var(--paper); box-shadow: 0 18px 34px -14px rgba(11, 43, 40, .5); }
@media (max-width: 575.98px) { .inset-media .inset { right: 0; } }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.mosaic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.mosaic img:nth-child(n+3) { aspect-ratio: 3 / 2; }   /* bottom row keeps the full 'Ceramic Implant Crown' caption */
.mosaic img.contain { object-fit: contain; background: #fff; padding: .5rem; border: 1px solid var(--line); }

.plate { border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: center; min-height: 18rem; }
.plate img { width: min(100%, 17rem); height: auto; border-radius: 12px; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .5); }
.plate-pine { background: var(--pine); }
.plate-sand { background: #e7dcc7; }
.plate-clay { background: var(--clay); }
.restorative-list { justify-content: flex-start; min-height: 0; }
.restorative-list ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.restorative-list > ul > li { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--serif); color: #fff; padding: .55rem 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.restorative-list > ul > li:last-child { border-bottom: 0; }
.restorative-list ul ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.restorative-list ul ul li { font: 600 .82rem var(--sans); letter-spacing: .02em; background: rgba(255, 255, 255, .18); color: #fff; padding: .25rem .8rem; border-radius: 999px; }

/* smile makeovers */
.case { margin: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 1rem 1rem 1.2rem; height: 100%; }
.case-imgs { display: grid; gap: .6rem; }
.case-imgs > div { position: relative; }
.case-imgs img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 10px; display: block; }
.case-imgs span { position: absolute; left: .5rem; top: .5rem; font: 700 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; background: rgba(11, 43, 40, .82); color: #fff; padding: .15rem .55rem; border-radius: 999px; }
.case-imgs > div:last-child span { background: var(--clay); }
.case figcaption { font: 400 1.35rem/1.2 var(--serif); color: #fff; margin-top: 1rem; }
.case figcaption small { display: block; font: 500 .85rem var(--sans); color: #b8ccc8; margin-top: .25rem; }

/* staff */
.office-photo { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(17, 63, 59, .5); }
.section-head-row { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.doctors { border-top: 1px solid var(--line); }
.doctor { padding: clamp(2rem, 4vw, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.doctor img { width: 100%; max-width: 12rem; height: auto; border-radius: 999px 999px 14px 14px; border: 5px solid #fff; box-shadow: 0 18px 34px -18px rgba(17, 63, 59, .5); }
.doctor h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.team-title { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: clamp(2.5rem, 5vw, 4rem) 0 1.75rem; }
.team { text-align: center; }
.team img { width: 7.5rem; height: 7.5rem; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: .9rem; }
.team h4 { font-size: 1.55rem; margin: 0; }
.team p { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-text); margin: 0; }

/* savings */
.savings-photo { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 50px -28px rgba(17, 63, 59, .5); }
.nos { margin-top: clamp(2rem, 4vw, 3rem); }
.no-cell { height: 100%; display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.3rem; }
.no-cell i { font-size: 1.7rem; color: var(--teal); flex: none; line-height: 1; }
.no-cell span { font-weight: 700; color: var(--pine); line-height: 1.3; }
.plans { margin-top: clamp(2.25rem, 4vw, 3.25rem); background: var(--pine); border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.plans-lead { color: #d9e6e3; font-size: 1.1rem; margin-bottom: 1.25rem; }
.plan { height: 100%; display: flex; align-items: center; gap: .9rem; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 1rem 1.2rem; }
.plan i { font-size: 1.6rem; color: var(--brass); line-height: 1; }
.plan h4 { font: 400 1.5rem/1.15 var(--serif); color: #fff; margin: 0; }
.plan small { font: 500 .85rem var(--sans); color: #c3d6d2; }

/* contact */
.contact-block { font-style: normal; font-size: 1.15rem; color: var(--ink); margin: 1.5rem 0 .5rem; line-height: 1.6; }
.contact-block strong { display: block; font: 400 1.5rem var(--serif); color: var(--pine); }
.phone-big { display: inline-block; font: 400 clamp(2rem, 4vw, 2.6rem)/1.1 var(--serif); color: var(--clay-text); text-decoration: none; margin-bottom: 1.75rem; }
.phone-big:hover { color: var(--clay-dark); }
.hours-title { font: 700 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pine); margin-bottom: .5rem; }
.hours-title i { color: var(--clay-text); margin-right: .3rem; }
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin-bottom: 2rem; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--pine); font-weight: 700; }
.hours tr.closed th, .hours tr.closed td { color: var(--ink-soft); font-weight: 500; }
.form-dl { display: flex; align-items: center; gap: 1rem; text-decoration: none; background: var(--pine); color: #d9e6e3; border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: transform .2s, background .2s; }
.form-dl:hover { background: var(--pine-deep); color: #fff; transform: translateY(-2px); }
.form-dl > i:first-child { font-size: 2rem; color: var(--brass); }
.form-dl > i:last-child { font-size: 1.3rem; margin-left: auto; color: var(--brass); }
.form-dl span { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.4; }
.form-dl strong { color: #fff; font-size: 1.02rem; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 21rem; background: #e7dcc7; box-shadow: 0 24px 50px -30px rgba(17, 63, 59, .5); margin-bottom: 1rem; }
@media (min-width: 992px) { .map-wrap { height: auto; aspect-ratio: 4 / 3.4; } }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.directions { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.directions > h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 1.5rem; }
.directions > h3 i { color: var(--clay-text); font-size: .8em; margin-right: .3rem; }
.route { height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.route h4 { font-size: 1.6rem; margin-bottom: 1rem; }
.route h4 small { font: 500 .85rem var(--sans); color: var(--ink-soft); }
.route ol { margin: 0; padding-left: 1.3rem; color: var(--ink-soft); font-size: .98rem; }
.route li { margin-bottom: .45rem; padding-left: .25rem; }
.route li::marker { color: var(--clay-text); font-weight: 700; }

/* footer */
.site-footer { background: var(--pine-deep); color: #b8ccc8; padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; font-size: .98rem; }
.site-footer a { color: #d9e6e3; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.logo-chip { display: inline-block; background: var(--sand); border-radius: 16px; padding: .6rem; line-height: 0; }
.logo-chip img { width: 10rem; height: auto; border-radius: 8px; display: block; }
.foot-addr { margin-top: 1.25rem; color: #b8ccc8; line-height: 1.7; }
.site-footer h5 { font: 700 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: .45rem; }
.creds { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.creds a { display: block; background: var(--sand); border-radius: 12px; padding: .5rem .7rem; line-height: 0; }
.creds img { width: 6.5rem; height: auto; }
.foot-base { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; font-size: .88rem; }
.powered { display: inline-flex; align-items: center; gap: .4rem; background: rgba(211, 178, 108, .14); border: 1px solid rgba(211, 178, 108, .45); border-radius: 999px; padding: .4rem 1rem; color: #f3e6c4 !important; }
.powered i { color: var(--brass); }
.powered strong { color: #fff; }
.powered:hover { background: rgba(211, 178, 108, .26); }

@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .team img { width: 6.25rem; height: 6.25rem; }
  .form-dl { align-items: flex-start; }
  .no-cell { padding: 1rem; gap: .75rem; }
  .no-cell i { font-size: 1.4rem; }
  .no-cell span { font-size: .92rem; }
}
