/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --color-primary: #2A7F7B;
    --color-primary-dark: #1E5F5C;
    --color-primary-light: #E8F4F3;
    --color-secondary: #E07A4F;
    --color-secondary-dark: #C4623A;
    --color-secondary-light: #FDF0EB;
    --color-dark: #1B3A4B;
    --color-text: #2D3748;
    --color-muted: #6B7C8A;
    --color-border: #E2DDD7;
    --color-bg: #FAF7F2;
    --color-card: #FFFFFF;
    --color-success: #3D8B37;

    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(27, 58, 75, 0.06);
    --shadow-md: 0 4px 12px rgba(27, 58, 75, 0.08);
    --shadow-lg: 0 8px 30px rgba(27, 58, 75, 0.12);

    --max-width: 1200px;
    --max-width-narrow: 800px;
}

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-primary-dark);
}
a:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.25;
    font-weight: 400;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-dark);
}

.site-header__logo-img {
    height: 44px;
    width: auto;
}

.site-header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    display: none;
}

.site-header__nav-list {
    list-style: none;
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.site-header__nav-link {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}
.site-header__nav-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.site-header__nav-link--cta {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 700;
}
.site-header__nav-link--cta:hover {
    background: var(--color-secondary-dark);
    color: #fff;
}

.site-header__phone {
    display: none;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-right: var(--space-sm);
}
.site-header__phone svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mobile menu toggle */
.site-header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-dark);
}
.site-header__menu-toggle svg {
    width: 24px;
    height: 24px;
}

.site-header__nav {
    display: none;
}

@media (min-width: 900px) {
    .site-header__menu-toggle {
        display: none;
    }
    .site-header__nav {
        display: block;
    }
    .site-header__logo-text {
        display: block;
    }
    .site-header__phone {
        display: flex;
    }
}

/* ============================================================
   CONTAINER QUERY DECLARATIONS
   Block sections are layout containers. Theme-level components
   (header, footer) remain viewport-based since they're always
   full-width. Blocks use container queries because they may
   appear in different layout contexts at M2+ (inner pages,
   sidebars, narrower content areas).
   ============================================================ */
.hero,
.intro,
.services,
.stories,
.faq,
.key-dates,
.events,
.contact,
.newsletter {
    container-type: inline-size;
}

/* ============================================================
   COMPONENT: hero
   ============================================================ */
/*
COMPONENT: hero
PROPS:
  heading         : text REQUIRED
  tagline         : text
  description     : richtext
  cta_primary_text: text DEFAULT="Get Support"
  cta_primary_url : text DEFAULT="#services"
  cta_secondary_text: text DEFAULT="Contact Us"
  cta_secondary_url : text DEFAULT="#contact"
  image           : image
LOGIC:
  .hero__cta--secondary : visible when cta_secondary_url set
  .hero__image          : visible when image set; empty state: hidden
SCHEMA: none (visual component)
ACCESSIBILITY:
  h1 is first heading on page
  CTAs are <a> elements with descriptive text
*/

.hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #234E5E 50%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(42, 127, 123, 0.15);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(224, 122, 79, 0.08);
    pointer-events: none;
}

.hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 640px;
}

.hero__heading {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.hero__tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.hero__description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero__cta:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}
.hero__cta:hover {
    transform: translateY(-1px);
}

.hero__cta--primary {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(224, 122, 79, 0.35);
}
.hero__cta--primary:hover {
    background: var(--color-secondary-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(224, 122, 79, 0.4);
}

.hero__cta--secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.hero__cta--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero__image {
    display: none;
}

@container (min-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr 1fr;
    }
    .hero__image {
        display: block;
    }
    .hero__image img {
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }
}

/* ============================================================
   COMPONENT: intro
   ============================================================ */
/*
COMPONENT: intro
PROPS:
  heading     : text REQUIRED DEFAULT="You've Found the Right Place"
  description : richtext REQUIRED
  features    : repeater (icon_svg, title, text)
LOGIC:
  .intro__features : visible when features has items; empty state: hidden
SCHEMA: none (orientation component)
ACCESSIBILITY:
  Landmark: uses <section> with aria-labelledby
*/

.intro {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-card);
}

.intro__container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    text-align: center;
}

.intro__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.intro__description {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}
.intro__description strong {
    color: var(--color-text);
    font-weight: 600;
}

.intro__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: left;
    max-width: var(--max-width);
    margin: 0 auto;
}

.intro__feature {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.intro__feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}
.intro__feature-icon svg {
    width: 24px;
    height: 24px;
}

.intro__feature-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.intro__feature-text {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

@container (min-width: 700px) {
    .intro__features {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .intro__feature {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================================================
   COMPONENT: services
   ============================================================ */
/*
COMPONENT: services
PROPS:
  heading     : text DEFAULT="How We Can Help"
  description : textarea
  services    : relationship (Service CPT) REQUIRED
    Each Service CPT has: title, description, icon_svg
LOGIC:
  section        : visible when services has items; empty state: hidden
  .service-card__cta : visible when service has page (M2+ state)
SCHEMA: Service (ItemList of Service items, with LocalBusiness provider)
ACCESSIBILITY:
  Uses <ul> for service list with role="list"
  Each card is an <li>
*/

.services {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg);
}

.services__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.services__header {
    text-align: center;
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-xl);
}

.services__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.services__description {
    color: var(--color-muted);
    font-size: 1.0625rem;
}

.services__grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.service-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}
.service-card__icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.service-card__description {
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex: 1;
}

/* LOGIC: visible when service page exists (M2+ transition) */
.service-card__cta {
    display: none;
    margin-top: var(--space-md);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    text-decoration: none;
}
.service-card__cta:hover {
    color: var(--color-primary-dark);
}
.service-card__cta--visible {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.service-card__cta svg {
    width: 16px;
    height: 16px;
}

@container (min-width: 600px) {
    .services__grid {
        grid-template-columns: 1fr 1fr;
    }
}
@container (min-width: 900px) {
    .services__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ============================================================
   COMPONENT: stories
   ============================================================ */
/*
COMPONENT: stories
PROPS:
  heading     : text DEFAULT="Our Stories"
  description : textarea
  stories     : relationship (Story CPT) REQUIRED
    Each Story CPT has: title, excerpt, video_url, family_name, thumbnail
LOGIC:
  section       : visible when stories has items; empty state: hidden
  .story-card__video : visible when video_url set (all M1 stories have video)
SCHEMA: none (stories are social proof, not structured data)
ACCESSIBILITY:
  Video thumbnails have descriptive alt text
  "Watch their story" link is descriptive
*/

.stories {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-card);
}

.stories__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.stories__header {
    text-align: center;
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-xl);
}

.stories__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.stories__description {
    color: var(--color-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.stories__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.story-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.story-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-dark);
    overflow: hidden;
}

.story-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.story-card:hover .story-card__thumbnail {
    opacity: 1;
}

.story-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease;
}
.story-card:hover .story-card__play {
    transform: translate(-50%, -50%) scale(1.08);
}
.story-card__play svg {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    margin-left: 3px;
}

.story-card__body {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.story-card__family {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.story-card__title {
    font-size: 1.375rem;
    margin-bottom: var(--space-xs);
}

.story-card__excerpt {
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.story-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: var(--space-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--color-primary);
}
.story-card__link svg {
    width: 16px;
    height: 16px;
}

@container (min-width: 700px) {
    .stories__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   COMPONENT: faq
   ============================================================ */
/*
COMPONENT: faq
PROPS:
  heading  : text DEFAULT="Frequently Asked Questions"
  faqs     : relationship (FAQ CPT) REQUIRED
    Each FAQ CPT has: title (question), answer (richtext)
LOGIC:
  section        : visible when faqs has items; empty state: hidden
  .faq__answer   : toggle visibility on .faq__question click
  .faq__answer   : initial state: hidden
SCHEMA: FAQPage (from faqs loop)
ACCESSIBILITY:
  .faq__question : <button> with aria-expanded="true|false"
  .faq__answer   : aria-hidden matching inverse of aria-expanded
  .faq__answer   : id linked via aria-controls on button
  Keyboard: Enter/Space to toggle
*/

.faq {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg);
}

.faq__container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.faq__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq__item {
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq__item:hover {
    box-shadow: var(--shadow-sm);
}

.faq__question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--space-md) var(--space-md);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    line-height: 1.4;
}
.faq__question:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: -3px;
    border-radius: var(--radius-md);
}
.faq__question:hover {
    color: var(--color-primary);
}

.faq__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform 0.3s ease;
}
.faq__item--open .faq__icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq__answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.8;
    display: none;
}
.faq__item--open .faq__answer {
    display: block;
}

/* ============================================================
   COMPONENT: key-dates
   ============================================================ */
/*
COMPONENT: key-dates
PROPS:
  heading    : text DEFAULT="Key Dates"
  key_dates  : relationship (Key Date CPT, ordered ascending, upcoming only)
    Each Key Date CPT has: title, date, description, url (optional)
LOGIC:
  section          : visible when key_dates has items; empty state: hidden
  .key-date__link  : visible when url set
SCHEMA: none (informational, not Event)
ACCESSIBILITY:
  Uses <time> element with datetime attribute
  Links have descriptive text
*/

.key-dates {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-card);
}

.key-dates__container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.key-dates__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.key-dates__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.key-date {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    align-items: flex-start;
}

.key-date__calendar {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: #fff;
}

.key-date__month {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    opacity: 0.85;
}

.key-date__day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.key-date__title {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.key-date__description {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.key-date__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--color-primary);
}

/* ============================================================
   COMPONENT: events
   ============================================================ */
/*
COMPONENT: events
PROPS:
  heading  : text DEFAULT="Upcoming Events"
  events   : relationship (Event CPT, ordered ascending, upcoming only)
    Each Event CPT has: title, date, time, location, description, url (optional)
LOGIC:
  section        : visible when events has items; empty state: hidden
  .event__link   : visible when url set
SCHEMA: Event (array of Event items)
ACCESSIBILITY:
  Uses <time> element with datetime attribute
  Location marked up clearly
*/

.events {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg);
}

.events__container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.events__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.events__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.event-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    align-items: flex-start;
    transition: box-shadow 0.2s ease;
}
.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-card__calendar {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: var(--color-secondary-light);
    border-radius: var(--radius-sm);
    padding: 0.625rem;
    border: 2px solid var(--color-secondary);
}

.event-card__month {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    color: var(--color-secondary);
}

.event-card__day {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    color: var(--color-secondary-dark);
}

.event-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.event-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.event-card__meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.event-card__description {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: var(--space-sm);
    padding: 0.5rem 1.25rem;
    background: var(--color-secondary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}
.event-card__cta:hover {
    background: var(--color-secondary-dark);
    color: #fff;
}

/* ============================================================
   COMPONENT: contact
   ============================================================ */
/*
COMPONENT: contact
PROPS:
  heading     : text DEFAULT="Get in Touch"
  description : textarea
  phone       : text (from options page business_phone)
  email       : text (from options page business_email)
  address     : textarea (from options page)
LOGIC:
  Form is HTML mockup â€” Fluent Forms replaces at M2 (ml-form block)
SCHEMA: none (ContactPoint covered by LocalBusiness)
ACCESSIBILITY:
  All inputs have associated <label> elements
  Required fields marked with aria-required
*/

.contact {
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-dark);
    color: #fff;
}

.contact__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.contact__info {
    max-width: 480px;
}

.contact__heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: #fff;
    margin-bottom: var(--space-md);
}

.contact__description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__detail {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.contact__detail-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact__detail-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
}

.contact__detail-label {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.125rem;
}

.contact__detail-value {
    color: #fff;
    font-size: 1rem;
}
.contact__detail-value a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}
.contact__detail-value a:hover {
    text-decoration-color: #fff;
    color: #fff;
}

/* Contact form mockup */
.contact__form {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact__form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.contact__form-input,
.contact__form-textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.contact__form-input:focus,
.contact__form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.12);
}
.contact__form-input::placeholder,
.contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: var(--space-xs);
}
.contact__form-submit:hover {
    background: var(--color-secondary-dark);
}
.contact__form-submit:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@container (min-width: 900px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
    .contact__form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   COMPONENT: newsletter
   ============================================================ */
/*
COMPONENT: newsletter
PROPS:
  heading     : text DEFAULT="Stay Connected"
  description : textarea
  cta_text    : text DEFAULT="Join Our Mailing List"
  cta_url     : text
LOGIC: none â€” always visible
SCHEMA: none
ACCESSIBILITY:
  CTA is <a> element
*/

.newsletter {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-primary);
    text-align: center;
}

.newsletter__container {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.newsletter__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: var(--space-xs);
}

.newsletter__description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.newsletter__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #fff;
    color: var(--color-primary-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.newsletter__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    color: var(--color-primary-dark);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    border-top: 3px solid var(--color-primary);
}

.site-footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.site-footer__brand {
    max-width: 320px;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.site-footer__logo-img {
    height: 36px;
    width: auto;
}

.site-footer__logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
}

.site-footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.site-footer__charity {
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__nav-heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-sm);
}

.site-footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}
.site-footer__nav-link:hover {
    color: #fff;
}

.site-footer__bottom {
    max-width: var(--max-width);
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.site-footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.site-footer__bottom a:hover {
    color: #fff;
}

@media (min-width: 700px) {
    .site-footer__container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================================================
   UTILITY
   ============================================================ */
.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;
}

/* ============================================================
   SERVICE CARD — Image Background Variant (v2.3.0)
   ============================================================ */

.service-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 58, 75, 0.65) 0%,
        rgba(27, 58, 75, 0.85) 100%
    );
    z-index: 0;
    transition: background 0.3s ease;
}

.service-card--has-image:hover .service-card__overlay {
    background: linear-gradient(
        to bottom,
        rgba(27, 58, 75, 0.55) 0%,
        rgba(27, 58, 75, 0.75) 100%
    );
}

.service-card--has-image .service-card__title {
    color: #fff;
}

.service-card--has-image .service-card__description {
    color: rgba(255, 255, 255, 0.85);
}

.service-card--has-image .service-card__icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.service-card--has-image .service-card__cta {
    color: var(--color-secondary);
}

.service-card--has-image .service-card__cta:hover {
    color: #fff;
}
