/* ==========================================================================
   Jacaranda Square Dentistry — B. Linda Ongley, D.M.D.
   browardfamilydentist.com — single stylesheet for the whole static site
   Layout is centred with a max-width wrapper; no external dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #0f6e8c;
  --brand-dark: #0a4f66;
  --brand-darker: #083a4b;
  --brand-soft: #e7f3f7;
  --brand-line: #c8e0e9;
  --accent: #b9773a;
  --accent-soft: #fbf3e8;

  --ink: #14232c;
  --ink-2: #33454f;
  --ink-3: #63757f;
  --line: #dfe8ec;
  --bg: #f5f8fa;
  --surface: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 44, .06), 0 1px 3px rgba(20, 35, 44, .04);
  --shadow: 0 4px 14px rgba(20, 35, 44, .07);
  --shadow-lg: 0 14px 34px rgba(20, 35, 44, .10);

  --wrap: 1120px;
  --wrap-narrow: 46rem;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

ul, ol { margin: 0 0 1.05em; padding-left: 1.25rem; }
li { margin-bottom: .4em; }

strong { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--brand-darker);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.section { padding: clamp(2.5rem, 1.5rem + 3vw, 4.25rem) 0; }
.section--tight { padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--brand { background: linear-gradient(160deg, var(--brand-darker), var(--brand)); color: #eaf4f8; }
.section--brand h2, .section--brand h1 { color: #fff; }
.section--brand a { color: #cdeaf3; }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}
.section--brand .eyebrow { color: #9fd6e6; }

.lede { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease,
    border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { border-color: var(--brand-line); background: #fff; color: var(--brand-dark); }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-darker); }
.btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-darker);
  color: #d8eaf1;
  font-size: .875rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1.25rem;
  padding-block: .5rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__hours { color: #a9cdd9; }

/* ---------- Header / navigation ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header__inner {
  display: flex;
  flex-direction: column;
  padding-block: 0;
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand__mark {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--brand-line);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
}

.site-nav { border-top: 1px solid var(--line); }
.site-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-darker); }
.site-nav a[aria-current="page"] { color: var(--brand-darker); background: var(--brand-soft); }

.header-cta { display: flex; align-items: center; gap: .5rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .site-nav li:last-child a { border-bottom: 0; }
}

@media (max-width: 620px) {
  .brand__sub { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: .7rem 0;
  list-style: none;
  color: var(--ink-3);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(15, 110, 140, .16), transparent 62%),
    linear-gradient(180deg, #ffffff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: clamp(2.25rem, 1.25rem + 3.5vw, 4.5rem) 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .6rem; }
.hero .lede { max-width: 34rem; }
.hero__art {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
}
.hero__art img { margin-inline: auto; border-radius: var(--radius-sm); }
.hero__art figcaption { margin-top: .65rem; font-size: .85rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

/* ---------- Fact strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.facts__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.facts__value { display: block; margin-top: .2rem; font-weight: 600; color: var(--ink); }
.facts__note { display: block; font-size: .85rem; color: var(--ink-3); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.15rem; }
.grid > figure { align-self: start; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.card h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card__link { margin-top: auto; padding-top: .5rem; font-weight: 650; font-size: .93rem; text-decoration: none; }
.card__link::after { content: " \2192"; }
.card--flat { box-shadow: none; }
.card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: .5rem;
}

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; margin: 0; }
.feature-list svg { margin-top: .28rem; color: var(--brand); }
.feature-list strong { display: block; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding-left: 3rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-darker);
  font-weight: 700;
  font-size: .9rem;
}
.steps strong { display: block; }

/* ---------- Callout / note ---------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid #efdfc8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}
.callout h2, .callout h3 { font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }

.note {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}

/* ---------- Prose article ---------- */
.prose { max-width: var(--wrap-narrow); }
.prose > section { margin-top: 2rem; }
.prose > section > h2 { padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.layout > div > section + section { margin-top: 2.25rem; }
.layout > div > section > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: .5rem; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.aside {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1rem;
}
@media (max-width: 900px) {
  .aside { position: static; }
}
.aside .card { padding: 1.15rem; }
.aside h2 { font-size: 1.05rem; }
.aside ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.05em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { caption-side: top; text-align: left; color: var(--ink-3); font-size: .88rem; padding-bottom: .5rem; }
th, td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
thead th { background: var(--brand-soft); color: var(--brand-darker); }
tbody tr:nth-child(even) { background: #fafcfd; }

/* ---------- Accordion (FAQ) ---------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > *:not(summary) { margin-top: .6rem; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Gallery (before & after) ---------- */
.gallery { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.case h3 { margin-bottom: .75rem; font-size: 1.05rem; }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.case figure { margin: 0; }
.case img { border-radius: var(--radius-sm); width: 100%; }
.case figcaption {
  margin-top: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
}

/* ---------- Payment logos ---------- */
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.pay li { margin: 0; display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink-2); }
.pay img { height: 26px; width: auto; border-radius: 3px; }

/* ---------- Map / directions ---------- */
.map-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.map-figure svg { width: 100%; height: auto; display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem .7rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
textarea { min-height: 6.5rem; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
legend { font-weight: 700; padding-inline: .35rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--brand-darker), var(--brand)); color: #eaf4f8; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
}
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; color: #cdeaf3; }

/* ---------- Footer ---------- */
.site-footer { background: #0d2b36; color: #b9d2dc; font-size: .93rem; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.site-footer h2 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7fb8cb;
  margin-bottom: .85rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #dceaf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #8fb3bf;
}

/* ---------- Misc ---------- */
.meta-line { font-size: .85rem; color: var(--ink-3); }
.pill-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pill-list li {
  margin: 0;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-darker);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .85rem;
}

.topic-columns { columns: 2; column-gap: 2rem; }
.topic-columns li { break-inside: avoid; }
@media (max-width: 620px) { .topic-columns { columns: 1; } }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: .75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .aside, .breadcrumbs { display: none; }
  body { background: #fff; }
}
