/* ============================================================
   Dr. Shailza's Dental & Implant Center
   Clean clinical theme — blue / white
   ============================================================ */

:root {
  --blue-900: #0b3a66;
  --blue-700: #115ea3;
  --blue-600: #1573cc;
  --blue-500: #2b8fe0;
  --blue-100: #e8f3fc;
  --blue-50:  #f3f9fe;
  --teal:     #16b5a8;
  --ink:      #1b2733;
  --body:     #475569;
  --muted:    #7b899a;
  --line:     #e4ecf3;
  --white:    #ffffff;
  --bg:       #f6fafd;
  --shadow-sm: 0 2px 10px rgba(14, 58, 102, .06);
  --shadow:    0 12px 32px rgba(14, 58, 102, .10);
  --shadow-lg: 0 24px 60px rgba(14, 58, 102, .16);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.4px; }
h3 { font-size: 1.22rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue-600); background: var(--blue-100);
  padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head p { margin-top: 12px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: .22s ease; white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px rgba(21,115,204,.28); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21,115,204,.34); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-100); }
.btn--ghost:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1eb858; transform: translateY(-2px); }

/* Topbar */
.topbar { background: var(--blue-900); color: #cfe3f5; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 24px; gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a:hover { color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.brand { display: flex; align-items: center; gap: 12px; }
/* mix-blend-mode: multiply makes the logo's white background disappear into
   the page so it blends seamlessly with the header. */
.brand__logo { height: 70px; width: auto; mix-blend-mode: multiply; transition: transform .2s ease; }
.brand:hover .brand__logo { transform: scale(1.03); }
.brand__mark { color: var(--blue-600); display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.brand__text small { font-size: .72rem; color: var(--muted); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink); padding: 8px 14px; border-radius: 8px; transition: .18s; }
.nav__link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav__cta { margin-left: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, var(--blue-50) 0%, #fff 55%, var(--blue-50) 100%); overflow: hidden; padding: 70px 0 120px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.12rem; margin: 18px 0 28px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--blue-700); }
.hero__stats span { font-size: .85rem; color: var(--muted); }

.hero__media { display: flex; justify-content: center; }
.hero__card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px; max-width: 360px; width: 100%; border: 1px solid var(--line); }
.hero__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--blue-100); display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 16px; }
.hero__card h3 { margin-bottom: 6px; }
.hero__hours { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.hero__hours:first-of-type { margin-top: 18px; }
.hero__hours strong { color: var(--ink); font-family: var(--font-head); }
.hero__note { font-size: .74rem; color: var(--muted); margin-top: 10px; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px; padding: 22px 24px; }
.trust__item { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .95rem; }

/* About */
.about__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.about__content .eyebrow { margin-bottom: 14px; }
/* Keep the doctor's name + title on a single line; scale with viewport so it never overflows on phones */
.about__content h2 { white-space: nowrap; font-size: clamp(1.2rem, 3vw, 1.9rem); }
.about__inner .checklist { max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
.about__media { position: relative; }
.about__imgwrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__imgph { aspect-ratio: 4/5; background: linear-gradient(150deg, var(--blue-100), var(--blue-50)); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--blue-600); }
.about__imgph span { font-size: 4rem; }
.about__imgph small { color: var(--muted); font-size: .8rem; }
.about__badge { position: absolute; bottom: -22px; right: -10px; background: var(--blue-700); color: #fff; padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.about__badge strong { font-family: var(--font-head); font-size: 1.2rem; }
.about__badge span { font-size: .78rem; opacity: .85; }
.about__content p { margin-bottom: 14px; }

.checklist { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .8rem; display: grid; place-items: center; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--why { grid-template-columns: repeat(4, 1fr); }
.grid--reviews { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .25s ease; }
.service { padding: 28px 24px; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.service__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--blue-100); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px; }
.service h3 { margin-bottom: 8px; }
.service p { font-size: .94rem; }

/* Why */
.why { background: #fff; }
.why__item { padding: 28px 24px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line); transition: .25s; }
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why__num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--blue-500); opacity: .55; margin-bottom: 10px; }
.why__item h3 { margin-bottom: 8px; }
.why__item p { font-size: .94rem; }

/* Reviews */
.review { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: #f5a623; letter-spacing: 2px; }
.review blockquote { font-size: 1rem; color: var(--ink); font-style: italic; }
.review figcaption { font-family: var(--font-head); font-weight: 600; color: var(--blue-700); font-size: .92rem; }
.review__meta { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.reviews__note, .hero__note, .contact__hint { font-style: italic; }
.reviews__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.reviews__note { text-align: center; margin-top: 18px; font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { background: var(--blue-50); }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__list { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq__item summary { font-family: var(--font-head); font-weight: 600; color: var(--ink); cursor: pointer; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue-500); transition: .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 18px; font-size: .95rem; }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__list { list-style: none; display: grid; gap: 22px; margin: 26px 0; }
.contact__list li { display: flex; gap: 16px; }
.contact__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--blue-100); display: grid; place-items: center; font-size: 1.2rem; }
.contact__list strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 2px; }
.contact__list a:hover { color: var(--blue-600); }
.contact__hint { display: block; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.contact__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.contact__form { padding: 32px; }
.contact__form h3 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--blue-50); transition: .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(43,143,224,.12); }
.field textarea { resize: vertical; }
.form__status { margin-top: 12px; font-size: .9rem; font-weight: 600; }
.form__status.ok { color: #15a06a; }
.form__status.err { color: #d6453d; }
.form__hint { margin-top: 10px; font-size: .76rem; color: var(--muted); }

/* Inline thank-you state (visitor stays on the page after submitting) */
.contact__form.form--sent > *:not(.form__thanks) { display: none; }
.form__thanks { text-align: center; padding: 20px 6px; animation: fadeIn .4s ease; }
.form__thanks-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; font-size: 2rem; }
.form__thanks h3 { margin-bottom: 10px; }
.form__thanks p { margin-bottom: 6px; }
.form__thanks-sub { font-size: .9rem; color: var(--muted); }
.form__thanks-sub a { color: var(--blue-600); font-weight: 600; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { display: block; }

/* Footer */
.footer { background: var(--blue-900); color: #b9d1e8; padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer .brand__text strong { color: #fff; }
.footer .brand__text small { color: #8fb3d6; }
.footer__logo { height: 64px; width: auto; background: #fff; padding: 10px 14px; border-radius: 12px; }
.footer__brand p { margin: 16px 0; font-size: .92rem; max-width: 320px; }
.footer__ig { color: #fff; font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.footer__ig:hover { color: var(--blue-500); }
.footer__col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer__col a, .footer__col span { display: block; font-size: .92rem; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .85rem; color: #88aacb; text-align: center; }

/* Inline brand icons (Instagram / WhatsApp) */
.ico { width: 1.15em; height: 1.15em; fill: currentColor; vertical-align: -0.22em; }
.btn .ico { width: 1.25rem; height: 1.25rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.footer__ig { display: flex; align-items: center; gap: 7px; width: fit-content; }
.contact__ic--ig { color: #e1306c; }
.contact__ic--fb { color: #1877f2; }
.contact__ic--ig .ico, .contact__ic--fb .ico { width: 1.4rem; height: 1.4rem; }
.footer__fb { margin-top: 10px; }

/* Floating action buttons */
.fabs { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 14px; }
.fab { width: 56px; height: 56px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .2s ease; }
.fab:hover { transform: scale(1.08); }
.fab--call { background: var(--blue-600); }
.fab--whatsapp { background: #25d366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--services, .grid--why { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar__item { display: none; }
  .topbar__inner { flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px 16px; }
  .topbar { font-size: .8rem; }
  .topbar__links { flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
  .nav {
    position: fixed; inset: 100px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 18px 24px 26px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-150%); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease; z-index: 40;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 12px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .grid--services, .grid--why, .grid--reviews { grid-template-columns: 1fr; }
  /* On phones the name can't fit big on one line, so allow it to wrap and stay large & bold */
  .about__content h2 { white-space: normal; font-size: 1.6rem; margin-bottom: 14px; }
  .fab { display: grid; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 100px; }
  .footer__inner { grid-template-columns: 1fr; }
}
