/* Brightside Dental · sample site by Ninth Orbit Software */
:root {
  --white: #fbfdfc;
  --mint-50: #f1faf6;
  --mint-100: #e3f4ec;
  --mint-200: #c8e9db;
  --mint-300: #a5d8c4;
  --teal-500: #2f8279;
  --teal-700: #0e5c5a;
  --teal-900: #0a3f3e;
  --coral: #f4846f;
  --coral-soft: #fde3dc;
  --ink: #17302f;
  --muted: #4b6463;
  --line: #d6e9e1;
  --radius-lg: 32px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(10, 63, 62, .35);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-700); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--teal-900); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Sample bar */
.samplebar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
  padding: 7px 16px; background: var(--teal-900); color: #dff3ec; font-size: .82rem; text-align: center;
}
.samplebar p { margin: 0; }
.samplebar a { color: #fff; }
.samplebar__cta { font-weight: 700; background: var(--coral); color: #2b0f0a !important; text-decoration: none; padding: 3px 12px; border-radius: 999px; }
.samplebar__cta:hover { background: #f79a88; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 253, 252, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.35rem; color: var(--teal-900); margin: 0; }
.brand b { font-weight: 600; color: var(--teal-500); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--teal-700); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--teal-700);
  background: var(--teal-700); color: #fff; font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--small { min-height: 42px; padding: 0 20px; }
.btn--ghost { background: transparent; color: var(--teal-700); }
.btn--ghost:hover { background: var(--mint-100); color: var(--teal-900); }
.btn--coral { background: var(--coral); border-color: var(--coral); color: #2b0f0a; }
.btn--coral:hover { background: #f79a88; border-color: #f79a88; }
.btn--ghost-light { background: #fff; border-color: var(--mint-300); color: var(--teal-900); }

/* Shared */
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-500); margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--mint { background: var(--mint-50); }
.section--soft { background: linear-gradient(180deg, var(--white), var(--mint-50)); }
.section--teal { background: var(--teal-700); color: #e6f5ef; }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p:not(.eyebrow) { color: var(--muted); }
.small { font-size: .95rem; color: var(--muted); }

/* Photos with gradient fallback (until ImageForge renders exist) */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--mint-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.photo::before { content: ""; position: absolute; inset: 0; }
.photo--hero { aspect-ratio: 4 / 4.2; border-radius: 48% 52% 40% 60% / 42% 38% 62% 58%; }
.photo--hero::before {
  background:
    radial-gradient(circle at 72% 22%, rgba(255,255,255,.95) 0 12%, transparent 13%),
    radial-gradient(ellipse at 30% 85%, rgba(14,92,90,.25) 0 28%, transparent 29%),
    linear-gradient(160deg, #eaf7f1 0%, #c8e9db 48%, #8fcfb8 100%);
}
.photo--np { aspect-ratio: 4 / 3; margin-top: 28px; }
.photo--np::before { background: radial-gradient(circle at 20% 70%, #a5d8c4 0 18%, transparent 19%), radial-gradient(circle at 78% 30%, #fde3dc 0 14%, transparent 15%), linear-gradient(135deg, #f6fbf9, #d9efe6); }
.photo--tools::before { background: repeating-linear-gradient(100deg, transparent 0 34px, rgba(255,255,255,.5) 34px 38px), linear-gradient(140deg, #e3f4ec, #b9e1d1); }
.photo--kids { aspect-ratio: 4 / 3; }
.photo--kids::before { background: radial-gradient(circle at 25% 72%, #fde3dc 0 13%, transparent 14%), radial-gradient(circle at 52% 66%, #f9c4b6 0 8%, transparent 9%), radial-gradient(circle at 74% 30%, #c8e9db 0 16%, transparent 17%), linear-gradient(160deg, #fff7f3, #e3f4ec); }
.photo--brush { aspect-ratio: 1; max-width: 360px; margin-top: 32px; border-radius: 50%; }
.photo--brush::before { background: radial-gradient(circle at 50% 70%, #fff 0 22%, transparent 23%), linear-gradient(180deg, #fff7f3, #c8e9db); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 100px); background: radial-gradient(ellipse 70% 60% at 85% 20%, var(--mint-100), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 600; font-size: .96rem; }
.hero__notes li { display: flex; align-items: center; gap: 8px; }
.hero__notes li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.hero__media { position: relative; }
.hero__badge {
  position: absolute; left: -6%; bottom: 10%; display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; color: var(--teal-900); font-size: .95rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3fbf8f; box-shadow: 0 0 0 5px rgba(63,191,143,.2); }

/* New patients */
.np { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.np__intro p:not(.eyebrow) { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 22px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li p { margin: 0; color: var(--muted); }
.steps__num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mint-100); color: var(--teal-700); font: 600 1.4rem var(--display); }
.steps li:nth-child(2) .steps__num { background: var(--coral-soft); color: #9a3a28; }

/* Treatments */
.treat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.treat__photo { grid-row: span 2; min-height: 100%; aspect-ratio: auto; }
.treat__photo img { position: absolute; inset: 0; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card h3::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 6px; background: var(--mint-300); margin-bottom: 18px; }
.card--kids h3::before { background: var(--coral); }
.card--urgent { background: var(--teal-700); border-color: var(--teal-700); grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px 32px; align-items: center; }
.card--urgent h3, .card--urgent p, .card--urgent .textlink { margin: 0; }
.card--urgent h3 { color: #fff; }
.card--urgent h3::before { background: var(--coral); }
.card--urgent p { color: #d3ece3; }
.price { margin: auto 0 0; font-weight: 700; color: var(--teal-900) !important; }
.price span { margin-left: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9a3a28; background: var(--coral-soft); padding: 2px 8px; border-radius: 999px; }
.textlink { margin-top: auto; color: #fff; font-weight: 700; font-size: 1.1rem; }

/* Kids + payment */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.duo__kids { position: relative; }
.duo__kids-text { background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); margin: -60px 24px 0; position: relative; }
.duo__kids-text h3 { margin-bottom: .3em; }
.duo__kids-text p { margin: 0; color: var(--muted); }
.pay p:not(.eyebrow) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 9' fill='none' stroke='%230e5c5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Team */
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.team h3 { margin-bottom: .1em; }
.team p { color: var(--muted); margin: 0; font-size: .98rem; }
.team .role { color: var(--teal-500); font-weight: 700; margin-bottom: .7em; }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--av); color: #fff; font: 600 1.6rem var(--display); box-shadow: 0 0 0 6px var(--mint-100); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--mint-50); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.review blockquote { margin: 14px 0 18px; }
.review blockquote p { margin: 0; font-size: 1.12rem; color: var(--teal-900); }
.review figcaption { margin-top: auto; color: var(--muted); font-size: .92rem; font-weight: 600; }
.review__tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a3a28; background: var(--coral-soft); padding: 3px 10px; border-radius: 999px; }

/* Visit */
.visit { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.hours__table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hours__table th, .hours__table td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.hours__table th { font-weight: 700; color: var(--teal-900); }
.hours__table td { color: var(--muted); text-align: right; }
.hours__table tr:last-child th, .hours__table tr:last-child td { border-bottom: 0; }
.addr { font-style: normal; color: var(--muted); }
.addr strong { color: var(--teal-900); }

.map { position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; background: #eef6f1; border: 1px solid var(--line); }
.map__water { position: absolute; left: -10%; right: -10%; bottom: -40%; height: 72%; background: linear-gradient(180deg, #bfe3e0, #9fd2cd); border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.map__water span { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); font: 500 1.05rem var(--display); color: #1d6b67; letter-spacing: .12em; text-transform: uppercase; }
.map__park { position: absolute; left: 7%; top: 10%; width: 30%; height: 30%; background: #cfe9d4; border-radius: 28px; }
.map__park span { position: absolute; inset: auto 0 12px; text-align: center; font-size: .82rem; font-weight: 700; color: #3d7a55; }
.map__road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #dbe9e3; }
.map__road--h1 { left: 0; right: 0; top: 47%; height: 16px; }
.map__road--h2 { left: 0; right: 0; top: 4%; height: 10px; }
.map__road--v1 { top: 0; bottom: 30%; left: 43%; width: 14px; }
.map__road--v2 { top: 0; bottom: 30%; left: 80%; width: 10px; }
.map__label { position: absolute; font-size: .78rem; font-weight: 700; color: var(--muted); }
.map__label--lane { left: 50%; top: calc(47% + 20px); }
.map__label--st { left: calc(43% + 20px); top: 18%; }
.map__pin { position: absolute; left: 62%; top: 47%; transform: translate(-50%, -100%); }
.map__pin::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto; background: var(--coral); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 10px 20px -8px rgba(154, 58, 40, .6); }
.map__pin::after { content: ""; position: absolute; left: 50%; top: 15px; width: 16px; height: 16px; margin-left: -8px; background: #fff; border-radius: 50%; }
.map__pin span { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--teal-900); color: #fff; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.map__note { position: absolute; right: 14px; bottom: 12px; font-size: .74rem; font-weight: 700; color: #1d6b67; background: rgba(255,255,255,.75); padding: 3px 10px; border-radius: 999px; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--mint-300); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative; font: 500 1.15rem var(--display); color: var(--teal-900); border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700); font: 600 1.3rem/1 var(--body); }
.faq details[open] summary::after { content: "–"; background: var(--coral-soft); color: #9a3a28; }
.faq details p { margin: 0; padding: 0 26px 24px; color: var(--muted); }

/* Book */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.book h2 { color: #fff; }
.book__text p { color: #cfe9df; }
.book__text a { color: #fff; font-weight: 700; }
.book__call a { font: 600 2.2rem var(--display); text-decoration: none; }
.book__form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 34px; display: grid; gap: 8px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.book__form label { font-weight: 700; font-size: .95rem; color: var(--teal-900); margin-top: 6px; }
.book__form input, .book__form select { font: inherit; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--mint-300); border-radius: 14px; background: var(--white); color: var(--ink); }
.book__form input:focus-visible, .book__form select:focus-visible { border-color: var(--teal-700); }
.book__form .btn { margin-top: 14px; }
.book__note { margin: 0 0 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9a3a28; }
.book__status { margin: 4px 0 0; color: var(--teal-700); font-weight: 700; min-height: 1.4em; }

/* Footer */
.footer { background: var(--teal-900); color: #c6e3d9; padding: 56px 0 28px; }
.footer a { color: #fff; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer b { color: var(--mint-300); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-start; }
.footer nav a { text-decoration: none; font-weight: 600; }
.footer__sample { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }
.footer__sample p { margin: 0 0 6px; }

/* Phone sticky bar */
.mobilebar { display: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .header__inner .btn { margin-left: auto; }
  .treat { grid-template-columns: 1fr 1fr; }
  .treat__photo { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .team { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; padding-bottom: 84px; }
  .wrap { width: calc(100% - 32px); }
  .samplebar { font-size: .76rem; }
  .header__inner { height: 64px; }
  .header__inner .btn { display: none; }
  .hero__grid, .np, .duo, .visit, .faq, .book { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .photo--hero { aspect-ratio: 4 / 3.2; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -14px; white-space: nowrap; }
  .actions .btn { width: 100%; }
  .treat, .team, .reviews { grid-template-columns: 1fr; }
  .card--urgent { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .treat__photo { aspect-ratio: 4 / 3; }
  .steps li { padding: 22px; gap: 16px; }
  .map { min-height: 340px; }
  .photo--brush { display: none; }
  .section__head { margin-bottom: 28px; }
  .book__form { padding: 24px; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 253, 252, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobilebar .btn { min-height: 50px; }
}

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