/* ============================================================
   Welland Smiles Dentistry — modern redesign
   Brand palette from the practice: blue #318cdd, deep navy
   #0c3d5d, cream #f9f6f1, gold #ddbb50. Type: Open Sans.
   ============================================================ */

:root {
  --blue: #318cdd;
  --blue-hover: #2377bf;
  --blue-soft: #e8f3fc;
  --blue-soft-2: #f2f8fd;
  --navy: #0c3d5d;
  --navy-deep: #072b41;
  --navy-ink: #062435;
  --cream: #f9f6f1;
  --gold: #ddbb50;
  --slate: #4a5b6a;
  --slate-light: #6c7d8b;
  --line: #e3ebf2;
  --white: #ffffff;
  --radius: 20px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 18px rgba(12, 61, 93, .06);
  --shadow-md: 0 16px 40px rgba(12, 61, 93, .12);
  --shadow-lg: 0 30px 70px rgba(7, 43, 65, .22);
  --font: "Open Sans", Helvetica, Arial, sans-serif;
  --header-h: 96px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: #1d2b36;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
p { margin: 0 0 1rem; }
ul { margin: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
section[id] { scroll-margin-top: 104px; }

/* the hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1300;
  padding: 12px 20px; background: var(--navy); color: #fff; font-weight: 700;
}
.skip-link:focus { left: 0; }

.grid-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-sm { padding: 12px 20px; font-size: 13.5px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(49, 140, 221, .32); }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 12px 26px rgba(12, 61, 93, .24); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 14px 30px rgba(6, 36, 53, .22); }
.btn-white:hover { background: #fff; color: var(--blue-hover); }
.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { color: var(--blue-hover); }
.text-link:hover { gap: 10px; }

/* ---------- eyebrow / section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #a8d5f7;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--blue); }
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-head {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-title {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.015em;
}
.section-lead {
  margin: 0;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.75;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(12, 61, 93, .08);
}

.utility-bar {
  background: var(--navy);
  color: #bcd6e8;
  font-size: 12.5px;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
}
.utility-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.utility-list a { color: #eaf4fb; text-decoration: none; }
.utility-list a:hover { color: #fff; text-decoration: underline; }
.dot-ico { margin-right: 6px; opacity: .8; }
.open-pip {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}
.utility-hours.is-closed .open-pip { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.utility-phone a { font-weight: 700; }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
}
.logo img { width: auto; height: 44px; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* keep the dropdown lists out of the flex row above */
.main-nav ul { margin: 0; list-style: none; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-block;
  padding: 10px 13px;
  border-radius: 10px;
  color: #1d2b36;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a[aria-current],
.main-nav > ul > li.has-sub:hover > a { background: var(--blue-soft); color: var(--navy); }
.main-nav > ul > li.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 2px 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .55;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: block;
  min-width: 248px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 50;
}
/* invisible bridge so hovering the 10px gap keeps the menu open */
.sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.sub-menu li { display: block; }
.sub-menu-wide { min-width: 300px; }
/* last dropdowns open inward so they never run off the right edge */
.main-nav > ul > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: #2b3b47;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.sub-menu a:hover { background: var(--blue-soft-2); color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.portal-link {
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.portal-link:hover { color: var(--blue-hover); text-decoration: none; }
@media screen and (max-width: 620px) {
  .portal-link { display: none; }
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px 9px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  margin-bottom: 6px;
  border-radius: 2px;
  background: var(--navy);
}
.nav-toggle span:last-child { margin-bottom: 0; }

/* ---------- mobile drawer ---------- */
.off-canvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(6, 30, 46, .5);
  backdrop-filter: blur(2px);
}
.off-canvas-overlay[hidden] { display: none; }

.off-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 330px;
  max-width: 88vw;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 60px rgba(6, 36, 53, .25);
  transform: translateX(102%);
  transition: transform .3s ease;
}
.off-canvas.open { transform: none; }
.off-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.off-canvas-close {
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}
.off-canvas .vertical.menu { margin: 0; padding: 8px 0; list-style: none; flex: 1 1 auto; }
.off-canvas .vertical.menu > li > a,
.off-canvas .sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  border: 0;
  background: none;
  color: #1d2b36;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.off-canvas .vertical.menu > li > a:hover,
.off-canvas .sub-toggle:hover { background: var(--blue-soft-2); color: var(--navy); }
.off-canvas .sub-toggle span { color: var(--blue); font-size: 18px; font-weight: 400; }
.off-canvas .sub-menu {
  display: none;
  position: static;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--blue-soft-2);
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.off-canvas .sub-menu.open { display: block; }
.off-canvas .sub-menu a { padding: 10px 20px 10px 34px; font-size: 13.5px; }
.off-canvas-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 26px;
  border-top: 1px solid var(--line);
}
.off-canvas-foot .btn { width: 100%; }
.off-canvas-foot .btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }

body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 760px);
  padding: 84px 0 96px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
/* no tint, no blur: the office photos stay bright and sharp */
.hero-scrim { position: absolute; inset: 0; background: none; }
.hero-title,
.hero-lead,
.hero-badges {
  text-shadow:
    0 1px 2px rgba(5, 28, 43, .9),
    0 3px 10px rgba(5, 28, 43, .78),
    0 14px 34px rgba(5, 28, 43, .55);
}
.hero-lead { color: #f4fafe; }
.hero-badges { color: #fff; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero-copy { max-width: 760px; }

/* ---------- hours & location band (below the hero) ---------- */
.visit-band {
  padding: 72px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: center;
}
.visit-intro .section-title { margin-bottom: 14px; }
.visit-intro .section-lead { margin-bottom: 26px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.visit-card h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.visit-card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.visit-card-foot p { margin: 0 0 6px; color: var(--slate); font-size: 13.5px; line-height: 1.6; }
.hero-title {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
}
.hero-lead {
  max-width: 34em;
  margin-bottom: 32px;
  color: #d3e6f4;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #bdd9ec;
  font-size: 13px;
  font-weight: 600;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .16);
  border: 1px solid rgba(74, 222, 128, .55);
  box-shadow: inset 0 0 0 3px rgba(74, 222, 128, .18);
}

.hero-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-lg);
  color: #1d2b36;
}
.hero-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hours-list { display: flex; flex-direction: column; gap: 2px; }
.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #46586a;
  font-size: 13px;
}
.hours-row span:last-child { color: #1d2b36; font-weight: 600; }
.hours-row.is-today { background: var(--blue-soft); color: var(--navy); }
.hours-row.is-today span:last-child { color: var(--blue-hover); }
.hours-row.is-today span:first-child::after {
  content: "today";
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.hero-card-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero-address { margin-bottom: 8px; color: #46586a; font-size: 13px; line-height: 1.6; }

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .2s ease, width .2s ease;
}
.hero-dots button.is-active { width: 40px; background: #fff; }

/* ============================================================
   SPLIT SECTIONS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse .mission-copy { order: 1; }
.split-reverse .mission-media { order: 2; }

.welcome-media { position: relative; padding-bottom: 34px; }
.shot-main {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.shot-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot-inset {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 46%;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.shot-inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.check-list { margin: 24px 0 26px; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  color: #37485a;
  font-size: 15px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.fact {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.fact strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.fact span { display: block; color: var(--slate-light); font-size: 12px; }

/* ============================================================
   AGE CARDS
   ============================================================ */
.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.age-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(12, 61, 93, .07);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.age-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.age-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.age-body { padding: 24px 26px 28px; }
.age-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue-hover);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.age-body h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.age-body p { margin-bottom: 16px; color: var(--slate); font-size: 14.5px; line-height: 1.7; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 140, 221, .35);
  box-shadow: 0 18px 38px rgba(12, 61, 93, .1);
  text-decoration: none;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--blue-soft);
  transition: background-color .25s ease;
}
.service-icon img { max-height: 30px; width: auto; }
.service-card:hover .service-icon { background: #d8ebfb; }
.service-card h3 { color: var(--navy); font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.service-arrow {
  margin-top: 14px;
  color: var(--blue);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.service-card:hover .service-arrow { opacity: 1; transform: none; }

/* ============================================================
   WHY BAND
   ============================================================ */
.band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.band::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 140, 221, .35), transparent 68%);
}
.band .section-title { color: #fff; }
.band .section-lead { color: #b9d5e8; }
.band .eyebrow { color: #8fc6ec; }
.band-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.band-item {
  padding: 26px 24px 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  transition: background-color .25s ease, transform .25s ease;
}
.band-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); }
.band-num {
  display: block;
  margin-bottom: 14px;
  color: #7cb8e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.band-item h3 { margin-bottom: 10px; color: #fff; font-size: 16px; font-weight: 700; }
.band-item p { margin: 0; color: #b9d5e8; font-size: 13.5px; line-height: 1.7; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #dfe8ef;
  text-decoration: none;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(5, 28, 43, .8), transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: none; }

/* ============================================================
   MISSION
   ============================================================ */
.mission-media { position: relative; }
.mission-media > img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.mission-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
}
.mission-badge strong { display: block; color: var(--navy); font-size: 13px; }
.mission-badge span { color: var(--slate); font-size: 12px; }
.mission-quote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: var(--cream);
}
.mission-quote blockquote {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 28px;
}
.value { display: flex; align-items: center; gap: 9px; color: #37485a; font-size: 14px; }
.value span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(12, 61, 93, .12);
}
.faq-item summary {
  position: relative;
  padding: 20px 46px 20px 0;
  list-style: none;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--blue-hover); }
.faq-body { padding: 0 40px 20px 0; color: var(--slate); font-size: 14.5px; line-height: 1.75; }
.faq-body p { margin: 0; }
.faq-body a { color: var(--blue); font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.contact-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 20px; color: var(--navy); font-size: 20px; font-weight: 800; }
.info-list { margin: 0 0 20px; padding: 0; list-style: none; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  font-size: 16px;
}
.info-list strong { display: block; color: var(--navy); font-size: 13px; }
.info-list span { color: var(--slate); font-size: 14px; line-height: 1.65; }
.info-list a { color: var(--slate); text-decoration: none; }
.info-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-hours .hours-row { padding: 8px 12px; font-size: 14px; }
.contact-hours .btn { margin-top: 20px; width: 100%; }

.booking-band {
  padding: 46px 0;
  background: linear-gradient(120deg, var(--blue) 0%, #1f6fb2 100%);
  color: #fff;
}
.booking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.booking-inner h2 { margin-bottom: 6px; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.booking-inner p { margin: 0; color: #dceefb; font-size: 15px; }
.booking-inner p a { color: #fff; font-weight: 700; text-decoration: underline; }
.booking-inner .btn { font-weight: 700; }
.booking-inner .btn-white { color: var(--navy); }
.booking-inner .btn-white:hover { color: var(--blue-hover); }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding-top: 64px;
  background: var(--navy-ink);
  color: #9fbccf;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 40px;
}
.logo-chip {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
}
.logo-chip img { height: 38px; width: auto; }
.footer-brand p { margin: 18px 0; color: #9fbccf; font-size: 13.5px; line-height: 1.7; max-width: 30em; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: #cfe3f1;
  text-decoration: none;
  font-size: 15px;
}
.social-row a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-col h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #9fbccf; font-size: 13.5px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-map-card p { margin: 0 0 10px; color: #9fbccf; font-size: 13.5px; line-height: 1.7; }
.footer-map-card a { color: #dbeaf5; text-decoration: none; }
.footer-map-card a:hover { color: #fff; text-decoration: underline; }
.footer-hours-short { color: #7f9db1 !important; font-size: 12.5px !important; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #7f9db1;
  font-size: 12px;
}
.footer-bottom p { margin: 0; font-size: 12px; }
.footer-bottom a { color: #a9c4d6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- back to top ---------- */
#backToTop {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 900;
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(6, 36, 53, .3);
}
#backToTop.show { display: block; }
#backToTop:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ============================================================
   APPOINTMENT MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 43, .65); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.modal-card h2 { margin-bottom: 10px; color: var(--navy); font-size: 1.55rem; font-weight: 800; }
.modal-intro { margin-bottom: 20px; color: var(--slate); font-size: 13.5px; }
.modal-intro a { color: var(--blue); font-weight: 700; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  color: #9aa4ae;
  font-size: 30px;
  line-height: 1;
}
.modal-close:hover { color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  display: block;
  margin-bottom: 14px;
  color: #2b3b47;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px 13px;
  border: 1px solid #dbe4ec;
  border-radius: 10px;
  background: #fff;
  color: #1d2b36;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 140, 221, .16); }
.field textarea { resize: vertical; }
.req { color: #d9534f; }
.form-error { margin: 0 0 12px; color: #d9534f; font-size: 13px; font-weight: 600; }
.form-note { margin: 10px 0 0; color: #9aa4ae; font-size: 11px; }
.form-success { padding: 10px 0; text-align: center; }
.form-success h3 { margin: 16px 0 8px; color: var(--navy); font-size: 20px; }
.success-badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 26px;
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 17px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #14679e);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(12, 61, 93, .34);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(12, 61, 93, .42); }
.chat-launcher-icon { display: flex; }
.chat-launcher-label { white-space: nowrap; }
.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: chat-pulse 2.2s infinite;
}
@keyframes chat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 960;
  display: flex;
  flex-direction: column;
  width: 390px;
  max-height: min(620px, calc(100vh - 126px));
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(6, 36, 53, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy), #10527a);
  color: #fff;
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.chat-head-text { display: flex; flex-direction: column; line-height: 1.35; }
.chat-head-text strong { font-size: 14px; }
.chat-head-text span { color: #a9cbe3; font-size: 11px; }
.chat-close {
  margin-left: auto;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  opacity: .8;
}
.chat-close:hover { opacity: 1; }

.chat-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: #f6fafd;
  overscroll-behavior: contain;
}
.msg { display: flex; flex-direction: column; max-width: 92%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.bubble {
  padding: 11px 14px;
  border: 1px solid #e4edf5;
  border-radius: 16px;
  border-top-left-radius: 5px;
  background: #fff;
  color: #22303c;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(12, 61, 93, .04);
}
.msg.user .bubble {
  border-color: var(--blue);
  border-radius: 16px;
  border-bottom-right-radius: 5px;
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}
.bubble p { margin: 0 0 8px; font-size: 13.5px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 0 0 8px; padding-left: 18px; }
.bubble li { margin-bottom: 3px; font-size: 13.5px; }
.bubble a { color: var(--blue-hover); font-weight: 600; }
.msg.user .bubble a { color: #fff; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.typing { display: flex; gap: 4px; padding: 14px 16px; }
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9cb4c9;
  animation: chat-blink 1s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.chat-chips {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid #edf3f8;
  background: #fff;
  scrollbar-width: none;
}
.chat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid #cfe1f0;
  border-radius: 99px;
  background: #f3f9ff;
  color: #0f4d76;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #edf3f8;
  background: #fff;
}
.chat-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 15px;
  border: 1px solid #d5e1ec;
  border-radius: 99px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.chat-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 140, 221, .14); }
.chat-send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.chat-send:hover { background: var(--blue-hover); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 22, 34, .94);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

/* ============================================================
   REVEAL
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .logo img { height: 38px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .visit-inner { grid-template-columns: 1fr; gap: 28px; }
  .visit-card { max-width: 460px; }
  .hero { min-height: 0; padding: 64px 0 84px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split { gap: 40px; }
}

@media screen and (max-width: 860px) {
  .section { padding: 72px 0; }
  .utility-address, .utility-email { display: none; }
  .utility-inner { justify-content: space-between; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .mission-copy { order: 2; }
  .split-reverse .mission-media { order: 1; }
  .split-reverse .mission-media { margin-bottom: 12px; }
  .age-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.tall { grid-row: span 1; }
  .booking-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media screen and (max-width: 620px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .hero { padding: 48px 0 72px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-ctas .btn { width: 100%; }
  .hero-card { padding: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 18px 16px; }
  .service-card h3 { font-size: 13.5px; }
  .band-grid { grid-template-columns: 1fr; }
  .quick-facts { gap: 8px; }
  .fact { flex: 1 1 40%; }
  .values-grid { grid-template-columns: 1fr; }
  .shot-inset { display: none; }
  .welcome-media { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 18px; }
  .chat-panel {
    right: 10px;
    left: 10px;
    bottom: 80px;
    width: auto;
    max-height: calc(100vh - 104px);
  }
  .chat-launcher { right: 16px; bottom: 16px; padding: 14px 18px; }
  .chat-launcher-label { display: none; }
  #backToTop { right: 16px; bottom: 86px; width: 44px; height: 44px; line-height: 42px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
}
