/* ================================================================
   OAKLANDS NURSING HOME — style.css
   Pure CSS, zero frameworks. Mobile-first.
   Colour tokens, WCAG AA contrast verified throughout.
   ================================================================ */

/* ── 0. SELF-HOSTED FONTS ─────────────────────────────────────── */
/* Quicksand — headings */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Nunito — body text */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Dancing Script — tagline script */
@font-face {
  font-family: 'Dancing Script';
  src: url('../fonts/DancingScript-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('../fonts/dancing-script-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --c-navy:          #1c2b47;
  --c-navy-dark:     #14203a;
  --c-green:         #3d7856;
  --c-green-mid:     #4d9068;
  --c-green-bullet:  #5baa7a;
  --c-white:         #ffffff;
  --c-off-white:     #f6f7f8;
  --c-body:          #3a3a3a;
  --c-muted:         #666666;

  --font-script:   'Dancing Script', cursive;
  --font-heading:  'Quicksand', sans-serif;
  --font-body:     'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                   Roboto, Helvetica, Arial, sans-serif;

  --radius:    6px;
  --radius-sm: 4px;

  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --max-w:  1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-body);
  line-height: 1.65;
  background: var(--c-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* Links within body copy (paragraphs and definition lists only —
   NOT li, which would catch nav links) */
p a:not([class]),
dd a:not([class]) {
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
p a:not([class]):hover,
dd a:not([class]):hover {
  color: var(--c-navy);
}
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── 3. TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--c-navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
/* Consistent margin below h1 in all page content sections */
.section .container > h1,
.faq-section .container > h1,
.contact-page .container > h1 {
  margin-bottom: 1.25rem;
}
h2 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Form status must be focusable for AT announcement */
.form-status { outline: none; }
.form-status[tabindex="-1"]:focus { outline: none; }

/* ── 4. UTILITIES ────────────────────────────────────────────── */
.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;
}
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.text-center { text-align: center; }

/* ── 5. SKIP LINK (WCAG) ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: #ffd700;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0.75rem; }

/* ── 6. TOPBAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--c-navy);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Constrain content to --max-w while keeping full-width background.
     Uses 100vw (viewport-based) not 50% (element-based) to avoid the
     circular layout dependency that causes CLS on multi-pass reflows. */
  padding: 0.6rem max(1.5rem, calc((100vw - var(--max-w)) / 2 + 1.5rem));
  flex-wrap: wrap;
}
.topbar__logo img {
  height: 68px;
  width: auto;
}
.topbar__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
  font-weight: 400;
  flex: 1;
  text-align: center;
  margin-bottom: 0;
}
/* Phone number styled as a pill button */
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  text-decoration: none;
  white-space: nowrap;
  background: var(--c-green);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.topbar__phone:hover { background: var(--c-green-mid); text-decoration: none; }
.topbar__phone svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

/* ── 7. NAVIGATION ───────────────────────────────────────────── */
.site-nav { background: var(--c-green); }
.site-nav__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  /* Constrain nav links to --max-w while background stays full-width */
  max-width: var(--max-w);
  margin-inline: auto;
}
.site-nav__list a {
  display: block;
  padding: 0.85rem 1.2rem;
  color: var(--c-white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible { background: rgba(0,0,0,0.18); }
.site-nav__list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  padding: 0.8rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  gap: 0.5rem;
  width: 100%;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── 8. HERO SLIDER ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: clamp(320px, 68vh, 700px);
  overflow: hidden;
  background: var(--c-navy);
}
.hero--banner { height: clamp(260px, 68vh, 600px); }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}
.hero__btn:hover { background: rgba(255,255,255,0.42); }
.hero__btn--prev { left: 1rem; }
.hero__btn--next { right: 1rem; }
.hero__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; }

/* ── 8b. PAGE CONTENT IMAGE BREAK ───────────────────────────── */
.page-image-break {
  width: 100%;
  overflow: hidden;
  max-height: 480px;
}
.page-image-break img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── 9. INNER PAGE BANNER ────────────────────────────────────── */
.page-banner {
  height: clamp(260px, 52vh, 600px);
  background-size: cover;
  background-position: center;
  background-color: var(--c-navy);
}

/* ── 10. GENERIC SECTION WRAPPER ─────────────────────────────── */
.section { padding: var(--gap-lg) 0; }
.section--navy { background: var(--c-navy); color: var(--c-white); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--c-white); }
.section--light { background: var(--c-off-white); }
.section--tight { padding: 2.5rem 0; }

/* ── 11. HOME — INTRO BLOCK ───────────────────────────────────── */
.intro-block {
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1.5rem;
}
.intro-block h1 { margin-bottom: 1rem; }
.intro-block h2 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: var(--c-green); margin-bottom: 1.5rem; }
.intro-block p { font-size: 1.05rem; color: var(--c-muted); }

/* ── 12. HOME — FEATURE CARDS ─────────────────────────────────── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0.75rem 1.5rem 3.5rem;
}
.feature-card {
  border: 1px solid #e0e4e8;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-off-white);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(28,43,71,0.10);
  transform: translateY(-2px);
}
/* Accent line at the bottom of the image */
.feature-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 3px solid var(--c-green);
}
/* Portrait variant for about page cards */
.feature-cards--portrait .feature-card__img {
  aspect-ratio: 3/4;
}
.feature-card__body { padding: 1.5rem; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.feature-card p { font-size: 0.9rem; color: var(--c-muted); }

/* ── 13. HOME — OUR APPROACH ─────────────────────────────────── */
.our-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.our-approach__image {
  min-height: 480px;
  background-image: url('../images/our-approach.webp');
  background-size: cover;
  background-position: center;
}
.our-approach__content {
  background: var(--c-navy);
  color: var(--c-white);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.our-approach__content h2 { color: var(--c-white); margin-bottom: 1.5rem; }
.our-approach__list { display: flex; flex-direction: column; gap: 0.7rem; }
.our-approach__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.our-approach__list li::before {
  content: '●';
  color: var(--c-green-bullet);
  font-size: 0.6rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* ── 14. HOME — VIDEO SECTION ─────────────────────────────────── */
.video-section {
  padding: 3.5rem 1.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.video-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: none;
  background: var(--c-navy);
  padding: 0;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.video-card:hover {
  box-shadow: 0 6px 24px rgba(28,43,71,0.25);
  transform: translateY(-2px);
}
.video-card img {
  width: calc(100% - 8px);
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  margin: 4px 4px 0;
  border-radius: calc(var(--radius) - 2px);
  transition: opacity 0.2s;
}
.video-card:hover img { opacity: 0.82; }
.video-card:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}
.video-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-white);
  font-family: var(--font-heading);
}
.video-card__play-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: var(--c-green-bullet);
  transition: fill 0.2s;
}
.video-card:hover .video-card__play-icon { fill: #fff; }

/* Bare variant — no navy box, used for single featured videos on subpages */
.video-card--bare {
  background: transparent;
  border: none;
  border-radius: var(--radius);
}
.video-card--bare:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.14); transform: none; }
.video-card--bare img {
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
}
.video-card--bare .video-card__title { color: var(--c-navy); }
.video-card--bare .video-card__play-icon { fill: var(--c-green); }

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.video-modal[hidden] { display: none; }
.video-modal__inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}
.video-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}
.video-modal__close:focus-visible { outline: 3px solid #ffd700; }
.video-modal__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── 15. HOME — RATINGS STRIP ─────────────────────────────────── */
.ratings-section { padding: 2.5rem 0; }
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  text-align: center;
}
.rating-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.rating-item img { max-height: 90px; width: auto; }
.rating-item p { font-size: 0.9rem; color: var(--c-muted); }
.rating-item a { color: var(--c-green); font-weight: 600; }

/* ── 16. HOME — REVIEWS ────────────────────────────────────────── */
.reviews-section { padding: 3rem 0; background: var(--c-off-white); }
.reviews-section h2 { margin-bottom: 1.5rem; }
.tg-review-carousel-widget-container { border-radius: var(--radius); overflow: hidden; }
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.reviews-header h2 { font-size: 1.3rem; }
.reviews-score {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.reviews-score__rating {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.reviews-score__num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1;
}
.reviews-score__denom {
  font-size: 1rem;
  color: var(--c-muted);
  font-weight: 600;
}
.reviews-score__stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.reviews-score__label { color: var(--c-muted); font-size: 0.8rem; margin-top: 0.15rem; }
.reviews-score__meta { display: flex; flex-direction: column; gap: 0.2rem; }
.reviews-score a { color: var(--c-green); font-size: 0.85rem; }
.reviews-score img { display: block; }
.reviews-score__badges { display: flex; gap: 0.5rem; align-items: center; }
.reviews-track { overflow: hidden; }
.reviews-carousel {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}
.review-card {
  flex: 0 0 calc(25% - 1.125rem);
  background: var(--c-white);
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--c-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.review-card__stars { color: #f5b800; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.4rem; }
.review-card__date { font-size: 0.75rem; color: var(--c-muted); margin-bottom: 0.6rem; }
.review-card__text { font-size: 0.88rem; color: var(--c-body); margin-bottom: 0.75rem; line-height: 1.5; }
.review-card__author { font-size: 0.82rem; font-weight: 700; color: var(--c-navy); }
.reviews-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}
.reviews-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  color: var(--c-navy);
}
.reviews-nav button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.reviews-nav button:hover { background: var(--c-navy); color: #fff; }

/* ── 17. ABOUT — VALUE CARDS ──────────────────────────────────── */
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 1.5rem 3.5rem;
}

/* ── Reusable two-column grid ─────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
/* Value card styled like feature-card with portrait image */
.value-card {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-off-white);
  display: flex;
  flex-direction: column;
}
.value-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.value-card__body {
  padding: 1.5rem;
  flex: 1;
}
.value-card__body h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.value-card__body p { font-size: 0.9rem; color: var(--c-muted); }

/* ── 18. ABOUT — VALUES LIST ──────────────────────────────────── */
.values-section { padding: var(--gap-lg) 0; }
.values-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.values-list { display: flex; flex-direction: column; gap: 2rem; }
.value-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.value-item__icon { width: 52px; height: 52px; flex-shrink: 0; }
.value-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.value-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.value-item p { font-size: 0.9rem; color: var(--c-muted); }

/* CQC quality widget area */
.cqc-panel {
  background: var(--c-off-white);
  border-radius: var(--radius);
  padding: 0 1.5rem;
}
.cqc-panel h3 { margin-bottom: 0.5rem; }
.cqc-panel p { font-size: 0.9rem; color: var(--c-muted); margin-bottom: 1.25rem; }
.cqc-rating-img { max-width: 100%; border-radius: var(--radius); }
.cqc-link { display: inline-block; margin-top: 1rem; color: var(--c-green); font-weight: 600; font-size: 0.9rem; }

/* ── 19. ABOUT — STAFF PROFILES ──────────────────────────────── */
.staff-section { padding: var(--gap-lg) 0; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.staff-card__photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: top; margin-bottom: 0.75rem; border: 3px solid var(--c-green); }
.staff-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.staff-card__role { color: var(--c-green); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.staff-card p { font-size: 0.9rem; color: var(--c-muted); }

/* ── 19b. ALTERNATING CONTENT ROWS ───────────────────────────── */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.content-row__img {
  overflow: hidden;
}
.content-row__img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.content-row__text h2 { margin-bottom: 1rem; }
.content-row__text p { font-size: 0.95rem; color: var(--c-muted); }
.content-row__text dl { display: flex; flex-direction: column; gap: 1.25rem; }
.content-row__text dt { font-weight: 700; color: var(--c-navy); margin-bottom: 0.2rem; }
.content-row__text dd { font-size: 0.9rem; color: var(--c-muted); }
/* Inset variant: used inside .container, text needs no extra horizontal padding */
.content-row--inset .content-row__text { padding: 0; }
/* Reverse: image on right, text on left */
.content-row--reverse .content-row__img { order: 2; }
.content-row--reverse .content-row__text { order: 1; }

/* ── 20. FAQ ─────────────────────────────────────────────────── */
.faq-section { padding: var(--gap-lg) 0; }
.faq-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.faq-list { max-width: 100%; margin: 2.5rem 0 0; }
.faq-list details { border-top: 1px solid #ddd; }
.faq-list details:last-child { border-bottom: 1px solid #ddd; }
.faq-list summary {
  padding: 1.3rem 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-navy);
  list-style: none;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--c-green);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div {
  padding: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.faq-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--c-off-white);
  border-radius: var(--radius);
}

/* ── 21. TESTIMONIALS ─────────────────────────────────────────── */
.testimonials-section { padding: var(--gap-lg) 0; }
.testimonials-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.testimonials-list { display: flex; flex-direction: column; gap: 4rem; }
.testimonial-card {
  background: var(--c-white);
  padding: 2rem 2.5rem;
  border-left: 5px solid var(--c-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 12px rgba(28,43,71,0.08);
}
.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--c-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--c-navy);
  font-size: 0.9rem;
}

/* ── 22. PHOTOS ───────────────────────────────────────────────── */
.photos-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.photos-intro a { color: var(--c-green); font-weight: 600; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.photo-grid__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.2s, transform 0.25s;
  display: block;
}
.photo-grid__btn:hover img,
.photo-grid__btn:focus-visible img { opacity: 0.88; transform: scale(1.03); }

/* ── Lightbox ───────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#lightbox.lb-open { display: flex; }
.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  display: block;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s;
  z-index: 9001;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.28); }
.lb-close { top: 1.2rem; right: 1.2rem; font-size: 1.8rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.photos-facebook-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--c-off-white);
  border-radius: var(--radius);
}
.photos-facebook-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1877f2;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.2s;
}
.photos-facebook-cta a:hover { background: #145dbf; }

/* ── 23. CONTACT PAGE ─────────────────────────────────────────── */
.contact-page { padding: var(--gap-lg) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info h1,
.contact-info h2,
.contact-form-wrap h2 { margin-bottom: 1.25rem; }
.contact-info p { font-size: 0.95rem; color: var(--c-muted); }
.contact-info a { color: var(--c-green); font-weight: 600; }
.contact-info a.btn { color: #fff; font-weight: 700; }
.contact-address { font-style: normal; margin: 1.5rem 0; line-height: 2; }
.contact-map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 280px; border: none; }

/* ── 24. FOOTER PANEL (global aside) ─────────────────────────── */
.footer-panel {
  background: var(--c-navy);
  color: var(--c-white);
  padding: 3.5rem 0;
}
.footer-panel__grid {
  display: grid;
  /* form column must stay >= 500px or the embedded GHL form switches to its stacked mobile layout */
  grid-template-columns: 200px 1fr 1.8fr;
  gap: 3rem;
  align-items: start;
}
/* Column 1: Logo + blurb + social */
.footer-col1 {}
.footer-col1__logo { max-width: 200px; margin-bottom: 1.25rem; }
.footer-col1 p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.65; }
.footer-col1 a { color: var(--c-green-bullet); }
.footer-col1 a:hover { color: var(--c-white); text-decoration: underline; }
.footer-social { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.25rem; flex-wrap: wrap; }
.footer-social a img { width: 46px; height: 46px; border-radius: var(--radius); }
.footer-social__recommend img { width: 90px; height: auto; }

/* Column 2: Find us + map */
.footer-col2 h3 { color: var(--c-white); margin-bottom: 1rem; font-size: 1rem; }
.footer-address { font-style: normal; font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.9; margin-bottom: 1rem; }
.footer-map-link { color: var(--c-green-bullet); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.footer-map-link:hover { color: var(--c-white); text-decoration: underline; }
.footer-map-embed { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; }
.footer-map-embed iframe { display: block; width: 100%; height: 200px; border: none; }

/* Column 3: Contact form */
.footer-col3 h3 { color: var(--c-white); margin-bottom: 0.5rem; font-size: 1rem; }
.footer-col3 p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.footer-col3 a { color: var(--c-green-bullet); font-weight: 600; }
.footer-col3 a:hover { color: var(--c-white); text-decoration: underline; }

/* Override body-copy link rule for links sitting on the navy footer background */
.footer-panel p a:not([class]),
.footer-panel dd a:not([class]) {
  color: var(--c-green-bullet);
  font-weight: 600;
  text-decoration: none;
}
.footer-panel p a:not([class]):hover,
.footer-panel dd a:not([class]):hover {
  color: var(--c-white);
  text-decoration: underline;
}

/* ── 25. CONTACT FORM ─────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 0.7rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
.form-group label .req { color: #f87171; }
.form-group input,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--c-white);
  font: inherit;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #ffd700;
  outline-offset: 1px;
  border-color: transparent;
  background: rgba(255,255,255,0.14);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-honey { display: none !important; visibility: hidden; }
.btn-submit {
  align-self: flex-end;
  padding: 0.7rem 2.25rem;
  background: var(--c-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--c-green-mid); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: none;
  margin-top: 0.25rem;
}
.form-status.show { display: block; }
.form-status--success {
  background: rgba(91,170,122,0.2);
  border: 1px solid var(--c-green-bullet);
  color: #c0f0d0;
}
.form-status--error {
  background: rgba(220,50,50,0.18);
  border: 1px solid #e05555;
  color: #ffc8c8;
}

/* ── 26. FOOTER BAR ───────────────────────────────────────────── */
.footer-bar {
  background: var(--c-green);
  padding: 0.9rem 1.5rem;
  color: var(--c-white);
  font-size: 0.78rem;
}
.footer-bar__inner {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-bar a {
  color: var(--c-white);
  text-decoration: underline;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-underline-offset: 3px;
}
.footer-bar a:hover { opacity: 0.8; }
.footer-bar__sep { opacity: 0.45; margin: 0 0.25rem; }
.footer-bar__copy { opacity: 1; }

/* ── 27. STANDALONE CONTACT FORM (contact.html page) ──────────── */
/* On contact page, form renders in main content on light bg */
.contact-form--light .form-group label { color: var(--c-navy); }
.contact-form--light .form-group input,
.contact-form--light .form-group textarea {
  border-color: #ccc;
  background: var(--c-white);
  color: var(--c-body);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.contact-form--light .form-group input::placeholder,
.contact-form--light .form-group textarea::placeholder { color: #aaa; }
.contact-form--light .form-group input:focus,
.contact-form--light .form-group textarea:focus {
  outline: 2px solid var(--c-navy);
  border-color: transparent;
}
.contact-form--light .form-status--success {
  background: #e8f8ee;
  border-color: var(--c-green);
  color: #1a5c32;
}
.contact-form--light .form-status--error {
  background: #fdecea;
  border-color: #e04040;
  color: #7a1010;
}
.contact-form--light .btn-submit { background: var(--c-navy); }
.contact-form--light .btn-submit:hover { background: #263a5e; }

/* ── Testimonial card BEM sub-elements ───────────────────────── */
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  color: #f5a623;
}
.testimonial-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--c-body);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.testimonial-card__quote p::before { content: '\201C'; }
.testimonial-card__quote p::after  { content: '\201D'; }
.testimonial-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.9rem;
}
.testimonial-card__author strong { color: var(--c-navy); }
.testimonial-card__role { color: var(--c-body); opacity: 0.75; }
.testimonial-card__date { color: var(--c-body); opacity: 0.6; font-size: 0.82rem; }

/* ── Visually hidden (accessible text) ───────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── 28. CTA BUTTON ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn--green { background: var(--c-green); color: #fff; }
.btn--green:hover { background: var(--c-green-mid); }
.btn--navy { background: var(--c-navy); color: #fff; }
.btn--navy:hover { background: #263a5e; }
.btn--outline { border: 2px solid var(--c-green); color: var(--c-green); background: transparent; }
.btn--outline:hover { background: var(--c-green); color: #fff; }

/* ── 29. CALLOUT BANNER ───────────────────────────────────────── */
.callout-banner {
  background: var(--c-navy);
  color: var(--c-white);
  padding: 2.5rem 0;  /* horizontal handled by inner .container */
}
.callout-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
/* When callout-banner sits inside a .section .container, constrain and colour text */
.callout-banner p,
.callout-banner__text {
  color: var(--c-white);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}
.callout-banner p strong { color: var(--c-white); }
.callout-banner p a,
.callout-banner a {
  color: #a8dfc0;          /* light green — readable on navy */
  text-decoration: underline;
}
.callout-banner p a:hover,
.callout-banner a:hover { color: var(--c-white); }
.btn--white {
  flex-shrink: 0;
  background: var(--c-white);
  color: var(--c-navy);
}
.btn--white:hover { background: var(--c-off-white); }

/* ── 30. RESPONSIVE BREAKPOINTS ───────────────────────────────── */

@media (max-width: 1130px) {
  /* below this the footer form column drops under 500px, so let the form span the full row instead */
  .footer-panel__grid { grid-template-columns: 1fr 1fr; }
  .footer-col3 { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .our-approach { grid-template-columns: 1fr; }
  .our-approach__image { min-height: 320px; }
  .value-cards { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .review-card { flex: 0 0 calc(50% - 0.75rem); }
  .values-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .content-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .content-row--reverse .content-row__img { order: 0; }
  .content-row--reverse .content-row__text { order: 0; }
  .content-row__img img { height: 260px; }
  .content-row__text { padding: 0; }
}

@media (max-width: 768px) {
  html { font-size: 18px; }
  :root { --gap-lg: 2.5rem; }

  .topbar { padding: 0.6rem 1rem; }
  .topbar__tagline { order: 3; flex: 0 0 100%; text-align: center; font-size: 1.2rem; padding: 0.2rem 0 0.4rem; }
  .topbar__logo { order: 1; }
  .topbar__phone { order: 2; }

  .nav-toggle { display: flex; }
  .site-nav__list {
    display: none;
    flex-direction: column;
    background: var(--c-green);
  }
  .site-nav__list.is-open { display: flex; }
  .site-nav__list a {
    padding: 0.9rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
  }

  .feature-cards { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; padding-bottom: 2rem; }
  .content-row__img img { height: 220px; border-radius: var(--radius); }
  .two-col { gap: 1.5rem; }
  .value-card { aspect-ratio: 16/9; }
  .form-row { grid-template-columns: 1fr; }
  .review-card { flex: 0 0 calc(100% - 1.5rem); }
  .footer-panel__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col3 { grid-column: auto; }
  .ratings-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .topbar__logo img { height: 52px; }
  .hero { height: clamp(240px, 55vw, 380px); }
  .hero--banner { height: clamp(240px, 55vw, 380px); }
  .staff-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE BACKGROUND IMAGES: desktop overrides ─────────── */
/* Inline styles use mobile images (fast LCP on mobile).          */
/* On desktop, CSS !important overrides inline style.             */
@media (min-width: 769px) {
  /* Home hero slides */
  .hero:not(.hero--banner) .hero__slide:nth-child(1) { background-image: url(../images/home-hero-1.webp) !important; }
  .hero:not(.hero--banner) .hero__slide:nth-child(2) { background-image: url(../images/home-hero-2.webp) !important; }
  .hero:not(.hero--banner) .hero__slide:nth-child(3) { background-image: url(../images/home-hero-3.webp) !important; }
  /* About banner */
  [data-banner="about"] .hero__slide:nth-child(1) { background-image: url(../images/aboutus-banner-1.webp) !important; }
  [data-banner="about"] .hero__slide:nth-child(2) { background-image: url(../images/aboutus-banner-3.webp) !important; }
  /* Facilities banner */
  [data-banner="facilities"] .hero__slide:nth-child(1) { background-image: url(../images/facilities-banner-1.webp) !important; }
  [data-banner="facilities"] .hero__slide:nth-child(2) { background-image: url(../images/facilities-banner-2.webp) !important; }
  [data-banner="facilities"] .hero__slide:nth-child(3) { background-image: url(../images/facilities-banner-3.webp) !important; }
  /* Residents banner */
  [data-banner="residents"] .hero__slide:nth-child(1) { background-image: url(../images/residents-banner-1.webp) !important; }
  [data-banner="residents"] .hero__slide:nth-child(2) { background-image: url(../images/residents-banner-2.webp) !important; }
  [data-banner="residents"] .hero__slide:nth-child(3) { background-image: url(../images/residents-banner-3.webp) !important; }
  /* Photos banner */
  [data-banner="photos"] .hero__slide:nth-child(1) { background-image: url(../images/photos-banner-3.webp) !important; }
  [data-banner="photos"] .hero__slide:nth-child(2) { background-image: url(../images/photos-banner-1.webp) !important; }
  /* Testimonials banner */
  [data-banner="testimonials"] .hero__slide:nth-child(1) { background-image: url(../images/testimonials-banner-1.webp) !important; }
  [data-banner="testimonials"] .hero__slide:nth-child(2) { background-image: url(../images/testimonials-banner-2.webp) !important; }
  [data-banner="testimonials"] .hero__slide:nth-child(3) { background-image: url(../images/testimonials-banner-3.webp) !important; }
  /* FAQ banner */
  [data-banner="faq"] .hero__slide:nth-child(1) { background-image: url(../images/faq-banner-3.webp) !important; }
  [data-banner="faq"] .hero__slide:nth-child(2) { background-image: url(../images/faq-banner-1.webp) !important; }
  [data-banner="faq"] .hero__slide:nth-child(3) { background-image: url(../images/faq-banner-4.webp) !important; }
  /* Contact banner */
  [data-banner="contact"] .hero__slide:nth-child(1) { background-image: url(../images/contact-banner-1.webp) !important; }
  [data-banner="contact"] .hero__slide:nth-child(2) { background-image: url(../images/contact-banner-2.webp) !important; }
  [data-banner="contact"] .hero__slide:nth-child(3) { background-image: url(../images/contact-banner-3.webp) !important; }
}
