/*
Theme Name: Channels and Choices
Theme URI:
Author: Danford Showan
Author URI:
Description: Custom WordPress theme for Channels and Choices.
Version: 1.0
License: GPLv2 or later
Text Domain: channelsandchoices
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --brand-blue:         #009FE3;
    --brand-grey:         #58595B;
    --light-grey:         #f4f4f4;
    --white:              #ffffff;
    --text-color:         #333333;
    --color-muted:        #aaaaaa;
    --font-heading:       'Inter', Arial, Helvetica, sans-serif;
    --bg-soft-grey:       #F0F0F0;
    --text-section-title: 2.2rem;
    --text-card-title:    1.3rem;
    --text-muted:         #666666;
}

/* ── Line Heart Animation ────────────────────────────────────────────────── */
.line-heart-wrap {
    width: 100%;
    overflow: hidden;
    padding: 32px 0 16px;
}

.line-heart-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100px;
    color: var(--brand-blue);
}

.line-heart__line {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: lh-draw-line 4s ease-in-out infinite;
}

.line-heart__heart {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: lh-draw-heart 4s ease-in-out infinite;
}

@keyframes lh-draw-line {
    0%, 100% { stroke-dashoffset: 900; }
    50%       { stroke-dashoffset: 0; }
}

@keyframes lh-draw-heart {
    0%, 100%  { stroke-dashoffset: 120; }
    40%, 90%  { stroke-dashoffset: 0; }
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base Layout ────────────────────────────────────────────────────────── */
body {
    font-family: var(--font-heading);
    color: var(--text-color);
    background-color: var(--brand-grey);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#content {
    background-color: var(--white);
    flex-grow: 1;
    padding: 0;
}

.home #content,
.post-type-archive-staff #content,
.tax-staff_category #content,
.page-template-page-fostering #content,
.page-template-page-school #content,
.page-template-page-residential #content,
.page-template-page-therapy #content,
.page-template-page-careers #content,
.page-template-page-contact #content,
.page-template-page-stepping-stones #content,
.page-template-page-working-in-our-homes #content {
    display: flex;
    flex-direction: column;
}


.post-type-archive-staff .site-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.site-main {
    padding: 0;
}


/* ── Headings ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-grey);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: normal;
}

.pb-0 {
    padding-bottom: 0px !important;;
}

.mb-0 {
    margin-bottom: 0px !important;;
}

/* ── Typography Utilities ───────────────────────────────────────────────── */
.section-title {
    color: var(--brand-grey);
    font-size: var(--text-section-title);
    font-weight: 600;
    line-height: 1.2;
}

.card-title {
    color: var(--brand-grey);
    font-size: var(--text-card-title);
    font-weight: 600;
}

.text-body {
    color: var(--brand-grey);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.text-muted {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-narrow { max-width: 900px; margin-left: auto; margin-right: auto; }

.lead-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 30px;
    line-height: 1.5;
}

.pull-quote {
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--brand-grey);
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
}

/* ── Background Utilities ───────────────────────────────────────────────── */
.bg-white   { background-color: var(--white); }
.bg-grey    { background-color: var(--bg-soft-grey); }
.bg-primary { background-color: var(--brand-blue); }

.bg-tiled {
    position: relative;
    isolation: isolate;
}

.bg-tiled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/pattern.svg');
    background-size: 165px auto;
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* ── Links ──────────────────────────────────────────────────────────────── */
a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--brand-grey); }

/* ── Containers ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background-color: var(--brand-blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background-color: var(--brand-grey);
    color: var(--white);
}

.btn--sm { padding: 8px 16px; }

.btn--pill {
    border-radius: 30px;
}

.btn--white {
    background-color: var(--white);
    color: var(--brand-blue);
}

.btn--white:hover {
    background-color: var(--light-grey);
    color: var(--brand-blue);
}

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

.btn--outline-white:hover {
    background-color: var(--white);
    color: var(--brand-blue);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--light-grey);
    position: relative;
}

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

.site-logo img {
    width: 250px;
    height: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-dropdown {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation,
.main-navigation div {
    display: flex;
    align-items: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-grey);
}

.primary-menu li a:hover { color: var(--brand-blue); }

/* ── Hero Slider ────────────────────────────────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 350px;
    overflow: hidden;
    background-color: var(--brand-grey);
    isolation: isolate;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-start;
    padding-top: 60px;
    justify-content: center;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 0;
}

.hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 50;
    color: var(--white);
    max-width: 800px;
    text-align: center;
}

.hero-slider .slide-badge {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-slider .slide-title {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.hero-slider .slide-text {
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-slider .slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slider-controls button:hover { background: rgba(0, 0, 0, 0.8); }

.hero-slider .slider-prev { left: 20px; }
.hero-slider .slider-next { right: 20px; }

.hero-slider--page .slide {
    align-items: center;
    padding-top: 0;
}

.hero-slider .slider-ring {
    position: absolute;
    top: 5%;
    left: -45%;
    width: 150%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Section Wrappers ───────────────────────────────────────────────────── */

/* Standard full-width section with vertical breathing room */
.section {
    padding: 80px 0;
    width: 100%;
}


/* Shorter, centred CTA / banner section */
.section-cta {
    padding: 60px 0;
    text-align: center;
    width: 100%;
}

/* Minimal content area (used inside home blue band) */
.main-content-area {
    padding: 60px 20px;
}

/* ── Home Banner (blue top band with page content) ──────────────────────── */
.section-banner {
    color: var(--white);
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.4;
}

.section-banner h1,
.section-banner h2,
.section-banner h3,
.section-banner h4,
.section-banner h5,
.section-banner h6 { color: var(--white); }

.section-banner a       { color: var(--brand-grey); }
.section-banner a:hover { color: var(--white); }

/* ── Media Cards (image + text card, e.g. services, activities) ─────────── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    text-align: center;
}

.media-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.media-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.media-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.media-card-link:hover h3,
.media-card-link:hover p {
    color: var(--brand-grey) !important;
}

.media-card-body {
    padding: 25px 20px 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-card p {
    color: var(--brand-grey);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Video Grid ─────────────────────────────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-text p { margin-bottom: 15px; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Features Header ────────────────────────────────────────────────────── */
.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header p { font-size: 1.2rem; }

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Grid Utilities ─────────────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

/* Centre the last item when it would otherwise sit alone in a 2-col row */
@media (min-width: 993px) {
    .grid-center-last {
        grid-column: 1 / span 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ── Gallery ────────────────────────────────────────────────────────────── */
.gallery-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.gallery-header p { margin-bottom: 15px; }

.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 20px;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-item {
    flex: 0 0 auto;
    width: calc(33.333% - 14px);
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.gallery-item:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img-wrapper {
    overflow: hidden;
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    color: var(--brand-grey);
    font-size: 1rem;
    font-weight: 500;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--brand-grey);
    transition: all 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--white);
    color: var(--brand-blue);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: -25px; }
.carousel-next { right: -25px; }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s ease;
}

.lightbox-close:hover { transform: scale(1.1); }

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* ── Staff ──────────────────────────────────────────────────────────────── */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.staff-card {
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 1;
}

.staff-card:hover { transform: translateY(-5px); }

.staff-category-section,
.staff-list,
.staff-accordion-item {
    width: 100%;
    max-width: 100%;
}

.staff-list { align-items: stretch; }

.staff-accordion-item {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: block;
}

.staff-accordion-item:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }

.staff-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--bg-soft-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-img.fallback {
    width: 50%;
    height: 50%;
    object-fit: contain;
    opacity: 0.2;
}

.staff-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

.staff-summary::-webkit-details-marker { display: none; }

.staff-summary-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.staff-image-wrapper.list-view {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    border-width: 2px;
}

.staff-text-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-name {
    color: var(--brand-blue);
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.staff-role {
    font-family: var(--font-heading);
    color: var(--brand-grey);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0;
}

.staff-bio { margin-top: 15px; }

.staff-chevron .chevron-icon {
    color: var(--brand-blue);
    transition: transform 0.3s ease;
}

.staff-accordion-item[open] .chevron-icon { transform: rotate(180deg); }

.staff-bio-content {
    padding: 25px 25px 25px;
    border-top: 1px solid var(--bg-soft-grey);
    margin-top: 15px;
}

.staff-bio-content p,
.staff-bio-content > div {
    margin-bottom: 1.2em;
}

.staff-bio-content p:last-child,
.staff-bio-content > div:last-child {
    margin-bottom: 0;
}

/* ── Overlap Layout (content panel overlaps an image) ───────────────────── */
.overlap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.overlap-content {
    color: var(--white);
    padding: 60px 50px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    margin-right: -50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.overlap-content h2 {
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.overlap-image {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 600px;
}

.overlap-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Stat Box ───────────────────────────────────────────────────────────── */
.stat-box {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-sub {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ── Split Layout (image beside content) ────────────────────────────────── */
.split-card {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    z-index: 1;
}

.split-image {
    min-height: 400px;
    height: 100%;
}

.split-content {
    padding: 60px;
    text-align: left;
}

/* ── Action Cards (pathway / CTA tiles) ─────────────────────────────────── */
.action-card {
    padding: 50px 40px;
    border-radius: 12px;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.action-card.blue-card { background-color: var(--brand-blue); }
.action-card.red-card  { background-color: #DE3187; }
.action-card.grey-card { background-color: var(--brand-grey); }

.action-card h3 {
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.action-card p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* White badge on coloured action-card backgrounds */
.action-card .card-icon .badge-bg {
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.action-card.blue-card .badge-icon { color: var(--brand-blue); }
.action-card.red-card  .badge-icon { color: #DE3187; }
.action-card.grey-card .badge-icon { color: var(--brand-grey); }

.action-btn {
    display: flex;
    align-items: center;
    border: none;
    padding: 0;
    background: transparent;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.action-btn::after {
    content: '\203A';
    font-size: 1.6rem;
    line-height: 1;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.action-card:hover .action-btn::after { transform: translateX(5px); }

/* ── Split Panel (two connected halves, e.g. brochure download) ─────────── */
.split-panel {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.split-panel > * {
    flex: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .split-panel { flex-direction: column; }
}

/* ── Icon-Text Cards (support / values / features cards) ────────────────── */
.card {
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    z-index: 1;
}

.card-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Side-by-side card layout */
.card .card-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

/* Stacked/centred layouts */
.action-card .card-icon,
.feature-item .card-icon {
    margin-bottom: 25px;
}

.card-text h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--brand-grey);
}

.card-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Badge Icon (SVG badge + inner icon combo) ──────────────────────────── */
.badge-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(43%) sepia(87%) saturate(2259%) hue-rotate(175deg) brightness(97%) contrast(101%) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
    z-index: 1;
}

.badge-icon {
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* ── Card Image Wrap ────────────────────────────────────────────────────── */
.card-img-wrap {
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 30px;
}

/* ── Section Icon (large 80px badge at top of intro sections) ───────────── */
.section-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon > svg:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    z-index: 1;
}

.section-icon > svg:last-child {
    position: relative;
    z-index: 2;
}

/* ── Card Modifiers ─────────────────────────────────────────────────────── */

/* Centred icon+text card (e.g. school values) */
.card--value {
    text-align: center;
    padding: 30px 25px;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Remove shadow when card--value is used on a grey background */
.bg-grey.card--value {
    box-shadow: none;
}

/* Utility: add shadow to all cards within a grid */
.cards-shadow .card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card--value .card-icon {
    margin: 0 auto 15px;
}

/* Subject/curriculum list card with left accent border */
.card--subject {
    text-align: left;
    padding: 25px 30px;
    border-left: 4px solid var(--brand-blue);
    box-shadow: none;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.card--subject h4 { margin: 0; }

.card--subject p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact info cards — simple block, no flex */
.contact-info-card {
    display: block;
    padding: 30px;
    border-radius: 8px;
}

/* Stacked icon+title centred, content full width (e.g. benefits cards) */
.card--benefit {
    flex-direction: column;
    align-items: center;
}

.card--benefit .card-icon {
    margin: 0 auto 15px;
    flex-shrink: 0;
}

.card--benefit .card-text {
    width: 100%;
    text-align: left;
}

.card--benefit .card-text h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* Solid coloured card (e.g. uniform lists) */
.card--solid {
    text-align: left;
    border: none;
    padding: 40px;
    box-shadow: none;
    flex-direction: column;
}

.card--solid h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ── Check List (bulleted list on coloured backgrounds) ─────────────────── */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.check-list li:last-child { margin-bottom: 0; }

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--brand-blue);
    margin-top: 2px;
}

/* ── Count-Up Stats ─────────────────────────────────────────────────────── */
.count-num {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.count-label { font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--brand-grey);
    color: var(--light-grey);
    padding: 60px 0 30px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1.25fr 1.25fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-col { min-width: 0; }

.footer-logo img {
    max-width: 100%;
    margin-bottom: 20px;
}

.footer-tagline {
    line-height: 1.6;
    margin-top: 15px;
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.contact-list,
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.footer-menu li {
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.contact-list a,
.footer-menu a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover,
.footer-menu a:hover { color: var(--white); }

.contact-list span { margin-right: 10px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--color-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

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

.footer-copyright {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-muted);
}

.footer-copyright p { margin: 0; }

.footer-copyright a       { color: var(--color-muted); }
.footer-copyright a:hover { color: var(--white); }

#legal-menu,
.footer-copyright ul {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

#legal-menu li,
.footer-copyright ul li {
    display: flex;
    align-items: center;
}

#legal-menu li:not(:first-child)::before,
.footer-copyright ul li:not(:first-child)::before {
    content: "|";
    color: var(--color-muted);
    margin: 0 8px;
}

/* ── Mobile Menu Toggle ─────────────────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Responsive: Large Tablet (≤ 1170px) ────────────────────────────────── */
@media (max-width: 1170px) {
    .footer-top { grid-template-columns: 1fr 1fr; }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    .gallery-item { width: calc(50% - 10px); }
}

/* ── Responsive: Tablet (≤ 992px) ───────────────────────────────────────── */
@media (max-width: 992px) {
    /* Navigation */
    .site-branding { flex: 1; }

    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .header-right { position: static; }

    .header-right .header-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid var(--light-grey);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-right.toggled .header-dropdown { max-height: 400px; }

    .header-right .main-navigation,
    .header-right .main-navigation div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-right .primary-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        margin: 0;
    }

    .header-right .primary-menu li { text-align: center; }

    .header-right .header-action {
        display: flex;
        justify-content: center;
        width: 100%;
        padding-top: 5px;
        padding-bottom: 25px;
    }

    /* Slider */
    .hero-slider .slide-title { font-size: 2.5rem; }
    .hero-slider .slide-text  { font-size: 1.1rem; }
    .hero-slider .slide-badge { max-width: 120px; }

    /* CTA section heading */
    .section-cta h2.section-title { font-size: 1.8rem; }

    /* Grid utilities */
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Overlap layout */
    .overlap-grid    { grid-template-columns: 1fr; }
    .overlap-content { margin-right: 0; margin-bottom: -30px; }
    .overlap-image   { min-height: 400px; }

    /* Split layout */
    .split-card { grid-template-columns: 1fr; }
}

/* ── Responsive: Mobile (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {
    /* Gallery */
    .gallery-item          { width: 85%; }
    .carousel-prev,
    .carousel-next         { display: none; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-copyright {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-col.empty { display: none; }

    #legal-menu,
    .footer-copyright ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Slider */
    .hero-slider           { height: 40vh; min-height: 250px; }
    .hero-slider .slide-title { font-size: 2rem; }
    .hero-slider .slide-badge { max-width: 90px; }

    /* Grids */
    .video-grid,
    .grid-3 { grid-template-columns: 1fr; gap: 40px; }

    .grid-4,
    .grid-2,
    .media-grid { grid-template-columns: 1fr; }
}

/* ── Contact Form (Contact Form 7) ─────────────────────────────────────── */
.wpcf7-form p { margin-bottom: 20px; }

.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-grey);
    margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-soft-grey);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--white);
    transition: border-color 0.2s ease;
    outline: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--brand-blue);
}

.wpcf7-form textarea { min-height: 150px; resize: vertical; }

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-block;
    padding: 14px 40px;
    background: var(--brand-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover { opacity: 0.85; }

.wpcf7-not-valid-tip {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.wpcf7-form .wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    border: none;
}

.wpcf7-form.sent .wpcf7-response-output {
    background: #e8f5e9;
    color: #2e7d32;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: #fdecea;
    color: #c0392b;
}

/* ── Vacancy Cards ──────────────────────────────────────────────────────── */
.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vacancy-item {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.2s ease;
}

.vacancy-item:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }

.vacancy-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    cursor: pointer;
    list-style: none;
    gap: 20px;
}

.vacancy-summary::-webkit-details-marker { display: none; }

.vacancy-summary-info { flex-grow: 1; }

.vacancy-title {
    color: var(--brand-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.vacancy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vacancy-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-grey);
    color: var(--brand-grey);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.vacancy-tag svg { flex-shrink: 0; }

.vacancy-chevron .chevron-icon {
    color: var(--brand-blue);
    transition: transform 0.3s ease;
}

.vacancy-item[open] .chevron-icon { transform: rotate(180deg); }

.vacancy-body {
    padding: 25px 30px 30px;
    border-top: 1px solid var(--bg-soft-grey);
}

.vacancy-body .text-body { margin-bottom: 25px; }

.vacancy-body p { margin-bottom: 0.8em; }
.vacancy-body p:last-of-type { margin-bottom: 0; }
.vacancy-body ul,
.vacancy-body ol { padding-left: 1.5em; margin-bottom: 0.8em; }
.vacancy-body li { margin-bottom: 0.3em; }
.vacancy-body h2,
.vacancy-body h3,
.vacancy-body h4 { margin-top: 1.2em; margin-bottom: 0.4em; }

.vacancy-item--highlight .vacancy-summary {
    background: var(--brand-blue);
}

.vacancy-item--highlight .vacancy-title {
    color: var(--white);
}

.vacancy-item--highlight .vacancy-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.vacancy-item--highlight .staff-chevron .chevron-icon {
    color: var(--white);
}

@media (max-width: 600px) {
    .vacancy-summary { padding: 18px 20px; }
    .vacancy-body { padding: 20px; }
}

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-number--star {
    font-size: 1rem;
    background: var(--white);
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.timeline-line {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: var(--brand-blue);
    opacity: 0.25;
    margin: 4px 0;
}

.timeline-step--final .timeline-marker {
    justify-content: flex-start;
}

.timeline-card {
    flex: 1;
    margin-bottom: 24px;
}

.timeline-badge {
    display: block;
    margin-top: 14px;
    font-style: italic;
    opacity: 0.75;
    font-size: 0.9rem;
}

@media (max-width: 560px) {
    .timeline-step { gap: 14px; }
    .timeline-number { width: 36px; height: 36px; font-size: 1rem; }
}

/* ── Who Can Foster List ────────────────────────────────────────────────── */
.who-can-foster-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}

.who-can-foster-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wcf-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--brand-blue);
    margin-top: 1px;
}

.who-can-foster-list div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.who-can-foster-list strong {
    font-size: 0.95rem;
    color: var(--brand-grey);
    line-height: 1.3;
}

.who-can-foster-list span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .who-can-foster-list {
        grid-template-columns: 1fr;
    }
}

/* ── What Sets Us Apart ─────────────────────────────────────────────────── */
.sets-apart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.sets-apart-feature {
    flex-direction: column;
    gap: 0;
}

.sets-apart-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sets-apart-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.sets-apart-card__head h3 {
    margin-bottom: 0;
}

.icon-sm {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-sm svg {
    width: 20px;
    height: 20px;
    stroke: var(--brand-blue);
}

.sets-apart-feature .icon-sm {
    background: rgba(255, 255, 255, 0.2);
}

.sets-apart-feature .icon-sm svg {
    stroke: #fff;
}

.sets-apart-stats {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.sets-apart-stats__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sets-apart-stats__value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 8px 0;
}

.sets-apart-stats__sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.sets-apart-referral {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 20px;
}

.sets-apart-referral p {
    font-size: 0.9rem;
    color: var(--brand-grey);
    line-height: 1.5;
    margin: 0;
}

.check-list--white .check-icon {
    color: rgba(255, 255, 255, 0.85);
}

.check-list--white li {
    color: rgba(255, 255, 255, 0.9);
}

.sets-apart-agency__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
}

.sets-apart-agency__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--brand-grey);
}

@media (max-width: 768px) {
    .sets-apart-grid {
        grid-template-columns: 1fr;
    }
    .sets-apart-agency__list {
        grid-template-columns: 1fr;
    }
}

/* ── Transfer Timeline ──────────────────────────────────────────────────── */
.transfer-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-step {
    flex: 1;
    background: var(--light-grey);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.transfer-step--final {
    background: var(--brand-blue);
}

.transfer-step__week {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.transfer-step--final .transfer-step__week {
    color: rgba(255,255,255,0.8);
}

.transfer-step__desc {
    font-size: 0.95rem;
    color: var(--brand-grey);
    line-height: 1.4;
}

.transfer-step--final .transfer-step__desc {
    color: #fff;
    font-weight: 600;
}

.transfer-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .transfer-timeline {
        flex-direction: column;
    }
    .transfer-timeline .transfer-step {
        width: 100%;
    }
    .transfer-arrow svg {
        transform: rotate(90deg);
    }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
    background: var(--light-grey);
    padding: 12px 0;
    border-bottom: 1px solid #e2e6ea;
}

.breadcrumb ol {
    list-style: none;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 6px;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb li a {
    color: var(--brand-blue);
    text-decoration: none;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb__current span {
    color: var(--text-muted);
}

/* ── Carer Quotes ───────────────────────────────────────────────────────── */
.carer-quote {
    background: var(--light-grey);
    border-left: 4px solid var(--brand-blue);
    border-radius: 0 12px 12px 0;
    padding: 32px;
}

.carer-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--brand-grey);
    margin: 0 0 20px 0;
}

.carer-quote cite {
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--brand-blue);
}

/* ── Generic Page / Post Content ────────────────────────────────────────── */
.generic-content {
    padding: 40px 0 80px;
}

.generic-content .entry-header {
    margin-bottom: 40px;
}

.generic-content .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-grey);
    margin-bottom: 8px;
    line-height: 1.2;
}

.generic-content .entry-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light-grey);
}

.generic-content .entry-content p,
.generic-content .entry-content > div {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.2em;
}

.generic-content .entry-content > div > div {
    margin-bottom: 1.2em;
}

.generic-content .entry-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-grey);
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.generic-content .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-grey);
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

.generic-content .entry-content ul,
.generic-content .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.generic-content .entry-content li {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.4em;
}

.generic-content .entry-content a {
    color: var(--brand-blue);
    text-decoration: underline;
}

.generic-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.generic-content .entry-content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.generic-content .entry-content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.generic-content .entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.generic-content .entry-content .alignnone {
    float: none;
}

.generic-content .entry-content .alignleft,
.generic-content .entry-content .alignright {
    max-width: 50%;
}

.generic-content .entry-content blockquote {
    border-left: 4px solid var(--brand-blue);
    margin: 1.5em 0;
    padding: 16px 24px;
    background: var(--light-grey);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--brand-grey);
}

/* ── Page hero left-alignment (overrides WP block editor inline styles) ─── */
.existing-foster-carers-page .home-content-section *,
.new-foster-carers-page .home-content-section * {
    text-align: left !important;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: start;
}

.faq-item {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-video__embed {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 vertical */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .faq-split {
        grid-template-columns: 1fr;
    }
    .faq-video {
        max-width: 360px;
        margin: 0 auto;
    }
}

/* ── Policy Archive ─────────────────────────────────────────────────────── */
.policy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.policy-item__info {
    flex: 1;
    min-width: 0;
}

.policy-item__title {
    font-size: 1rem;
    margin: 0 0 4px;
}

.policy-item__desc {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

@media (max-width: 560px) {
    .policy-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Media Grid Modifiers ────────────────────────────────────────────────── */
.media-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .media-grid--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .media-grid--3col { grid-template-columns: 1fr; }
}

.who-we-support-list {
    columns: 2;
    column-gap: 40px;
}

@media (max-width: 560px) {
    .who-we-support-list { columns: 1; }
}

.media-grid--static .media-card-link:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ── Impact Flow ─────────────────────────────────────────────────────────── */
.impact-flow {
    display: flex;
    align-items: center;
    gap: 0;
}

.impact-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 40px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.impact-step h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--brand-grey);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 16px;
}

.impact-arrow {
    flex-shrink: 0;
    padding: 0 12px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .impact-flow {
        flex-direction: column;
    }
    .impact-arrow svg {
        transform: rotate(90deg);
    }
}

.impact-io {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.impact-io__panel {
    flex: 1;
    flex-direction: column;
}

.impact-io__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.impact-io__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .impact-io {
        flex-direction: column;
    }
    .impact-io__arrow {
        justify-content: center;
    }
    .impact-io__arrow svg {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .hero-featured-image {
        display: none;
    }
}

/* ── Gravity Forms ───────────────────────────────────────────────────────── */
/* Prefix with .gform_legacy_markup_wrapper for specificity over GF's own sheet */

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

.gform_legacy_markup_wrapper {
    font-family: var(--font-heading) !important;
    color: var(--text-color);
}

/* Hide empty heading block */
.gform_legacy_markup_wrapper .gform_heading:empty,
.gform_legacy_markup_wrapper .gform_description:empty {
    display: none;
}

/* Hide honeypot field */
.gform_validation_container,
.gfield--type-honeypot {
    display: none !important;
}

/* Field list */
.gform_legacy_markup_wrapper .gform_fields {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each field */
.gform_legacy_markup_wrapper .gfield {
    margin: 0;
    padding: 0;
}

/* Labels */
.gform_legacy_markup_wrapper .gfield_label,
.gform_legacy_markup_wrapper .gform-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-grey);
    margin-bottom: 6px;
}

.gform_legacy_markup_wrapper .hidden_label .gfield_label,
.gform_legacy_markup_wrapper .hidden_label .gform-field-label {
    display: none;
}

.gform_legacy_markup_wrapper .gfield_required {
    color: var(--brand-blue);
    margin-left: 2px;
}

/* Inputs, selects, textarea */
.gform_legacy_markup_wrapper input[type="text"],
.gform_legacy_markup_wrapper input[type="email"],
.gform_legacy_markup_wrapper input[type="tel"],
.gform_legacy_markup_wrapper input[type="url"],
.gform_legacy_markup_wrapper input[type="number"],
.gform_legacy_markup_wrapper select,
.gform_legacy_markup_wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    color: var(--text-color) !important;
    background: var(--white) !important;
    border: 1.5px solid #d0d5dd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    margin: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.gform_legacy_markup_wrapper input[type="text"]:focus,
.gform_legacy_markup_wrapper input[type="email"]:focus,
.gform_legacy_markup_wrapper input[type="tel"]:focus,
.gform_legacy_markup_wrapper input[type="url"]:focus,
.gform_legacy_markup_wrapper input[type="number"]:focus,
.gform_legacy_markup_wrapper select:focus,
.gform_legacy_markup_wrapper textarea:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15) !important;
    outline: none !important;
}

.gform_legacy_markup_wrapper input::placeholder,
.gform_legacy_markup_wrapper textarea::placeholder {
    color: #aab0b8 !important;
    font-weight: 400;
    opacity: 1;
}

/* Select — custom arrow */
.gform_legacy_markup_wrapper .ginput_container_select {
    position: relative;
}

.gform_legacy_markup_wrapper .ginput_container_select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--brand-grey);
    pointer-events: none;
}

.gform_legacy_markup_wrapper .ginput_container_select select {
    padding-right: 40px !important;
    cursor: pointer;
}

/* Textarea */
.gform_legacy_markup_wrapper textarea {
    resize: vertical;
    min-height: 140px !important;
    line-height: 1.6 !important;
}

/* Validation error state */
.gform_legacy_markup_wrapper .gfield_error input,
.gform_legacy_markup_wrapper .gfield_error select,
.gform_legacy_markup_wrapper .gfield_error textarea {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
}

.gform_legacy_markup_wrapper .gfield_description.validation_message {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #c0392b;
    font-weight: 500;
}

/* Form-level validation error banner */
.gform_legacy_markup_wrapper .gform_validation_errors,
.gform_legacy_markup_wrapper .validation_error {
    background: #fdecea;
    border: 1.5px solid #c0392b;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #c0392b;
    font-size: 0.95rem;
    font-weight: 500;
}

.gform_legacy_markup_wrapper .gform_validation_errors h2,
.gform_legacy_markup_wrapper .validation_error h2 {
    font-size: 1rem;
    margin: 0;
    color: #c0392b;
}

/* Submit button — matches .btn */
.gform_legacy_markup_wrapper .gform_footer {
    margin-top: 8px;
    padding: 0;
}

.gform_legacy_markup_wrapper .gform_button,
.gform_legacy_markup_wrapper input[type="submit"] {
    display: inline-block !important;
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.gform_legacy_markup_wrapper .gform_button:hover,
.gform_legacy_markup_wrapper input[type="submit"]:hover {
    background-color: var(--brand-grey) !important;
    color: var(--white) !important;
}

/* Confirmation / success message */
.gform_confirmation_wrapper .gform_confirmation_message {
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    border-radius: 8px;
    padding: 24px 28px;
    color: #2e7d32;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* reCAPTCHA field — let it breathe */
.gform_legacy_markup_wrapper .gfield--type-gf_no_captcha_recaptcha,
.gform_legacy_markup_wrapper .gfield--type-captcha {
    margin-top: 4px;
}
