/*
Theme Name: Beamsville Smiles
Theme URI: https://beamsvillesmiles.ca/
Author: Marker Marketing
Description: Custom theme for Beamsville Smiles Family Dentistry, converted from the static site.
Version: 1.0.0
Text Domain: beamsville-smiles
*/

/* ── FONTS ── */
@font-face {
  font-family: 'Source Serif 4';
  src: url('brand_assets/Source_Serif_4/SourceSerif4-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('brand_assets/Source_Serif_4/SourceSerif4-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --navy-black: #030710;
  --navy-very-dark: #070E22;
  --navy-darkest: #0D1A3E;
  --navy-dark: #173070;
  --navy-mid: #3D4B85;
  --navy-light: #A0ABC5;
  --teal: #3AB3C2;
  --gray-light: #EEEEEE;
  --gray-bg: #F7F7F7;
  --gray-mid: #A8A8A8;
  --gray-dark: #575757;
  --white: #FFFFFF;
  --text: #1a2040;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1440px;
  --sh-sm: 0 1px 4px rgba(23,48,112,0.08);
  --sh-md: 0 4px 18px rgba(23,48,112,0.13);
  --sh-lg: 0 8px 36px rgba(23,48,112,0.18);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
em { font-style: italic; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }
.mb-sm { margin-bottom: 12px;}
.mb-md { margin-bottom: 24px;}
.mb-lg { margin-bottom: 48px;}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px; height: 70px;
  display: flex; align-items: center;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 48px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--navy-dark); opacity: 0.7;
  transition: opacity 150ms;
  position: relative; padding-bottom: 2px;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 0;
  font-size: 15px; font-weight: 500;
  font-family: var(--font-body);
  transition: background 150ms, color 150ms;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-sm {
  padding: 10px 22px; font-size: 13px; font-weight: 500;
  border-radius: 0; display: inline-flex; align-items: center; gap: 8px;
  transition: background 150ms;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--navy-dark); color: var(--white); }
.btn-primary:hover { background: var(--navy-darkest); }
.btn-outline { background: transparent; color: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy-dark); }
.btn-white { background: var(--white); color: var(--navy-dark); border-color: var(--white); }
.btn-white:hover { background: var(--gray-light); border-color: var(--gray-light); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #2fa0af; }
.inline-link, .body-link { color: var(--navy-dark); text-decoration: underline;}
.inline-link:hover, .body-link:hover { text-decoration: none;}


/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.heading-hero {
  font-family: var(--font-display);
  font-size: 58px; font-weight: 400; line-height: 1.1;
  color: var(--navy-dark); letter-spacing: -0.5px;
}
.heading-xl {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 400; line-height: 1.1;
  color: var(--navy-dark); letter-spacing: -0.3px;
}
.heading-lg {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 400; line-height: 1.2;
  color: var(--navy-dark);
}

.heading-lg + p {
    margin-top: 24px;
}

.heading-md {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; line-height: 1.3;
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.heading-sm {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 400; line-height: 1.4;
  color: var(--navy-dark);
}
.body-lrg { font-size: 17px; line-height: 1.75; }
.body-sm { font-size: 14px; line-height: 1.7; }
.body-sub { color: var(--gray-dark) }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }

.card {
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.card-img {
  display: block;
  width: calc(100% + 64px);
  height: 200px;
  object-fit: cover;
}

.card-inner {
  padding: 36px 32px;
}

.card-white {
  background: var(--white);
}

.card-gray {
  background: var(--gray-bg);
}

.card-num {
  font-size: 13px; font-weight: 400;
  color: var(--teal); margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--gray-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.card-title {
  margin-bottom: 14px;
}

.card a.inline-link {
    margin-top: 16px;
    display: inline-block;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.stats-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.stat { display: flex; align-items: center; gap: 12px; text-align: center;}
.stat-label { font-family: var(--font-display); }
.stat-rating-row { display: flex; align-items: center; gap: 8px; }
.stat-stars { color: #F5A623; line-height: 1; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 32px; background: var(--gray-light); }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #006f93 0%, var(--navy-dark) 45%, #0f2e7c 75%, var(--teal) 130%);
	background-size: 60px 60px;
  padding: 88px 0 80px;
  text-align: center;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .heading-xl { margin-bottom: 20px; color: var(--white); }
.page-hero .heading-hero { color: var(--white); }
.page-hero .lead, .page-hero .body-lrg { max-width: 560px; margin: 0 auto; color: var(--white); }

/* split variant — used on therapeutic-botox.html */
.page-hero--split { text-align: left; padding: 0; }
.page-hero--split .container {
  position: static;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  min-height: 540px;
}
.page-hero--split .body-lrg { max-width: none; margin: 0; }
.page-hero--split .page-hero-text { position: relative; z-index: 1; grid-column: 1; padding: 88px 0; }
.page-hero-img-wrap {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  z-index: 1;
  overflow: hidden;
}
.page-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  border-radius: 0;
}
@media (max-width: 768px) {
  .page-hero.page-hero--split { padding: 0; }
  .page-hero--split .container { grid-template-columns: 1fr; gap: 0; padding: 0; min-height: 0; }
  .page-hero--split .page-hero-text { padding: 56px 24px; text-align: center; }
  .page-hero-img-wrap { position: static; width: 100%; height: 320px; }
}

/* ── HOME HERO ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #006f93 0%, var(--navy-dark) 45%, #0f2e7c 75%, var(--teal) 130%);
  padding: 0;
  overflow: hidden;
}
.hero-inner {
  position: static;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  min-height: 620px;
}

/* ── HERO ANIMATED BACKGROUND (floating orbs) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #006f93 0%, var(--navy-dark) 45%, #0f2e7c 75%, var(--teal) 130%);
}
.hero-bg span {
  position: absolute;
  width: 42vmin; height: 42vmin;
  border-radius: 50%;
  backface-visibility: hidden;
  animation: hero-orb-move 18s linear infinite;
}
@keyframes hero-orb-move {
  100% { transform: translate3d(0, 0, 1px) rotate(360deg); }
}
.hero-bg span:nth-child(1) {
  color: #11285f; top: 63%; left: 91%;
  animation-duration: 130s; animation-delay: -170s;
  transform-origin: 2vw 7vh;
  box-shadow: 84vmin 0 11.47vmin currentColor;
}
.hero-bg span:nth-child(2) {
  color: #11285f; top: 60%; left: 58%;
  animation-duration: 198s; animation-delay: -128s;
  transform-origin: -12vw -14vh;
  box-shadow: 84vmin 0 11.17vmin currentColor;
}
.hero-bg span:nth-child(3) {
  color: #173170; top: 91%; left: 15%;
  animation-duration: 147s; animation-delay: -149s;
  transform-origin: 6vw 11vh;
  box-shadow: -84vmin 0 11.32vmin currentColor;
}
.hero-bg span:nth-child(4) {
  color: #11285f; top: 3%; left: 2%;
  animation-duration: 107s; animation-delay: -257s;
  transform-origin: 6vw -4vh;
  box-shadow: -84vmin 0 10.62vmin currentColor;
}
.hero-bg span:nth-child(5) {
  color: #11285f; top: 89%; left: 65%;
  animation-duration: 126s; animation-delay: -129s;
  transform-origin: 16vw -5vh;
  box-shadow: -84vmin 0 10.61vmin currentColor;
}
.hero-bg span:nth-child(6) {
  color: #173170; top: 63%; left: 38%;
  animation-duration: 220s; animation-delay: -219s;
  transform-origin: -20vw -1vh;
  box-shadow: 84vmin 0 11.36vmin currentColor;
}
.hero-bg span:nth-child(7) {
  color: #173170; top: 36%; left: 9%;
  animation-duration: 89s; animation-delay: -15s;
  transform-origin: -20vw 17vh;
  box-shadow: -84vmin 0 11.21vmin currentColor;
}
.hero-bg span:nth-child(8) {
  color: #11285f; top: 9%; left: 63%;
  animation-duration: 131s; animation-delay: -319s;
  transform-origin: 16vw -11vh;
  box-shadow: -84vmin 0 11.17vmin currentColor;
}
.hero-bg span:nth-child(9) {
  color: #11285f; top: 54%; left: 89%;
  animation-duration: 94s; animation-delay: -216s;
  transform-origin: -5vw 11vh;
  box-shadow: 84vmin 0 11.39vmin currentColor;
}
.hero-bg span:nth-child(10) {
  color: #173170; top: 76%; left: 2%;
  animation-duration: 63s; animation-delay: -217s;
  transform-origin: 12vw 4vh;
  box-shadow: -84vmin 0 10.83vmin currentColor;
}
.hero-bg span:nth-child(11) {
  color: #11285f; top: 24%; left: 27%;
  animation-duration: 259s; animation-delay: -14s;
  transform-origin: 5vw 4vh;
  box-shadow: 84vmin 0 11.20vmin currentColor;
}
.hero-bg span:nth-child(12) {
  color: #173170; top: 9%; left: 79%;
  animation-duration: 12s; animation-delay: -89s;
  transform-origin: -14vw 9vh;
  box-shadow: 84vmin 0 11.16vmin currentColor;
}
.hero-bg span:nth-child(13) {
  color: #11285f; top: 10%; left: 94%;
  animation-duration: 307s; animation-delay: -103s;
  transform-origin: 0vw -20vh;
  box-shadow: 84vmin 0 10.84vmin currentColor;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg span { animation: none; }
  .hero-slide { transition: none; }
  .hero-dot.active::after { animation: none; }
}
.hero-text { position: relative; z-index: 1; grid-column: 1; padding: 72px 0; }
.hero-text .heading-hero { margin-bottom: 24px; color: var(--white); }
.hero-text .lead, .hero-text .body-lrg { margin-bottom: 36px; max-width: 440px; color: var(--white); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-slider {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 900ms ease;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 36px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  position: relative; overflow: hidden;
}
.hero-dot::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--white);
  transform: scaleX(0); transform-origin: left;
}
.hero-dot.active::after { animation: dot-progress 4s linear forwards; }
@keyframes dot-progress { to { transform: scaleX(1); } }
/* Pause the progress indicator while the slider is paused (hover / keyboard focus) */
.hero-slider:hover .hero-dot.active::after,
.hero-slider:focus-within .hero-dot.active::after { animation-play-state: paused; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── SECTION INTRO ── */
.section-intro {
  text-align: center; max-width: 560px;
  margin: 0 auto 56px;
}
.section-intro .heading-lg { margin-bottom: 18px; }
.section-intro .lead { font-size: 16px; }

/* ── TEAM ── */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 56px; margin-bottom: 32px;
}
.team-card { text-align: center; }
.team-photo {
  width: 140px; height: 140px;
  border-radius: 50%; margin: 0 auto 18px;
  object-fit: cover;
  border: 3px solid var(--gray-light);
  background: var(--gray-bg);
}
.team-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 400;
  color: var(--navy-dark); margin-bottom: 4px;
}

/* ── WHY CHOOSE ── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.why-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 36px;
}
.why-stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--navy-dark); line-height: 1;
  margin-bottom: 6px;
}
.why-stat-rating { display: flex; align-items: normal; gap: 16px; }
.why-stat-rating .review-stars { margin-bottom: 4px; line-height: 1; }
.why-features { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.why-feature { display: flex; gap: 16px; align-items: flex-start; }
.why-feature-title { font-size: 15px; font-weight: 600; color: var(--navy-dark); margin-bottom: 4px; }

/* ── TESTIMONIALS ── */
.review-stars { color: #F5A623; font-size: 24px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
  font-size: 14px; line-height: 1.75;
  color: var(--text); margin-bottom: 20px;
  font-style: italic;
}
.review-meta { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.review-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--navy-dark); }

.review-meta a.inline-link {
    margin: 0;
    font-size: 14px;
}

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  background: #173170;
  background: linear-gradient(135deg, #0d1a3e 0%, #0d1a3e 45%, #173070 75%, #3ab3c2 130%);
  overflow: hidden;
  padding: 0;
}
.cta-banner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 540px;
}
img.cta-banner-image {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 0;
}
.cta-banner-content > div {
  grid-column: 2;
  padding: 96px 96px 96px 0;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 400;
  color: var(--white); margin-bottom: 32px;
  letter-spacing: -0.3px;
}

/* ── FOOTER ── */
.footer { background: var(--navy-darkest); color: var(--white); padding: 72px 0 0; overflow: hidden; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px 56px;
  display: grid;
  /* grid-template-columns: 220px 1fr 120px 200px; */
  grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-desc { font-size: 13px; line-height: 1.75; color: var(--gray-light); }
/* Hidden for now: the "Open Now/Closed" badge isn't holiday-aware, so it can
   show "Open Now" on statutory holidays. display:none hides it from both sighted
   users and screen readers. Remove this rule (and re-add margin-top:14px) to
   restore it, or delete the markup in footer.php + logic in nav.js to drop it. */
.footer-office-status { display: none; }
#office-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
}
#office-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
#office-status.status-open { background: rgba(34,197,94,0.15); color: #16a34a; }
#office-status.status-open::before { background: #22c55e; }
#office-status.status-closed { background: rgba(148,163,184,0.15); color: var(--gray-mid); }
#office-status.status-closed::before { background: #94a3b8; }
.footer-col-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gray-light); margin-bottom: 18px;
}
.footer-services { columns: 2; gap: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-link {
  font-size: 13px; color: var(--white);
  transition: color 150ms; break-inside: avoid;
  display: block; margin-bottom: 10px;
}
.footer-link:hover { text-decoration: underline; }
.footer-contact-item {
  font-size: 13px; color: var(--gray-light);
  line-height: 1.6; margin-bottom: 10px;
}
.footer-contact-item strong {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: 2px;
}
.footer-map {
  position: relative; display: block; width: 100%; min-height: 200px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.12);
}
.footer-map iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; pointer-events: none; }
.footer-map::after {
  content: ''; position: absolute; inset: 0; transition: background 150ms;
}
.footer-map:hover::after { background: rgba(255,255,255,0.06); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max-w); margin: 0 auto;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-copy { font-size: 12px; color: var(--gray-mid); }
.footer-legal { display: flex; gap: 20px; }
.footer-bottom a { font-size: 12px; color: var(--gray-mid); transition: color 150ms; }
.footer-bottom a:hover { color: var(--white); }


/* ── OFFICE / CONTACT DETAILS (practice + contact pages) ── */
.office-map { border-radius: 0; overflow: hidden; border: 1px solid var(--gray-light); }
.office-map img { width: 100%; height: 400px; object-fit: cover; }
.contact-block { margin-bottom: 28px; }
.callout-block {
  margin-top: 28px;
  padding: 20px;
  background: var(--gray-bg);
  border-left: 3px solid var(--gray-light);}
.callout-block p {
  font-size: 13px; color: var(--gray-dark); line-height: 1.65;
}
.contact-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-dark); margin-bottom: 6px;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours-table td { font-size: 14px; padding: 3px 0; color: var(--text); }
.hours-table td:first-child { color: var(--text); width: 130px; }

/* ── PATIENT FORMS (patients) ── */
.forms-section {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.form-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; background: var(--white);
  border: 1px solid var(--gray-light);
  margin-bottom: 12px; gap: 24px;
  transition: box-shadow 150ms;
}
.form-row:last-child { margin-bottom: 0; }
.form-info { flex: 1; }
.form-title { font-size: 15px; font-weight: 600; color: var(--navy-dark); margin-bottom: 3px; }
.form-type {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-mid); background: var(--gray-bg);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--gray-light); flex-shrink: 0;
}

.form-row a:hover {
  color: var(--navy-light);
}

/* ── INSURANCE (patients) ── */
.insurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.provider-chip {
  background: var(--white); border: 1px solid var(--gray-light);
  padding: 12px 16px;
  font-size: 13px; font-weight: 500; color: var(--navy-dark);
  text-align: center; transition: border-color 150ms;
}

/* ── CONTACT FORM (contact page) ── */
.contact-section { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: start; }
.contact-details-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.contact-details-heading {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400; line-height: 1.2;
  color: var(--navy-dark); margin-bottom: 40px;
}
.form-heading {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400; line-height: 1.2;
  color: var(--navy-dark); margin-bottom: 36px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-dark); margin-bottom: 7px; }
.form-label .req { color: var(--teal); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 150ms, box-shadow 150ms;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-mid); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58,179,194,0.15);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8A8A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.form-checkbox {
  width: 18px; height: 18px;
  border: 2px solid var(--gray-light); border-radius: 4px;
  accent-color: var(--navy-dark); cursor: pointer; flex-shrink: 0;
}
.form-checkbox-label { font-size: 14px; color: var(--text); }
.form-disclaimer { font-size: 12px; color: var(--gray-dark); line-height: 1.65; margin-top: 16px; }
.form-disclaimer a { color: var(--navy-dark); text-decoration: underline; }
.form-message { font-size: 14px; line-height: 1.6; margin-bottom: 20px; padding: 12px 16px; border-radius: 8px; }
.form-message-error { color: #B3261E; background: #FBEAE9; border: 1px solid #F1C7C4; }
.form-honeypot-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── MULTI-PARAGRAPH SPACING IN CENTRED BLOCKS ── */
.page-hero p + p { margin-top: 16px; }
.section-intro p + p { margin-top: 12px; }

/* ── CHECK LIST ── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.check-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── FAQ ACCORDION ── */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-item:first-child { border-top: 1px solid var(--gray-light); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 220ms ease;
}
.faq-item[open] > .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 4px 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-dark);
}
.faq-answer p + p { margin-top: 12px; }
.faq-answer ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-answer ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.faq-answer ul li::before {
  content: '—';
  color: var(--teal);
  flex-shrink: 0;
}

/* ── SECTION BACKGROUNDS ── */
.bg-white { background: var(--white); }
.bg-gray {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.bg-gray-top {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
}

.bg-gray.patterned, .bg-gray-top.patterned {
  background:
		  radial-gradient(27% 29% at right, #0000 83%,#F1F1F1 85% 99%,#0000 101%) calc(30px/2) 30px,
		  radial-gradient(27% 29% at left, #0000 83%,#F1F1F1 85% 99%,#0000 101%) calc(30px/-2) 30px,
		  radial-gradient(29% 27% at top, #0000 83%,#F1F1F1 85% 99%,#0000 101%) 0 calc(30px/2),
		  radial-gradient(29% 27% at bottom, #0000 83%,#F1F1F1 85% 99%,#0000 101%) 0 calc(30px/-2)
		  #F7F7F7;
	background-size: 60px 60px;
}

/* ── SECTION ACTION (centred CTA below a grid) ── */
.section-action { text-align: center; margin-top: 48px; }

/* ── TEAM GRID 3-COL VARIANT ── */
.team-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }

/* ── FOOTER CONTACT LINK (no extra bottom margin) ── */
.footer-contact-item .footer-link { margin-bottom: 0; }

/* ── MOBILE NAV ── */
.nav-burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-dark);
  transition: transform 220ms ease, opacity 220ms ease;
  border-radius: 1px;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--sh-md);
  padding: 8px 24px 28px;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}
.nav-mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  opacity: 0.75;
  transition: opacity 150ms;
}
.nav-mobile-link:hover { opacity: 1; }
.nav-mobile-link.active { opacity: 1; color: var(--teal); }

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.nav-mobile-actions .btn-sm {
  justify-content: center;
  text-align: center;
  width: 100%;
}

@media (max-width: 1030px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
}

/* ── RESPONSIVE: TABLET (≤ 768px) ── */
@media (max-width: 768px) {
  /* Layout */
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  /* Typography */
  .heading-hero { font-size: 42px; }
  .heading-xl { font-size: 36px; }
  .heading-lg { font-size: 30px; }

  /* Page hero */
  .page-hero { padding: 56px 0 48px; }

  /* Home hero — stack text above image, full-bleed slider */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    min-height: 0;
  }
  .hero-text { padding: 56px 24px; text-align: center; }
  .hero-text .lead, .hero-text .body-lrg { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { position: static; width: 100%; height: auto; }
  .hero-slider { height: 320px; margin-bottom: 0; }

  /* Stats bar — allow wrapping */
  .stats-bar-inner {
    padding: 20px 24px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
  }
  .stat-divider { display: none; }

  /* Cards */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
  }
  
  .card {
    padding: 16px;
    border: 1px solid var(--gray-light);
  }

  /* Team — 2 col */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team-grid-3 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }

  /* Why choose — stack */
  .why-grid, .cta-banner-content { grid-template-columns: 1fr; gap: 40px; }

  /* Insurance — stack */
  .insurance-grid { grid-template-columns: 1fr; gap: 24px; }

  .form-type {display: none;}

  /* Patient Forms */
  .forms-section .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .forms-section a.btn-sm {
    padding: 0;
  }

  /* Contact form — stack */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-section { padding: 64px 0; }

  /* CTA banner — stack, image full-bleed on top */
  .cta-banner { padding: 0; }
  .cta-banner-content { padding: 0; min-height: 0; }
  img.cta-banner-image { position: static; width: 100%; height: 280px; }
  .cta-banner-content > div { grid-column: auto; padding: 56px 24px; }
  .cta-banner h2 { font-size: 32px; margin-bottom: 24px; }

  /* Footer — 2×2 grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px 48px;
    gap: 40px;
  }
  .footer-services { columns: 1; }
  .footer-bottom {
    padding: 20px 24px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

/* ── RESPONSIVE: MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  /* Layout */
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 40px 0; }

  /* Typography */
  .heading-hero { font-size: 32px; }
  .heading-xl { font-size: 28px; }
  .heading-lg { font-size: 24px; }
  .cta-banner h2 { font-size: 26px; }

  /* Page hero */
  .page-hero { padding: 40px 0 32px; }

  /* Home hero — hide image at smallest screens */
  /*.hero-image-wrap { display: none; } */

  /* Stats bar — single column */
  .stats-bar-inner {
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }

  /* Cards — single column */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Team — keep 2 col (photos are compact) */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* Why stats — keep 2×2 */
  .why-stats { gap: 20px; }

  /* Insurance providers — 2 col */
  .provider-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact form rows — stack */
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* .form-row .btn-sm { width: 100%; justify-content: center; } */

  /* CTA banner */
  .cta-banner-content { padding: 0; }
  .cta-banner-content > div { padding: 48px 16px; }

  /* Footer — single column */
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
    gap: 32px;
  }
  .footer-bottom { padding: 16px; }
  .footer-legal { flex-direction: column; align-items: center; gap: 10px; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 48px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-mid);
}
.breadcrumb-item a { color: var(--navy-dark); transition: color 150ms; }
.breadcrumb-item a:hover { color: var(--teal); }
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--gray-mid);
  font-size: 12px;
}
.breadcrumb-item.active { color: var(--text); }

/* ── LEGAL PAGES ── */
.legal-body {
  max-width: 740px;
}
.legal-updated {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 32px;
}
.legal-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e4e8ee);
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}
.legal-body p {
  color: var(--text-mid, #4a5568);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-body ul, .legal-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li {
  color: var(--text-mid, #4a5568);
  line-height: 1.8;
  margin-bottom: 6px;
  padding-left: 4px;
}
.legal-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { opacity: 0.8; }
.legal-body strong { font-weight: 600; color: var(--text); }

/* ── SITEMAP ── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-top: 48px;
}
.sitemap-group-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 400;
  color: var(--navy-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-light);
}
.sitemap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sitemap-list li a {
  font-size: 15px;
  color: var(--navy-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms;
}
.sitemap-list li a:hover { color: var(--teal); }

/* ── OFFICE GALLERY ── */
.gallery-masonry {
  columns: 3;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 0;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .gallery-masonry { columns: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
}

/* ── BLOG LISTING ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 150ms;
}
.blog-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-category {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400; line-height: 1.35;
  color: var(--navy-dark); margin-bottom: 12px;
}
.blog-card-title a { transition: color 150ms; }
.blog-card-title a:hover { color: var(--teal); }
.blog-card-excerpt {
  font-size: 14px; line-height: 1.7;
  color: var(--gray-dark); flex: 1; margin-bottom: 20px;
}
.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--gray-dark);
  padding-top: 16px; border-top: 1px solid var(--gray-light);
}

/* ── BLOG POST PAGE ── */
.blog-post-section { padding: 48px 0 96px; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.post-header { margin-bottom: 40px; }
.post-category {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.post-title {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 400; line-height: 1.15;
  color: var(--navy-dark); letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.post-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--gray-dark);
  padding-bottom: 32px; border-bottom: 1px solid var(--gray-light);
  flex-wrap: wrap;
}
.post-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gray-mid); flex-shrink: 0;
}

/* Post body typography */
.post-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.post-body p { margin-bottom: 20px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400; line-height: 1.3;
  color: var(--navy-dark); margin: 40px 0 16px;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; line-height: 1.4;
  color: var(--navy-dark); margin: 32px 0 12px;
}
.post-body ul,
.post-body ol {
  margin: 0 0 20px; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.post-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 16px; line-height: 1.7;
}
.post-body ul li::before {
  content: '';
  display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--teal);
  margin-top: 9px; flex-shrink: 0;
}
.post-body ol { counter-reset: ol-counter; }
.post-body ol li {
  display: flex; align-items: flex-start; gap: 12px;
  counter-increment: ol-counter;
  font-size: 16px; line-height: 1.7;
}
.post-body ol li::before {
  content: counter(ol-counter) '.';
  font-size: 13px; font-weight: 600; color: var(--teal);
  flex-shrink: 0; min-width: 22px; margin-top: 3px;
}
.post-body strong { font-weight: 600; color: var(--navy-dark); }
.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px; margin: 32px 0;
  background: var(--gray-bg);
  font-style: italic; color: var(--navy-mid);
  font-size: 17px; line-height: 1.7;
}
.post-body a { color: var(--navy-dark); text-decoration: underline; }
.post-body a:hover { color: var(--teal); }

/* Post in-article CTA */
.post-cta {
  margin-top: 48px; padding: 32px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-left: 3px solid var(--teal);
}
.post-cta-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400;
  color: var(--navy-dark); margin-bottom: 10px;
}
.post-cta p {
  font-size: 14px; color: var(--gray-dark);
  line-height: 1.7; margin-bottom: 20px;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex; flex-direction: column; gap: 32px;
  position: sticky; top: 90px;
}
.sidebar-widget {
  padding: 28px;
  border: 1px solid var(--gray-light);
  background: var(--white);
}
.sidebar-widget .btn { width: 100%; justify-content: center; }
.sidebar-widget-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-dark); margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--gray-light);
}
.sidebar-posts { display: flex; flex-direction: column; }
.sidebar-post {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-category {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 4px;
}
.sidebar-post-title {
  display: block;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 400;
  color: var(--navy-dark); line-height: 1.4;
  margin-bottom: 4px; transition: color 150ms;
}
.sidebar-post-title:hover { color: var(--teal); }
.sidebar-post-date { font-size: 12px; color: var(--gray-dark); }
.sidebar-contact-item { margin-bottom: 16px; }
.sidebar-contact-item:last-of-type { margin-bottom: 24px; }
.sidebar-contact-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-dark); margin-bottom: 3px;
}
.sidebar-contact-value { font-size: 13px; color: var(--text); line-height: 1.55; }
.sidebar-contact-value a { color: var(--navy-dark); text-decoration: underline; transition: color 150ms; }
.sidebar-contact-value a:hover { color: var(--teal); }

/* ── RESPONSIVE: BLOG ── */
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .blog-layout { grid-template-columns: 1fr; gap: 48px; }
  .post-title { font-size: 32px; }
  .sidebar { position: static; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 26px; }
  .blog-post-section { padding: 32px 0 64px; }
}

/* ============================================================
   PAGE ANIMATIONS
   Scoped under .js-anim so nothing is invisible without JS.
   Only opacity + transform — GPU composited, no layout cost.
   ============================================================ */
.js-anim .anim {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-anim .anim.in {
  opacity: 1;
  transform: translateY(0);
}
/* Honour system-level reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .js-anim .anim,
  .js-anim .anim.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   COOKIE CONSENT BAR
   ============================================================ */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--gray-light);
  border-top: 1px solid #DDDDDD;
}
.cookie-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-bar-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 760px;
}
.cookie-bar-text a { text-decoration: underline; }
.cookie-bar-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
/* Accept and Decline are styled identically — no visual preference */
.cookie-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 28px;
  border: 1px solid var(--navy-dark);
  background: var(--white);
  color: var(--navy-dark);
  cursor: pointer;
  transition: background 150ms;
}
.cookie-btn:hover { background: #E4E4E4; }
.cookie-btn:focus-visible { outline: 2px solid var(--navy-dark); outline-offset: 2px; }

@media (max-width: 600px) {
  .cookie-bar-inner { padding: 14px 16px; gap: 14px; }
  .cookie-bar-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
