/*
Theme Name: Physio Modern
Theme URI: https://physiodelivered.com
Author: Physiotherapy Delivered
Description: A modern redesign of the Physiotherapy Delivered in-home therapy website, built around the clinic's own blue and teal-green brand colors, clean sans-serif typography, and generous whitespace — while keeping every page and piece of content from the original site (Home, About, Services, Our Team, Price List, Blog, Contact, Book Appointment).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: physio-modern
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root {
  /* Primary — the clinic's real brand blue (#277bb2 / #2980b9), used for
     links, text accents, and dark structural chrome (header/footer/banners). */
  --color-blue-900: #14344a;
  --color-blue-700: #1f6fa0;
  --color-blue-600: #2b86bc;
  --color-blue-100: #dcedfa;
  --color-blue-50: #f2f8fd;

  /* Accent — the clinic's real teal-green (#00837e / #349d99 / #014845),
     reserved for calls-to-action, icons, and small highlights. */
  --color-teal-900: #06423d;
  --color-teal-700: #0e8a7d;
  --color-teal-600: #14a396;
  --color-teal-100: #d3f3ee;
  --color-teal-50: #eefbf9;

  --color-ink: #172531;
  --color-ink-soft: #46586a;
  --color-mist: #71828f;

  --color-cream: #f6f9fb;
  --color-white: #ffffff;
  --color-line: #e1e8ee;

  --shadow-sm: 0 1px 2px rgba(20, 38, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 52, 74, 0.09);
  --shadow-lg: 0 20px 48px rgba(20, 52, 74, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gap: clamp(1.25rem, 2vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

/* ==========================================================================
   1. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
a { color: var(--color-blue-700); text-decoration: none; }
a:hover { color: var(--color-teal-700); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; color: var(--color-ink-soft); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
table { border-collapse: collapse; width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--teal { background: var(--color-blue-900); color: #e6f0fa; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: #b7cee3; }
.section--mint { background: var(--color-teal-50); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-teal-600);
  margin-bottom: .75rem;
}
.section--teal .eyebrow { color: var(--color-teal-100); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-teal-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-teal-900); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-blue-700); }
.btn-outline:hover { background: var(--color-blue-700); color: #fff; border-color: var(--color-blue-700); }
.section--teal .btn-outline { color: #fff; }
.section--teal .btn-outline:hover { background: #fff; color: var(--color-blue-900); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-sm { padding: .55rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   3. Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 249, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .6rem;
}
.site-branding { display: flex; align-items: center; gap: .65rem; }
.site-branding__logo,
.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  background: #fff;
  padding: .55rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
}
.site-branding__logo img,
.custom-logo-link img {
  height: 84px;
  width: auto;
  max-width: none;
}
.site-branding__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--color-blue-600), var(--color-blue-900));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.site-branding__text { line-height: 1.2; }
.site-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.site-title a { color: var(--color-ink); }
.site-tagline { margin: 0; font-size: .72rem; color: var(--color-mist); letter-spacing: .04em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.6rem; }
.primary-nav a {
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding-block: .3rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--color-teal-700); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .15s ease; border: 1px solid var(--color-line);
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: .55rem .75rem; border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--color-teal-50); }

.site-header__cta { display: flex; align-items: center; gap: .9rem; }
.header-phone {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-teal-50);
}
.header-phone svg { color: var(--color-teal-700); width: 18px; height: 18px; flex-shrink: 0; }
.header-phone:hover { background: var(--color-teal-100); }

/* Small screens: everything in the header bar has to share one row with the
   menu button, so the logo shrinks, "Book Appointment" wraps onto two lines
   instead of running wide, and (on phones) the header phone icon steps aside
   — the floating call button already covers it. */
@media (max-width: 700px) {
  .site-header__bar { gap: .5rem; }
  .site-header__cta { gap: .5rem; }
  .site-branding__logo, .custom-logo-link { padding: .4rem .75rem; }
  .site-branding__logo img, .custom-logo-link img { height: 56px; }
  .site-header__cta .btn-primary {
    white-space: normal; width: min-content; text-align: center;
    padding: .4rem .85rem; font-size: .8rem; line-height: 1.15; border-radius: 16px;
  }
}
@media (max-width: 480px) {
  .header-phone { display: none; }
  .site-branding__logo img, .custom-logo-link img { height: 44px; }
}
@media (max-width: 360px) {
  .site-header .container { padding-inline: 1rem; }
  .site-branding__logo, .custom-logo-link { padding: .35rem .6rem; }
  .site-branding__logo img, .custom-logo-link img { height: 38px; }
  .site-header__cta .btn-primary { padding: .4rem .7rem; }
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--color-line); background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: all .2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  /* backdrop-filter makes the header the containing block for position:fixed
     children, which squashed the mobile menu panel into a thin strip
     (sized against the header instead of the screen). Drop it on mobile. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--color-cream); }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h, 96px) 0 0 0; background: var(--color-cream);
    flex-direction: column; align-items: stretch; padding: 1.5rem;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .site-header.is-open .primary-nav { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul li { border-bottom: 1px solid var(--color-line); }
  .primary-nav a { display: block; padding: .9rem .25rem; }
  .primary-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding-left: 1rem; display: none;
  }
  .primary-nav .menu-item-has-children.is-expanded .sub-menu { display: block; }
}
.submenu-toggle { display: none; }
@media (max-width: 900px) {
  .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 0; width: 44px; height: 44px;
    background: none; border: none; color: var(--color-ink-soft); cursor: pointer;
  }
  .menu-item-has-children.is-expanded .submenu-toggle svg { transform: rotate(180deg); }
}

/* ==========================================================================
   4. Hero slider
   ========================================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: min(88vh, 820px);
  min-height: 520px;
  background: linear-gradient(160deg, var(--color-blue-600), var(--color-blue-900));
}
.hero-slider__track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; z-index: 0;
  transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,52,74,.88) 0%, rgba(20,52,74,.6) 55%, rgba(20,52,74,.32) 100%);
}
.hero-slide__content { position: relative; z-index: 1; color: #fff; padding-block: clamp(2rem, 6vw, 4rem); }
.hero-slide__title {
  color: #fff; margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 700;
  line-height: 1.15; font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
.hero-slide__content .lede { color: #d7e6f2; font-size: 1.15rem; max-width: 46ch; }
.hero-slide__content .hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-slide__content .btn-outline { color: #fff; border-color: #fff; }
.hero-slide__content .btn-outline:hover { background: #fff; color: var(--color-blue-900); }

.hero__badges { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  padding: .4rem .9rem; font-size: .8rem; font-weight: 600; color: var(--color-blue-700);
  box-shadow: var(--shadow-sm);
}

.hero-slider__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .15s ease;
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.32); }
.hero-slider__arrow--prev { left: clamp(1rem, 3vw, 2.5rem); }
.hero-slider__arrow--prev svg { transform: rotate(180deg); }
.hero-slider__arrow--next { right: clamp(1rem, 3vw, 2.5rem); }

.hero-slider__dots {
  position: absolute; left: 50%; bottom: clamp(1.25rem, 3vw, 2rem); z-index: 2;
  transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.hero-slider__dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .15s ease, transform .15s ease;
}
.hero-slider__dot.is-active { background: #fff; transform: scale(1.2); }

@media (max-width: 900px) {
  .hero-slider { height: auto; min-height: 0; }
  .hero-slide { position: relative; inset: auto; opacity: 1; visibility: visible; display: none; }
  .hero-slide.is-active { display: flex; }
  .hero-slider__track { height: auto; }
  .hero-slide__content { padding-block: 3.5rem 4.5rem; }
  /* Vertically centered arrows only work against a fixed-height slide —
     on mobile the slide height tracks its text, so centering would land
     the arrows on top of it. Move them down to flank the dots instead. */
  .hero-slider__arrow {
    top: auto; bottom: 1.1rem; transform: none;
    width: 38px; height: 38px;
  }
  .hero-slider__arrow--prev { left: clamp(1rem, 5vw, 1.5rem); }
  .hero-slider__arrow--next { right: clamp(1rem, 5vw, 1.5rem); }
  .hero-slider__dots { bottom: 2rem; } /* vertically centers with the arrows */
}

/* ==========================================================================
   5. Cards / grids
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-teal-100); color: var(--color-teal-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.icon-tile svg { width: 26px; height: 26px; }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { flex: 1; }
.service-card .btn { align-self: flex-start; margin-top: .5rem; }

.reason-card { text-align: left; }

.team-card { text-align: center; }
.team-card__photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--color-teal-100), var(--color-teal-50));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 1rem;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initials { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-teal-600); }
.team-card h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.team-card .role { color: var(--color-teal-700); font-weight: 600; font-size: .85rem; margin-bottom: .6rem; display: block; }
.team-card p { font-size: .92rem; }

.blog-card { display: flex; flex-direction: column; }
.blog-card__meta { font-size: .8rem; color: var(--color-mist); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.blog-card h3 a { color: var(--color-ink); }
.blog-card h3 a:hover { color: var(--color-teal-700); }

/* ==========================================================================
   6. Why-choose-us / stats band
   ========================================================================== */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-md); margin-top: -4.5rem; position: relative; z-index: 5;
}
.stat-band__item { text-align: center; }
.stat-band__item strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--color-teal-600); }
.stat-band__item span { font-size: .82rem; color: var(--color-mist); }
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; } }

/* ==========================================================================
   7. Pricing tables
   ========================================================================== */
.pricing-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); overflow: hidden; }
.pricing-card__head { background: var(--color-blue-900); color: #fff; padding: 1.5rem; }
.pricing-card__head h3 { color: #fff; margin: 0; }
.pricing-card table { width: 100%; }
.pricing-card td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-line); }
.pricing-card tr:last-child td { border-bottom: none; }
.pricing-card td:last-child { text-align: right; font-weight: 700; color: var(--color-teal-700); white-space: nowrap; }
.pricing-card__foot { padding: 1.25rem 1.5rem; }
.pricing-note { background: var(--color-teal-50); border-radius: var(--radius-md); padding: 1.5rem; font-size: .92rem; }

/* generic content tables (Price List page content authored in the editor) */
.entry-content table { margin-bottom: 2rem; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.entry-content table th, .entry-content table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--color-line); text-align: left; }
.entry-content table th { background: var(--color-blue-900); color: #fff; font-family: var(--font-display); font-weight: 600; }
.entry-content table tr:nth-child(even) td { background: var(--color-teal-50); }

/* ==========================================================================
   8. Forms
   ========================================================================== */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--color-line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--color-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-cream); color: var(--color-ink); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-blue-600); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .78rem; color: var(--color-mist); margin-top: .3rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-notice { border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 600; font-size: .92rem; }
.form-notice--success { background: #e3f5e9; color: #1e6b3e; }
.form-notice--error { background: #fdeceb; color: #b3311b; }

/* ==========================================================================
   9. Testimonials
   ========================================================================== */
.review-summary { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; color: var(--color-ink-soft); }
.review-summary strong { font-family: var(--font-display); color: var(--color-ink); letter-spacing: .04em; text-transform: uppercase; }
.review-stars { color: var(--color-teal-600); letter-spacing: .12em; }
.review-columns { column-count: 3; column-gap: var(--gap); }
@media (max-width: 900px) { .review-columns { column-count: 2; } }
@media (max-width: 640px) { .review-columns { column-count: 1; } }
.review-card {
  break-inside: avoid; margin: 0 0 var(--gap);
  background: #fff; border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-line);
}
.review-card .review-stars { margin-bottom: .6rem; font-size: 1.05rem; }
.review-card__text { margin: 0 0 1.1rem; }
.review-card__text p { font-size: .95rem; margin: 0 0 .75em; }
.review-card__text p:last-child { margin-bottom: 0; }
.review-card.is-collapsed .review-card__text { max-height: 9.5em; overflow: hidden; position: relative; }
.review-card.is-collapsed .review-card__text::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.review-card__toggle {
  background: none; border: none; padding: 0; margin: -.4rem 0 1rem; cursor: pointer;
  color: var(--color-blue-700); font-weight: 600; font-size: .88rem;
}
.review-card__toggle:hover { color: var(--color-teal-700); }
.review-card__who { display: flex; align-items: center; gap: .75rem; }
.review-card__who small { display: block; color: var(--color-mist); font-size: .78rem; }
.review-card__avatar {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-teal-100); color: var(--color-teal-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--color-blue-900); color: #cfe0f0; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: #cfe0f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid li { margin-bottom: .6rem; font-size: .92rem; }
.footer-brand__mark { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-teal-600); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: .82rem; flex-wrap: wrap; gap: .75rem; color: #9db8cf; }

/* ==========================================================================
   11. Sticky call button (mobile)
   ========================================================================== */
.call-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--color-teal-700);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.call-fab svg { width: 24px; height: 24px; }
@media (min-width: 901px) { .call-fab { display: none; } }

/* ==========================================================================
   12. Page banner (interior pages)
   ========================================================================== */
.page-banner { position: relative; background: var(--color-blue-900); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.page-banner h1 { color: #fff; margin-bottom: .5rem; }
.page-banner--photo { background-size: cover; background-position: center; }
.page-banner--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,52,74,.92) 0%, rgba(20,52,74,.72) 55%, rgba(20,52,74,.5) 100%);
}
.page-banner--photo .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: #a9c7dd; }
.breadcrumb a { color: #a9c7dd; }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   13. Content defaults
   ========================================================================== */
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; color: var(--color-blue-700); }
.entry-content ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.1em; }
.entry-content ul li { margin-bottom: .4em; color: var(--color-ink-soft); }
.entry-content a { text-decoration: underline; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sidebar-box { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--color-line); margin-bottom: 1.5rem; }
.sidebar-box h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-blue-700); margin-bottom: 1rem; }
.sidebar-box li { margin-bottom: .6rem; }
.sidebar-box li a { display: block; padding: .35rem 0; border-bottom: 1px solid var(--color-line); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 640px; margin-inline: auto; }
.cta-band--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.cta-band--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,52,74,.82), rgba(20,52,74,.7));
}
.cta-band--photo .container { position: relative; z-index: 1; }
.cta-band--photo h2 { color: #fff; }
.cta-band--photo p { color: #d7e6f2; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.pagination { display: flex; gap: .5rem; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--color-line);
  color: var(--color-ink-soft); font-weight: 600; font-size: .9rem;
}
.pagination .current { background: var(--color-blue-700); color: #fff; border-color: var(--color-blue-700); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-blue-900); color: #fff; padding: .75rem 1.25rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }

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