/* Divine Dental Care – site styles. Colours come from the clinic logo (blue tooth, green hands). */
:root {
  --ink: #0b2236;
  --text: #33475a;
  --muted: #5c6e7f;
  --line: #e2eaf0;
  --bg: #ffffff;
  --soft: #f4f8fb;
  --blue: #1570c0;
  --blue-700: #0c5596;
  --blue-50: #ecf5fd;
  --green: #2e8b3a;
  --green-700: #1d6a29;
  --green-50: #edf7ef;
  --wa: #1f9d55;
  --gold: #e3a020;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 34, 54, .06), 0 8px 28px rgba(11, 34, 54, .07);
  --shadow-lg: 0 2px 6px rgba(11, 34, 54, .06), 0 24px 60px rgba(11, 34, 54, .12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { background: var(--ink); color: #cfe0ee; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span, .topbar a { display: inline-flex; gap: 8px; align-items: center; }
.topbar .left { display: flex; gap: 22px; flex-wrap: wrap; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa9b5; }
.open-dot.is-open { background: #4fd17a; box-shadow: 0 0 0 4px rgba(79, 209, 122, .18); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand b { display: block; font: 600 1.24rem/1.1 var(--serif); }
.brand small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(21, 112, 192, .28); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(31, 157, 85, .25); }
.btn-wa:hover { background: #17834a; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-700); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--blue-50), transparent 60%), radial-gradient(900px 500px at -10% 110%, var(--green-50), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 84px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); background: var(--green-50); padding: 9px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { font-size: 1.16rem; max-width: 36em; color: var(--text); margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: .93rem; color: var(--ink); }
.trust li { display: inline-flex; gap: 8px; align-items: center; }
.trust .icon { color: var(--green); }
.stars { color: var(--gold); letter-spacing: 1px; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: .9rem; color: var(--ink); }
.float-card b { display: block; font-size: 1rem; }
.float-card.one { left: -26px; bottom: 34px; }
.float-card.two { right: -18px; top: 28px; }
.float-card .badge { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }

/* Sections */
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.kicker { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }

/* Treatment cards */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.tcard { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.tcard:hover { border-color: #bcd6ea; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tcard .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.tcard .ic .icon { width: 28px; height: 28px; }
.tcard h3 { margin: 6px 0 0; font-size: 1.16rem; }
.tcard p { margin: 0; font-size: .95rem; color: var(--muted); }
.tcard .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--blue-700); display: inline-flex; gap: 6px; align-items: center; }
.group-title { font: 600 1.05rem/1.2 var(--sans); color: var(--ink); margin: 44px 0 16px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .media { order: 2; }
.media img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: var(--green); margin-top: 3px; }

/* Feature tiles */
.feature { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin: 0; font-size: .96rem; color: var(--muted); }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.photo-strip figure { margin: 0; border-radius: 20px; overflow: hidden; }
.photo-strip figure:first-child { grid-row: span 2; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-strip figure:hover img { transform: scale(1.03); }

/* Reviews band */
.rating-card { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #0d3550, #0b2236); color: #e6f0f7; border-radius: 28px; padding: 40px 44px; }
.rating-card .score { font: 600 4rem/1 var(--serif); color: #fff; }
.rating-card h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.grid + .btn-row, .photo-strip + .btn-row { margin-top: 28px; }
.rating-card .stars { font-size: 1.4rem; }
.rating-card p { margin: 6px 0 0; color: #b9cddd; }
.rating-card .btn-row { margin-left: auto; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--text); }
.faq details > div p:last-child { margin: 0; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-card h3 { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; margin-bottom: 10px; }
.info-card h3 .icon { color: var(--blue); }
.info-card + .info-card { margin-top: 16px; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 500; color: var(--ink); width: 38%; }
.hours td { white-space: nowrap; }
.hours tr.today th, .hours tr.today td { color: var(--blue-700); font-weight: 700; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: #dfe9f0 center / cover no-repeat; border: 1px solid var(--line); }
.map iframe, .map > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.map .map-load { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(rgba(11, 34, 54, .35), rgba(11, 34, 54, .55)); color: #fff; text-align: center; padding: 24px; }
.map .map-load p { margin: 10px 0 18px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--blue-700), var(--blue) 55%, #1c8a8a); color: #e9f4fd; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e9f8; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }

/* Page header + breadcrumbs */
.page-head { background: radial-gradient(900px 400px at 100% 0, var(--blue-50), transparent 60%), var(--soft); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .lead { font-size: 1.12rem; max-width: 46em; color: var(--text); }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a7b6c2; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-700); text-decoration: underline; }

/* Treatment page */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding: 56px 0 88px; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose ol { counter-reset: step; list-style: none; padding: 0; }
.prose ol li { counter-increment: step; position: relative; padding-left: 50px; margin-bottom: 16px; min-height: 34px; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-weight: 700; display: grid; place-items: center; font-size: .92rem; }
.prose .lead-img { margin: 0 0 32px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.prose .lead-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.prose .faq { margin-top: 8px; }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.aside .card h3 { font-size: 1.18rem; }
.aside .card .btn { width: 100%; margin-top: 10px; }
.aside .mini-hours { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: 12px; background: var(--soft); font-weight: 500; font-size: .95rem; }
.related a:hover { background: var(--blue-50); color: var(--blue-700); }
.note { background: var(--green-50); border-left: 4px solid var(--green); border-radius: 12px; padding: 16px 20px; font-size: .95rem; margin: 28px 0; }

/* Forms */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fbfdfe; border: 1.5px solid #d3dfe8; border-radius: 12px; padding: 13px 14px; min-height: 50px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 112, 192, .14); background: #fff; }
.field .err { display: none; color: #b42318; font-size: .86rem; margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: #d92d20; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-done { display: none; background: var(--green-50); border-radius: 14px; padding: 18px 20px; color: var(--green-700); }
.form-done.show { display: block; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery button { all: unset; display: block; margin: 0 0 16px; border-radius: 18px; overflow: hidden; cursor: zoom-in; break-inside: avoid; box-shadow: var(--shadow); }
.gallery button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(6, 18, 28, .86); }
.lightbox img { max-height: 84vh; width: auto; margin: auto; border-radius: 14px; }
.lightbox p { color: #e6eef4; text-align: center; margin: 12px 0 0; }
.lightbox .close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* Footer */
.footer { background: var(--ink); color: #b7c7d4; padding: 72px 0 0; margin-top: 0; font-size: .95rem; }
.footer a { color: #e3edf5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font: 600 1rem/1.2 var(--sans); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand img { background: #fff; border-radius: 12px; padding: 4px; }
.footer .brand small { color: #9fb2c2; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: #8ea3b4; }
.footer .legal ul { display: flex; gap: 18px; }

/* Floating WhatsApp (desktop) + action bar (phones) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; padding: 14px 20px 14px 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(31, 157, 85, .35); font-weight: 600; }
.wa-float:hover { color: #fff; background: #17834a; }
.wa-float .icon { width: 26px; height: 26px; }
.action-bar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 10px 9px; font-size: .9rem; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 920px) {
  body { font-size: 16.5px; padding-bottom: 74px; }
  .topbar .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .header .wrap { min-height: 68px; gap: 12px; }
  .header .btn-book { display: none; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 68px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.02rem; }
  .hero .wrap, .split, .location, .cta-band { grid-template-columns: 1fr; }
  .hero .wrap { padding: 40px 0 56px; gap: 36px; }
  .split.reverse .media { order: 0; }
  .float-card.one { left: 12px; bottom: 14px; }
  .float-card.two { right: 12px; top: 14px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .photo-strip figure:first-child { grid-column: span 2; grid-row: auto; }
  .cta-band { padding: 36px 26px; border-radius: 24px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .rating-card { padding: 30px 26px; }
  .rating-card .btn-row { margin-left: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .wa-float { display: none; }
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 34, 54, .08); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .82rem; color: var(--ink); background: var(--soft); }
  .action-bar a .icon { width: 22px; height: 22px; }
  .action-bar a.wa { background: var(--wa); color: #fff; }
  .action-bar a.book { background: var(--blue); color: #fff; }
}
@media (max-width: 600px) {
  .topbar .wrap > a { display: none; }
  .topbar { font-size: .82rem; }
  .grid-4, .grid-3, .grid-2, .form .row { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1.12rem; }
  .hero-media .frame { aspect-ratio: 4 / 3.4; }
  .float-card { padding: 10px 12px; font-size: .82rem; }
  .float-card .badge { width: 34px; height: 34px; }
  .form { padding: 24px 18px; }
  .footer .cols { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .tcard { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .header, .action-bar, .wa-float, .footer, .map { display: none !important; }
}
