/* Dentist Pro — Iloilo City
   Mobile-first, no framework. */

:root {
  --brand: #0e7c86;
  --brand-dark: #0a5c64;
  --brand-light: #e6f5f6;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ink: #0f2a33;
  --muted: #4b6470;
  --line: #d8e6ea;
  --bg: #ffffff;
  --bg-soft: #f4fafb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 42, 51, 0.08);
  --max: 1160px;
  --header-h: 68px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* room for mobile action bar */
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section__head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-light);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #1f1300; }
.btn--primary:hover { background: var(--accent-dark); color: #1f1300; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.topbar { background: var(--brand-dark); color: #dff3f4; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(150%) blur(6px);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.logo img { width: 38px; height: 38px; }
.logo small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__list a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.nav__list a:hover { background: var(--brand-light); color: var(--brand-dark); }
.header__cta { display: flex; gap: 8px; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header__cta .btn--ghost { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; margin: 0;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 8px 16px 16px; }
  .nav__list a { padding: 12px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .header__cta { display: none; }
  .logo small { display: none; }
}

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; font-weight: 600; text-decoration: none; }
.action-bar a:first-child { background: var(--brand); color: #fff; }
.action-bar a:last-child { background: var(--accent); color: #1f1300; }
.action-bar svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-light) 0%, #fff 60%); padding: 56px 0 64px; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 600px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .92rem; color: var(--muted); }
.hero__badges li { display: flex; align-items: center; gap: 6px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero__art { position: relative; }
.hero__art img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); background: var(--brand-light); }
.hero__card {
  position: absolute; left: -8px; bottom: -14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 16px; font-size: .9rem; display: flex; gap: 10px; align-items: center; max-width: 260px;
}
.hero__card strong { display: block; color: var(--ink); }
.hero__card svg { width: 32px; height: 32px; color: var(--brand); flex: none; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}

/* Generic grids/cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3, .grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 800px) { .grid--2 { grid-template-columns: 1fr 1fr; gap: 40px; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card__icon svg { width: 28px; height: 28px; }
.card__link { font-weight: 600; text-decoration: none; font-size: .92rem; }
.card__link::after { content: " \2192"; }

/* Concerns */
.concern {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.concern:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.concern__emoji { font-size: 1.8rem; line-height: 1; flex: none; }
.concern h3 { margin-bottom: .2em; font-size: 1.02rem; }
.concern p { margin: 0; font-size: .9rem; color: var(--muted); }
.concern span.fix { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--brand); }

/* Before / after */
.ba { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.ba__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; background: #eee; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff;
  transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 6px rgba(0, 0, 0, .3);
}
.ba__handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__range:focus-visible + .ba__handle::after { outline: 3px solid var(--accent); }
.ba__tag {
  position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: rgba(15, 42, 51, .75); color: #fff; pointer-events: none;
}
.ba__tag--before { left: 10px; }
.ba__tag--after { right: 10px; }
.ba__body { padding: 16px 18px; }
.ba__body h3 { margin-bottom: .2em; }
.ba__body p { margin: 0; color: var(--muted); font-size: .9rem; }
.disclaimer { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 20px; }

/* Credentials */
.cred { display: flex; gap: 14px; align-items: flex-start; }
.cred .card__icon { margin: 0; flex: none; }
.cred h3 { margin-bottom: .2em; }
.cred p { margin: 0; color: var(--muted); font-size: .93rem; }

/* About */
.about__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: var(--brand-light); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 700;
}

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.areas a {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem;
}
.areas a:hover { border-color: var(--brand); color: var(--brand-dark); }
.areas a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 52px 18px 20px; font: inherit;
  font-weight: 600; color: var(--ink); cursor: pointer; position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem;
  color: var(--brand); transition: transform .2s;
}
.faq__q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq__a p:last-child { margin: 0; }

/* Booking form */
.booking { display: grid; gap: 32px; }
@media (min-width: 900px) { .booking { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.booking__info { background: var(--brand-dark); color: #e5f6f7; border-radius: 20px; padding: 28px; }
.booking__info h2, .booking__info h3 { color: #fff; }
.booking__info a { color: #fff; }
.booking__info .checklist li::before { background: var(--accent); color: #1f1300; }

.form { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .req { color: #c2410c; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-light); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2410c; }
.field__error { color: #c2410c; font-size: .84rem; min-height: 0; }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field--check input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.field--check label { font-weight: 400; font-size: .9rem; }
.hp { position: absolute !important; left: -9999px !important; }
.form__status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 500; display: none; }
.form__status.is-success { display: block; background: #e7f7ee; color: #116b3a; }
.form__status.is-error { display: block; background: #fdecea; color: #9b2c1c; }
.form .btn { width: 100%; padding: 14px; }

/* Map / contact */
.map-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--brand-light); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; color: var(--brand); flex: none; margin-top: 3px; }
.contact-list strong { display: block; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(14, 124, 134, .92) 0%, rgba(10, 92, 100, .95) 100%), var(--cta-bg, none) center / cover no-repeat, var(--brand-dark);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4eef0; max-width: 620px; margin: 0 auto 22px; }
.cta-band .hero__ctas { justify-content: center; margin: 0; }

/* Footer */
.footer { background: #0b2128; color: #b7cad0; padding: 56px 0 24px; font-size: .93rem; }
.footer a { color: #e3f1f3; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .logo small { color: #9fb6bd; }
.footer__bottom a { text-decoration: underline; }
.footer__bottom { border-top: 1px solid #1d3a43; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; }

/* Breadcrumbs (location pages) */
.breadcrumbs { font-size: .88rem; color: var(--muted); padding-top: 16px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { text-decoration: none; }

.route { background: #fff; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 20px 0; }
.route p:last-child { margin: 0; }

.text-center { text-align: center; }
.mt-2 { margin-top: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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