/*
Theme Name: Brightwater
Description: Dental practice theme: services and team managed in the dashboard, appointment requests, practice settings in the Customizer. Accessible (WCAG AA) and fast.
Author: SS Web Studio
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: brightwater
*/

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --navy: #0b2a3a;
  --text: #22394a;
  --muted: #557080;
  --teal: #0f766e;          /* white text on it: 5.4:1 */
  --teal-dark: #115e59;
  --mint: #e3f3f0;
  --sky: #f4f9fa;
  --coral: #f08a5d;
  --line: #dce8ec;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(11, 42, 58, .12);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.stars { color: #f5a623; letter-spacing: 2px; }

.section { padding: 100px 0; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p:last-child { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.section__title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin-bottom: 18px; }
.section__head .section__title { margin-bottom: 0; }
.eyebrow { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--mint); color: var(--teal-dark); font: 700 13px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow--light { background: rgba(255,255,255,.15); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: #fff; font: 700 16px/1.1 var(--font-head); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,118,110,.28); }
.btn .icon { width: 20px; height: 20px; }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--full { width: 100%; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { background: #fff; color: var(--teal); border-color: var(--teal); box-shadow: none; }
.btn--light { background: #fff; border-color: #fff; color: var(--teal-dark); }
.btn--light:hover { background: var(--mint); border-color: var(--mint); color: var(--teal-dark); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }

/* Topbar & header */
.topbar { background: var(--navy); color: #cfe3ea; font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar .icon { color: var(--coral); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11,42,58,.06); }
.admin-bar .header { top: 32px; }
.header__inner { display: flex; align-items: center; gap: 30px; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: #fff; }
.logo__mark .icon { width: 24px; height: 24px; }
.logo__text { font: 800 20px/1 var(--font-head); letter-spacing: -0.02em; }
.logo__text small { display: block; font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__list a:hover { color: var(--teal); }
.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; align-items: center; gap: 8px; color: var(--navy); font: 700 17px/1 var(--font-head); text-decoration: none; }
.header__phone .icon { color: var(--teal); }
.burger { display: none; margin-left: auto; padding: 10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .3s, opacity .3s; }

/* Hero */
.hero { padding: 70px 0 90px; background: linear-gradient(180deg, var(--sky), #fff); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero__rating { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; margin-bottom: 24px; }
.hero__title { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; margin-bottom: 22px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.checks { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--mint); color: var(--teal); stroke-width: 3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 40% center; border-radius: 32px 160px 32px 32px; box-shadow: var(--shadow); }
.hero__special { position: absolute; left: -30px; bottom: 40px; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); font-size: 14px; transition: transform .2s; }
.hero__special:hover { transform: translateY(-3px); color: var(--text); }
.hero__special-price { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--coral); color: var(--navy); font: 800 20px/1 var(--font-head); }
.hero__special strong { display: block; font: 700 17px/1.2 var(--font-head); color: var(--navy); }

/* Insurance */
.insurance { border-block: 1px solid var(--line); background: #fff; }
.insurance__inner { display: flex; align-items: center; gap: 30px; padding-top: 22px; padding-bottom: 22px; }
.insurance__label { margin: 0; font-weight: 600; color: var(--navy); white-space: nowrap; }
.insurance__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.insurance__list li { font: 700 16px/1.4 var(--font-head); color: #7c93a0; }

/* Services */
.services { background: var(--sky); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--mint); color: var(--teal); margin-bottom: 22px; }
.service__icon .icon { width: 30px; height: 30px; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.service .service__price { flex: 0; margin-top: 18px; font: 700 15px/1 var(--font-head); color: var(--teal); }

/* Special */
.special { background: linear-gradient(120deg, var(--teal), var(--teal-dark)); color: #fff; padding: 90px 0; }
.special__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.special h2 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; margin-bottom: 18px; }
.special h2 span { color: #ffd2bd; }
.special p { color: #d4efea; font-size: 18px; }
.checks--light .icon { background: rgba(255,255,255,.18); color: #fff; }
.checks--light { margin: 24px 0 34px; }
.special__img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.25); }

/* Team */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.doctor__photo { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 20%; }
.doctor__body { padding: 26px 26px 30px; }
.doctor h3 { font-size: 22px; }
.doctor__role { margin: 4px 0 12px; color: var(--teal); font-weight: 600; font-size: 14px; }
.doctor p:last-child { color: var(--muted); font-size: 15px; margin: 0; }

/* Why */
.why { background: var(--sky); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.why__list li { display: flex; gap: 16px; }
.why__icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: #fff; color: var(--teal); box-shadow: 0 6px 16px rgba(11,42,58,.08); }
.why__list h3 { font-size: 19px; margin-bottom: 4px; }
.why__list p { margin: 0; color: var(--muted); font-size: 15px; }

/* Reviews */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { margin: 0; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,42,58,.06); display: flex; flex-direction: column; }
.review .stars { font-size: 20px; margin-bottom: 14px; }
.review blockquote { margin: 0 0 22px; font-size: 16px; flex: 1; }
.review figcaption { color: var(--muted); font-size: 14px; }
.review figcaption strong { display: block; color: var(--navy); font-size: 16px; }

/* FAQ */
.faq { background: var(--sky); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq__grid > div:first-child p { color: var(--muted); }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font: 700 17px/1.35 var(--font-head); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--teal); display: grid; place-items: center; font: 600 20px/1 var(--font-body); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* Booking */
.book { background: var(--navy); color: #cfe3ea; }
.book__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.book .section__title { color: #fff; }
.book__details { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.book__details li { display: flex; gap: 14px; }
.book__details .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.08); color: #7fd6c9; }
.book__details a { color: #fff; }
.form { display: grid; gap: 16px; padding: 38px; background: #fff; color: var(--text); border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form__optional { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--sky); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form .is-invalid { border-color: #c0392b; background: #fdf2f0; }
.form textarea { resize: vertical; }
.form__toggle { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form__toggle legend { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.form__toggle label { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.form__toggle label:has(input:checked) { border-color: var(--teal); background: var(--mint); }
.form__toggle input { width: auto; accent-color: var(--teal); }
.form__hp { position: absolute; left: -9999px; }
.form__notice { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form__notice--ok { background: #e3f6ea; color: #1f6b3b; }
.form__notice--error { background: #fdecea; color: #a12a1e; }
.form__status { margin: 0; font-weight: 600; font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-error { color: #a12a1e; }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }

/* CTA */
.cta { padding: 100px 0; text-align: center; color: #fff; background: linear-gradient(120deg, rgba(11,42,58,.88), rgba(15,118,110,.82)), url("assets/img/family.jpg") center 35% / cover no-repeat, var(--navy); }
.cta h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 760px; margin: 0 auto 14px; }
.cta p { font-size: 19px; color: #d9eef0; margin-bottom: 32px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { background: #071d29; color: #9fb8c4; padding: 64px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand { font: 800 21px/1.2 var(--font-head); color: #fff; margin-bottom: 10px; }
.footer__title { font: 700 13px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer a { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer__bottom p { margin: 0; }
.mobile-bar { display: none; }

/* Page */
.page { max-width: 820px; padding-top: 70px; padding-bottom: 90px; }
.page__title { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-bottom: 30px; }
.page__content h2 { font-size: 22px; margin: 34px 0 12px; }
.page__content p { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .nav__list { gap: 18px; }
}
@media (max-width: 960px) {
  .header__cta { display: none; }
  .burger { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(11,42,58,.1); display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 17px; }
  .hero__grid, .special__grid, .why__grid, .faq__grid, .book__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__special { left: 10px; }
  .services__grid, .team__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .insurance__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar .topbar__hours { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { height: 70px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 70px; }
  .hero__img { border-radius: 24px 90px 24px 24px; }
  .hero__special { left: 10px; bottom: -20px; padding: 12px 16px 12px 12px; }
  .hero__special-price { width: 52px; height: 52px; font-size: 17px; }
  .services__grid, .team__grid { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .form__row, .form__toggle { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(11,42,58,.15); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; font: 700 17px/1 var(--font-head); text-decoration: none; color: #fff; }
  .mobile-bar__call { background: var(--navy); }
  .mobile-bar__book { background: var(--teal); }
}
