/* =========================================================
   Gloire A Dieu Dental Clinic — site stylesheet
   Mobile-first. Breakpoints: 640 / 768 / 992 / 1100 / 1200
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #00173c;
  --navy-2: #0e264f;
  --blue: #3660d9;
  --blue-dark: #2347b5;
  --blue-soft: #eaf0ff;
  --accent: #feb215;
  --accent-dark: #e59c00;
  --green: #12803f;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e3e8f2;
  --tint: #f4f7fc;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 23, 60, .08);
  --shadow-lg: 0 18px 45px rgba(0, 23, 60, .14);
  --header-h: 72px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.sr-only { 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: 12px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 880px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(54, 96, 217, .28); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--blue-soft); color: var(--navy); }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn--whatsapp { background: var(--green); color: var(--white); }
.btn--whatsapp:hover { background: #0d6a33; color: var(--white); }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.link-arrow .icon { transition: transform .2s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }
.eyebrow { margin: 0 0 .5em; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

/* ---------- Top bar ---------- */
.topbar { display: none; background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .85rem; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--accent); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.topbar__info li { display: flex; align-items: center; gap: 6px; }
.topbar__info .icon { color: var(--accent); }
@media (min-width: 992px) { .topbar { display: block; } }

.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: inherit; background: rgba(255, 255, 255, .1); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--accent); color: var(--navy); }
.topbar__social a { width: 30px; height: 30px; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 2px 18px rgba(0, 23, 60, .08); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-logo { flex-shrink: 0; margin-right: auto; }
.site-logo img { width: auto; height: 44px; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-call { display: none; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.header-call small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.header-call__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.header-book { display: none; }
.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--blue-soft); color: var(--navy); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; padding: 8px 16px 20px; }
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.site-nav__list > li > a { flex: 1; padding: 14px 4px; color: var(--navy); font-weight: 500; }
.site-nav__list a.is-active, .site-nav__list > li > a:hover { color: var(--blue); }
.sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); }
.sub-toggle .icon { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu { display: none; width: 100%; list-style: none; margin: 0 0 10px; padding: 4px 0 4px 12px; border-left: 2px solid var(--blue-soft); }
.has-sub.is-expanded > .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 4px; color: var(--muted); font-size: .95rem; }
.sub-menu a:hover { color: var(--blue); }
.sub-menu a.sub-menu__svc { display: flex; align-items: center; gap: 10px; }
.sub-menu__icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); transition: background-color .2s, color .2s; }
.sub-menu a:hover .sub-menu__icon { background: var(--blue); color: var(--white); }
.site-nav__cta { display: grid; gap: 10px; margin-top: 16px; }

@media (min-width: 640px) {
  .header-book { display: inline-flex; }
  .site-logo img { height: 50px; }
}
@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .nav-toggle, .site-nav__cta, .sub-toggle { display: none; }
  .site-nav { position: static; display: block; padding: 0; border: 0; box-shadow: none; overflow: visible; max-height: none; background: none; }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list > li { border: 0; }
  .site-nav__list > li > a { padding: 30px 10px; font-size: .93rem; white-space: nowrap; }
  .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .sub-menu { position: absolute; top: 100%; left: 0; display: block; min-width: 230px; margin: 0; padding: 10px; border: 0; border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--white); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .sub-menu--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; width: 620px; left: -160px; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .sub-menu a { padding: 8px 12px; border-radius: 8px; }
  .sub-menu a:hover { background: var(--tint); }
}
.header-call, .header-book { white-space: nowrap; }
@media (min-width: 1280px) {
  .header-call { display: flex; }
  .site-header__actions { margin-left: 12px; }
}

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--navy); aspect-ratio: 2048 / 768; }
.hero-slider__track { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slider__slide { flex: 0 0 100%; height: 100%; }
.hero-slider__slide a { display: block; height: 100%; }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--navy); box-shadow: var(--shadow); }
.hero-slider__arrow:hover { background: var(--white); }
.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.hero-slider__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; position: relative; }
.hero-slider__dots button::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: background-color .2s, transform .2s; }
.hero-slider__dots button[aria-current="true"]::before { background: var(--accent); transform: scale(1.3); }
@media (min-width: 768px) { .hero-slider__arrow { display: grid; } .hero-slider__dots { bottom: 16px; } }
/* Desktop: shorter banner strip (image is centred and slightly trimmed top/bottom) */
@media (min-width: 992px) { .hero-slider { aspect-ratio: auto; width: 100%; height: min(31.25vw, 520px); } .hero-slider__slide img { object-position: center; } }

/* ---------- Intro (home H1) ---------- */
.intro { padding: 48px 0; background: linear-gradient(180deg, var(--tint), var(--white)); }
.intro__inner { display: grid; gap: 32px; align-items: center; }
.intro__lead { font-size: 1.05rem; color: var(--muted); max-width: 640px; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; margin: 0; padding: 0; }
.trust-list li { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.trust-list .icon { color: var(--blue); margin-bottom: 6px; }
.trust-list strong { color: var(--navy); font-size: 1.05rem; }
.trust-list span { color: var(--muted); font-size: .85rem; }
@media (min-width: 992px) { .intro { padding: 64px 0; } .intro__inner { grid-template-columns: 1.3fr 1fr; gap: 56px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--sm { padding: 40px 0 56px; }
.section--tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; max-width: none; text-align: left; }
.section-head--row h2 { margin: 0; }
@media (min-width: 992px) { .section { padding: 80px 0; } .section--sm { padding: 56px 0 80px; } }

/* Split media/content */
.split { display: grid; gap: 36px; align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; margin: 0; max-width: 520px; width: 100%; justify-self: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.experience-badge { position: absolute; right: -8px; bottom: 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent); color: var(--navy); font-weight: 600; font-size: .85rem; line-height: 1.3; box-shadow: var(--shadow); max-width: 150px; }
.experience-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
@media (min-width: 992px) { .split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; } .experience-badge { right: -24px; } }

/* Rich text from the admin editor */
.prose { color: #333b4c; overflow-wrap: break-word; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose--center { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.split__content .prose { margin-bottom: 24px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

.service-card, .blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.service-card:hover, .blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.service-card__link:hover { color: inherit; }
.service-card__media, .blog-card__media { display: block; overflow: hidden; aspect-ratio: 414 / 260; background: var(--tint); }
.blog-card__media { aspect-ratio: 410 / 300; }
.service-card__media img, .blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover img, .blog-card:hover img { transform: scale(1.05); }
.service-card__body, .blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.service-card h3, .blog-card h3 { margin-bottom: .4em; font-size: 1.1rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--blue); }
.service-card p, .blog-card p { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .link-arrow, .blog-card .link-arrow { margin-top: auto; }

.meta { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.meta .icon { color: var(--blue); }
.meta--row { flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin-bottom: 20px; }
.meta--row li { display: flex; align-items: center; gap: 6px; }

/* ---------- Reviews widget ---------- */
.reviews__widget { min-height: 320px; }

/* ---------- FAQs ---------- */
.faq-list { display: grid; gap: 16px; }
.faq-item { padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); background: var(--white); }
.faq-item h3 { margin-bottom: .45em; font-size: 1.05rem; line-height: 1.4; }
.faq-item p, .faq-item__answer { margin: 0; color: #3d4556; font-size: .97rem; }
.faq-block { margin-top: 48px; padding: 28px 18px; border-radius: var(--radius); background: var(--tint); }
.faq-block h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.faq-block__intro { color: var(--muted); }
.faq-block__more { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--navy); }
.faq-block__more p { margin: 0; }
.faq-block__more a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-block__more .icon { color: var(--blue); margin-top: 2px; }
@media (min-width: 768px) { .faq-block { padding: 36px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 40px 0 44px; color: var(--white); background: radial-gradient(circle at 85% 20%, rgba(54, 96, 217, .55), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.page-hero h1 { margin: 10px 0 0; color: var(--white); }
.page-hero__lead { max-width: 720px; margin: 12px 0 0; color: rgba(255, 255, 255, .85); }
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: .875rem; color: rgba(255, 255, 255, .75); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }
@media (min-width: 992px) { .page-hero { padding: 64px 0; } }

/* ---------- Sidebar layout ---------- */
.layout-sidebar { display: grid; gap: 40px; }
.layout-sidebar__main { min-width: 0; }
.layout-sidebar__aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 992px) {
  .layout-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .layout-sidebar__aside > :not(.side-card--accent) { order: 1; }
  .layout-sidebar__aside > .side-card--accent { order: 2; position: sticky; top: calc(var(--header-h) + 24px); }
}
.service-article, .blog-article { padding: 16px 16px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .service-article, .blog-article { padding: 28px 32px 32px; } }
.service-article__media, .blog-article__media { margin: 0 0 28px; }
.blog-article__media { margin-bottom: 16px; }
.blog-article .meta--row { padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.service-article__media img, .blog-article__media img { width: 100%; border-radius: var(--radius); }
.reviewed-by { display: flex; gap: 8px; align-items: flex-start; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
/* Social share bar */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.share__label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--navy); font-size: .95rem; }
.share__label .icon { color: var(--blue); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 50%; color: var(--white); background: var(--navy); transition: transform .2s, filter .2s; }
.share__btn:hover { color: var(--white); transform: translateY(-2px); filter: brightness(1.1); }
.share__btn--facebook { background: #1877f2; }
.share__btn--twitter { background: #111; }
.share__btn--linkedin { background: #0a66c2; }
.share__btn--whatsapp { background: #128c4b; }
.share__btn--mail { background: #5b6475; }
.share__btn--copy { background: var(--blue); }
.share__btn--native { border-radius: 999px; padding: 0 14px; background: var(--accent); color: var(--navy); font-weight: 600; font-size: .85rem; }
.share__btn--native:hover { color: var(--navy); }
.share__status { font-size: .85rem; color: var(--green); font-weight: 500; }
.reviewed-by a { text-decoration: underline; text-underline-offset: 2px; }
.reviewed-by .icon { color: var(--green); margin-top: 2px; }
.related { margin-top: 48px; }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.side-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.side-card__title { font-size: 1.15rem; margin-bottom: .6em; }
.side-card--accent { border: 0; color: rgba(255, 255, 255, .88); background: linear-gradient(140deg, var(--navy), var(--blue-dark)); }
.side-card--accent .side-card__title { color: var(--white); }
.side-card__actions { display: grid; gap: 10px; margin-top: 16px; }
.side-menu { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.side-menu a:hover { background: var(--tint); color: var(--blue); }
.side-menu a[aria-current="page"] { background: var(--blue); color: var(--white); font-weight: 500; }
.side-menu li + li { border-top: 1px solid var(--line); }

.recent-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.recent-posts a { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.recent-posts img { width: 80px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.recent-posts strong { display: block; font-weight: 500; font-size: .9rem; line-height: 1.4; }
.recent-posts a:hover strong { color: var(--blue); }
.recent-posts time { font-size: .8rem; color: var(--muted); }

/* ---------- About ---------- */
.doctor-card { display: grid; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.doctor-card__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.doctor-card h2 { margin-bottom: .2em; }
.doctor-card__role { color: var(--blue); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: 3px; }
@media (min-width: 768px) { .doctor-card { grid-template-columns: auto 1fr; padding: 40px; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 32px; }
.contact-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.contact-card > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.site-footer__contact a, .topbar a { overflow-wrap: break-word; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--muted); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--muted); }
.contact-card strong { display: block; color: var(--navy); font-size: 1rem; }
.contact-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); flex-shrink: 0; }
.contact-card__icon--wa { background: #e3f6ea; color: var(--green); }
.contact-card__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-style: normal; color: var(--blue); font-weight: 500; }
.form-card { padding: 24px 18px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg); }
.form-card__note { color: var(--muted); font-size: .9rem; }
@media (min-width: 768px) { .form-card { padding: 36px; } }
@media (min-width: 992px) { .contact-layout { grid-template-columns: 380px minmax(0, 1fr); gap: 40px; } }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .92rem; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #cfd6e4; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(54, 96, 217, .15); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field__error { margin: 6px 0 0; color: #c62828; font-size: .85rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { min-height: 78px; }

.alert { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.alert p { margin: 0; }
.alert--success { background: #e6f6ec; color: #135a2e; }
.alert--error { background: #fdecec; color: #8e1c1c; }

.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Gallery (masonry) ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 500; background: var(--white); }
.tabs a:hover { border-color: var(--blue); color: var(--blue); }
.tabs a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
/* Grid masonry: site.js adds .is-masonry and sets each item's row span from its height,
   so all columns fill evenly. Without JS it falls back to a regular grid. */
.masonry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.masonry.is-masonry { grid-auto-rows: 4px; }
.masonry__item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); box-shadow: var(--shadow); }
.masonry__item a { display: block; overflow: hidden; cursor: zoom-in; }
.masonry__item img { width: 100%; transition: transform .4s; }
.masonry__item a:hover img { transform: scale(1.04); }
.masonry__item figcaption { padding: 10px 12px; font-size: .85rem; color: var(--muted); background: var(--white); }
@media (min-width: 768px) { .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 10, 28, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 10, 28, .94); }
.lightbox figure { margin: 0; padding: 56px 12px; text-align: center; }
.lightbox img { max-width: min(100%, 1200px); max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ---------- Pagination / misc ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination__item { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 500; }
a.pagination__item:hover { border-color: var(--blue); color: var(--blue); }
.pagination__item.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination__item.is-disabled { opacity: .45; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.error-page { text-align: center; }
.error-page__code { margin: 0; font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; line-height: 1; color: var(--blue-soft); -webkit-text-stroke: 2px var(--blue); }
.error-page .intro__actions { justify-content: center; margin: 24px 0 48px; }
.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; }
.pill-list a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .9rem; }
.pill-list a:hover { background: var(--blue); color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { padding: 48px 0; color: rgba(255, 255, 255, .88); background: linear-gradient(120deg, var(--blue-dark), var(--blue)); }
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 992px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 40px; } .cta-band__actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 56px; color: rgba(255, 255, 255, .72); background: var(--navy); font-size: .93rem; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .78); }
.site-footer a:not(.btn):hover { color: var(--accent); }
.site-footer__grid { display: grid; gap: 36px; padding-bottom: 40px; }
.site-footer__logo { display: inline-block; margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--white); }
.site-footer__logo img { height: 46px; width: auto; }
.site-footer__title { margin-bottom: 18px; color: var(--white); font-size: 1.05rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__links--cols { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.site-footer__links a { display: inline-flex; align-items: baseline; gap: 10px; }
.site-footer__links a::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.site-footer__links a:hover::before { transform: translate(3px, -2px) rotate(45deg); }
.site-footer__contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.site-footer__contact .icon { color: var(--accent); margin-top: 3px; }
.social--footer { margin-top: 18px; }
.site-footer__bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.site-footer__bottom p { margin: 0; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .site-footer { padding-top: 72px; } .site-footer__grid { grid-template-columns: 1.25fr .8fr 1.45fr 1.1fr; gap: 40px; } }

/* ---------- Floating contact ---------- */
.whatsapp-float { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 10px 25px rgba(18, 128, 63, .4); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); color: var(--white); }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); box-shadow: 0 -4px 20px rgba(0, 23, 60, .12); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: var(--navy); font-size: .78rem; font-weight: 600; }
.action-bar a .icon { color: var(--blue); }
.action-bar__wa .icon { color: var(--green) !important; }
.action-bar__book { background: var(--blue); color: var(--white) !important; }
.action-bar__book .icon { color: var(--white) !important; }
body { padding-bottom: 60px; }
@media (min-width: 768px) {
  .action-bar { display: none; }
  .whatsapp-float { display: grid; }
  body { padding-bottom: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
