/*
Theme Name: Andrusida Care
Theme URI: https://andrusida.care
Author: Antigravity
Description: A modern, trustworthy theme inspired by Senior Stay Steward. Features Playfair Display, Inter, and a clean Red/Slate palette.
Version: 5.0.0
Text Domain: andrusida-care
*/

* {
    box-sizing: border-box;
}

:root {
    /* EXACT Color Palette from Lovable */
    --color-primary: #e21212;
    /* Vibrant Red - CTA buttons, icons */
    --color-primary-hover: #c50f0f;
    --color-primary-light: rgba(226, 18, 18, 0.1);
    /* 10% red for card backgrounds */
    --color-background: #f8fafc;
    /* Light greyish-blue sections */
    --color-surface: #ffffff;
    /* White */
    --color-text-heading: #344256;
    /* NAVY - for all headings */
    --color-text-body: #64748b;
    /* Slate - for body/description text */
    --color-text-main: #344256;
    /* Navy for main text */
    --color-text-description: #64748b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-footer-bg: #344256;
    /* Navy footer */

    /* Typography - EXACT from Lovable */
    --font-heading: "Playfair Display", serif;
    --font-body: "Inter", sans-serif;

    /* Spacing & Layout - EXACT from Lovable */
    --container-width: 1280px;
    --radius-button: 10px;
    --radius-card: 12px;
    --section-padding: 100px;
    /* NO SHADOWS on cards - use subtle background tints instead */
}

body {
    background-color: var(--color-background);
    color: var(--color-text-body);
    /* Slate gray for body text */
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.625;
    /* EXACT from Lovable - breathing room */
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    /* Navy #344256 */
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
    /* Tighter for headings */
}

/* EXACT Lovable Typography Sizes */
h1 {
    font-size: 72px;
    line-height: 1.2;
    /* Hero heading size - improved readability */
}

h2 {
    font-size: 48px;
    /* Section heading size */
}

h3 {
    font-size: 28px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-description);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Forms (Global) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--color-surface);
    margin-bottom: 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(226, 18, 18, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-main);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. Components */

/* Buttons - EXACT from Lovable */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    /* Refined smaller buttons for elegance */
    border-radius: var(--radius-button);
    font-weight: 500;
    font-size: 16px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    /* NO shadow on buttons in Lovable */
}

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    /* Red border, not gray */
    color: var(--color-text-heading);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    /* 10% red tint */
}

/* Cards - With subtle shadow for depth */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    border: none;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-tinted {
    background: var(--color-primary-light);
    box-shadow: none;
}

/* 3. Header */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Dropdown Menu */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 200;
    flex-direction: column;
    gap: 0;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    display: block;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text-main);
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.main-navigation .sub-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: relative;
}

/* Mobile menu toggle visibility */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }
}

/* CTA Buttons Group */
.header-ctas {
    display: flex;
    gap: 12px;
}

/* Contact CTA lives in hamburger menu on mobile; header button is desktop-only */
.main-navigation .menu-item-cta {
    display: none;
}

@media (max-width: 768px) {
    .header-ctas {
        display: none;
    }

    .main-navigation .menu-item-cta {
        display: block;
        border-bottom: none;
        padding-top: 16px;
        margin-top: 8px;
    }

    .main-navigation .menu-item-cta .btn,
    .main-navigation .menu-item-cta .btn:hover {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 24px;
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        background-color: var(--color-primary);
        text-decoration: none;
    }

    .main-navigation .menu-item-cta .btn:hover {
        background-color: var(--color-primary-hover);
        color: #fff;
    }

    .main-navigation .menu-item-cta .btn svg {
        margin-right: 8px;
        flex-shrink: 0;
        stroke: currentColor;
    }
}

/* 4. Footer - EXACT from Lovable (Navy background) */
.site-footer {
    background-color: var(--color-footer-bg);
    /* Navy #344256 */
    color: #fff;
    padding: 80px 0 32px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 24px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent white */
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. Utility Typography */
.text-lead {
    font-size: 18px;
    color: var(--color-text-description);
    line-height: 1.8;
}

.text-sm {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* =========================================
   Homepage Specific Styles (Lovable Layout)
   ========================================= */

/* =========================================
   Hero Section Styles (Modern & Professional)
   ========================================= */

/* 1. Global Hero (Used on internal pages) */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: var(--color-background);
    overflow: hidden;
    text-align: center;
}

/* 2. Homepage Hero (Premium Look) */
.home .hero-section {
    padding: 160px 0 120px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    min-height: 85vh;
    text-align: left;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.9) 40%, 
        rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 680px;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--color-text-heading);
}

.hero-content h1 em {
    color: var(--color-primary);
    font-style: italic;
}

.hero-content .text-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-description);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.home .hero-buttons {
    justify-content: flex-start;
}

.hero-section .section-header {
    max-width: 850px;
    margin-bottom: 0;
}

.hero-section .text-lead {
    margin-left: auto;
    margin-right: auto;
}

.hero-stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.hero-stat-value, .hero-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 20px;
}

.hero-stat-icon {
    background: #fef2f2;
    color: var(--color-primary);
}

.hero-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
    line-height: 1.2;
}

.hero-visual-placeholder {
    height: 100%;
}

.badge-pill {
    display: inline-block;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

/* Services Section */
.services-section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: stretch;
    width: 100%;
}

/* Fix for auto-fill and auto-fit grids to prevent overlapping */
.services-grid[style*="auto-fill"],
.services-grid[style*="auto-fit"],
.feature-grid[style*="auto-fill"],
.feature-grid[style*="auto-fit"] {
    gap: 32px;
    width: 100%;
}

.services-grid[style*="auto-fill"] > *,
.services-grid[style*="auto-fit"] > *,
.feature-grid[style*="auto-fill"] > *,
.feature-grid[style*="auto-fit"] > * {
    min-width: 0;
    box-sizing: border-box;
}

.services-grid .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.services-grid .service-card .feature-list {
    flex-grow: 1;
}

.services-grid .service-card .btn {
    margin-top: auto;
}

.service-card-full {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 32px 40px;
    width: 100%;
}

.service-card-full .icon-box {
    flex-shrink: 0;
}

.service-card-full h3 {
    margin-bottom: 8px;
}

.service-card-full .text-sm {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .service-card-full {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .service-card-full .btn {
        margin-left: 0 !important;
        margin-top: 16px;
        width: 100%;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact page styles */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 20px;
    box-sizing: border-box;
}

.contact-form-wrapper {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 20px;
    box-sizing: border-box;
}

.contact-info-card h3,
.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 0 24px 0;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #fef2f2;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 24px;
}

.link-arrow {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Value Section */
.value-section {
    background-color: #f1f5f9;
    /* Slate 100 */
    padding: 96px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 32px;
}

.feature-list li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-description);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.feature-stat-card {
    text-align: center;
    border: none;
    padding: 48px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 700;
}

/* =========================================
   Inner Pages (page.php)
   ========================================= */

.page-header {
    background-color: var(--color-surface);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 64px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 0;
}

.page-content {
    margin-bottom: 96px;
}

.page-feature-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-card);
}

/* Typography Prose (Rich Text Content) */
.typography-prose {
    max-width: 800px;
    margin: 0 auto;
    /* Center content for better readability */
}

.typography-prose h2 {
    margin-top: 48px;
    font-size: 32px;
}

.typography-prose h3 {
    margin-top: 32px;
    font-size: 24px;
}

.typography-prose ul,
.typography-prose ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--color-text-description);
}

.typography-prose li {
    margin-bottom: 8px;
}

/* =========================================
   ELEMENTOR OVERRIDES (Force Lovable Design)
   ========================================= */

/* Global Elementor Body & Sections */
.elementor-page,
.elementor {
    font-family: var(--font-body) !important;
    color: var(--color-text-main) !important;
}

.elementor-section {
    padding: 64px 0 !important;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px !important;
}

/* Elementor Headings - EXACT from Lovable */
.elementor-heading-title {
    font-family: var(--font-heading) !important;
    color: var(--color-text-heading) !important;
    /* Navy #344256 */
    line-height: 1.1 !important;
}

.elementor-widget-heading h1.elementor-heading-title {
    font-size: 72px !important;
    /* EXACT from Lovable */
}

.elementor-widget-heading h2.elementor-heading-title {
    font-size: 48px !important;
    /* EXACT from Lovable */
    margin-bottom: 24px !important;
}

.elementor-widget-heading h3.elementor-heading-title {
    font-size: 28px !important;
}

/* Elementor Text/Paragraphs */
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--color-text-description) !important;
}

/* Elementor Buttons - EXACT from Lovable */
.elementor-button {
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    /* EXACT from Lovable */
    border-radius: 10px !important;
    padding: 24px 32px !important;
    /* EXACT from Lovable - larger buttons */
    transition: all 0.2s ease !important;
}

.elementor-button-wrapper .elementor-button {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    /* NO shadow on buttons in Lovable */
}

.elementor-button-wrapper .elementor-button:hover {
    background-color: var(--color-primary-hover) !important;
}

/* Secondary/Outline Buttons */
.elementor-button.elementor-button-link,
.elementor-button[style*="background-color: transparent"] {
    background-color: transparent !important;
    border: 1px solid var(--color-primary) !important;
    /* Red border */
    color: var(--color-text-heading) !important;
}

/* Elementor Icons */
.elementor-icon {
    color: var(--color-primary) !important;
}

.elementor-icon-box-icon {
    margin-bottom: 16px !important;
}

.elementor-icon-box-icon i,
.elementor-icon-box-icon svg {
    color: var(--color-primary) !important;
    fill: var(--color-primary) !important;
}

/* Elementor Icon Boxes / Feature Cards - EXACT from Lovable (NO shadows, use tint) */
.elementor-widget-icon-box .elementor-icon-box-wrapper {
    background: var(--color-primary-light) !important;
    /* 10% red tint */
    border: none !important;
    border-radius: 12px !important;
    padding: 32px !important;
    transition: all 0.3s ease !important;
}

.elementor-widget-icon-box .elementor-icon-box-wrapper:hover {
    transform: translateY(-2px) !important;
}

.elementor-icon-box-title {
    font-family: var(--font-heading) !important;
    color: var(--color-text-heading) !important;
}

.elementor-icon-box-description {
    color: var(--color-text-body) !important;
}

/* Elementor Images - NO shadows in Lovable */
.elementor-widget-image img {
    border-radius: 16px !important;
}

/* Elementor Dividers */
.elementor-divider-separator {
    border-color: var(--color-border) !important;
}

/* Elementor Accordion */
.elementor-accordion .elementor-accordion-item {
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    overflow: hidden;
}

.elementor-accordion .elementor-tab-title {
    background-color: var(--color-surface) !important;
    font-family: var(--font-heading) !important;
    color: var(--color-text-main) !important;
    padding: 20px 24px !important;
}

.elementor-accordion .elementor-tab-title.elementor-active {
    background-color: #fef2f2 !important;
    color: var(--color-primary) !important;
}

.elementor-accordion .elementor-tab-content {
    padding: 24px !important;
    color: var(--color-text-description) !important;
}

/* Elementor Forms */
.elementor-form .elementor-field-group input,
.elementor-form .elementor-field-group textarea {
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-family: var(--font-body) !important;
}

.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(226, 18, 18, 0.1) !important;
    outline: none !important;
}

.elementor-form button[type="submit"] {
    background-color: var(--color-primary) !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
}

/* Elementor Testimonials */
.elementor-testimonial-wrapper {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 16px !important;
    padding: 32px !important;
}

.elementor-testimonial-content {
    font-style: italic !important;
    color: var(--color-text-description) !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
}

/* Link Colors */
.elementor a:not(.elementor-button) {
    color: var(--color-primary) !important;
}

.elementor a:not(.elementor-button):hover {
    color: var(--color-primary-hover) !important;
}

/* Remove Elementor's default blue accent */
.elementor-widget-heading .elementor-heading-title a,
.elementor-widget *[style*="color: #007bff"],
.elementor-widget *[style*="color:#007bff"],
.elementor-widget *[style*="color: blue"],
.elementor-widget *[style*="color:blue"] {
    color: var(--color-primary) !important;
}

/* Background Sections with Slate */
.elementor-section[data-settings*="background"] {
    border-radius: 0 !important;
}

/* Hero-style sections */
.elementor-section.elementor-section-height-full {
    min-height: 70vh !important;
}

/* Call to Action Widgets */
.elementor-cta {
    border-radius: 16px !important;
    overflow: hidden !important;
}

.elementor-cta__bg-overlay {
    background: linear-gradient(
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.5)
    ) !important;
}

/* =========================================
   NEW: Statistics Section
   ========================================= */
.stats-section {
    padding: 80px 0;
    background-color: var(--color-surface);
}

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

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 16px;
    color: var(--color-text-description);
}

/* =========================================
   NEW: Testimonials Section
   ========================================= */
.testimonials-section {
    padding: 96px 0;
    background-color: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: stretch;
}

.testimonial-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-description);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* =========================================
   Founder Section (About Page)
   ========================================= */
.founder-section {
    padding: 0;
}

.founder-image {
    margin-bottom: 48px;
}

.founder-quote {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 auto 32px;
    padding: 0 20px;
    max-width: 700px;
    position: relative;
}

.founder-quote > span:first-of-type {
    font-size: 72px;
    line-height: 0;
    color: var(--color-primary-light);
    position: absolute;
    left: -20px;
    top: -10px;
    font-family: Georgia, serif;
    z-index: 0;
}

.founder-quote > span:last-of-type {
    font-size: 72px;
    line-height: 0;
    color: var(--color-primary-light);
    position: absolute;
    right: -20px;
    bottom: -50px;
    font-family: Georgia, serif;
    z-index: 0;
}

.founder-quote > span:nth-of-type(2) {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 30px;
}

.founder-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 8px;
}

.founder-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-description);
    margin-bottom: 32px;
}

.founder-credentials {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .founder-quote {
        font-size: 22px !important;
        padding: 0 15px !important;
    }

    .founder-quote > span:first-of-type {
        font-size: 56px !important;
        left: -10px !important;
        top: -5px !important;
    }

    .founder-quote > span:last-of-type {
        font-size: 56px !important;
        right: -10px !important;
        bottom: -40px !important;
    }

    .founder-quote > span:nth-of-type(2) {
        padding: 0 20px !important;
    }

    .founder-image img,
    .founder-image div {
        width: 160px !important;
        height: 160px !important;
    }

    .founder-name {
        font-size: 20px;
    }

    .founder-title {
        font-size: 14px;
    }

    .founder-credentials {
        padding-top: 24px;
    }

    .founder-credentials p {
        font-size: 14px;
    }
}

/* =========================================
   NEW: CTA Banner Section
   ========================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c50f0f 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-banner .btn {
    background-color: #fff;
    color: var(--color-primary);
}

.cta-banner .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   Regulators Section
   ========================================= */
.regulators-section {
    padding: var(--section-padding) 0;
    background: var(--color-background);
}

.regulators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.regulator-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 40px;
}

.regulator-header {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.regulator-logo {
    display: block;
    width: auto;
    max-width: 220px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
}

.regulator-header h3 {
    font-size: 28px;
    margin-bottom: 4px;
}

.regulator-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.regulator-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.regulator-locations {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.regulator-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.regulator-location-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: 15px;
}

.regulator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.regulator-dot--pending {
    background-color: #94a3b8;
}

.regulator-dot--requires {
    background-color: #f59e0b;
}

.regulator-dot--good {
    background-color: #16a34a;
}

.regulator-rating {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.regulator-rating--pending {
    background: #f1f5f9;
    color: #64748b;
}

.regulator-rating--requires {
    background: #fef3c7;
    color: #92400e;
}

.regulator-rating--good {
    background: #dcfce7;
    color: #166534;
}

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

    .regulator-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================
   NEW: Benefits Grid (For Careers)
   ========================================= */
.benefits-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: stretch;
}

.benefit-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 32px;
    text-align: center;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

/* =========================================
   NEW: Job Listings (For Careers)
   ========================================= */
.job-listing {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 24px 32px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.job-info h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.job-info span {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    /* Container padding for tablet */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Grid layouts - two columns */
    .hero-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }

    .home .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }

    .home .hero-content {
        margin: 0 auto;
    }

    .home .hero-stats-row {
        justify-content: center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(255, 255, 255, 0.9) 100%);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual-placeholder {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        width: 100%;
    }

    /* Fix auto-fill/auto-fit grids on tablet */
    .services-grid[style*="auto-fill"],
    .services-grid[style*="auto-fit"],
    .feature-grid[style*="auto-fill"],
    .feature-grid[style*="auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Section spacing for tablet */
    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    /* Typography adjustments */
    h1,
    .hero-content h1 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-content h1 br {
        display: none;
    }

    .text-lead,
    .hero-content .text-lead {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 32px;
    }

    h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    h3 {
        font-size: 24px;
    }

    /* Container padding for mobile */
    .container {
        padding-left: 24px;
        padding-right: 24px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Section spacing for mobile */
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }

    .home .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-grid {
        display: block;
        width: 100%;
    }

    .hero-content,
    .section-header {
        margin: 0 auto;
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 32px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: none;
    }

    .hero-stats-row {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
        margin-top: 40px;
    }

    .hero-stat-card {
        width: auto;
        max-width: 100%;
        min-width: min(100%, 260px);
        justify-content: flex-start;
        padding: 12px 20px;
        background: #fff;
    }

    .hero-stat-label {
        text-align: left;
    }

    .services-section,
    .stats-section,
    .testimonials-section,
    .benefits-section,
    .value-section {
        padding: 60px 0;
    }

    .page-header {
        padding: 48px 0 32px;
        margin-bottom: 48px;
    }

    .cta-banner {
        padding: 60px 0;
    }

    /* Grid layouts - single column */
    .services-grid,
    .stats-grid,
    .testimonials-grid,
    .benefits-grid,
    .contact-grid,
    .footer-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Override tablet !important 2-col rule for inline auto-fit/fill grids */
    .services-grid[style*="auto-fill"],
    .services-grid[style*="auto-fit"],
    .feature-grid[style*="auto-fill"],
    .feature-grid[style*="auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .value-section .feature-grid .card {
        padding: 24px !important;
    }

    .value-section .feature-grid .feature-list {
        margin-top: 20px;
    }

    .value-section .feature-grid .feature-list li {
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .contact-info-card,
    .contact-form-wrapper {
        padding: 32px;
    }

    .mobile-menu-toggle {
        z-index: 101;
    }

    /* Mobile navigation */
    .main-navigation {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 24px;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin-left: 16px;
        margin-top: 8px;
        min-width: auto;
    }

    .main-navigation .sub-menu li {
        border-bottom: none;
    }

    .main-navigation .sub-menu a {
        padding: 12px 0;
        font-size: 14px;
        color: var(--color-text-description);
    }

    /* Hamburger animation - transform to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        position: absolute;
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        position: absolute;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Cards and components */
    .service-card,
    .benefit-card,
    .testimonial-card,
    .card {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .card {
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Feature grid spacing */
    .feature-content {
        margin-bottom: 32px;
    }

    .feature-stat-card {
        margin-top: 0;
    }

    /* Trust row spacing */
    .trust-row {
        flex-direction: column;
        gap: 16px;
        margin-top: 32px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 32px;
    }

    /* Text adjustments */
    .text-lead {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Footer adjustments */
    .site-footer {
        padding: 60px 0 24px;
    }

    .footer-grid {
        margin-bottom: 48px;
    }
}

/* Contact Page Specific */
.contact-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.contact-main-section,
.dom-highlights-section,
.sup-main-section,
.dom-support-section,
.sup-support-section {
    padding: 100px 0;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.dom-services-section,
.sup-features-section {
    padding: 100px 0;
    background: var(--color-background);
}

.contact-mission-grid,
.mission-grid-alt {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.mission-grid-reverse {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.contact-form-wrapper {
    background: var(--color-background);
    padding: 64px;
    border-radius: 32px;
    border: 1px solid var(--color-border);
}

.contact-details h2 {
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    gap: 40px;
}

.contact-method-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.contact-method-icon {
    background: var(--color-primary-light);
    color: var(--color-primary);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .contact-main-section,
    .dom-highlights-section,
    .sup-main-section,
    .dom-support-section,
    .sup-support-section,
    .dom-services-section,
    .sup-features-section {
        padding: 80px 0;
    }
    
    .contact-mission-grid,
    .mission-grid-alt,
    .mission-grid-reverse {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-form-wrapper {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .contact-main-section,
    .dom-highlights-section,
    .sup-main-section,
    .dom-support-section,
    .sup-support-section,
    .dom-services-section,
    .sup-features-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .contact-details h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .contact-methods {
        gap: 32px;
    }

    .contact-method-item {
        gap: 16px;
    }

    .contact-method-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }
}

.contact-faq-section {
    padding: 100px 0;
    background: var(--color-background);
}

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

@media (max-width: 768px) {
    .contact-faq-section {
        padding: 60px 0;
    }
}

/* Children's Home Specific Components */
.ofsted-badge-section {
    padding: 64px 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.ofsted-badge-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #c50f0f 100%);
    color: #fff;
    padding: 32px 64px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(226, 18, 18, 0.2);
    max-width: 600px;
    width: 100%;
}

.ofsted-badge-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 600;
}

.ofsted-badge-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ofsted-badge-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.child-services-grid {
    padding: 96px 0;
    background: var(--color-surface);
}

.gallery-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-card-content {
    padding: 32px;
}

.life-home-section {
    padding: 96px 0;
    background: var(--color-surface);
}

.life-home-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.life-home-accent {
    background: var(--color-primary-light);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 24px;
    z-index: 0;
}

.life-home-image {
    border-radius: 24px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}

.life-home-item {
    display: flex;
    gap: 20px;
}

.life-home-icon {
    background: #fff;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ofsted-badge-card {
        padding: 32px 24px;
    }
    .ofsted-badge-title {
        font-size: 28px;
    }
    .life-home-visual {
        margin-bottom: 48px;
    }
}

/* Gallery Slider */
.gallery-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.gallery-slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

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

.gallery-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 120px 48px 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #fff;
}

.gallery-slide-caption h3 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.gallery-slide-caption p {
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-size: 19px;
    max-width: 800px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 400;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    pointer-events: auto;
    transition: all 0.3s ease;
    color: var(--color-text-heading);
}

.slider-btn:hover {
    background: #fff;
    transform: scale(1.1);
    color: var(--color-primary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .gallery-slide img {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .gallery-slide img {
        height: 400px;
    }
    .gallery-slide-caption {
        padding: 60px 24px 24px;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    }
    .gallery-slide-caption h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .gallery-slide-caption p {
        font-size: 16px;
        line-height: 1.5;
    }
    .slider-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .slider-nav {
        padding: 0 12px;
    }
}

/* Referral Process Section */
.referral-process-section {
    padding: 120px 0;
    background: var(--color-surface);
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
    margin-top: 64px;
}

.referral-step-card {
    background: #fff;
    padding: 48px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    height: 100%;
}

.referral-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.referral-step-number {
    position: absolute;
    top: -28px;
    left: 48px;
    background: var(--color-primary);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 15px 30px rgba(226, 18, 18, 0.25);
}

.referral-step-card h3 {
    margin: 16px 0 20px;
    font-size: 24px;
    color: var(--color-text-heading);
}

.referral-step-card p {
    color: var(--color-text-description);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .referral-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .referral-process-section {
        padding: 80px 0;
    }
    
    .referral-step-card {
        padding: 40px 24px 32px;
    }
    
    .referral-step-number {
        left: 24px;
        width: 48px;
        height: 48px;
        font-size: 24px;
        top: -24px;
    }
}

/* ==========================================================================
   Gravity Forms Lovable Skin
   ========================================================================== */

.gf-lovable-skin .gform_wrapper.gravity-theme {
    width: 100%;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gform_fields {
    grid-column-gap: 24px !important;
    grid-row-gap: 24px !important;
}

/* Input Fields */
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield input[type="text"],
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield input[type="email"],
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield input[type="tel"],
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield input[type="url"],
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield input[type="number"],
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield select,
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield textarea {
    background-color: var(--color-background) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    color: var(--color-text-heading) !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gfield input:focus,
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield textarea:focus,
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield select:focus {
    background-color: #ffffff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(226, 18, 18, 0.1) !important;
    outline: none !important;
}

/* Labels */
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield_label {
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    color: var(--color-text-heading) !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gfield_required {
    color: var(--color-primary) !important;
    margin-left: 4px !important;
}

/* Progress Bar */
.gf-lovable-skin .gform_wrapper.gravity-theme .gf_progressbar_wrapper {
    margin-bottom: 40px !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gf_progressbar {
    background: #f3f4f6 !important;
    height: 12px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gf_progressbar_percentage {
    background: var(--color-primary) !important;
    height: 100% !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gf_step_label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--color-text-description) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Buttons */
.gf-lovable-skin .gform_wrapper.gravity-theme .gform_button,
.gf-lovable-skin .gform_wrapper.gravity-theme .gform_next_button,
.gf-lovable-skin
    .gform_wrapper.gravity-theme
    .gform_page_footer
    input[type="button"] {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gform_button:hover,
.gf-lovable-skin .gform_wrapper.gravity-theme .gform_next_button:hover {
    background-color: #00568a !important;
    transform: translateY(-2px) !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gform_previous_button {
    background-color: transparent !important;
    color: var(--color-text-description) !important;
    border: 1px solid var(--color-border) !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gform_previous_button:hover {
    background-color: #f9fafb !important;
}

/* Modern Mission Section */
.mission-section {
    position: relative;
    padding: 120px 0;
    background: var(--color-surface);
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--color-primary-light);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mission-tag {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.mission-content h2 {
    margin-bottom: 24px;
    position: relative;
    font-size: 48px;
}

.mission-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin-top: 16px;
    border-radius: 2px;
}

.mission-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-heading);
    margin-bottom: 32px;
    font-weight: 500;
}

.values-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 20px;
}

.value-text h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--color-text-heading);
}

.value-text p {
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
    color: var(--color-text-description);
}

.mission-image-wrapper {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.mission-image-main {
    border-radius: 24px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
    display: block;
}

.mission-image-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 260px;
    background: var(--color-primary);
    color: #fff;
    padding: 32px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(226, 18, 18, 0.2);
}

.mission-accent-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.mission-accent-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .mission-grid,
    .contact-mission-grid,
    .mission-grid-alt,
    .mission-grid-reverse {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .mission-content h2 {
        font-size: 40px;
    }
    .mission-image-wrapper {
        padding-right: 20px;
        padding-bottom: 20px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mission-section {
        padding: 80px 0;
    }
    .values-list {
        grid-template-columns: 1fr;
    }
    .mission-image-accent {
        width: 220px;
        padding: 24px;
    }
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gform_page_footer {
    display: flex !important;
    gap: 16px !important;
    margin-top: 32px !important;
    border-top: 1px solid var(--color-border) !important;
    padding-top: 32px !important;
}

/* Confirmations */
.gf-lovable-skin .gform_confirmation_message {
    padding: 40px !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 16px !important;
    color: #166534 !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.gf-lovable-skin .gform_confirmation_message h2 {
    color: #15803d !important;
    margin-top: 0 !important;
}

/* File Upload */
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield_fileupload_rules,
.gf-lovable-skin .gform_wrapper.gravity-theme .gfield_description {
    font-size: 13px !important;
    color: var(--color-text-description) !important;
    margin-top: 6px !important;
}

.gf-lovable-skin .gform_wrapper.gravity-theme .gfield--type-section {
    margin-top: 40px !important;
    border-bottom: 1px solid var(--color-border) !important;
}

.gf-lovable-skin
    .gform_wrapper.gravity-theme
    .gfield--type-section
    .gfield_label {
    font-size: 20px !important;
    color: var(--color-text-heading) !important;
    margin-bottom: 16px !important;
}

.feature-photo-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    min-height: 420px;
}

.feature-photo-card img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.life-home-image {
    object-fit: cover;
    max-height: 560px;
}

.training-section {
    padding: 96px 0;
    background: var(--color-surface);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.photo-gallery-item {
    margin: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

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

.photo-gallery-item figcaption {
    padding: 16px 20px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.training-video-wrap {
    max-width: 900px;
    margin: 48px auto 0;
}

.training-video {
    width: 100%;
    border-radius: 20px;
    display: block;
    background: #000;
    max-height: 520px;
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-gallery-item img {
        height: 240px;
    }

    .feature-photo-card,
    .feature-photo-card img {
        min-height: 280px;
    }
}
