/* ============================================================
   THREE COUNTIES CHILDREN'S SERVICES — PROTOTYPE STYLESHEET
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand colours */
  --c-primary:        #145DA1;
  --c-primary-light:  #2A77BF;
  --c-primary-dark:   #0F4A80;
  --c-primary-tint:   #EAF2FA;

  --c-secondary:      #F0A868;
  --c-secondary-dark: #D4855A;

  --c-text:           #162739;
  --c-text-mid:       #4A5E73;
  --c-text-light:     #7A8EA4;

  --c-bg:             #F7F9FC;
  --c-bg-tint:        #EDF2F8;
  --c-white:          #FFFFFF;
  --c-border:         #D9E3F0;

  /* Typography */
  --f-serif:  'Inter', system-ui, -apple-system, sans-serif;
  --f-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 32px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(20,93,161,0.08);
  --shadow-sm:  0 2px 8px rgba(20,93,161,0.1);
  --shadow-md:  0 6px 20px rgba(20,93,161,0.12);
  --shadow-lg:  0 12px 40px rgba(20,93,161,0.15);

  /* Transition */
  --ease: 0.3s ease;

  /* Brand assets */
  --brand-logo: url('../images/Three%20Counties%20Children%20Services%20Logo.webp');
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Strong, consistent keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-secondary);
  outline-offset: 2px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   2A. PRELOADER
   ============================================================ */
body.is-loading {
  overflow: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 20% 15%, rgba(20,93,161,0.1) 0%, rgba(20,93,161,0) 40%),
    radial-gradient(circle at 80% 80%, rgba(240,168,104,0.08) 0%, rgba(240,168,104,0) 38%),
    var(--c-bg);
  color: var(--c-text);
  transition: opacity 0.52s ease, visibility 0.52s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.preloader-logo {
  width: 240px;
  height: 48px;
  background-image: var(--brand-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.preloader-logo svg {
  display: none;
}

.preloader-wordmark {
  display: none;
}

.preloader-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--c-text);
}

.preloader-sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--c-primary);
}

.preloader-line {
  width: 220px;
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(20,93,161,0.14);
  border: 1px solid rgba(20,93,161,0.2);
}

.preloader-line span {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
  animation: preloader-sweep 1.1s ease-in-out infinite;
}

.preloader-text {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-mid);
}

@keyframes preloader-sweep {
  0% { transform: translateX(-120%); }
  50% { transform: translateX(95%); }
  100% { transform: translateX(300%); }
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-text);
  text-wrap: balance;
}

h1 { font-size: 56px; letter-spacing: -0.4px; }
h2 { font-size: 40px; letter-spacing: -0.32px; }
h3 { font-size: 22px; letter-spacing: -0.16px; }
h4 { font-size: 16px; letter-spacing: -0.08px; }
h5 { font-size: 14.72px; letter-spacing: 0; }
h6 { font-size: 13.44px; letter-spacing: 0.08px; }

p { margin-bottom: var(--sp-5); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ============================================================
   4. LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 104px;
}

section[id] {
  scroll-margin-top: 116px;
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
}

.section-intro {
  font-size: 18.4px;
  color: var(--c-text-mid);
  margin-top: var(--sp-5);
  line-height: 1.7;
  font-weight: 400;
}

/* Two-column grid */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.two-col-grid .col-image,
.two-col-grid .col-content {
  height: 100%;
}

.two-col-grid.reverse .col-image {
  order: 1;
}
.two-col-grid.reverse .col-content {
  order: 0;
}

/* Section label (eyebrow text) */
.section-label {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 11.52px;
  font-weight: 700;
  letter-spacing: 2.56px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.section-label.light {
  color: rgba(255,255,255,0.82);
}

/* Background modifiers */
.bg-tint    { background-color: var(--c-primary-tint); }
.bg-primary { background-color: var(--c-primary-dark); color: var(--c-white); }
.bg-primary h2 { color: var(--c-white); }

/* Inner-page first section */
.inner-hero {
  position: relative;
  padding-top: 124px;
  padding-bottom: 78px;
  border-bottom: 1px solid rgba(20,93,161,0.14);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(20,93,161,0.14) 0%, rgba(20,93,161,0) 34%),
    radial-gradient(circle at 88% 18%, rgba(240,168,104,0.16) 0%, rgba(240,168,104,0) 36%),
    linear-gradient(180deg, #f4f8fd 0%, var(--c-primary-tint) 100%);
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(244,248,253,0.78) 0%, rgba(234,242,250,0.88) 100%),
    url('../images/team-collaboration.webp') center center / cover no-repeat;
  opacity: 0.42;
  transform: scale(1.03);
  transform-origin: center;
  pointer-events: none;
}

.inner-hero .section-header {
  margin-bottom: 0;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.inner-hero .section-intro {
  max-width: 680px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.75;
  color: #36536e;
}

.inner-hero .section-label {
  background-color: var(--c-primary-tint);
  color: var(--c-primary-dark);
  border: none;
  border-radius: 100px;
  padding: 4.8px 25.6px;
  font-size: 12.8px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 18px;
}

.inner-hero h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #102d47;
  margin-bottom: 18px;
  text-wrap: balance;
}

.inner-hero h1::after {
  content: '';
  display: block;
  width: 92px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 99px;
  background: var(--c-primary-light);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 9px 24px;
  border-radius: 4px;
  min-height: 46px;
  position: relative;
  overflow: hidden;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  line-height: 1.2;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease), filter var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--c-primary-light) 0%, var(--c-primary) 55%, var(--c-primary-dark) 100%);
  color: var(--c-white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(180deg, #f4bc8c 0%, var(--c-secondary) 58%, var(--c-secondary-dark) 100%);
  color: var(--c-white);  
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: rgba(255,255,255,0.08);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset;
}
.btn-outline-white:hover, .btn-outline-white:focus-visible {
  background-color: rgba(255,255,255,0.18);
  border-color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 8px 20px rgba(0,0,0,0.2);
}

.btn-ghost {
  background: linear-gradient(180deg, #f8fbff 0%, var(--c-primary-tint) 100%);
  color: var(--c-primary);
  border: 1px solid #c7d9ed;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(20,93,161,0.08) inset,
    0 2px 10px rgba(20,93,161,0.12);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--c-primary-light);
  background: linear-gradient(180deg, #ffffff 0%, #e5effa 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(20,93,161,0.1) inset,
    0 6px 18px rgba(20,93,161,0.2);
}

.btn-block { width: 100%; }

.news-cta .bi {
  font-size: 20px;
  transition: transform var(--ease);
}

.news-cta:hover .bi,
.news-cta:focus-visible .bi {
  transform: translateX(2px);
}

/* ============================================================
   6. TAG GROUP
   ============================================================ */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block: var(--sp-6);
}

.tag {
  display: inline-block;
  padding: 4.8px 25.6px;
  background-color: var(--c-primary-tint);
  color: var(--c-primary-dark);
  border-radius: 100px;
  font-size: 12.8px;
  font-weight: 500;
}

/* ============================================================
   7. IMAGE HELPERS
   ============================================================ */
.image-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 480px;
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--c-primary-tint);
  border-radius: calc(var(--r-lg) + 6px);
  z-index: -1;
}

.image-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.image-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 74, 128, 0.9);
  color: var(--c-white);
  font-size: 12px;
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
}

.image-note.small {
  font-size: 11.2px;
  padding: var(--sp-1) var(--sp-2);
}

/* ============================================================
/* ============================================================
   8. SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.28s ease, opacity 0.28s ease, box-shadow var(--ease);
}

.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Main bar ── */
.header-main {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 3px solid var(--c-primary);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--ease);
}

.site-header.scrolled .header-main {
  box-shadow: 0 4px 24px rgba(20,93,161,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--sp-6);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 240px;
  height: 48px;
  background-image: var(--brand-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.logo-icon svg {
  display: none;
}

.logo-text {
  display: none;
}

.logo-name {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.32px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* Logo light variant (footer) */
.logo-light .logo-icon { filter: brightness(0) invert(1); }
.logo-light .logo-name { color: var(--c-white); }
.logo-light .logo-sub  { color: rgba(255,255,255,0.7); }

/* ── Main nav ── */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all var(--ease);
  letter-spacing: -0.16px;
  white-space: nowrap;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-arrow {
  width: 11px;
  height: 11px;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease);
  flex-shrink: 0;
  margin-top: 1px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--c-primary);
  background-color: var(--c-primary-tint);
}

/* ── Dropdown ── */
.has-dropdown {
  position: relative;
}

.has-dropdown:hover .nav-arrow,
.has-dropdown:focus-within .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 200;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: 13.68px;
  color: var(--c-text-mid);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  color: var(--c-primary);
  background: var(--c-primary-tint);
}

/* ── Header actions (right side) ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.header-actions .btn {
  flex-shrink: 0;
}

/* ── Mobile menu toggle ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--c-text);
  border-radius: 2px;
  transition: all var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   9. HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: stretch;
  padding-top: 0;
  overflow: hidden;
}

/* ── Slides container ── */
.hero-slides {
  position: relative;
  width: 100%;
  min-height: 752px;
  display: flex;
  align-items: stretch;
}

/* ── Individual slide ── */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  flex: 1;
}

/* ── Background image + overlay ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.hero-slide.active .hero-bg img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(9, 38, 67, 0.94) 0%,
    rgba(15, 74, 128, 0.8) 45%,
    rgba(20, 93, 161, 0.58) 100%
  );
}

/* ── Slide content ── */
.hero-slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: 88px;
}

.hero-slide-content > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active .hero-slide-content > * {
  opacity: 1;
  transform: none;
}

.hero-slide.active .hero-slide-content > *:nth-child(1) { transition-delay: 0.35s; }
.hero-slide.active .hero-slide-content > *:nth-child(2) { transition-delay: 0.5s; }
.hero-slide.active .hero-slide-content > *:nth-child(3) { transition-delay: 0.65s; }
.hero-slide.active .hero-slide-content > *:nth-child(4) { transition-delay: 0.8s; }

.hero-eyebrow {
  font-size: 11.52px;
  font-weight: 700;
  letter-spacing: 2.88px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
  margin-bottom: var(--sp-6);
}

.hero-slide-content h1 {
  color: var(--c-white);
  line-height: 1.12;
  margin-bottom: var(--sp-7);
  text-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ── Prev / Next buttons ── */
.hero-controls {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.hero-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  flex-shrink: 0;
}

.hero-btn .icon {
  font-size: 19.2px;
  line-height: 1;
}

.hero-btn:hover, .hero-btn:focus-visible {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.65);
  transform: scale(1.08);
}

/* ── Dot indicators ── */
.hero-dots {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--ease), transform var(--ease), width var(--ease);
}

.hero-dot.active {
  background: var(--c-white);
  width: 26px;
  border-radius: 4px;
}

.hero-dot:hover {
  background: rgba(255,255,255,0.65);
}

/* ── Progress bar ── */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--c-secondary);
  transition: width linear;
}

/* ── Scroll hint ── */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.72);
  font-size: 11.52px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll .icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   10. COUNTIES STRIP
   ============================================================ */
.counties-strip {
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding-block: var(--sp-6);
}

.counties-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
}

.county-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13.12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-text-mid);
}

.county-item .icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  color: var(--c-primary);
}

.county-divider {
  width: 4px;
  height: 4px;
  background-color: var(--c-border);
  border-radius: 50%;
}

/* ============================================================
   11. WHO WE ARE
   ============================================================ */
.who-we-are { background-color: var(--c-white); }

.who-we-are .col-content h2 {
  margin-bottom: var(--sp-6);
}

.pull-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18.4px;
  color: var(--c-primary-dark);
  border-left: 3px solid var(--c-secondary);
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-6);
  margin-block: var(--sp-8);
  line-height: 1.65;
}

/* ============================================================
   12. OUR APPROACH
   ============================================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-7);
}

/* First 3 cards: each spans 2 of the 6 columns */
.principle-card { grid-column: span 2; }
/* Last 2 cards: centred — offset by 1 col each side */
.principles-grid .principle-card:nth-child(4) { grid-column: 2 / span 2; }
.principles-grid .principle-card:nth-child(5) { grid-column: 4 / span 2; }

.principle-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: var(--sp-10);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--ease), transform var(--ease);
}

.principle-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.principle-icon {
  width: 56px;
  height: 56px;
  font-size: 36px;
  color: var(--c-primary);
  margin-bottom: var(--sp-6);
}

.principle-card h3 {
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}

.principle-card p {
  font-size: 14.8px;
  color: var(--c-text-mid);
  line-height: 1.7;
  margin-bottom: 0;
}

.approach-note {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(20,93,161,0.08) 0%, rgba(20,93,161,0) 28%),
    radial-gradient(circle at 88% 82%, rgba(240,168,104,0.12) 0%, rgba(240,168,104,0) 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 20px;
  margin-top: var(--sp-12);
  padding: 34px 42px;
  text-align: center;
  border: 1px solid rgba(20,93,161,0.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 14px 34px rgba(20,93,161,0.08);
  color: var(--c-text-mid);
  font-size: 16.4px;
  line-height: 1.75;
}

.approach-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: var(--c-primary);
}

.approach-note::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(20,93,161,0.06);
  border-radius: 16px;
  pointer-events: none;
}

.approach-note p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.approach-note strong {
  color: var(--c-primary-dark);
}

/* ============================================================
   13. OUR HOMES
   ============================================================ */
.our-homes { background-color: var(--c-white); }

body.page-homes #homes.our-homes {
  padding-bottom: 48px;
}

body.page-homes #perrywood.our-homes {
  padding-top: 32px;
}

.home-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}

body.page-homes .home-features-row {
  margin-bottom: 0;
}

.home-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.home-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--c-primary-tint);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--c-primary);
}

.home-feature p {
  font-size: 14.96px;
  color: var(--c-text-mid);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Perrywood Lodge card */
.perrywood-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.perrywood-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: stretch;
}

.perrywood-images {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  border-radius: var(--r-lg);
}

.perrywood-main-img {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  flex: 1;
}

.perrywood-main-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.perrywood-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.perrywood-thumb {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.perrywood-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.perrywood-details {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20,93,161,0.08);
  border: 0;
  color: var(--c-primary-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.featured-badge .bi {
  font-size: 14px;
  color: var(--c-primary);
}

.perrywood-details h3 {
  font-size: 28px;
  color: var(--c-text);
  margin-bottom: 12px;
}

.perrywood-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.perrywood-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20,93,161,0.06);
  border: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-primary-dark);
}

.perrywood-meta .bi {
  font-size: 13px;
  color: var(--c-primary);
}

.client-note {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(255,255,255,0.7);
  border: 1px dashed var(--c-primary-light);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  font-size: 13.6px;
  color: var(--c-primary-dark);
  margin-bottom: var(--sp-6);
}

.client-note .icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--c-primary);
}

.home-highlights {
  list-style: none;
  margin-bottom: var(--sp-8);
  border-top: 1px solid rgba(20,93,161,0.14);
  padding-top: 8px;
}

.home-highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: 8px;
  font-size: 14.4px;
  color: var(--c-text-mid);
  line-height: 1.55;
}

.home-highlights .icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--c-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   14. WHAT WE OFFER
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-7);
}

/* First 3 cards span 2 cols each; last 2 centred */
.service-card { grid-column: span 2; }
.services-grid .service-card:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .service-card:nth-child(5) { grid-column: 4 / span 2; }

.service-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: var(--sp-10);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--ease), transform var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 54px;
  height: 54px;
  font-size: 32px;
  color: var(--c-secondary-dark);
  margin-bottom: var(--sp-6);
}

.service-card h3 {
  margin-bottom: var(--sp-4);
  color: var(--c-text);
}

.service-card p {
  font-size: 14.8px;
  color: var(--c-text-mid);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   15. OUR TEAM
   ============================================================ */
.our-team { background-color: var(--c-white); }

.our-team .col-content h2 {
  margin-bottom: var(--sp-6);
}

/* ============================================================
   16. OUR COMMITMENT
   ============================================================ */
.commitments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--sp-14);
  margin-bottom: var(--sp-14);
}

.commitment-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.commitment-tick {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background-color: var(--c-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  margin-top: 3px;
}

.commitment-tick .bi {
  font-size: 17.6px;
  color: var(--c-white);
}

.commitment-item p {
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
  line-height: 1.65;
}

.commitment-closing {
  text-align: center;
  font-family: var(--f-serif);
  font-size: 22px;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ============================================================
   16A. TESTIMONIALS
   ============================================================ */
.testimonials {
  background:
    radial-gradient(circle at 8% 14%, rgba(20,93,161,0.1) 0%, rgba(20,93,161,0) 28%),
    radial-gradient(circle at 92% 90%, rgba(240,168,104,0.12) 0%, rgba(240,168,104,0) 34%),
    var(--c-primary-tint);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7);
}

.testimonial-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20,93,161,0.28);
}

.testimonial-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-secondary-dark);
  font-size: 15px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.72;
  color: var(--c-text-mid);
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(20,93,161,0.14);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.64px;
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-meta strong {
  font-size: 14px;
  color: var(--c-text);
}

.testimonial-meta span {
  font-size: 12.8px;
  color: var(--c-text-mid);
}

/* ============================================================
   17. NEWS / BLOG
   ============================================================ */
.news-blog { background-color: var(--c-bg); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.blog-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: box-shadow var(--ease), transform var(--ease);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-img {
  position: relative;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.04);
}

.blog-category {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  background-color: var(--c-primary);
  color: var(--c-white);
  font-size: 11.2px;
  font-weight: 600;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  padding: 4px 25.6px;
  border-radius: 100px;
}

.blog-body {
  padding: var(--sp-7) var(--sp-7) var(--sp-8);
}

.blog-date {
  display: block;
  font-size: 12.48px;
  color: var(--c-text-mid);
  margin-bottom: var(--sp-3);
}

.blog-body h3 {
  font-size: 17.6px;
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.blog-body h3 a {
  color: var(--c-text);
  transition: color var(--ease);
}

.blog-body h3 a:hover {
  color: var(--c-primary);
}

.blog-body p {
  font-size: 14px;
  color: var(--c-text-mid);
  margin-bottom: var(--sp-4);
  line-height: 1.65;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  transition: color var(--ease);
}

.read-more .bi {
  font-size: 20px;
}

.read-more:hover {
  color: var(--c-primary-dark);
}

/* ============================================================
   17A. CAREERS JOB LISTINGS
   ============================================================ */
.careers-openings {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.openings-intro {
  position: sticky;
  top: 132px;
}

.openings-intro h2 {
  margin-bottom: var(--sp-5);
}

.openings-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-mid);
  margin-bottom: var(--sp-6);
}

.jobs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.job-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(20,93,161,0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,255,0.96) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 10px 24px rgba(20,93,161,0.07);
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.job-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20,93,161,0.2);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 14px 30px rgba(20,93,161,0.1);
}

.job-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.job-row-head h3 {
  margin-bottom: 0;
  font-family: 'Lora', var(--f-serif);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: #102d47;
}

.job-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  background: rgba(20,93,161,0.06);
  border: 1px solid rgba(20,93,161,0.1);
}

.job-status--open {
  color: #16613d;
  background: rgba(27, 143, 87, 0.12);
  border-color: rgba(27, 143, 87, 0.24);
}

.job-status--closing {
  color: #8a5a14;
  background: rgba(240, 168, 104, 0.2);
  border-color: rgba(212, 133, 90, 0.32);
}

.job-status--closed {
  color: #5d6c7e;
  background: rgba(122, 142, 164, 0.18);
  border-color: rgba(122, 142, 164, 0.3);
}

.job-row-main p {
  max-width: 760px;
  font-size: 14.8px;
  color: #4d6378;
  line-height: 1.68;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.job-keyline {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.6px;
  line-height: 1.65;
  letter-spacing: 0;
  color: #647a90;
}

.job-keyline-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(20,93,161,0.06);
  border: 1px solid rgba(20,93,161,0.1);
  white-space: nowrap;
}

.job-keyline-item .bi {
  font-size: 12px;
  color: var(--c-primary);
}

.job-row-apply {
  align-self: start;
  justify-self: start;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.job-row-apply .read-more {
  gap: 6px;
  padding: 8px 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.job-row-apply .read-more:hover,
.job-row-apply .read-more:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.job-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 56px;
  align-items: start;
}

.job-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--sp-6);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
}

.job-back-link .bi {
  font-size: 20px;
}

.job-detail-main h2 {
  margin-bottom: var(--sp-5);
}

.job-detail-main > p {
  color: var(--c-text-mid);
  font-size: 15px;
}

.job-detail-section {
  margin-top: var(--sp-8);
}

.job-detail-section h3 {
  margin-bottom: var(--sp-4);
}

.job-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-detail-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.8px;
  line-height: 1.7;
  color: var(--c-text-mid);
}

.job-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
}

.job-detail-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.job-facts-card,
.job-apply-panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-7);
}

.job-facts-card h3,
.job-apply-panel h3 {
  margin-bottom: var(--sp-5);
}

.job-facts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-facts-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-facts-list span {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-text-light);
  font-weight: 600;
}

.job-facts-list strong {
  font-size: 14px;
  color: var(--c-text);
}

.job-apply-panel p {
  color: var(--c-text-mid);
  font-size: 14.4px;
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.career-benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5) var(--sp-8);
  max-width: 980px;
  margin: 0 auto;
}

.career-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(20,93,161,0.14);
}

.career-benefit .bi {
  width: 30px;
  height: 30px;
  font-size: 24px;
  color: var(--c-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.career-benefit h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.career-benefit p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--c-text-mid);
  line-height: 1.65;
}

.recruitment-track {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.recruitment-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.recruitment-step h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.recruitment-step p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--c-text-mid);
  line-height: 1.65;
}

/* ============================================================
   18. CAREERS BANNER
   ============================================================ */
.careers-banner {
  position: relative;
  padding-block: 88px;
  overflow: hidden;
}

.careers-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.careers-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 74, 66, 0.92) 0%,
    rgba(27, 74, 66, 0.78) 60%
  );
}

.careers-banner .container {
  position: relative;
  z-index: 1;
}

.careers-content {
  max-width: 600px;
}

.careers-content h2 {
  color: var(--c-white);
  font-size: 36px;
  margin-bottom: var(--sp-5);
}

.careers-content p {
  color: rgba(255,255,255,0.85);
  font-size: 16.8px;
  margin-bottom: var(--sp-8);
}

/* ============================================================
   19. GET IN TOUCH
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--sp-5);
}

.contact-info p {
  font-size: 15.2px;
  color: var(--c-text-mid);
}

.contact-details {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--c-white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  padding: 9px;
  color: var(--c-primary);
}

.contact-icon .icon {
  font-size: 17px;
  line-height: 1;
}

.contact-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row strong {
  font-size: 12.8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.28px;
  color: var(--c-text-mid);
}

.contact-row span,
.contact-row a {
  font-size: 14.4px;
  color: var(--c-text-mid);
}

.contact-row a:hover {
  color: var(--c-primary);
}

/* Contact form */
.contact-form-wrap {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-group label {
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: 0.32px;
  color: var(--c-text);
}

.req { color: var(--c-primary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-size: 15.2px;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(20, 93, 161, 0.14);
  background: var(--c-white);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A6562' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13.6px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================================
   20. SITE FOOTER
   ============================================================ */
.pre-footer-cta {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.pre-footer-cta--white {
  background-color: var(--c-white);
}

.pre-footer-cta--tint {
  background-color: var(--c-primary-tint);
}

.pre-footer-cta .container {
  position: relative;
  z-index: 1;
}

.pre-footer-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 36px;
  padding: 44px 48px;
  margin-bottom: -60px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(240,168,104,0.24) 0%, rgba(240,168,104,0) 34%),
    linear-gradient(135deg, #0f4a80 0%, #145da1 56%, #2a77bf 100%);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 16px 38px rgba(15,74,128,0.32);
}

.pre-footer-cta-inner::before {
  content: '';
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.pre-footer-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.pre-footer-cta-copy .section-label {
  color: rgba(255,255,255,0.82);
  margin-bottom: 14px;
}

.pre-footer-cta-copy h2 {
  color: var(--c-white);
  font-size: 38px;
  line-height: 1.14;
  margin-bottom: 14px;
  letter-spacing: -0.32px;
}

.pre-footer-cta-copy p {
  color: rgba(255,255,255,0.84);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.pre-footer-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pre-footer-cta-actions .btn {
  min-width: 188px;
}

.site-footer {
  background-color: var(--c-primary-dark);
  color: rgba(255,255,255,0.76);
}

/* ── Footer body ── */
.footer-body {
  padding-top: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pre-footer-cta + .site-footer .footer-body {
  padding-top: 84px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}

/* Brand column */
.footer-tagline {
  font-size: 14.4px;
  color: rgba(255,255,255,0.68);
  margin-top: var(--sp-4);
  line-height: 1.6;
  max-width: 260px;
}

.footer-ofsted {
  margin-top: var(--sp-5);
}

.ofsted-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.64px;
  color: rgba(255,255,255,0.82);
}

.ofsted-badge .icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--c-secondary);
}

/* Nav columns */
.footer-links h4,
.footer-contact-col h4 {
  font-family: var(--f-sans);
  font-size: 10.72px;
  font-weight: 700;
  letter-spacing: 2.56px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  margin-bottom: var(--sp-4);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  transition: color var(--ease), padding-left var(--ease);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--c-white);
  padding-left: var(--sp-2);
}

/* Contact column */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.footer-contact-list .icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-secondary);
}

.footer-contact-list a {
  color: rgba(255,255,255,0.84);
  transition: color var(--ease);
}

.footer-contact-list a:hover {
  color: var(--c-secondary);
}

.footer-contact-list em {
  font-style: normal;
  color: rgba(255,255,255,0.64);
}

.footer-cta {
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

/* ── Bottom bar ── */
.footer-bottom-bar {
  background-color: var(--c-primary-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.66);
  margin-bottom: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer-legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  transition: color var(--ease);
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.96);
}

/* ============================================================
   21A. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-slide .hero-bg img,
  .hero-slide.active .hero-bg img {
    transform: none;
  }
}

/* ============================================================
   21. SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay for grids */
.principle-card:nth-child(2),
.service-card:nth-child(2),
.blog-card:nth-child(2),
.testimonial-card:nth-child(2),
.commitment-item:nth-child(2) { transition-delay: 0.1s; }

.principle-card:nth-child(3),
.service-card:nth-child(3),
.blog-card:nth-child(3),
.testimonial-card:nth-child(3),
.commitment-item:nth-child(3) { transition-delay: 0.2s; }

.principle-card:nth-child(4),
.service-card:nth-child(4),
.commitment-item:nth-child(4) { transition-delay: 0.1s; }

.principle-card:nth-child(5),
.service-card:nth-child(5),
.commitment-item:nth-child(5) { transition-delay: 0.2s; }

.commitment-item:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   22. RESPONSIVE — TABLET (≤ 960px)
   ============================================================ */
@media (max-width: 960px) {
  .logo-icon,
  .preloader-logo {
    width: 210px;
    height: 42px;
  }

  .section {
    padding-block: 92px;
  }

  .section-header,
  .section-header.text-center {
    margin-bottom: var(--sp-12);
  }

  section[id] {
    scroll-margin-top: 104px;
  }

  .pre-footer-cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 32px;
    margin-bottom: -20px;
  }

  .pre-footer-cta + .site-footer .footer-body {
    padding-top: 74px;
  }

  .pre-footer-cta-copy h2 {
    font-size: 32px;
  }

  .pre-footer-cta-actions {
    justify-content: flex-start;
  }

  .inner-hero {
    padding-top: 114px;
    padding-bottom: 70px;
  }

  .inner-hero h1 {
    font-size: 42px;
  }

  .inner-hero .section-intro {
    font-size: 16px;
    max-width: 620px;
  }

  .two-col-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .two-col-grid .col-image,
  .two-col-grid .col-content {
    height: auto;
  }

  .image-frame {
    min-height: 320px;
  }

  .two-col-grid.reverse .col-image {
    order: unset;
  }
  .two-col-grid.reverse .col-content {
    order: unset;
  }

  .principles-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Reset individual placement; let them flow naturally in 2-col pairs */
  .principle-card { grid-column: span 2; }
  .principles-grid .principle-card:nth-child(4) { grid-column: span 2; }
  .principles-grid .principle-card:nth-child(5) { grid-column: span 2; }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-card { grid-column: span 2; }
  .services-grid .service-card:nth-child(4) { grid-column: span 2; }
  .services-grid .service-card:nth-child(5) { grid-column: span 2; }

  .perrywood-grid {
    grid-template-columns: 1fr;
  }

  .approach-note {
    padding: 28px 30px;
  }

  .home-features-row {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .commitments-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
  }

  .footer-contact-col h4 {
    grid-column: 1 / -1;
  }

  .footer-cta {
    width: auto;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-grid .blog-card:last-child {
    grid-column: 1 / -1;
  }

  .careers-openings {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .jobs-list {
    grid-template-columns: 1fr;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    padding: 24px 22px;
  }

  .openings-intro {
    position: static;
  }

  .career-benefits-list {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .job-detail-shell {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .job-row-apply {
    align-self: flex-start;
    justify-self: start;
  }

  .job-detail-side {
    max-width: 520px;
  }

  .recruitment-step {
    padding: var(--sp-5);
  }
}

/* ============================================================
   23. RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .logo-icon,
  .preloader-logo {
    width: 180px;
    height: 36px;
  }

  .section {
    padding-block: 72px;
  }

  .section-header,
  .section-header.text-center {
    margin-bottom: var(--sp-10);
  }

  section[id] {
    scroll-margin-top: 92px;
  }

  .pre-footer-cta-inner {
    padding: 28px 22px;
    margin-bottom: -14px;
    gap: 18px;
    border-radius: var(--r-md);
  }

  .pre-footer-cta + .site-footer .footer-body {
    padding-top: 64px;
  }

  .pre-footer-cta-copy h2 {
    font-size: 28px;
  }

  .pre-footer-cta-copy p {
    font-size: 14px;
    line-height: 1.6;
  }

  .pre-footer-cta-actions {
    width: 100%;
    gap: 10px;
  }

  .pre-footer-cta-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .inner-hero {
    padding-top: 102px;
    padding-bottom: 58px;
  }

  .inner-hero .section-label {
    margin-bottom: 14px;
  }

  .inner-hero h1 {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .inner-hero h1::after {
    width: 72px;
    margin-top: 14px;
  }

  .inner-hero .section-intro {
    font-size: 15px;
    line-height: 1.65;
    max-width: 100%;
  }

  /* Header */
  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-white);
    padding: var(--sp-8) var(--sp-6);
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .main-nav a {
    display: block;
    padding: var(--sp-4);
    font-size: 16px;
    border-radius: var(--r-sm);
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Principles */
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card { grid-column: span 1; }
  .principles-grid .principle-card:nth-child(4) { grid-column: span 1; }
  .principles-grid .principle-card:nth-child(5) { grid-column: span 1; }

  .approach-note {
    padding: 24px 20px;
    border-radius: 16px;
    font-size: 15.2px;
  }

  .approach-note::after {
    inset: 8px;
    border-radius: 12px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card { grid-column: span 1; }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: auto;
  }

  .testimonial-card {
    padding: 24px;
  }
  .services-grid .service-card:nth-child(4) { grid-column: span 1; }
  .services-grid .service-card:nth-child(5) { grid-column: span 1; }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid .blog-card:last-child {
    grid-column: auto;
  }

  /* Perrywood thumbs */
  .perrywood-thumbs {
    grid-template-columns: 1fr;
  }

  /* Contact form row */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */

  .footer-legal-links {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Section header flex */
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .openings-intro .btn {
    width: 100%;
  }

  .job-row {
    padding: 22px 18px;
  }

  .job-row-head h3 {
    font-size: 19px;
  }

  .career-benefit {
    padding-bottom: var(--sp-4);
  }

  .job-facts-card,
  .job-apply-panel {
    padding: var(--sp-6);
  }
}

.blog-pagination {
  margin-top: var(--sp-8);
}

.blog-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers a:focus-visible {
  background: var(--c-primary-tint);
  color: var(--c-primary);
  border-color: #bfd2e8;
}

.blog-pagination .page-numbers .current {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}

/* Keep homepage hero flush with fixed header in WordPress without altering footer geometry */
.home main > .hero:first-child {
  margin-top: 0;
}

