/* ==========================================================================
   Your Orthodontics — site styles
   Built on Bootstrap 5.3. Brand tokens live in :root; change them there.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #1f6f8b;
  --brand-dark: #144b5e;
  --brand-deep: #0d3644;
  --accent: #f2a65a;
  --accent-hover: #e8913d;
  --accent-ink: #a65812;          /* accent for text on light backgrounds (WCAG AA) */
  --soft: #eef6f8;
  --ink: #1d2a33;
  --muted: #5b6b75;
  --line: rgba(29, 42, 51, .08);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --radius: 1.25rem;
  --shadow-sm: 0 .25rem .75rem rgba(13, 54, 68, .06);
  --shadow: 0 1rem 2.5rem -1rem rgba(13, 54, 68, .18);
  --shadow-lg: 0 2rem 4rem -1.5rem rgba(13, 54, 68, .28);
  --nav-h: 76px;

  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-link-color-rgb: 31, 111, 139;
  --bs-link-hover-color-rgb: 20, 75, 94;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; }
.text-muted { color: var(--muted) !important; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: .25rem; }
.btn:focus-visible { outline-offset: 4px; box-shadow: none; }

main:focus { outline: none; }
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 2000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: .5rem;
}

/* ---------- Utilities ---------- */
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-dark { background: var(--brand-dark) !important; }
.bg-soft { background: var(--soft) !important; }
.section { padding: 6rem 0; position: relative; }
@media (max-width: 767.98px) { .section { padding: 4rem 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600;
  color: var(--accent-ink); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; border-radius: 2px; background: currentColor; }
.text-white .eyebrow, .eyebrow-light { color: var(--accent); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
.section-lead { max-width: 38rem; color: var(--muted); }

/* Pattern background (pure CSS dots) */
.pattern {
  background-color: var(--brand-dark);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 2px, transparent 2px);
  background-size: 22px 22px;
}

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 600;
  border-radius: 50rem; padding: .75rem 1.65rem;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.2rem; }
.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); border: 0; }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-hover); color: var(--ink); }
.btn-brand:active, .btn-accent:active { transform: translateY(0) scale(.98); }

/* Sheen sweep on hover */
.btn-brand::before, .btn-accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
@media (hover: hover) {
  .btn-brand:hover, .btn-accent:hover { transform: translateY(-2px); }
  .btn-brand:hover { box-shadow: 0 .9rem 1.6rem -.6rem rgba(31, 111, 139, .6); }
  .btn-accent:hover { box-shadow: 0 .9rem 1.6rem -.6rem rgba(242, 166, 90, .75); }
  .btn-brand:hover::before, .btn-accent:hover::before { transform: translateX(120%); }
}
.btn .bi-arrow-right { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .bi-arrow-right { transform: translateX(4px); }

.link-arrow { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow .bi { transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--brand-dark); }

/* ---------- Top bar ---------- */
.topbar { font-size: .85rem; background: var(--brand-deep); }
.topbar a { color: rgba(255, 255, 255, .9); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--accent); }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(255, 255, 255, .98);
  padding-block: 1rem;
  transition: padding .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.site-nav.is-scrolled {
  padding-block: .55rem;
  box-shadow: 0 .5rem 2rem -1rem rgba(13, 54, 68, .25);
}
/* Frosted glass lives on a pseudo-element: a backdrop-filter on .site-nav itself
   would become the containing block for the fixed-position offcanvas menu and break it. */
.site-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-nav.is-scrolled { background: transparent; }
  .site-nav::before { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
  .site-nav.is-scrolled::before { opacity: 1; }
}
.navbar-brand { color: var(--ink); }
.navbar-brand .logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 .4rem 1rem -.3rem rgba(31, 111, 139, .6);
  transition: transform .6s var(--ease);
}
.navbar-brand:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.brand-sub { font-size: .66rem; letter-spacing: .22em; }

.site-nav .nav-link { font-weight: 500; color: var(--ink); position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible, .site-nav .nav-link.show { color: var(--brand); }
@media (min-width: 992px) {
  .site-nav .nav-link { padding-inline: .75rem !important; }
  .site-nav .nav-link::after { /* replaces Bootstrap caret with an animated underline */
    content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem;
    height: 2px; border: 0; margin: 0; border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
    vertical-align: initial;
  }
  .site-nav .nav-link:hover::after, .site-nav .nav-link.show::after { transform: scaleX(1); transform-origin: left; }
}
.site-nav .dropdown-toggle::after { /* keep a caret on mobile */
  font-family: 'bootstrap-icons'; content: "\F282"; border: 0; vertical-align: -.15em; font-size: .75em; margin-left: .35em;
}
@media (min-width: 992px) {
  .site-nav .dropdown-toggle { padding-right: 1.6rem !important; }
  .site-nav .dropdown-toggle::before {
    font-family: 'bootstrap-icons'; content: "\F282"; position: absolute; right: .55rem; top: 50%;
    font-size: .7em; transform: translateY(-50%); transition: transform .35s var(--ease);
  }
  .site-nav .dropdown-toggle.show::before { transform: translateY(-50%) rotate(180deg); }
  .site-nav .dropdown-toggle::after { content: ""; font-size: inherit; margin: 0; }
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--brand);
  --bs-dropdown-link-hover-bg: var(--soft);
  --bs-dropdown-link-hover-color: var(--brand);
  border: 0; border-radius: 1rem; padding: .5rem; box-shadow: var(--shadow-lg); min-width: 14rem;
}
.dropdown-item { border-radius: .6rem; padding: .55rem .9rem; font-size: .93rem; transition: background-color .2s, color .2s, padding .3s var(--ease); }
.dropdown-item:hover { padding-left: 1.15rem; }
@media (min-width: 992px) {
  .dropdown-menu.show { animation: dropIn .35s var(--ease) both; }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh; min-height: 88svh;
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 6rem 0 9rem; background: var(--brand-deep);
}
.hero .carousel { position: absolute; inset: 0; will-change: transform; }
.hero .carousel-inner, .hero .carousel-item { position: absolute; inset: 0; height: 100%; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero .carousel-item.active img,
.hero .carousel-item-next img,
.hero .carousel-item-prev img { animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero .carousel-fade .carousel-item { transition-duration: 1.4s; }

.hero .carousel::after { /* inside the carousel so indicators can sit above it */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(13, 54, 68, .55), transparent 60%),
    linear-gradient(90deg, rgba(13, 54, 68, .94) 0%, rgba(20, 75, 94, .7) 50%, rgba(20, 75, 94, .15) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 34rem; }

.hl { position: relative; white-space: nowrap; color: var(--accent); }
.hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .4em; overflow: visible; }
.hl path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) 1.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-anim { animation: heroIn 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes heroIn { from { opacity: 0; transform: translateY(32px); filter: blur(8px); } }

.trust { display: flex; align-items: center; gap: 1rem; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem;
  margin-left: -10px; color: var(--ink);
}
.avatars span:first-child { margin-left: 0; }
.trust .stars { font-size: .8rem; }

.hero-indicators.carousel-indicators {
  z-index: 3; margin: 0; left: auto; right: max(1rem, calc((100vw - 1320px) / 2 + 1rem)); bottom: 7.5rem;
  justify-content: flex-end; gap: .5rem;
}
.hero-indicators [data-bs-target] {
  position: relative; width: 44px; height: 3px; margin: 0; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .3); opacity: 1; overflow: hidden; text-indent: 0;
  box-sizing: content-box; border-block: 10px solid transparent; background-clip: padding-box;
}
.hero-indicators [data-bs-target]::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.hero-indicators [data-bs-target].active::after { animation: fillBar var(--interval, 6s) linear forwards; }
@keyframes fillBar { to { transform: scaleX(1); } }
@media (max-width: 991.98px) { .hero-indicators.carousel-indicators { bottom: 6.5rem; right: 1rem; } }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 6.75rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 20px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 4px; animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 991.98px), (max-height: 700px) { .scroll-cue { display: none; } }

/* ---------- Stats (overlaps hero) ---------- */
.stats-wrap { margin-top: -5.5rem; position: relative; z-index: 5; }
.stats-card { background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-lg); padding: 2rem 1rem; }
.stat { text-align: center; padding: .5rem 1rem; }
.stat-num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid var(--line); } }
@media (max-width: 767.98px) { .stat:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 1.25rem; } .stat:nth-child(even) { border-left: 1px solid var(--line); } }

/* ---------- Doctors ---------- */
.doctor-card { background: #fff; border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow); height: 100%; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) { .doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.doctor-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.doctor-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.doctor-card:hover .doctor-media img { transform: scale(1.06); }
.doctor-badge {
  position: absolute; left: .75rem; bottom: .75rem; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 50rem; padding: .3rem .8rem; font-size: .75rem; font-weight: 600; color: var(--brand-dark);
}
.assoc img { height: 36px; width: auto; opacity: .65; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.assoc img:hover { opacity: 1; filter: none; }

/* ---------- Steps ---------- */
.steps { position: relative; }
.steps-line {
  position: absolute; top: 4.6rem; left: 16.66%; right: 16.66%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.steps.is-visible .steps-line, html:not(.js) .steps-line { transform: scaleX(1); }
.step-card { position: relative; border-radius: 1.5rem; padding: 2.5rem 2rem; height: 100%; transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease); }
@media (hover: hover) { .step-card:hover { background: #fff; transform: translateY(-6px); box-shadow: var(--shadow); } }
.step-num {
  width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: var(--ink);
  font-size: 1.6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 10px var(--soft), 0 0 0 11px rgba(242, 166, 90, .45);
  transition: transform .6s var(--ease);
}
.step-card:hover .step-num { transform: scale(1.08) rotate(-6deg); }

/* ---------- Service cards ---------- */
.service-card { border: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.service-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13, 54, 68, .45)); opacity: 0; transition: opacity .6s var(--ease); }
.service-icon {
  position: absolute; left: 1rem; bottom: -1.4rem; z-index: 2; width: 52px; height: 52px; border-radius: 1rem;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 .6rem 1.2rem -.4rem rgba(31, 111, 139, .7); transition: transform .6s var(--ease), background-color .4s;
}
.service-card .card-body { padding: 2rem 1.25rem 1.5rem; }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  .service-card:hover .service-media img { transform: scale(1.08); }
  .service-card:hover .service-media::after { opacity: 1; }
  .service-card:hover .service-icon { transform: translateY(-4px) rotate(-8deg); background: var(--accent); color: var(--ink); }
  .service-card:hover .link-arrow .bi, .blog-card:hover .link-arrow .bi { transform: translateX(5px); }
}
.service-icon-wrap { position: relative; }

/* ---------- Feature blocks ---------- */
.feature-media { position: relative; }
.feature-media::before {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(242, 166, 90, .35), rgba(31, 111, 139, .18)); z-index: 0;
}
.flex-lg-row-reverse .feature-media::before { inset: 1.5rem 1.5rem -1.5rem -1.5rem; }
.feature-frame { position: relative; z-index: 1; overflow: hidden; border-radius: 1.5rem; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.feature-frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
@media (max-width: 575.98px) { .feature-media::before { inset: 1rem -.75rem -.75rem 1rem; } .flex-lg-row-reverse .feature-media::before { inset: 1rem 1rem -.75rem -.75rem; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .bi { color: var(--brand); font-size: 1.15rem; line-height: 1.4; }

/* ---------- Testimonials ---------- */
.review-card {
  border: 0; border-radius: var(--radius); height: 100%; padding: 2rem 1.75rem; position: relative;
  background: #fff; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
@media (hover: hover) { .review-card:hover { transform: translateY(-6px); box-shadow: 0 2rem 3rem -1.5rem rgba(0, 0, 0, .45); } }
.review-card .quote { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 2.75rem; line-height: 1; color: var(--soft); }
.stars { color: #f5b301; letter-spacing: .1em; }
.reviewer { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.reviewer .initials { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rating-pill { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50rem; padding: .45rem 1rem; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq .accordion { --bs-accordion-border-color: transparent; --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--brand-dark); --bs-accordion-btn-focus-box-shadow: none; }
.faq .accordion-item { border-radius: 1rem !important; overflow: hidden; margin-bottom: .85rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .4s var(--ease); }
.faq .accordion-item:has(.accordion-button:not(.collapsed)) { box-shadow: var(--shadow); }
.faq .accordion-button { font-weight: 600; padding: 1.25rem 1.5rem; }
.faq .accordion-button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.faq .accordion-button::after { transition: transform .45s var(--ease); }
.faq .accordion-body { color: var(--muted); padding: 0 1.5rem 1.4rem; }
.faq .collapsing { transition: height .45s var(--ease); }

/* ---------- Blog ---------- */
.blog-card { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.blog-media { overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.blog-tag { position: absolute; top: 1rem; left: 1rem; background: #fff; color: var(--brand-dark); font-size: .75rem; font-weight: 600; border-radius: 50rem; padding: .3rem .8rem; }
@media (hover: hover) { .blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } .blog-card:hover .blog-media img { transform: scale(1.06); } }

/* ---------- CTA banner ---------- */
.cta-banner {
  overflow: hidden; isolation: isolate;
  background: linear-gradient(rgba(13, 54, 68, .86), rgba(20, 75, 94, .86)),
              url('https://picsum.photos/seed/smilecta/1600/700') center / cover no-repeat;
}
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .45; animation: float 14s var(--ease-in-out) infinite alternate; }
.blob-1 { width: 380px; height: 380px; background: var(--accent); top: -140px; left: -100px; }
.blob-2 { width: 320px; height: 320px; background: #3fa7c9; bottom: -140px; right: -80px; animation-delay: -6s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- Contact ---------- */
.form-card { background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.75rem); position: relative; }
.form-control, .form-select { border-radius: .8rem; padding: .8rem 1rem; border-color: #d7e2e7; transition: border-color .25s, box-shadow .25s; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(31, 111, 139, .15); }
.form-floating > .form-control, .form-floating > .form-select { height: calc(3.6rem + 2px); }
.form-floating > textarea.form-control { height: 7.5rem; }
.form-floating > label { padding: 1.1rem 1rem; color: var(--muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
/* Only flag errors; green "valid" ticks on every field are noise */
.was-validated .form-control:valid { border-color: #d7e2e7; background-image: none; padding-right: 1rem; }
.was-validated .form-select:valid { border-color: #d7e2e7; background-image: var(--bs-form-select-bg-img); }
.was-validated .form-check-input:valid { border-color: var(--bs-border-color); }
.was-validated .form-check-input:valid:checked { background-color: var(--brand); border-color: var(--brand); }
.was-validated .form-check-input:valid ~ .form-check-label { color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 2rem 0; }
.form-success[hidden] { display: none; }
.form-success svg { width: 84px; height: 84px; }
.form-success circle { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
.form-success path { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) .7s forwards; }
.form-success > *:not(svg) { animation: heroIn .8s var(--ease) both; animation-delay: .9s; }
.is-leaving { animation: leave .4s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateY(-12px); } }

.location-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) { .location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.location-card .bi { color: var(--brand); }
.location-card a[href^="tel:"] { color: var(--ink); text-decoration: none; font-weight: 500; }
.location-card a[href^="tel:"]:hover { color: var(--brand); }
.hours { font-size: .9rem; }
.hours div { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, .85); }
.site-footer { padding-bottom: 4.5rem; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer .footer-links a:hover { padding-left: .35rem; color: var(--accent); }
.social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .3s, border-color .3s, transform .4s var(--ease), color .3s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-3px); }

/* ---------- Floating actions ---------- */
.floating { position: fixed; z-index: 1015; /* below the sticky nav (1020), which hosts the mobile menu */ transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
html.js .floating:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(20px) scale(.9); }
.floating-book { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); box-shadow: 0 .75rem 1.75rem -.5rem rgba(0, 0, 0, .35); }
.floating-book.is-shown { animation: pulse 2.8s ease-out 1s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 .75rem 1.75rem -.5rem rgba(0, 0, 0, .35), 0 0 0 0 rgba(242, 166, 90, .65); }
  70%, 100% { box-shadow: 0 .75rem 1.75rem -.5rem rgba(0, 0, 0, .35), 0 0 0 16px rgba(242, 166, 90, 0); }
}
.floating-map, .to-top {
  width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 .75rem 1.75rem -.5rem rgba(0, 0, 0, .3);
}
.floating-map { left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); color: var(--brand); font-size: 1.25rem; }
.floating-map:hover { color: var(--brand-dark); transform: translateY(-3px); }
.to-top { right: 1.2rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); color: var(--brand); width: 48px; height: 48px; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .track { stroke: var(--soft); }
.to-top .progress-ring { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.to-top .bi { transition: transform .4s var(--ease); }
.to-top:hover .bi { transform: translateY(-3px); }

/* ---------- Scroll reveal ----------
   Content stays visible when JS is off (gated on html.js) */
html.js [data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal="up"], html.js [data-reveal=""] { transform: translateY(36px); }
html.js [data-reveal="left"] { transform: translateX(-48px); }
html.js [data-reveal="right"] { transform: translateX(48px); }
html.js [data-reveal="zoom"] { transform: scale(.92); }
html.js [data-reveal="blur"] { filter: blur(10px); transform: translateY(16px); }
html.js [data-reveal="clip"] { transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal="clip"]:not(.is-visible) { opacity: 1; clip-path: inset(0 0 100% 0 round 1.5rem); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
html.js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round 0); } /* only clip-type reveals clip (it would cut shadows) */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .steps-line { transform: scaleX(1); }
  .scroll-cue { display: none; }
}
