:root {
    --primary: #1e3a8a;
    --primary-hover: #172554;
    --accent: #0284c7;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Nav - One-Lane Mobile Stack */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-bold {
    color: var(--accent);
}

.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.main-nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-link, .nav-phone {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
}

.btn-nav-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

/* Single-Column Stack Defaults for Mobile */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.hero-section {
    /* Uses a premium Unsplash image of a carer and patient */
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(30, 58, 138, 0.85)), url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 4rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: left;
    color: var(--white);
}

/* Force hero text to white for perfect contrast */
.hero-section h1, 
.hero-section .hero-sub, 
.hero-section .hero-or {
    color: var(--white);
}

.hero-section .hero-or a {
    color: #bae6fd; /* Light blue link color for dark background */
}

/* Push Footer to the Bottom */
main {
    flex: 1; 
}

/* Tighter, Mobile-Friendly Headings */
h1, h2, h3 {
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* Shrinks to ~22px on mobile, caps at 40px on desktop */
h1 {
    font-size: clamp(1.4rem, 4.5vw, 2.5rem); 
}

h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

/* Add some styling to the footer so it looks intentional */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

h1 {
    /* Shrinks to a much smaller 1.3rem on mobile, caps at 2.5rem on desktop */
    font-size: clamp(1.3rem, 5vw, 2.5rem); 
}

/* Center hero content on desktop screens */
@media (min-width: 768px) {
    .hero-section {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Prevent Logo Wrapping on Mobile */
.brand-logo {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    white-space: nowrap; /* Forces logo to stay on one line */
}

/* Base button styling for the hero section */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
}


/* Desktop Expansion (768px and up) */
@media (min-width: 768px) {
    .mobile-nav-toggle {
        display: none;
    }

    .main-nav {
        display: block !important;
        position: static;
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .btn-nav-cta {
        padding: 0.6rem 1.25rem;
    }
}

/* =========================================
   HOMEPAGE SPECIFIC STYLES
   ========================================= */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(24, 37, 84, 0.05), rgba(24, 37, 84, 0.05)), url('/assets/images/hero-bg.jpg') center/cover;
    padding: 3rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: left;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.hero-or {
    font-weight: 600;
    color: var(--text-muted);
}

.hero-or a {
    color: var(--primary);
    text-decoration: none;
}

/* Trust Banner */
.trust-banner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.trust-item strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.trust-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Breakdown (Two Cards) */
.services-breakdown {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.included-services {
    background: #f0f9ff; /* Light blue tint */
    border-color: #bae6fd;
}

.excluded-services {
    background: #f8fafc;
}

.service-card h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.service-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

ul.check-list, ul.cross-list {
    list-style: none;
    margin-bottom: 2rem;
}

ul.check-list li, ul.cross-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

ul.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

ul.cross-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: bold;
}

/* Featured PA Section */
.featured-pa {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 3rem;
}

.featured-pa h2 {
    color: var(--white);
}

.featured-pa p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
}

/* =========================================
   DESKTOP EXPANSION (768px and up)
   ========================================= */
@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 3rem;
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto 2rem auto;
    }

    .hero-action {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .trust-banner {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        padding: 3rem;
    }

    .trust-item {
        align-items: center;
    }

    .services-breakdown {
        grid-template-columns: 1fr 1fr;
    }
}

/* Premium UI Upgrades */
.service-card, .trust-banner, .featured-pa {
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0369a1);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

/* Responsive Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.btn-group .btn-primary, 
.btn-group .btn-secondary {
    flex: 1 1 100%; /* Forces buttons to be full-width on mobile */
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .btn-group .btn-primary, 
    .btn-group .btn-secondary {
        flex: 0 1 auto; /* Returns to normal size side-by-side on desktop */
    }
}

/* Hero Section - Fixed Background */
.hero-section {
    background-color: var(--primary);
    background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(30, 58, 138, 0.85)), url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=1600&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 4rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: left;
    color: var(--white);
}

.hero-section h1, 
.hero-section .hero-sub, 
.hero-section .hero-or {
    color: var(--white) !important;
}

.hero-section .hero-or a {
    color: #bae6fd !important;
}