/* ==========================================================
   Smile Dental Care – Holding page
   Palette taken from the logo: sky blue, deep navy, white,
   with a warm coral accent drawn from the smile.
   ========================================================== */

:root {
  --navy: #0b2370;
  --navy-deep: #071852;
  --sky: #6196cf;
  --sky-soft: #e8f1fb;
  --sky-mist: #f4f8fd;
  --coral: #d9463e;
  --ink: #1b2440;
  --muted: #5a6582;
  --line: #dbe5f2;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 35, 112, .06);
  --shadow: 0 18px 40px -18px rgba(11, 35, 112, .28);
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.12; color: var(--navy); }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky); margin-bottom: .9rem;
}
.eyebrow--light { color: #a9c8ec; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 .98rem/1 var(--font-body);
  padding: .85rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(11,35,112,.6); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--sky-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--sky); padding-bottom: 2px;
}
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--light { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #dfe8f7; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .55rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--sky); flex: none; }
.topbar__status .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa6c4; }
.topbar__status.is-open .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.topbar__status.is-closed .dot { background: #f59e8b; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.header__logo img { width: clamp(190px, 30vw, 320px); height: auto; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--sky)); /* fallback if image fails */
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; animation: heroZoom 18s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,24,82,.88) 0%, rgba(11,35,112,.7) 45%, rgba(11,35,112,.15) 100%);
}
.hero__content { max-width: var(--container); }
.hero__content > * { max-width: 640px; }
.hero h1 { color: #fff; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: #e4ecfa; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: #dbe6f8; }
.hero__chips li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__chips li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  padding: .45rem .95rem .45rem .75rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; margin-bottom: 1.4rem;
}
.badge__pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.badge__pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--coral); animation: pulse 2s ease-out infinite;
}

@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Welcome ---------- */
.welcome__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.welcome__text p { color: var(--muted); }
.welcome__images { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: end; }
.img-card { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--sky-soft); }
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.img-card:hover img { transform: scale(1.04); }
.img-card--tall { aspect-ratio: 4 / 5; }
.img-card img.img-woman { object-position: 52% 30%; }
.img-card--short { aspect-ratio: 4 / 4.4; margin-bottom: 2.5rem; }
.stat-card {
  position: absolute; left: -1.2rem; bottom: -1.4rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.3rem; display: grid; gap: .1rem; max-width: 220px;
  border-left: 4px solid var(--sky);
}
.stat-card__big { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.stat-card__small { font-size: .85rem; color: var(--muted); line-height: 1.35; }

/* ---------- Services ---------- */
.services { background: var(--sky-mist); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--navy); margin-bottom: 1.1rem;
}
.service__icon svg { width: 28px; height: 28px; }
.service--accent { background: linear-gradient(150deg, var(--navy), #1f4aa0); border-color: transparent; color: #fff; }
.service--accent h3 { color: #fff; }
.service--accent p { color: #d8e3f6; margin-bottom: 1rem; }
.service--accent .service__icon { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Dentist ---------- */
.dentist__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start;
  background: var(--sky-mist); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); border-left: 6px solid var(--sky);
}
.dentist__intro h2 { margin-bottom: .4em; }
.dentist__intro .dentist__lead { margin-bottom: 0; }
.dentist__lead { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.35; color: var(--navy); }
.dentist__text p:not(.dentist__lead):not(.eyebrow) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .65rem; }
.ticks li { display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Why ---------- */
.why { background: linear-gradient(180deg, #fff 0%, var(--sky-mist) 100%); padding-top: 0; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why__item { padding: 1.6rem 1.4rem; border-top: 3px solid var(--sky); background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-sm); }
.why__item p { color: var(--muted); font-size: .95rem; margin: 0; }
.why__num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--sky); line-height: 1; margin-bottom: .7rem; }

/* ---------- Accreditation ---------- */
.accreditation {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem);
}
.accreditation__logo { width: clamp(160px, 22vw, 240px); height: auto; }
.accreditation__text h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; margin-bottom: .4em; }
.accreditation__text p:last-child { color: var(--muted); margin: 0; }
.accreditation__text .eyebrow { margin-bottom: .5rem; }

/* Email decoys: hidden from people, confuse scrapers */
.eh { display: none !important; }

/* ---------- Visit ---------- */
.visit { background: var(--sky-mist); padding-top: clamp(2rem, 5vw, 3rem); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: stretch; }
.visit__card {
  background: linear-gradient(160deg, var(--navy) 0%, #15378f 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.visit__card h2 { color: #fff; }
.contact-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.12); fill: #fff; flex: none; }
.contact-list__label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #a9c8ec; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.contact-list a:hover { text-decoration: underline; }

.hours__title { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: .6rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.8rem; font-size: .96rem; }
.hours th, .hours td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours th { font-weight: 500; color: #dbe6f8; }
.hours td { text-align: right; font-weight: 500; white-space: nowrap; }
.hours tr.is-closed td { color: #f8b4a8; }
.hours tr.is-today { background: rgba(255,255,255,.12); }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 700; }
.hours tr.is-today th::after {
  content: "Today"; margin-left: .5rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sky); color: #fff; padding: .15rem .45rem; border-radius: 999px; vertical-align: middle;
}

.visit__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--sky-soft); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b9c6e2; text-align: center; padding: 3rem 0 2.5rem; font-size: .92rem; }
.footer a { color: #fff; }
.footer__logo { width: 240px; height: auto; margin: 0 auto 1.3rem; border-radius: 4px; }
.footer__small { font-size: .8rem; color: #8e9cc0; margin: 0; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablets landscape / small laptops */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets portrait (iPad) */
@media (max-width: 860px) {
  .welcome__grid,
  .dentist__grid,
  .visit__grid { grid-template-columns: 1fr; }
  .welcome__images { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(7,24,82,.45) 0%, rgba(11,35,112,.82) 75%); }
  .hero { min-height: auto; }
  .visit__map, .visit__map iframe { min-height: 340px; }
}

/* Phones */
@media (max-width: 600px) {
  body { padding-bottom: 72px; } /* room for call bar */
  .topbar__inner { justify-content: center; }
  .topbar__item:first-child { display: none; }
  .hide-xs { display: none; }
  .header__cta { padding: .7rem 1rem; font-size: .9rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services__grid,
  .why__grid { grid-template-columns: 1fr; }
  .stat-card { left: .6rem; bottom: -1rem; }
  .accreditation { grid-template-columns: 1fr; text-align: left; }
  .section-head { text-align: left; }
  .hours { font-size: .9rem; }
  .hours th, .hours td { padding: .5rem .35rem; }
  .visit__card { padding: 1.6rem 1.2rem; }
  .hours tr.is-today th::after { display: none; }

  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(11,35,112,.3);
  }
  .callbar__btn {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .85rem; border-radius: 12px; font-weight: 700; text-decoration: none;
    background: var(--sky-soft); color: var(--navy);
  }
  .callbar__btn svg { width: 18px; height: 18px; fill: currentColor; }
  .callbar__btn--primary { background: var(--navy); color: #fff; }
}

@media (max-width: 380px) {
  .header__logo img { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
