/* Hide the accessibility skip-link button injected by WordPress core */
.skip-link {
  display: none !important;
}
/*
Theme Name: Care Staff at Home
Author: Care Staff at Home
Description: Custom one-page WordPress theme for Care Staff at Home.
Version: 1.1.0
Text Domain: care-staff-at-home
*/

/* =============================================================
 * TABLE OF CONTENTS
 * 01. Reset & base
 * 02. Design tokens (:root)
 * 03. Mobile token overrides
 * 04. Typography
 * 05. Layout primitives (container, section)
 * 06. Buttons
 * 07. Cards
 * 08. Background utilities
 * 09. Skip link & screen-reader utilities
 * 10. Header / primary nav
 * 11. Mobile menu
 * 12. Hero (most lives in /assets/css/sections/hero-v2.css)
 * 13. Section: Trust bar
 * 14. Section: Who we are
 * 15. Section: What we do
 * 16. Section: Why choose us
 * 17. Section: Services
 * 18. Section: Card grid
 * 19. Section: Testimonials
 * 20. Section: Build your care
 * 21. Section: Join our team
 * 22. Section: Education / FAQ
 * 23. Section: Career signpost
 * 24. Section: Newsletter signup
 * 25. Section: Feature strip
 * 26. Footer
 * 27. Animations & utilities
 * 28. Forms (Ninja Forms compatibility helpers)
 * ============================================================= */


/* =============================================================
 * 01. RESET & BASE
 * ============================================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

[hidden] { display: none !important; }


/* =============================================================
 * 02. DESIGN TOKENS
 * Single source of truth — all custom properties live here.
 * ============================================================= */

:root {
  /* Brand colours */
  --color-primary:        #2b1b4d;
  --color-primary-dark:   #24103f;
  --color-primary-hover:  #4b1b77;

  --color-text:           #1f1a2b;
  --color-muted:          #3f2f55;
  --color-white:          #ffffff;

  --color-blush:          #ffcccc;
  --color-blush-soft:     #fff5f5;
  --color-cream:          #fffdf7;
  --color-yellow-soft:    #fffced;
  --color-off-white:      #f2f0ef;
  --color-deep:           #2b1b4d;
  --color-soft-blue:      #1e3d91;

  --color-accent-success: #2EA073;

  /* Services theme */
  --services-bg-pink:        #ffe6f0;
  --services-card-offwhite:  #fffbfd;

  /* Headings inherit primary by default */
  --heading-color: var(--color-primary);

  /* Radii */
  --radius-soft:  24px;
  --radius-pill:  999px;
  --radius-card:  22px;

  /* Shadows */
  --shadow-card:        0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover:  0 14px 34px rgba(0, 0, 0, 0.12);
  --shadow-deep-card:   0 22px 60px rgba(43, 15, 71, 0.14);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Vertical rhythm */
  --section-tight:    4rem;
  --section-normal:   6rem;
  --section-feature:  8rem;

  /* Content widths */
  --content-narrow:   620px;
  --content-medium:   1040px;
  --content-wide:     1200px;
  --container-width:  1240px;

  /* Section-specific intro widths */
  --why-intro-width:        560px;
  --services-intro-width:   560px;
}


/* =============================================================
 * 03. MOBILE TOKEN OVERRIDES
 * ============================================================= */

@media (max-width: 767px) {
  :root {
    --space-sm: 1.25rem;
    --section-tight:   2.5rem;
    --section-normal:  3rem;
    --section-feature: 4rem;
  }
}


/* =============================================================
 * 04. TYPOGRAPHY
 * Font @font-face declarations live in /assets/css/fonts.css
 * (loaded from the WP uploads dir).
 * ============================================================= */

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Gunaydin", serif;
  font-weight: 400;
  color: var(--heading-color);
}

h1 { letter-spacing: -0.020em; margin: 0 0 1.8rem; }
h2 { letter-spacing: -0.018em; margin: 0 0 1.6rem; }
h3 { letter-spacing: -0.015em; margin: 0 0 1.4rem; }
h4 { letter-spacing: -0.010em; margin: 0 0 1.2rem; }
h5 { letter-spacing: -0.005em; margin: 0 0 1.0rem; }

p {
  margin: 0 0 1.4rem;
  color: var(--color-muted);
  line-height: 1.75;
}

.section-intro {
  font-size: 1rem;
  max-width: var(--content-narrow);
  margin-bottom: 3rem;
  opacity: 0.9;
}

/* Headings on dark backgrounds */
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4, .bg-deep h5,
.bg-soft-blue h1, .bg-soft-blue h2, .bg-soft-blue h3, .bg-soft-blue h4, .bg-soft-blue h5 {
  color: var(--color-white);
}

.bg-deep p,
.bg-soft-blue p {
  color: rgba(255, 255, 255, 0.88);
}


/* =============================================================
 * 05. LAYOUT PRIMITIVES
 * ============================================================= */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-inner {
  width: 100%;
  max-width: var(--content-medium);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--section-normal) 0;
  position: relative;
}

section.section-tight   { padding: var(--section-tight)   0; }
section.section-feature { padding: var(--section-feature) 0; }

/* Anchor offset for sticky-header smooth scrolling */
:target,
[id] {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* =============================================================
 * 06. BUTTONS
 * ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.9rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-primary:active {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover  { background: rgba(43, 15, 71, 0.08); }
.btn-secondary:active { background: rgba(43, 15, 71, 0.15); transform: translateY(1px); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 15, 71, 0.35);
}

.btn[disabled],
.btn.is-disabled {
  background: #e2ddfb;
  color: #b7b0e8;
  border-color: #e2ddfb;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Secondary on dark backgrounds */
.bg-deep .btn-secondary,
.bg-soft-blue .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.bg-deep .btn-secondary:hover,
.bg-soft-blue .btn-secondary:hover  { background: rgba(255, 255, 255, 0.12); }
.bg-deep .btn-secondary:active,
.bg-soft-blue .btn-secondary:active { background: rgba(255, 255, 255, 0.22); }


/* =============================================================
 * 07. CARDS
 * ============================================================= */

.card {
  background: var(--color-white);
  border-radius: var(--radius-soft);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}


/* =============================================================
 * 08. BACKGROUND UTILITIES
 * ============================================================= */

.bg-blush       { background: var(--color-blush); }
.bg-blush-soft  { background: var(--color-blush-soft); }
.bg-cream       { background: var(--color-yellow-soft); }
.bg-yellow-soft { background: var(--color-yellow-soft); }
.bg-offwhite    { background: var(--color-off-white); }
.bg-deep        { background: var(--color-deep);  color: var(--color-white); }
.bg-soft-blue   { background: var(--color-soft-blue); color: var(--color-white); }


/* =============================================================
 * 09. SKIP LINK & SR UTILITIES
 * ============================================================= */

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

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


/* =============================================================
 * 10. HEADER / PRIMARY NAV
 * ============================================================= */

#site-header {
  background: var(--color-white);
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding img {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .primary-nav { display: block; }

  .primary-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .primary-menu a {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 0.35rem 0;
    line-height: 1.1;
    transition: opacity 0.2s ease;
  }

  .primary-menu a:hover { opacity: 0.78; }

  .primary-menu a:focus-visible {
    outline: 3px solid rgba(43, 15, 71, 0.25);
    outline-offset: 4px;
    border-radius: 10px;
  }

  .primary-menu .current-menu-item > a,
  .primary-menu .current-menu-ancestor > a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  /* Optional contact CTA pill */
  .primary-menu .menu-item-contact > a {
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(43, 15, 71, 0.35);
  }
  .primary-menu .menu-item-contact > a:hover {
    opacity: 1;
    background: rgba(43, 15, 71, 0.06);
  }

  .hamburger,
  .mobile-menu,
  .menu-backdrop { display: none; }
}


/* =============================================================
 * 11. MOBILE MENU
 * ============================================================= */

@media (max-width: 767px) {
  #site-header { padding: 1rem 0; }

  .primary-nav { display: none; }

  /* Hamburger button */
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(43, 15, 71, 0.18);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    z-index: 3500;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .hamburger:hover {
    background: rgba(43, 15, 71, 0.06);
    border-color: rgba(43, 15, 71, 0.25);
  }

  .hamburger:focus-visible {
    outline: 3px solid rgba(43, 15, 71, 0.35);
    outline-offset: 2px;
  }

  .hamburger span {
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-pill);
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
    transform-origin: center;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--color-white);
  }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--color-white);
  }

  /* Drawer */
  .mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    height: 100dvh;
    background: var(--color-primary);
    padding: 1.5rem 1.75rem 2.25rem;
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
    z-index: 3000;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu.is-open { transform: translateX(0); }

  .mobile-menu[hidden] { display: none; }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mobile-menu-logo  { height: 38px; width: auto; }
  .mobile-menu-title { font-size: 1.2rem; font-weight: 650; color: var(--color-white); }

  /* Close button — visible on mobile */
  .menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: var(--color-white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .menu-close:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
  }

  .menu-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
  }

  .mobile-menu-list li {
    margin-bottom: 0.25rem;
    /* Stagger reveal — each item picks up its own delay */
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .mobile-menu.is-open .mobile-menu-list li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger by index */
  .mobile-menu.is-open .mobile-menu-list li:nth-child(1) { transition-delay: 0.10s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(2) { transition-delay: 0.16s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(3) { transition-delay: 0.22s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(4) { transition-delay: 0.28s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(5) { transition-delay: 0.34s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(6) { transition-delay: 0.40s; }
  .mobile-menu.is-open .mobile-menu-list li:nth-child(n+7) { transition-delay: 0.46s; }

  .mobile-menu-list a {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.95rem 0.85rem;
    color: var(--color-white);
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease, padding-left 0.2s ease;
  }

  .mobile-menu-list a:hover {
    background: rgba(255, 255, 255, 0.10);
    padding-left: 1.15rem;
  }

  .mobile-menu-list a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
  }

  /* Highlight the Contact menu item as a CTA in the drawer */
  .mobile-menu-list .menu-item-contact > a,
  .mobile-menu-list .menu-item.menu-cta > a {
    margin-top: 1.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-pill);
    padding: 1rem 1.25rem;
  }

  .mobile-menu-list .menu-item-contact > a:hover,
  .mobile-menu-list .menu-item.menu-cta > a:hover {
    background: rgba(255, 255, 255, 0.92);
    padding-left: 1.25rem;
    transform: translateY(-1px);
  }

  /* Backdrop */
  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 38, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 2500;
    display: block;
  }

  @supports (backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px)) {
    .menu-backdrop.is-open {
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
  }

  .menu-backdrop[hidden]    { display: none; }
  .menu-backdrop.is-open    { opacity: 1; pointer-events: all; }
}

/* Lock body scroll while menu open */
body.menu-open { overflow: hidden; }


/* =============================================================
 * 13. SECTION: TRUST BAR
 * ============================================================= */

.trust-bar {
  background: var(--color-cream);
  padding: 4.5rem 1.5rem;
}

.trust-content {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}

.trust-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(43, 15, 71, 0.25),
    transparent
  );
}

.trust-item h3 {
  color: var(--color-primary);
  font-size: clamp(2rem, 5.5vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.trust-item p {
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.78;
  margin: 0;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .trust-bar { padding: 5rem 2rem; }
  .trust-content {
    max-width: 1200px;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
  .trust-item { padding-bottom: 0; }
  .trust-item::after { display: none; }
}

@media (max-width: 767px) {
  .trust-bar { padding: 3rem 1.25rem; }
  .trust-content { gap: 2rem; }
  .trust-item { padding-bottom: 1.75rem; }
  .trust-item h3 { margin-bottom: 0.35rem; }
  .trust-item:not(:last-child)::after { width: 40px; opacity: 0.9; }
}


/* =============================================================
 * 14. SECTION: WHO WE ARE
 * ============================================================= */

.who-we-are { position: relative; }

.who-we-are .who-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start; /* was center — top-align reduces float */
}

@media (min-width: 900px) {
  .who-we-are .who-layout {
    /* Slight rebalance — text gets more weight, image a touch smaller */
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }
}

.who-we-are .who-image { width: 100%; }

.who-we-are .who-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

.who-we-are .who-content {
  min-width: 0;
  /* Add bottom breathing room so the signature has space */
  padding-bottom: 0.5rem;
}

/* Eyebrow label — small, uppercase, branded */
.who-we-are .who-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.65;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem 0.3rem;
  background: rgba(43, 27, 77, 0.06);
  border-radius: var(--radius-pill);
}

.who-we-are .who-content h2 {
  margin: 0 0 .9rem;
  max-width: 24ch;
  color: var(--color-primary);
}

.who-we-are .section-intro {
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

.who-we-are .who-bullets {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 65ch;
}
.who-we-are .who-bullets li { margin: .35rem 0; }

.who-we-are .who-readmore-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.who-we-are .who-readmore-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.who-we-are .who-more {
  margin: 0 0 1rem;
  max-width: 70ch;
  color: var(--color-primary);
}
.who-we-are .who-more p { margin: 0 0 .9rem; }
.who-we-are .who-more p:last-child { margin-bottom: 0; }

/* Signature block — bottom-right of the text column */
.who-we-are .who-signature {
  display: block;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  position: relative;
  text-align: left;
}

.who-we-are .who-signature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 1px;
  background: rgba(43, 27, 77, 0.22);
}

.who-we-are .who-signature-image {
  display: block;
  max-height: 56px;
  width: auto;
  margin: 0 0 0.5rem;
  /* Ensures dark signatures sit naturally on the cream background */
  mix-blend-mode: multiply;
}

.who-we-are .who-signature-name {
  font-family: "Gunaydin", serif;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--color-primary);
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.who-we-are .who-signature-title {
  font-size: 0.85rem;
  color: var(--color-muted);
  opacity: 0.78;
  margin: 0;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .who-we-are .who-signature {
    margin-top: 3rem;
    text-align: right;
  }
  .who-we-are .who-signature::before {
    left: auto;
    right: 0;
  }
  .who-we-are .who-signature-image {
    margin-left: auto;
    margin-right: 0;
  }
}


/* =============================================================
 * 15. SECTION: WHAT WE DO
 * ============================================================= */

.what-we-do {
  padding-block: clamp(3rem, 6vw, 5.25rem);
}

.what-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5rem);
}

.what-content { max-width: 46ch; }

.what-content h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1.25rem 0;
  max-width: 18ch;
}

.what-content .section-intro {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  margin: 0;
  opacity: 0.92;
}

.what-image { display: grid; place-items: center; }

.what-image img {
  width: min(520px, 100%);
  height: auto;
  border-radius: var(--radius-card);
  animation: heroFloat 10s ease-in-out infinite;
}

@media (max-width: 899px) {
  .what-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .what-image { order: -1; }
  .what-content { margin-inline: auto; }
  .what-content h2,
  .what-content .section-intro { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .what-image img { animation: none; }
}

.what-cta { margin-top: 1.5rem; }

.what-cta-support {
  margin: 0 0 0.9rem;
  max-width: 58ch;
}


/* =============================================================
 * 16. SECTION: WHY CHOOSE US
 * ============================================================= */

.why-choose-us.bg-deep  { background-color: var(--color-deep);  color: var(--color-white); }
.why-choose-us.bg-cream { background-color: #FFFBF0;             color: var(--color-muted); }

.why-choose-us.bg-deep h2,
.why-choose-us.bg-deep .section-intro { color: var(--color-white); }

.why-choose-us.bg-cream h2 { color: var(--color-primary); }
.why-choose-us.bg-cream .section-intro { color: #4A4A4A; }

#why-choose-us .why-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  #why-choose-us .why-top {
    /* Tighter content column so the tick list pulls in */
    grid-template-columns: minmax(0, 540px) minmax(0, 460px);
    column-gap: 4rem;
    align-items: start;
    justify-content: space-between;
  }
}

#why-choose-us .why-head,
#why-choose-us .why-intro,
#why-choose-us .why-intro p {
  max-width: var(--why-intro-width);
}

#why-choose-us .why-head h2 { margin-bottom: 1.25rem; }

/* Tick-list key points */
#why-choose-us .why-points {
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}

#why-choose-us .why-points li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 0 0 .65rem;
  padding: .2rem 0;
  font-size: 0.93rem;
  line-height: 1.45;
}

#why-choose-us .why-points li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  background: rgba(115, 186, 140, 0.24);
  color: rgba(45, 130, 85, 1);
  font-weight: 700;
  line-height: 1;
  margin-top: .1rem;
}

/* Cards grid */
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.why-choose-us.bg-deep .why-card,
.why-choose-us.bg-cream .why-card {
  position: relative;
  border-radius: var(--radius-soft);
  padding: 5rem 1.6rem 1.75rem;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Top brand-purple accent edge — ties the cards to the section's identity */
.why-choose-us .why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    rgba(43, 27, 77, 0.55) 100%
  );
}

.why-choose-us.bg-deep .why-card::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 100%
  );
}

/* Step number — large, soft, tied to "step by step, at your pace" copy */
.why-step {
  position: absolute;
  top: 1.1rem;
  left: 1.6rem;
  display: inline-block;
  min-width: 2.1ch;
  text-align: left;
  font-family: "Gunaydin", serif;
  font-size: clamp(2.15rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: rgba(43, 27, 77, 0.10);
  pointer-events: none;
  user-select: none;
}

.why-choose-us.bg-deep .why-step {
  color: rgba(255, 255, 255, 0.18);
}

.why-choose-us .why-card h3 {
  padding-right: 0;
}

@media (max-width: 899px) {
  .why-step {
    top: 1rem;
    left: 1.6rem;
  }
}

.why-choose-us.bg-deep .why-card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}
.why-choose-us.bg-deep .why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}
.why-choose-us.bg-deep .why-card h3 { margin-bottom: 0.6rem; font-size: 1.05rem; color: var(--color-white); }
.why-choose-us.bg-deep .why-card p  { font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); }

.why-choose-us.bg-cream .why-card {
  background: var(--color-white);
  border: 1px solid rgba(43, 27, 77, 0.08);
  box-shadow: var(--shadow-card);
}
.why-choose-us.bg-cream .why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.why-choose-us.bg-cream .why-card h3 { margin-bottom: 0.6rem; font-size: 1.05rem; color: var(--color-primary); }
.why-choose-us.bg-cream .why-card p  { font-size: 0.95rem; color: #4A4A4A; }

.why-icon { width: 48px; height: 48px; margin-bottom: 1rem; position: relative; z-index: 1; }
.why-icon img { max-width: 100%; max-height: 100%; display: block; }

/* CTA section — divider removed for a cleaner finish */
.why-cta {
  margin-top: 3rem;
  text-align: center;
}

.why-cta-support {
  max-width: 60ch;
  margin: 0 auto 1.1rem;
  font-size: 1rem;
  line-height: 1.55;
}

.why-choose-us.bg-cream .why-cta-support { color: #4A4A4A; }
.why-choose-us.bg-deep  .why-cta-support { color: rgba(255, 255, 255, 0.9); }


/* =============================================================
 * 17. SECTION: SERVICES
 * ============================================================= */

#services.services--pink {
  background-color: var(--services-bg-pink);
}

#services .services-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  #services .services-top {
    grid-template-columns: minmax(0, var(--services-intro-width));
  }
}

#services .services-head { max-width: var(--services-intro-width); }
#services .services-head h2 { margin-bottom: 1.25rem; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 2.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  }
}

.service-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.service-icon {
  width: clamp(52px, 2.6vw, 62px);
  height: clamp(52px, 2.6vw, 62px);
  margin-bottom: 0.75rem;
}
.service-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#services .service-card.card {
  background-color: var(--services-card-offwhite);
  border: 1px solid rgba(43, 27, 77, 0.08);
  box-shadow: 0 12px 28px rgba(43, 15, 71, 0.08);
}

@media (max-width: 767px) {
  .service-card { padding: 1.5rem; }
}


/* =============================================================
 * 18. SECTION: CARD GRID
 * ============================================================= */

.card-grid-section.bg-deep  { background-color: var(--color-deep); }
.card-grid-section.bg-cream { background-color: #FFFBF0; }

.card-grid-section.bg-deep .card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}
.card-grid-section.bg-deep .card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15); }
.card-grid-section.bg-deep .card h3   { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--color-white); }
.card-grid-section.bg-deep .card p    { font-size: 0.95rem; opacity: 0.9; }

.card-grid-section.bg-cream .card {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid rgba(43, 27, 77, 0.08);
  box-shadow: var(--shadow-card);
}
.card-grid-section.bg-cream .card:hover  { box-shadow: var(--shadow-card-hover); }
.card-grid-section.bg-cream .card h3     { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--color-primary); }
.card-grid-section.bg-cream .card p      { font-size: 0.95rem; opacity: 0.9; color: #4A4A4A; }

.card-icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.card-icon img { max-width: 100%; max-height: 100%; }

.card-grid-items {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 900px) {
  .card-grid-items.card-grid--two   { grid-template-columns: repeat(2, 1fr); }
  .card-grid-items.card-grid--three { grid-template-columns: repeat(3, 1fr); }
  .card-grid-items.card-grid--four  { grid-template-columns: repeat(4, 1fr); }
}


/* =============================================================
 * 19. SECTION: TESTIMONIALS
 * ============================================================= */

.testimonial-rail {
  display: flex;
  overflow-x: auto;
  gap: 1.6rem;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: rgba(43, 27, 77, 0.45) rgba(43, 27, 77, 0.08);
}

.testimonial-rail::-webkit-scrollbar { height: 6px; }
.testimonial-rail::-webkit-scrollbar-track {
  background: rgba(43, 27, 77, 0.08);
  border-radius: var(--radius-pill);
}
.testimonial-rail::-webkit-scrollbar-thumb {
  background: rgba(43, 27, 77, 0.35);
  border-radius: var(--radius-pill);
}
.testimonial-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 27, 77, 0.55);
}

.testimonial-rail:focus-visible {
  outline: 3px solid rgba(43, 15, 71, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}

.testimonial-card {
  flex: 0 0 80%;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (min-width: 900px) {
  .testimonial-card {
    flex: 0 0 33%;
    max-width: 360px;
  }
}

.rating span {
  font-size: 1.1rem;
  color: #f5a623;
  margin-right: 0.05rem;
}

.testimonial-author {
  font-size: 0.95rem;
  opacity: 0.9;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}


/* =============================================================
 * 20. SECTION: BUILD YOUR CARE
 * ============================================================= */

.build-your-care {
  padding: var(--section-feature) 0;
  background: var(--color-cream);
}
.build-your-care.has-bg { background: var(--color-blush-soft); }

.build-your-care .two-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  #build-your-care .two-col {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.65fr);
    gap: 3.5rem;
    align-items: start;
  }

  #build-your-care .build-left  { max-width: 420px; }
  #build-your-care .build-form  { justify-self: end; width: 100%; max-width: 760px; }
}

.build-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.build-content {
  flex: 1;
  max-width: var(--content-narrow);
}

.build-intro {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

#build-your-care .build-image       { margin-top: 1.25rem; }
#build-your-care .build-image img   { max-width: 240px; height: auto; display: block; }

@media (max-width: 899px) {
  #build-your-care .build-left .build-image {
    order: -1;
    margin-top: 0;
    margin-bottom: 1rem;
  }
  #build-your-care .build-left .build-image img {
    max-width: min(320px, 90vw);
  }
}

/* Tick list */
.build-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 0.9rem;
}

.build-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text);
  opacity: 0.9;
}

.build-points li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: rgba(46, 160, 115, 0.16);
  color: var(--color-accent-success);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
}

.build-support-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 2rem;
}

.build-phone-link {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.build-phone-link a {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}

.build-phone-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.build-phone-link a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Form card */
.build-form {
  flex: 0 1 auto;
}

#build-your-care .build-form-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: var(--shadow-deep-card);
}

@media (max-width: 767px) {
  #build-your-care .build-form-card {
    padding: 1.5rem;
    border-radius: 18px;
  }
}


/* =============================================================
 * 21. SECTION: JOIN OUR TEAM
 * ============================================================= */

.join-our-team {
  padding: var(--section-feature) 0;
  background: #e8f4f8;
  --join-max-width: var(--content-medium);
}

#join-our-team .container.two-col,
#join-our-team .section-inner.two-col {
  max-width: var(--join-max-width);
  margin-left: auto;
  margin-right: auto;
}

.join-our-team .two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .join-our-team .two-col {
    grid-template-columns: minmax(360px, 1fr) minmax(520px, 1.15fr);
    gap: clamp(1.75rem, 2.6vw, 3rem);
  }
}

.join-content { max-width: 50ch; }

.join-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.join-title { margin: 0 0 0.9rem; }

.join-intro {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.join-supporting-text {
  font-size: 0.92rem;
  opacity: 0.9;
  margin: 1.25rem 0 0;
}

/* Highlight rows — single, consolidated definition (was three conflicting blocks) */
.join-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.4rem 0 1.2rem;
}

@media (min-width: 520px) {
  .join-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    max-width: 520px;
  }
}

.join-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.join-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(43, 15, 71, 0.06);
  font-size: 16px;
  line-height: 1;
}

.join-highlight-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 2.25;
}

.join-highlight-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.join-highlight-text {
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.92;
  margin: 0;
}

.join-btn { margin-top: 1.1rem; }

/* Form card */
.join-form { width: 100%; min-width: 0; }

@media (min-width: 900px) {
  .join-form {
    justify-self: start;
    max-width: 640px;
  }
}

.join-form-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 2.3rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 900px) {
  .join-form-card { padding: 2.05rem; }
}

@media (hover: hover) {
  .join-form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
  }
}

@media (max-width: 599px) {
  .join-form-card { padding: 2rem; border-radius: 22px; }
}


/* =============================================================
 * 22. SECTION: EDUCATION / FAQ
 * ============================================================= */

.education { padding: clamp(3rem, 6vw, 5rem) 0; }

.education.bg-cream { background: #FFFBF0; color: var(--color-primary); }
.education.bg-deep  { background: #2b0b42; color: var(--color-white); }

.education.bg-cream h2 { color: var(--color-primary); }
.education.bg-deep  h2 { color: var(--color-white); }

.education .section-intro {
  max-width: 60ch;
  margin: 0 0 2.25rem;
}

.education.bg-cream .section-intro { color: rgba(43, 27, 77, 0.78); }
.education.bg-deep  .section-intro { color: rgba(255, 255, 255, 0.88); }

.education-items { margin-top: 2rem; }

.education.bg-cream .education-items { border-top: 1px solid rgba(43, 27, 77, 0.18); }
.education.bg-deep  .education-items { border-top: 1px solid rgba(255, 255, 255, 0.22); }

.education-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.education.bg-cream .education-item { border-bottom: 1px solid rgba(43, 27, 77, 0.18); }
.education.bg-deep  .education-item { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }

.education-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.25;
  color: inherit;
}

.education-question::-webkit-details-marker { display: none; }
.education-question::marker { content: ""; }

.education-question .question-text {
  flex: 1;
  text-align: left;
}

.education.bg-cream .education-question:focus-visible {
  outline: 3px solid rgba(43, 27, 77, 0.35);
  outline-offset: 6px;
  border-radius: 10px;
}
.education.bg-deep .education-question:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 6px;
  border-radius: 10px;
}

.accordion-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.education.bg-cream .accordion-icon { color: rgba(43, 27, 77, 0.78); }
.education.bg-deep  .accordion-icon { color: rgba(255, 255, 255, 0.92); }

.education-item[open] .accordion-icon { transform: rotate(45deg); }

.education-answer {
  padding-bottom: 1.15rem;
  height: 0;
  overflow: hidden;
  will-change: height;
}

.education-answer-inner {
  margin-top: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  line-height: 1.7;
  max-width: 72ch;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.education-answer.is-open .education-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

.education.bg-cream .education-answer-inner { color: rgba(60, 60, 60, 0.92); }
.education.bg-deep  .education-answer-inner {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.90);
}

.education-answer-inner p { margin: 0; }
.education-answer-inner p:not(:last-child) { margin-bottom: 0.9rem; }

.education-answer-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.education.bg-cream .education-answer-inner a { color: var(--color-primary); }
.education.bg-deep  .education-answer-inner a { color: var(--color-white); }

@media (max-width: 599px) {
  .education-question { padding: 1rem 0; font-size: 1.02rem; }
  .accordion-icon { width: 24px; height: 24px; }
  .education-answer-inner { padding: 0.85rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .education-answer { transition: none; }
  .education-answer-inner { transition: none; transform: none; }
}


/* =============================================================
 * 23. SECTION: CAREER SIGNPOST
 * ============================================================= */

.career-signpost {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.career-signpost-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.career-signpost-heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .career-signpost-heading { font-size: 1.1rem; }
}

.career-signpost-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.career-signpost-link {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.career-signpost-link:hover,
.career-signpost-link:focus-visible {
  opacity: 0.75;
  transform: translateX(2px);
}

.career-signpost--light { background: var(--color-white); color: #2b0b42; }
.career-signpost--cool  { background: rgba(43, 11, 66, 0.04); color: #2b0b42; }
.career-signpost--plum  { background: #2b0b42; color: var(--color-white); }
.career-signpost--plum .career-signpost-link { color: var(--color-white); }


/* =============================================================
 * 24. SECTION: NEWSLETTER SIGNUP
 * ============================================================= */

.newsletter-signup {
  color: var(--color-white);
  background: var(--color-primary);
}

#newsletter.newsletter-signup h2,
#newsletter.newsletter-signup .newsletter-heading {
  color: var(--color-white);
}

#newsletter.newsletter-signup .newsletter-text { opacity: 0.95; }

.newsletter-signup .newsletter-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: start;
  padding: 3rem 0;
}

.newsletter-signup .newsletter-heading,
.newsletter-signup h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  line-height: 1.15;
}

.newsletter-signup .newsletter-text {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.newsletter-signup .newsletter-text p { margin: 0.75rem 0 0; }

.newsletter-signup .newsletter-form {
  justify-self: end;
  width: min(28rem, 100%);
  background: var(--color-white);
  color: #141727;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.newsletter-signup a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .newsletter-signup .newsletter-inner {
    grid-template-columns: 1fr;
    padding: 2.25rem 0;
  }
  .newsletter-signup .newsletter-form {
    justify-self: stretch;
    width: 100%;
  }
}


/* =============================================================
 * 25. SECTION: FEATURE STRIP
 * ============================================================= */

.feature-strip {
  background-color: var(--color-cream);
  border-top: 1px solid rgba(43, 27, 77, 0.1);
  border-bottom: 1px solid rgba(43, 27, 77, 0.1);
}

.feature-strip .strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
  padding: 2.25rem 1rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: start;
  text-align: left;
  padding: 0 1rem;
  position: relative;
}

.feature-item img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.feature-item h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.feature-item p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #4A4A4A;
  max-width: 44ch;
}

/* Vertical dividers (desktop only) */
.feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.125rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background-color: rgba(43, 27, 77, 0.15);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-strip .strip { gap: 2rem; }
  .feature-item:not(:last-child)::after { right: -1rem; }
}

/* Mobile rail */
@media (max-width: 768px) {
  .feature-strip .strip {
    --gutter: 1rem;
    --peek: clamp(1.25rem, 8vw, 2.75rem);
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 2rem var(--gutter) 2.5rem;
    scroll-padding-inline: var(--gutter);
  }

  .feature-item {
    flex: 0 0 calc(100% - var(--peek));
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-left: var(--gutter);
  }

  .feature-item::after { display: none; }
  .feature-item h4 { font-size: 1rem; line-height: 1.2; }
  .feature-item p  { font-size: 0.9rem; line-height: 1.45; max-width: none; }
}

/* Section padding variants */
.feature-strip.section-tight,
.feature-strip.section-normal,
.feature-strip.section-feature { padding: 0; }

.feature-strip.section-feature .strip { padding: 3.25rem 1rem; }

/* Layout variants */
.feature-strip.layout-centered .feature-item {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  justify-items: center;
  text-align: center;
}
.feature-strip.layout-centered .feature-item img { grid-column: 1; grid-row: 1; }
.feature-strip.layout-centered .feature-item h4  { grid-column: 1; grid-row: 2; }
.feature-strip.layout-centered .feature-item p   { grid-column: 1; grid-row: 3; max-width: 44ch; }
.feature-strip.layout-centered .feature-item:not(:last-child)::after { display: none; }

/* Background variants */
.feature-strip.bg-pink  { background-color: #f9dad9; }
.feature-strip.bg-cream { background-color: #FFF5F5; }
.feature-strip.bg-white { background-color: var(--color-white); }
.feature-strip.bg-dark  { background-color: var(--color-deep); }

.feature-strip.bg-dark .feature-item h4,
.feature-strip.bg-dark .feature-item p { color: var(--color-white); }

.feature-strip.bg-dark .feature-item:not(:last-child)::after {
  background-color: rgba(255, 255, 255, 0.2);
}


/* =============================================================
 * 26. FOOTER
 * ============================================================= */

.site-footer {
  background: var(--color-primary);
  padding: 3rem 0 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.site-footer .footer-brand-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer .footer-brand-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

.site-footer .footer-logo {
  font-family: "Gunaydin", serif;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.98);
  margin: 0 0 0.75rem;
}

.site-footer .footer-tagline {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.80);
  max-width: 32ch;
}

.site-footer .footer-contact p,
.site-footer .footer-contact a,
.site-footer .footer-contact .footer-address {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-style: normal;
}

.site-footer .btn.btn-secondary {
  margin-top: 1rem;
  padding: 0.75rem 1.6rem;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.site-footer .btn.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.site-footer .footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer .footer-nav-item { margin: 0; padding: 0; }

.site-footer .footer-nav a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-nav a:hover { opacity: 1; color: var(--color-white); }

/* Socials — single, consolidated definition */
.footer-socials {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-socials li { margin: 0; padding: 0; }

.footer-social-link {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-social-link:hover { opacity: 0.8; }

.footer-social-link img.social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.footer-social-link:hover img.social-icon {
  transform: translateY(-2px);
}

/* Legal */
.site-footer .footer-legal {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .footer-legal-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer .footer-legal a {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 500;
}

.site-footer .footer-legal p { color: rgba(255, 255, 255, 0.92); }

@media (min-width: 820px) {
  .site-footer .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
  .site-footer .footer-brand,
  .site-footer .footer-nav,
  .site-footer .footer-contact { flex: 1; }
  .site-footer .footer-brand   { max-width: 240px; }
}


/* =============================================================
 * 27. ANIMATIONS & UTILITIES
 * ============================================================= */

@keyframes heroFloat {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-10px); }
  70%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ----- Scroll-reveal -----
 * JS adds .is-revealed when the element enters viewport.
 * Default style is "off"; revealed style is the resting position.
 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(.2,.8,.2,1),
    transform 0.65s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of grids/rails when their parent is revealed */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(.2,.8,.2,1),
    transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.is-revealed > * { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-revealed > *:nth-child(n+7) { transition-delay: 0.47s; }

/* ----- Card hover lifts (consistent across the site) ----- */
@media (hover: hover) {
  .card,
  .why-card,
  .service-card,
  .testimonial-card,
  .feature-item {
    transition:
      transform 0.35s cubic-bezier(.2,.8,.2,1),
      box-shadow 0.35s cubic-bezier(.2,.8,.2,1);
  }

  .card:hover,
  .why-card:hover,
  .service-card:hover,
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }
}

/* ----- Button micro-interaction ----- */
.btn-primary,
.btn-secondary {
  position: relative;
}

@media (hover: hover) {
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(43, 15, 71, 0.18);
  }

  .btn-primary:active,
  .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(43, 15, 71, 0.14);
  }
}

/* ----- Image fade-in (legacy) ----- */
img.fade-in,
.wp-block-image img.fade-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

img.fade-in.is-visible,
.wp-block-image img.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Reduced motion: turn it all off ----- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-revealed,
  .reveal-stagger > *,
  .reveal-stagger.is-revealed > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  img.fade-in,
  .wp-block-image img.fade-in {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .card,
  .why-card,
  .service-card,
  .testimonial-card,
  .feature-item,
  .btn-primary,
  .btn-secondary {
    transition: none !important;
  }

  .card:hover,
  .why-card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none !important;
  }
}

/* =============================================================
 * 27b. FOOTER ACCREDITATION (Care Inspectorate etc.)
 * ============================================================= */

.footer-accreditations {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-accreditation-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.65rem;
  font-weight: 500;
}

.footer-accreditation-link {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .footer-accreditation-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }
}

.footer-accreditation-link img {
  display: block;
  max-height: 44px;
  width: auto;
}


/* =============================================================
 * 28. NINJA FORMS COMPATIBILITY HELPERS
 * Strip Ninja's internal "card-in-a-card" styling so our
 * outer card chrome is the only visible one.
 * ============================================================= */

#build-your-care .build-form-card .nf-form-cont,
#build-your-care .build-form-card .nf-form-wrap,
#build-your-care .build-form-card .nf-form-layout,
#build-your-care .build-form-card .nf-form-content,
#build-your-care .build-form-card .nf-before-form-content,
#build-your-care .build-form-card .nf-after-form-content,
#build-your-care .build-form-card fieldset,
.join-form-card .nf-form-cont,
.join-form-card .nf-form-wrap,
.join-form-card .nf-form-layout,
.join-form-card .nf-form-content,
.join-form-card .nf-before-form-content,
.join-form-card .nf-after-form-content,
.join-form-card fieldset {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Build Your Care — dark primary submit */
.care-enquiry-form .submit-container .nf-field-element .nf-element,
.care-enquiry-form .submit-container input[type="submit"],
.care-enquiry-form .submit-container button[type="submit"] {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border: 0 !important;
}

.care-enquiry-form .submit-container .nf-element:hover {
  background: var(--color-primary-dark) !important;
}

.care-enquiry-form .submit-container .nf-element:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(255, 199, 217, 0.45) !important;
}

/* Newsletter — make Privacy Policy link visible on dark bg */
#newsletter .nf-field-label a,
#newsletter .nf-field-element a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

#newsletter .nf-field-label a:hover,
#newsletter .nf-field-element a:hover {
  text-decoration: none;
}

.form-privacy-note {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.75rem;
  opacity: 0.85;
}

.form-privacy-note a {
  text-decoration: underline;
  font-weight: 500;
}
