/* Liberty Orthodontic Centre — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: #11212E;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: #CFE0EC; }

.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 1000;
  background: #014171;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 7px;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E6EAEE;
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.header-logo img { height: 46px; width: 46px; display: block; }
.header-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.header-logo-text .brand { font-weight: 700; font-size: 15.5px; letter-spacing: .02em; color: #11212E; }
.header-logo-text .sub  { font-weight: 600; font-size: 10.5px; letter-spacing: .32em; color: #1E7F77; }
nav.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14.5px; font-weight: 500; }
nav.main-nav a {
  text-decoration: none; color: #41525F;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .15s;
}
nav.main-nav a:hover { color: #014171; }
nav.main-nav a.active { color: #014171; font-weight: 600; border-bottom-color: #014171; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-book-header {
  text-decoration: none; background: #014171; color: #fff;
  font-weight: 600; font-size: 14.5px; padding: 11px 20px; border-radius: 7px; letter-spacing: .01em;
}
.header-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; font-size: 22px; color: #11212E; padding: 4px 6px;
}
.mobile-nav {
  display: none; border-top: 1px solid #E6EAEE;
  background: #fff; padding: 12px 24px; flex-direction: column;
}
.mobile-nav a {
  padding: 13px 6px; font-size: 15px; font-weight: 500;
  color: #33485A; text-decoration: none; border-bottom: 1px solid #F0F2F5;
}
.mobile-nav.open { display: flex; }
.mobile-nav-book {
  margin-top: 6px; padding: 13px 6px !important;
  background: #014171; color: #fff !important;
  border-radius: 7px; text-align: center;
  border-bottom: none !important; font-weight: 600 !important;
}

/* ── Page hero banner ── */
.page-hero {
  background: linear-gradient(150deg, #062B43 0%, #0A3556 60%, #0E3F63 100%);
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 1180px; margin: 0 auto; padding: 80px 40px; position: relative; }
.page-h1 {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: 52px;
  line-height: 1.06; letter-spacing: -.015em; margin: 16px 0 0; color: #fff; max-width: 760px;
}
.page-intro { font-size: 18px; line-height: 1.62; color: rgba(155,185,210,0.85); margin: 20px 0 0; max-width: 600px; }
.page-hero .eyebrow { color: #5FB8AC; }
/* Page hero orbs */
.ph-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.ph-orb-a { top: 50%; right: -180px; transform: translateY(-50%); width: 480px; height: 480px; border: 1px solid rgba(95,184,172,0.16); }
.ph-orb-b { top: 50%; right: -90px; transform: translateY(-50%); width: 280px; height: 280px; border: 1px solid rgba(95,184,172,0.24); }
.ph-orb-c { bottom: -80px; left: -80px; width: 260px; height: 260px; border: 1px solid rgba(95,184,172,0.08); }

/* ── Shared typography ── */
.eyebrow {
  font-weight: 600; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: #1E7F77;
}
.section-h2 {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: 40px;
  line-height: 1.1; letter-spacing: -.01em; margin: 16px 0 0; color: #11212E;
}
.section-h2-sm {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: 38px;
  line-height: 1.12; letter-spacing: -.01em; margin: 14px 0 0; color: #11212E;
}
.section-p { font-size: 17px; line-height: 1.66; color: #5A6B7A; margin: 20px 0 0; }
.text-link {
  display: inline-block; margin-top: 26px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: #014171;
  border-bottom: 1px solid #014171; padding-bottom: 2px;
}

/* ── Shared layout ── */
.padded { max-width: 1180px; margin: 0 auto; padding: 96px 40px; }
.padded-md { max-width: 1180px; margin: 0 auto; padding: 80px 40px; }
.padded-sm { max-width: 1180px; margin: 0 auto; padding: 88px 40px; }
.bg-light { background: #F5F8FA; border-top: 1px solid #EEF1F4; border-bottom: 1px solid #EEF1F4; }
.bg-light-top { background: #F5F8FA; border-bottom: 1px solid #EEF1F4; }

/* ── Photo placeholder ── */
.photo-placeholder {
  border-radius: 12px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #EEF2F6, #EEF2F6 16px, #E5EBF1 16px, #E5EBF1 32px);
  display: flex; align-items: flex-end; justify-content: center;
  border: 1px solid #E6EAEE;
}
.photo-placeholder span {
  font-family: ui-monospace, monospace; font-size: 11.5px; color: #7E96AB;
  background: #fff; padding: 6px 12px; border-radius: 6px; margin-bottom: 18px;
}

/* ── Numbered card grid ── */
.card-grid {
  display: grid; gap: 1px;
  background: #E6EAEE; border: 1px solid #E6EAEE;
  border-radius: 12px; overflow: hidden;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; padding: 34px 30px; }
.card-num { font-family: 'Newsreader', serif; font-size: 15px; color: #1E7F77; }
.card-name { font-family: 'Newsreader', serif; font-weight: 500; font-size: 22px; color: #11212E; margin-top: 10px; }
.card-desc { font-size: 14.5px; color: #62748A; margin: 10px 0 0; line-height: 1.6; }

/* ── Dark CTA band ── */
.cta-band { background: #062B43; position: relative; overflow: hidden; }
/* CTA band orbs — stacked on both corners */
.cb-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.cb-orb-a { top: -140px; left: -140px; width: 420px; height: 420px; border: 1px solid rgba(95,184,172,0.13); }
.cb-orb-b { top: -60px; left: -60px; width: 240px; height: 240px; border: 1px solid rgba(95,184,172,0.20); }
.cb-orb-c { bottom: -140px; right: -140px; width: 380px; height: 380px; border: 1px solid rgba(95,184,172,0.10); }
.cta-band-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 84px 40px; text-align: center;
}
.cta-band h2 {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: 38px;
  line-height: 1.12; letter-spacing: -.01em; color: #fff; margin: 0;
}
.cta-band p { font-size: 16.5px; color: #9FB4C5; margin: 14px auto 28px; max-width: 440px; }
.btn-white {
  text-decoration: none; background: #fff; color: #062B43;
  font-weight: 600; font-size: 15.5px; padding: 15px 28px; border-radius: 7px;
}
.btn-primary {
  text-decoration: none; background: #014171; color: #fff;
  font-weight: 600; font-size: 15.5px; padding: 15px 28px; border-radius: 7px;
}
.btn-secondary {
  text-decoration: none; background: #fff; border: 1px solid #C9D3DC; color: #11212E;
  font-weight: 600; font-size: 15.5px; padding: 14px 26px; border-radius: 7px;
}

/* ── Booking Widget ── */
.widget {
  background: #fff; border: 1px solid #E6EAEE; border-radius: 12px;
  box-shadow: 0 24px 50px -30px rgba(12,34,54,0.32);
  padding: 30px 30px 32px;
}
.widget-title {
  font-family: 'Newsreader', serif; font-weight: 400; font-size: 23px;
  color: #11212E; letter-spacing: -.01em; margin: 0 0 4px;
}
.widget-sub { margin: 0 0 22px; font-size: 13.5px; color: #62768A; line-height: 1.5; }
.widget-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.widget-step-bar { flex: 1; height: 3px; border-radius: 2px; background: #E6EAEE; transition: background .25s; }
.widget-step-bar.filled { background: #014171; }
.widget-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #5A6B7A; margin-bottom: 11px; }
.widget-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 10px 15px; border-radius: 8px; border: 1px solid #DCE3EA; background: #fff;
  color: #41525F; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  line-height: 1.2; transition: all .15s;
}
.chip:hover { border-color: #a0b4c4; }
.chip.selected { border-color: #014171; background: #EEF3F8; color: #014171; font-weight: 600; }
.widget-field { display: flex; flex-direction: column; gap: 15px; margin-bottom: 4px; }
.widget-field label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #5A6B7A; }
.widget-field label .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: #61778D; }
.widget-field input {
  display: block; width: 100%; margin-top: 8px;
  padding: 13px 14px; border: 1px solid #DCE3EA; border-radius: 8px;
  font-size: 15px; color: #11212E; outline: none; font-family: inherit; transition: border-color .15s;
}
.widget-field input:focus { border-color: #014171; }
.widget-controls { display: flex; gap: 10px; margin-top: 26px; }
.btn-back {
  flex: none; background: #fff; border: 1px solid #DCE3EA; color: #41525F;
  font-weight: 600; font-size: 14.5px; padding: 13px 18px; border-radius: 7px;
  cursor: pointer; font-family: inherit;
}
.btn-next, .btn-submit {
  flex: 1; background: #014171; color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 13px 18px; border-radius: 7px; cursor: pointer; border: none;
  font-family: inherit; letter-spacing: .01em;
}
.widget-done { text-align: center; padding: 18px 4px 10px; }
.widget-done-title { font-family: 'Newsreader', serif; font-weight: 400; font-size: 24px; color: #11212E; }
.widget-done-p { font-size: 14.5px; color: #5A6B7A; margin: 10px auto 20px; max-width: 300px; line-height: 1.55; }
.btn-restart {
  background: #fff; border: 1px solid #C9D3DC; color: #11212E;
  font-weight: 600; font-size: 14px; padding: 11px 18px;
  border-radius: 7px; cursor: pointer; font-family: inherit;
}

/* ── Footer ── */
.site-footer { background: #062B43; color: #9FB4C5; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 62px 40px 30px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; width: 44px; background: #fff; border-radius: 50%; }
.footer-brand span { font-weight: 700; font-size: 15px; letter-spacing: .02em; color: #fff; }
.footer-about { font-size: 14px; line-height: 1.65; color: #7E97AC; max-width: 300px; margin: 0 0 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #C2D2DF;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: #1E7F77; color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-col-title { font-weight: 600; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #7894A9; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-links a { color: #C2D2DF; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-address { font-size: 14px; line-height: 1.6; color: #9FB4C5; margin: 0 0 8px; }
.footer-phone { color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 18px 40px;
  border-top: 1px solid #123A55;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #8093A8;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #8093A8; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  nav.main-nav { display: none; }
  .header-menu-btn { display: block; }
  .btn-book-header { display: none; }
}
@media (max-width: 980px) {
  .header-inner { padding: 16px 30px; }
}
@media (max-width: 820px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner, .page-hero-inner, .padded, .padded-md, .padded-sm,
  .cta-band-inner, .footer-bottom { padding-left: 22px; padding-right: 22px; }
  /* Reduce vertical section padding on mobile */
  .padded     { padding-top: 56px; padding-bottom: 56px; }
  .padded-md  { padding-top: 48px; padding-bottom: 48px; }
  .padded-sm  { padding-top: 52px; padding-bottom: 52px; }
  .cta-band-inner { padding-top: 60px; padding-bottom: 60px; }
  .page-h1 { font-size: 33px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 44px 22px 22px; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .card-grid-4 { grid-template-columns: 1fr; }
}

/* ── Sticky Book Now circle widget ── */
.book-card {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 152px; height: 152px;
  border-radius: 50%;
  background: linear-gradient(150deg, #0A3556 0%, #062B43 100%);
  border: 1px solid rgba(255,255,255,0.09);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  box-shadow:
    0 10px 40px rgba(4,20,40,0.55),
    0 2px 8px rgba(4,20,40,0.25),
    inset 0 1px 0 rgba(255,255,255,0.07);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,.68,0,1.2), box-shadow .2s;
}
.book-card:hover {
  box-shadow: 0 16px 50px rgba(4,20,40,0.65), 0 3px 10px rgba(4,20,40,0.30);
  transform: translateY(-4px) scale(1.04);
}
.book-card.above-fold {
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}
.book-card-icon {
  width: 20px; height: 20px;
  color: #5FB8AC;
  margin-bottom: 2px;
}
.book-card-main {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1;
}
.book-card-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5FB8AC;
  line-height: 1.3;
  padding: 0 14px;
}
@media (max-width: 500px) {
  .book-card { width: 130px; height: 130px; bottom: 18px; right: 18px; }
  .book-card-main { font-size: 14.5px; }
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS — opacity + transform only (GPU composited,
   zero layout cost, zero extra network requests)
   ═══════════════════════════════════════════════════ */

/* ── Inner-page hero entrance ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes lo-page-hero {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  .page-hero-inner {
    animation: lo-page-hero 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* ── Scroll-reveal — whole sections fade in as one block ── */
@media (prefers-reduced-motion: no-preference) {
  .anim-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .anim-up.in {
    opacity: 1;
    transform: none;
  }
}

/* ── Button hover lifts ── */
.btn-book-header {
  transition: background .18s, box-shadow .18s, transform .18s;
}
.btn-book-header:hover {
  background: #01315A;
  box-shadow: 0 4px 16px rgba(1,65,113,0.30);
  transform: translateY(-1px);
}
.btn-primary, .btn-white, .btn-secondary {
  transition: background .18s, box-shadow .18s, transform .18s, border-color .18s;
}
.btn-primary:hover  { background: #01315A; box-shadow: 0 4px 16px rgba(1,65,113,0.28); transform: translateY(-1px); }
.btn-white:hover    { box-shadow: 0 5px 16px rgba(0,0,0,0.13); transform: translateY(-1px); }
.btn-secondary:hover { border-color: #98afc0; box-shadow: 0 3px 10px rgba(0,0,0,0.07); transform: translateY(-1px); }

/* ── Card hover lifts ── */
.service-card, .review-card, .loc-card {
  transition: box-shadow .22s, transform .22s;
}
.service-card:hover, .review-card:hover, .loc-card:hover {
  box-shadow: 0 8px 32px rgba(12,34,54,0.12);
  transform: translateY(-3px);
}

/* ── Nav link hover underline ── */
nav.main-nav a { transition: color .15s, border-bottom-color .2s; }

/* ── Nav dropdown ── */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger { white-space: nowrap; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -14px;
  background: #fff;
  border: 1px solid #E6EAEE;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(12,34,54,0.12), 0 2px 8px rgba(12,34,54,0.06);
  padding: 6px;
  min-width: 168px;
  z-index: 200;
}
/* invisible 8px bridge above the menu — keeps hover alive over the gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #41525F;
  text-decoration: none;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-dropdown-menu a:hover { background: #F0F4F8; color: #014171; }
.nav-dropdown-menu a.active { color: #014171; font-weight: 600; background: #EEF3F8; }

/* ── Orb animations ── */
@media (prefers-reduced-motion: no-preference) {
  /* Generic orb bloom (section orbs — triggered via JS .orb-in class) */
  @keyframes lo-orb-in {
    from { opacity: 0; transform: scale(0.78); }
    to   { opacity: 1; transform: scale(1); }
  }
  .orb-in {
    animation: lo-orb-in 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  /* Page-hero orbs — bloom in on page load (ph-orb-a/b keep their translateY centring) */
  @keyframes lo-ph-orb-in {
    from { opacity: 0; transform: translateY(-50%) scale(0.78); }
    to   { opacity: 1; transform: translateY(-50%) scale(1); }
  }
  .ph-orb-a { animation: lo-ph-orb-in 2s cubic-bezier(0.22, 1, 0.36, 1) both 0.30s; }
  .ph-orb-b { animation: lo-ph-orb-in 2s cubic-bezier(0.22, 1, 0.36, 1) both 0.50s; }
  .ph-orb-c { animation: lo-orb-in    2s cubic-bezier(0.22, 1, 0.36, 1) both 0.65s; }
}
