:root {
    --primary: #0d2b45; /* Reverted to Navy Blue */
    --secondary: #f58220; /* Vibrant Orange */
    --accent: #68ccd1; 
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Utilities */
.section-subtitle {
    display: block;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}

p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 130, 32, 0.4);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #0b233a;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.1);
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 15px;
}

/* Navigation */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px; /* Reduced from 35px */
    background: var(--primary);
    z-index: 1001;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px; /* Restored for content safety */
}

@media (max-width: 768px) {
    .top-nav-container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 6px 0;
    }
}

.top-left {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-right {
    display: flex;
    gap: 15px;
}

.top-right a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-right a:hover {
    color: var(--secondary);
}

.navbar {
    position: fixed;
    top: 30px; /* Aligned with slimmer top-bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0; /* Proper height for navbar */
    background: var(--primary);
    transition: 
        top 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        left 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        padding 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        background 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-radius 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled {
    top: 50px;
    left: 4%;
    width: 92%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 5px 20px; /* Internal content breathing room for pill only */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Hero Carousel */
.hero {
    position: relative;
    height: calc(100vh - 90px); /* Adjusted for slimmer header (30 + 60) */
    min-height: 600px;
    margin-top: 90px;
    overflow: hidden;
    color: var(--white);
    background-color: var(--primary); 
    transition: margin-top 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero.scrolled {
    margin-top: 30px; /* tucks below top-bar */
    height: calc(100vh - 30px);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0; 
    transform: translateX(100%); /* Start outside right, GPU accelerated */
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1), visibility 1.2s; /* Targeted smooth curve */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center; /* Vertical center alignment */
    justify-content: flex-start; /* Aligned to the left */
    z-index: 1;
}

.hero-container {
    max-width: 100% !important; /* Break centering constraint */
    margin: 0 !important;
    padding-left: 80px !important; /* Professional margin from screen edge */
}

.hero-slide.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-100%); /* Slide out to the left */
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.hero-slide .hero-bg {
    z-index: -1;
    transform: scale(1.2); /* Initial scale for parallax */
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-slide .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Removed global dark overlay to keep image clear */
}

.hero-content {
    max-width: 750px; 
    padding: 50px;
    background: rgba(13, 43, 69, 0.25); /* Subtle dark glass tint */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    z-index: 10;
    margin-top: 160px; /* Positioned down with professional spacing */
    text-align: left;
}

.hero-subtitle-box {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Shifted to left */
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s ease-out 0.4s, opacity 0.8s ease-out 0.4s;
    will-change: transform, opacity;
}

.hero-slide.active .hero-subtitle-box {
    opacity: 1;
    transform: translateY(0);
}

.accent-line {
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease-out 0.6s, opacity 0.8s ease-out 0.6s;
    will-change: transform, opacity;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Readability on bright images */
    margin-left: 0;
    margin-right: auto;
}

.hero-slide.active h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 span {
    display: block;
    color: var(--white);
    font-weight: 300;
    font-family: 'Inter';
    font-size: 3.5rem;
    margin-top: 5px;
    letter-spacing: 0;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 45px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease-out 0.8s, opacity 0.8s ease-out 0.8s;
    will-change: transform, opacity;
}

.hero-slide.active p {
    opacity: 1;
    transform: translateY(0);
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease-out 1s, opacity 0.8s ease-out 1s;
    will-change: transform, opacity;
    margin-top: 10px; /* Added slight space above buttons */
}

.hero-slide.active .hero-btns {
    opacity: 1;
    transform: translateY(0);
}

/* Redesigned Premium Buttons */
.btn-hero {
    padding: 12px 40px; /* Reduced vertical height strictly for professional profile */
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-secondary-glass:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

/* Care Concierge Floating Card (Redesign) */
.care-concierge-card {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: linear-gradient(135deg, rgba(13, 43, 69, 0.98), rgba(28, 64, 94, 0.98));
    border-radius: 30px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    padding: 0; /* Handled by internal sections */
    z-index: 2500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: none; /* Initially hidden */
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Concierge card form link */
.concierge-form-link {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}
.concierge-form-link:hover {
    opacity: 0.8;
}

.reveal-card {
    display: flex !important;
    animation: conciergePopUp 1s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes conciergePopUp {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.concierge-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.concierge-logo-img {
    height: 32px;
    object-fit: contain;
    filter: brightness(1.2);
}

.concierge-content {
    padding: 25px;
}

.concierge-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.concierge-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed var(--secondary);
    transition: var(--transition);
}

.concierge-content a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.concierge-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.concierge-close:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .care-concierge-card {
        width: 280px;       /* Compact fixed width, right-aligned */
        left: auto;         /* Cancel left stretch */
        right: 15px;        /* Pinned to right edge */
        bottom: 15px;
        border-radius: 18px;
        max-width: none;
    }
    
    .concierge-header {
        padding: 8px 14px;
    }
    
    .concierge-logo-img {
        height: 22px;
    }
    
    .concierge-content {
        padding: 12px 14px;
    }
    
    .concierge-content p {
        font-size: 0.80rem;
        line-height: 1.45;
    }
    
    .concierge-close {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

/* Adjust back to top */
@media (max-width: 768px) {
    #backToTop {
        bottom: 30px; /* Moved down to standard position */
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* Restored for logo safety */
    max-width: 1250px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    min-height: 60px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
    position: relative;
    z-index: 1010;
    pointer-events: auto !important;
}

.logo:hover {
    text-decoration: none !important;
}

.header-brand-text {
    display: none;
    text-decoration: none !important;
}

.logo-img {
    height: 60px; /* Further reduced from 75px */
    transition: var(--transition);
    display: block;
    vertical-align: middle;
    margin: auto 0;
}

.navbar.scrolled .logo-img {
    height: 52px; /* Further reduced from 60px */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1010; /* Ensure links are above everything */
    pointer-events: auto !important;
}

.nav-links a {
    position: relative;
    z-index: 1011;
    pointer-events: auto !important;
    display: inline-block;
    text-decoration: none;
    color: var(--white); /* White items before scroll as requested */
    font-weight: 800; /* Bold enough to be seen */
    text-transform: uppercase; /* ALL CAPS */
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--primary); /* Switch back to brand color on scroll */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--white); /* White line before scroll */
    transition: var(--transition);
}

.navbar.scrolled .nav-links a::after {
    background-color: var(--secondary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.3);
}

.nav-cta::before {
    display: none !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-contact .phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white); /* White phone link before scroll */
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.navbar.scrolled .nav-contact .phone-link {
    color: var(--primary);
}

.nav-contact i {
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-contact i {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--secondary);
    color: var(--white);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 69, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Unified Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: var(--primary);
    color: var(--white);
    z-index: 1005; /* Always on top */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-left {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-left i {
    color: var(--secondary);
}

.top-right {
    display: flex;
    gap: 20px;
}

.top-right a {
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.top-right a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .top-bar {
        height: 32px;
        padding: 0;
    }
    .top-nav-container {
        flex-direction: row; /* Keep single line for slim profile */
        justify-content: center;
        gap: 0;
    }
    .top-left {
        font-size: 0.75rem;
        text-align: center;
        width: 100%;
        font-weight: 700;
    }
    .top-right {
        display: none; /* Professionals hide socials in mobile utility bar */
    }
    .navbar {
        top: 32px;
    }
    .navbar.scrolled {
        top: 10px;
        margin-top: 32px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    background: rgba(245, 130, 32, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.hero-btns {
    position: relative;
    z-index: 20; /* Above protection overlays */
}

.btn-hero {
    position: relative;
    z-index: 21;
}

/* Global Hero Stats (Floating) - REMOVED */

/* About Section */
.about {
    padding: 100px 0 50px; /* Reduced bottom to tighten gap with Our Standards */
    overflow: hidden;
}

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

.image-stack {
    position: relative;
    padding: 40px;
}

.img-main {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 40px rgba(13, 43, 69, 0.3);
}

.experience-badge .years {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.experience-badge .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 5px;
}

/* Modern form style */
.modern-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--primary);
}

.check-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* The Excellence Promise (Visual Redesign) */
.why-choose {
    padding: 50px 0 80px; /* Reduced top to close gap below Learn About Our Services */
    background: #fafbfc;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.promise-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(13, 43, 69, 0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.promise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.promise-img-box, .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.promise-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.promise-card:hover .promise-img-box img {
    transform: scale(1.1);
}

.promise-content {
    padding: 25px;
    text-align: center;
}

.promise-content h3 {
    font-family: 'Outfit';
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.concierge-content p {
    margin-bottom: 5px; /* Ultra-tight */
    line-height: 1.4;
}

.concierge-cta {
    margin-top: 5px; /* Ultra-tight */
    padding-top: 8px; /* Minimal separator */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.promise-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.caregivers-strip {
    background: linear-gradient(135deg, var(--primary), #1a3a5a);
    padding: 30px 20px;
    border-radius: 30px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 15px 40px rgba(13, 43, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.caregivers-strip h3 {
    font-family: 'Outfit';
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strip-items-wrapper {
    overflow: hidden;
    width: 100%;
}

.strip-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: max-content;
    margin: 0 auto;
}

.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 130px;
}

.strip-img-wrapper {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.strip-item:hover .strip-img-wrapper {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.strip-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strip-item span {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

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

@media (max-width: 900px) {
    .strip-items {
        justify-content: flex-start;
        margin: 0;
        animation: marquee 25s linear infinite;
    }

    .strip-items:hover {
        animation-play-state: paused;
    }

    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 15px)); } /* -50% plus half gap */
    }
    
    .strip-item {
        flex-shrink: 0;
        width: 120px;
    }
}

@media (max-width: 768px) {
    .promise-grid {
        grid-template-columns: 1fr;
    }
    .caregivers-strip {
        padding: 25px 15px;
        border-radius: 20px;
    }
    .caregivers-strip h3 {
        font-size: 1rem;
    }
}

/* Services Section */
.services {
    padding: 30px 0 120px; /* Tightened top — was 60px, border-radius adds visual mass */
    background-color: #f8fafc;
    border-radius: 50px 50px 0 0; /* Reduced from 100px — was creating a deep false gap above Our Expertise */
}

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

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

.service-card {
    background: var(--white);
    border-radius: 25px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Service Card List */
.card-list {
    margin-top: 15px;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-list i {
    color: var(--secondary);
    font-size: 0.85rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Banner */
.cta-banner {
    background: var(--primary);
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(245, 130, 32, 0.1);
    border-radius: 50%;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

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

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

/* Appointment Section */
.appointment {
    padding: 100px 0;
}

/* ── Pre-Appointment Banner (Have Questions + Referral) ── */
.pre-appointment-banner {
    padding: 60px 0 0;
    background: #f0f4f8;
}

.pre-apt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pre-apt-card {
    background: var(--white);
    border-radius: 28px;
    padding: 36px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(13,43,69,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pre-apt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

.pre-apt-card--referral {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5a 100%);
    border-color: transparent;
    color: var(--white);
}

.pre-apt-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary), #e0770f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(245,130,32,0.3);
    flex-shrink: 0;
}

.pre-apt-icon--referral {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pre-apt-body h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pre-apt-card--referral .pre-apt-body h3 {
    color: var(--white);
}

.pre-apt-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pre-apt-card--referral .pre-apt-body p {
    color: rgba(255,255,255,0.75);
}

.pre-apt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pre-apt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pre-apt-btn--primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(245,130,32,0.35);
}

.pre-apt-btn--primary:hover {
    background: #e07010;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245,130,32,0.45);
}

.pre-apt-btn--ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(13,43,69,0.2);
}

.pre-apt-btn--ghost:hover {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
}

.pre-apt-btn--referral {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(245,130,32,0.35);
}

.pre-apt-btn--referral:hover {
    background: #e07010;
    transform: translateY(-2px);
}

.pre-apt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    background: #f0f4f8;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pre-apt-badge--secure {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .pre-apt-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pre-apt-card {
        padding: 22px 18px;
        flex-direction: column;
        gap: 14px;
    }
    .pre-apt-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 1.1rem;
    }
    .pre-apt-body h3 { font-size: 0.95rem; }
    .pre-apt-body p { font-size: 0.82rem; margin-bottom: 14px; }
    .pre-apt-btn { padding: 9px 16px; font-size: 0.76rem; }
    .pre-appointment-banner { padding: 30px 0 0; }
}

/* ── Form Success State (full wrapper animation) ── */
.form-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 300px;
}

.success-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #1aab5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 15px 40px rgba(46,204,113,0.35);
    margin-bottom: 20px;
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(46,204,113,0.35); transform: scale(1); }
    50% { box-shadow: 0 20px 60px rgba(46,204,113,0.55); transform: scale(1.06); }
}

.form-success-state h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.form-success-state p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 300px;
}

/* ── Send Message button compact height ── */
.btn-block {
    padding: 13px 30px !important; /* Reduced from generic size */
    font-size: 0.9rem;
}

/* ── Fix hidden caregivers strip ── */
.caregivers-strip {
    display: block !important;
}

/* Contact Details Box inside appointment-text */
.contact-details-box {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary), #1c405e);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(13, 43, 69, 0.15);
}

.contact-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.detail-item i {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.3rem;
}

.detail-item h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.appointment-form-wrapper {
    background: var(--white);
    padding: 35px 40px; /* Compacted from 50px */
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 43, 69, 0.06); /* Slightly visible border to define the card */
}

.form-group {
    margin-bottom: 16px; /* Compacted from 25px */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    transition: var(--transition);
}

.form-group:focus-within label {
    color: var(--secondary);
    transform: translateX(5px);
}

input, select, textarea {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid #d8e2ec; /* Stronger, more defined border — inputs stand out */
    background: #f5f8fb;         /* Slightly tinted background — clearly distinct from white card */
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 3px rgba(0,0,0,0.03); /* Subtle lift */
}

input, select {
    padding: 11px 18px; /* Compact height while staying readable */
}

textarea {
    padding: 12px 18px;
    min-height: 90px; /* More compact default height */
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow:
        0 8px 24px rgba(245, 130, 32, 0.12),
        0 0 0 3px rgba(245, 130, 32, 0.10); /* Stronger orange glow on focus — inputs really pop */
}

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

/* Map Section */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-container {
    width: 100%;
}

/* Minimalist Footer */
.footer {
    padding: 30px 0;
    background: #091e30;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo-small {
    height: 45px;
    margin-bottom: 5px;
}

.footer-left p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-center i {
    color: var(--secondary);
    margin-right: 8px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--secondary);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.service-bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.service-bullet-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.service-bullet-list li i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.referral-cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.trust-note-sm {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-note-sm i {
    color: #2ecc71;
}

/* Footer Restore */
.footer-phone {
    font-family: 'Outfit';
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
}

.social-links-minimal {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.social-links-minimal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links-minimal a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ── Referral Page Design (Split Layout & Sticky Sidebar) ── */
.reveal-load {
    opacity: 0;
    transform: translateY(20px);
    animation: revealLoad 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes revealLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-wrap-title {
    white-space: nowrap !important;
    display: inline-block;
}

.referral-sidebar-desktop {
    display: block;
    height: 100%;
}

.mobile-only-hero {
    display: none;
}

.referral-split-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 Form, 1/3 Sidebar */
    gap: 60px; /* Generous gap for the wider layout */
    align-items: stretch;
    padding-top: 120px; /* Slightly more clearance as requested */
    padding-bottom: 100px;
    position: relative;
    max-width: 1450px; /* Widened for better screen utilization */
    margin: 0 auto !important;
}

.referral-sticky-box {
    position: sticky;
    top: 130px;
    padding: 35px;
    background: var(--primary); /* Deep Navy Blue */
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(13, 43, 69, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-actions-floater {
    margin-top: 25px;
    padding: 0 10px;
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: sticky;
    top: 520px; /* Sits below the main sticky box */
}

.referral-actions-floater.scrolled-past {
    opacity: 0.1;
    transform: translateY(15px);
    pointer-events: auto;
}

.action-divider {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.action-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #cbd5e1;
    z-index: 1;
}

.action-divider span {
    position: relative;
    z-index: 2;
    background: #f8fafc; /* Matches site bg */
    padding: 0 15px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 1.5px;
}

.action-btns-row {
    display: flex;
    gap: 15px;
}

.action-btn-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.action-btn-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.download-pill {
    background: #fff;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.action-btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

.action-btn-pill.active:hover {
    background: var(--secondary);
}

/* Mobile Minified Action Tray */
.mobile-actions-tray {
    margin-top: 20px;
    padding-top: 10px;
}

.action-divider.minified {
    margin-bottom: 12px;
}

.action-divider.minified span {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
}

.action-divider.minified::before {
    background: rgba(255, 255, 255, 0.1);
}

.action-btns-row.minified {
    gap: 8px;
}

.action-btn-pill.minified {
    padding: 8px 5px;
    font-size: 0.72rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.action-btn-pill.minified.active {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.action-btn-pill.minified.download-pill {
    border-color: var(--secondary);
    color: var(--secondary);
}

.action-btn-pill.minified i {
    font-size: 0.7rem;
}

@media (min-width: 1101px) {
    .mobile-actions-tray,
    .mobile-instruction,
    .mobile-instruction-secondary {
        display: none; /* Hide mobile tray and instructions on desktop */
    }
}

.mobile-instruction {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px;
    line-height: 1.4;
}

.mobile-instruction-secondary {
    margin-top: 35px; /* Increased space from buttons */
    padding-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-instruction-secondary span {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--secondary) !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.arrow-down-ani {
    color: var(--white);
    font-size: 0.8rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(6px);}
    60% {transform: translateY(3px);}
}

/* Sub-Actions Floater Override for better button feel */
.action-btn-pill {
    cursor: pointer;
    font-family: inherit;
}

/* Quick Submit Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 69, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--white);
    width: 95%;
    max-width: 900px;
    border-radius: 40px;
    padding: 50px;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.file-input-card.highlight {
    border-color: var(--secondary);
    background: rgba(245, 130, 32, 0.02);
}

.modal-footer {
    text-align: center;
}

.modal-success-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: all 0.5s ease;
}

.modal-card.success-active .modal-success-state {
    opacity: 1;
    visibility: visible;
}

/* Hide everything else when success is active */
.modal-card.success-active .modal-header,
.modal-card.success-active .modal-form-grid,
.modal-card.success-active .modal-footer {
    opacity: 0;
    visibility: hidden;
}

.success-lottie-wrapper i {
    font-size: 6rem;
    color: #22c55e; /* Success Green */
    margin-bottom: 25px;
    animation: successBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-success-state h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-success-state p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto 20px;
}

.success-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 900px) {
    .modal-card {
        padding: 100px 15px 30px; /* Increased top padding to accommodate lower close button */
        border-radius: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .modal-close {
        top: 45px; /* Moved further down as requested */
        right: 15px;
        width: 45px;
        height: 45px;
        background: var(--primary); 
        color: var(--white); 
        box-shadow: 0 10px 25px rgba(13, 43, 69, 0.3);
    }
    
    .modal-form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* First item (Filled Order Form) takes full width of the grid */
    .modal-form-grid .file-input-card:first-child {
        grid-column: span 2;
    }

    .modal-header h3 {
        font-size: 1.4rem;
        padding: 0 25px; /* Side clearance for the close button zone */
    }

    .modal-footer {
        margin-top: auto;
        padding-bottom: 20px;
    }
}

.referral-sticky-box h1,
.mobile-only-hero h1 {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    color: var(--white) !important;
}

.sidebar-desc,
.mobile-only-hero p {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.referral-sticky-box .hero-subtitle-box,
.mobile-only-hero .hero-subtitle-box {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.referral-sticky-box h1 {
    font-size: 2.3rem;
    color: var(--primary);
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.referral-sticky-box .hero-subtitle {
    font-size: 0.72rem;
    color: var(--secondary);
    font-weight: 800;
}

.sidebar-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 25px;
}

.sidebar-features {
    display: grid;
    gap: 12px;
}

.s-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}

.s-feature i {
    color: var(--secondary);
    font-size: 1.1rem;
}


/* Common Form Sections */
.referral-form-section {
    background: #f8fafc;
}

.referral-container {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0 !important;
}

.form-section {
    margin-bottom: 45px;
}

.section-title {
    font-size: 1.35rem;
    color: var(--primary);
    font-family: 'Outfit';
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-box {
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.emergency-header {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-heading {
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.homebound-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

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

.telehealth-auth {
    padding: 15px;
    background: rgba(245, 130, 32, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(245, 130, 32, 0.3);
}

.file-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.file-input-card {
    background: #fcfdfe;
    border: 2px dashed #e2e8f0;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.file-input-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.file-input-card input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-card:hover {
    border-color: var(--secondary);
    background: #fff;
    transform: translateY(-5px);
}

.form-submit-container {
    text-align: center;
    margin-top: 20px;
}

.btn-referral-submit {
    max-width: 400px;
    margin: 0 auto 15px;
}

.hipaa-badge {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .referral-split-container {
        grid-template-columns: 1fr;
        padding-top: 0;
    }
    
    .referral-sidebar-desktop {
        display: none;
    }

    .mobile-only-hero {
        display: block !important;
        height: auto !important; /* Critical: Stopping the 100vh inherited height from pushing form down */
        min-height: 0 !important;
        padding: 100px 15px 30px !important; /* Standard padding for fixed nav visibility */
        text-align: center;
        background: var(--primary);
        margin-top: 0 !important;
    }

    .mobile-only-hero .hero-content {
        margin-top: 0 !important; 
        padding: 25px 20px !important;
        background: rgba(255, 255, 255, 0.05) !important; /* Restoring premium look */
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-radius: 25px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    }

    .mobile-only-hero h1 {
        font-size: 1.85rem !important;
        color: var(--white);
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    .mobile-only-hero p {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
    }

    .referral-container {
        padding: 10px 5px 30px !important; /* Widened inputs by reducing side padding */
        margin-top: 0 !important;
    }

    .referral-split-container {
        padding: 0 !important; /* Edge-to-edge on mobile */
        margin-top: 0 !important;
    }
    
    .section-box {
        padding: 18px 12px; /* Tightened internal padding to save space */
        border-radius: 12px;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .file-upload-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force side-by-side as requested */
        gap: 10px;
    }

    .file-input-card {
        padding: 15px 10px !important; /* Compact cards for mobile */
    }

    .file-input-card i {
        font-size: 1.4rem !important; /* Smaller icons */
        margin-bottom: 8px !important;
    }

    .file-input-card label {
        font-size: 0.75rem !important;
    }

    .file-input-card p {
        font-size: 0.65rem !important;
    }

    .grid-2, .grid-3, .checkbox-grid {
        grid-template-columns: 1fr !important; 
        gap: 12px;
    }

    .btn-referral-submit {
        max-width: 250px !important;
        margin: 0 auto 10px !important;
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
    }
}

/* Excellence Promise Section */
.promise-section {
    padding: 100px 0;
    background: #ffffff;
}

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

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

.promise-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.promise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.promise-card:hover .card-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 130, 32, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.promise-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.promise-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .promise-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .promise-section {
        padding: 60px 0;
    }

    .card-image {
        height: 200px;
    }
}

.referral-intro {
    max-width: 400px;
}

.referral-badge-sm {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.referral-intro h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 4px;
    font-family: 'Outfit';
}

.referral-intro p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 0;
}

.referral-form-inline {
    width: 100%;
}

.inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
}

.form-col label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 6px;
    opacity: 0.8;
}

.input-set {
    display: flex;
    gap: 12px;
}

.referral-form-inline input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 18px;
    font-size: 0.9rem;
    border-radius: 12px;
    width: 100%;
    transition: var(--transition);
}

.referral-form-inline input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.15);
}

.btn-compact {
    padding: 15px 30px;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .referral-card-condensed {
        grid-template-columns: 1fr;
        padding: 40px;
        text-align: center;
    }
    .referral-intro {
        max-width: 100%;
        margin-bottom: 10px;
    }
    .inline-grid {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .inline-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .input-set {
        flex-direction: column;
    }
    .action-col {
        width: 100%;
    }
    .btn-compact {
        width: 100%;
    }
}

/* Footer Restore */
.footer-phone {
    font-family: 'Outfit';
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero h1 { font-size: 2.8rem; }
    .about-grid, .appointment-grid { gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    /* Nav adjustments for tablets */
    .nav-links, .nav-contact { 
        display: none !important; 
    }
    
    .menu-toggle { 
        display: flex !important;
        background: var(--primary);
        color: var(--white);
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(13, 43, 69, 0.2);
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
    }

    .navbar.scrolled {
        width: 95%;
        left: 2.5%;
        padding: 5px 15px;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 50px 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-center {
        padding: 30px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }
    .footer-nav {
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }
    .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* ── Footer compaction ── */
    .footer {
        padding: 25px 0; /* Down from 50px — tighter overall wrap */
    }
    .footer-container {
        gap: 18px; /* Down from 40px — less air between logo / nav / contact */
    }
    .footer-center {
        padding: 16px 0; /* Down from 30px — tighter bordered mid-section */
    }
    .footer-center p {
        font-size: 0.78rem;
        margin-bottom: 6px; /* Reduce space between center paragraphs */
    }
    .footer-nav {
        gap: 10px;        /* Tighter link row spacing */
        margin-top: 8px;
    }
    .footer-logo-small {
        height: 36px;     /* Slightly smaller logo on mobile */
        margin-bottom: 3px;
    }
    .footer-left p {
        font-size: 0.70rem;
    }
    .footer-right {
        gap: 6px;         /* Less space between phone/social stacked items */
    }
    .footer-phone {
        font-size: 0.95rem;
    }
    /* ── End footer compaction ── */

    .top-bar {
        height: 24px; 
    }

    .top-right {
        display: flex;
        gap: 8px;
    }
    .top-right a {
        font-size: 0.7rem;
    }
    .top-left {
        width: auto;
        text-align: left;
        font-size: 0.60rem;
        font-weight: 700;
        letter-spacing: 0;
    }
    .top-nav-container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .navbar {
        top: 24px;
        padding: 0;
    }
    
    .nav-container {
        min-height: 45px;
    }

    .logo-img {
        height: 35px;
    }

    .navbar.scrolled {
        top: 32px; /* Smooth transition simply scaling top instead of jumping margin-top */
        width: 94%;
        left: 3%;
        padding: 0; /* Remove top/bottom padding to aggressively shrink height */
        margin-top: 0;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 40px;
    }

    .navbar.scrolled .logo-img {
        height: 35px; /* Matches unscrolled height precisely */
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Removed duplicate nav-links mobile drawer styling as it is handled by side-menu */

    .menu-toggle { 
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .nav-contact { display: none !important; }
    
    .menu-toggle { 
        display: flex !important;
    }
    
    .hero { 
        text-align: left; 
        justify-content: flex-start; 
        height: calc(100vh - 69px); /* strictly adjusted */
        min-height: 480px;
        margin-top: 69px; /* 24 top-bar + 45 navbar */
        padding: 0;
        display: flex;
        align-items: flex-end;
    }

    .hero.scrolled {
        margin-top: 24px;
        height: calc(100vh - 24px);
    }
    .hero-slide {
        justify-content: center !important; /* Forces the entire horizontal axis to dead center, killing the uncentered rightward offset */
        align-items: center !important;
    }

    .hero-container {
        padding: 0 10px !important; /* Force tight, perfectly symmetrical horizontal fit */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .hero-content {
        margin: -40px auto 0 auto !important; /* Shifts the content up a little as requested while strictly maintaining horizontal dead-center */
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 12px !important; /* Aggressively compacted internal padding */
        box-sizing: border-box;
        text-align: center; /* Center the interior content visually to balance it out perfectly */
    }

    .hero-subtitle-box {
        margin-bottom: 10px !important; /* Compact space */
        justify-content: center !important; /* Center the subtitle line */
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 10px !important; /* Compact space */
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero h1 span {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 15px !important; /* Compact space */
    }

    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
    
    .hero-btns { 
        display: flex; 
        flex-direction: row !important; /* Forcing side by side */
        justify-content: space-between !important;
        align-items: center;
        gap: 8px !important; /* Extremely tight gap */
        width: 100%;
        margin-top: 10px !important;
    }
    .hero-btns .btn {
        padding: 10px 5px !important; /* Reduced vertical and horizontal spacing to force them to fit */
        font-size: 0.80rem !important; /* Maintained but strictly capped text size */
        flex: 1; /* Split width 50/50 exactly */
        min-width: 0; /* Prevents flex blowout on absolute minimum screens */
        text-align: center;
        width: 100%;
        max-width: none;
        letter-spacing: 0px !important; /* Reclaim horizontal space */
        white-space: nowrap; /* Don't multi-line side-by-side */
    }
    .btn-secondary { margin-left: 0; }
    
    .about-grid, .appointment-grid, .footer-grid { grid-template-columns: 1fr; }
    .appointment-grid { gap: 60px; }
    .services-grid { grid-template-columns: 1fr; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .appointment-form-wrapper {
        padding: 22px 18px; /* Aggressively compacted on mobile */
        border-radius: 20px;
    }
    .form-group {
        margin-bottom: 12px; /* Tighter stack of inputs on mobile */
    }
    input, select {
        padding: 10px 14px; /* Shorter input height on mobile */
        font-size: 0.88rem;
    }
    textarea {
        padding: 10px 14px;
        min-height: 70px; /* Much shorter textarea on mobile */
        font-size: 0.88rem;
    }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2rem; }
}

/* Map Section */
.map-section {
    padding: 40px 0; /* Ultra-compact profile */
    background: #f8fafc;
}

.map-section .section-header {
    margin-bottom: 30px; /* Minimalist spacing */
}

.map-container {
    width: 100%;
    height: 300px; /* Fixed ultra-slim height */
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid #091e30; /* Matched to footer color */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
    position: relative; /* For absolute button positioning */
}

.map-btn-custom {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-btn-custom:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 130, 32, 0.25);
}

.map-btn-custom i {
    font-size: 0.85rem;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.1) brightness(1.02);
    transition: var(--transition);
}

.map-container iframe:hover {
    filter: none;
}

@media (max-width: 768px) {
    .map-section {
        padding: 30px 0; /* Tight mobile spacing */
    }
    .map-section .section-header {
        margin-bottom: 20px;
    }
    .map-section .section-header p {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 90%;
        margin: 0 auto;
        color: var(--text-light);
    }
    .map-container {
        height: 240px; /* Slimmer mobile map */
        border-radius: 20px;
    }
    .map-btn-custom {
        padding: 8px 15px;
        font-size: 0.65rem;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 768px) {
    .header-brand-text {
        display: flex;
        flex-direction: column;
        margin-left: 10px;
        text-align: left;
        text-decoration: none !important;
    }
    
    .header-brand-text h2 {
        color: var(--white);
        font-family: 'Outfit';
        font-size: 1rem;
        font-weight: 800;
        margin: 0;
        line-height: 1;
        letter-spacing: -0.5px;
        text-decoration: none !important;
    }
    
    .header-brand-text span {
        color: var(--secondary);
        font-family: 'Outfit';
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-decoration: none !important;
    }

    .navbar.scrolled .header-brand-text h2 {
        color: var(--primary);
    }

    /* Shrink the "Premium HOME HEALTH SERVICES" badge on mobile */
    .experience-badge {
        padding: 14px 18px;
        border-radius: 16px;
        bottom: 10px;
        left: 10px;
    }
    .experience-badge .years {
        font-size: 1rem;
    }
    .experience-badge .text {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    /* Reduce height of Our Standards on mobile */
    .why-choose {
        padding: 35px 0 30px; /* Tightened bottom to close the gap before services */
    }
    .promise-grid {
        gap: 15px;
        margin-bottom: 30px;
    }
    .quality-strip {
        padding: 20px 0;
    }

    /* Eliminate the visual top gap above Our Expertise on mobile */
    .services {
        padding: 15px 0 80px;   /* Nearly flush on mobile */
        border-radius: 24px 24px 0 0; /* Flat curve — stops eating visual space */
    }

    /* Contact Details Box mobile layout */
    .contact-details-box {
        gap: 16px;
        margin-top: 25px;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    .contact-info h4 { font-size: 0.74rem; }
    .contact-info p { font-size: 0.82rem; }
}
/* Back to Top Button (Global) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(13, 43, 69, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top i {
    font-size: 1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* Side Menu & Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 25, 41, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--primary);
    z-index: 2000;
    padding: 15px 40px; /* Ultra-tight top */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

body.menu-open .side-menu {
    right: 0;
}

.side-menu-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}

.side-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.side-menu-brand {
    margin-bottom: 15px;
    text-align: center; /* Centered brand */
}

.side-menu-brand h2 {
    color: var(--white);
    font-family: 'Outfit';
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.side-menu-brand span {
    color: var(--secondary);
    font-family: 'Outfit';
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.side-menu-divider-container {
    position: relative;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the divider line if possible, or just the container */
    margin-bottom: 20px;
}

.side-menu-hr {
    width: 60%; /* Shorter line for centered look */
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.divider-close:hover {
    color: var(--secondary);
}

.side-menu-logo img {
    height: 40px;
}

.close-menu {
    position: relative;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem; /* Larger icon */
    cursor: pointer;
    width: 44px; /* Standard mobile tap target */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

.side-nav-links {
    list-style: none;
    margin-bottom: auto;
    padding: 0!important;
    text-align: center; /* Center the links */
    width: 100%;
}

.side-nav-links li {
    margin-bottom: 25px;
}

.side-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-family: 'Outfit';
    font-weight: 500;
    transition: var(--transition);
    display: inline-block; /* Changed for text-align center */
}

/* Normal links hover - Centered friendly */
.side-nav-links li:not(.side-nav-cta) a:hover {
    color: var(--secondary);
    transform: scale(1.1); /* Scale instead of slide for centered look */
}

/* CTA Pill Button (Mobile) */
.side-nav-cta {
    margin-top: 15px;
    padding: 0;
}

.side-nav-cta a {
    background: var(--secondary) !important;
    color: var(--white) !important;
    text-align: center;
    padding: 10px 20px !important; /* Reduced from 14px */
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 10px 25px rgba(245, 130, 32, 0.3);
    width: 100%;
}

.side-nav-cta a:hover {
    background: var(--secondary) !important; /* Remain orange */
    color: var(--primary) !important; /* Text color change requested */
    box-shadow: 0 12px 30px rgba(245, 130, 32, 0.4);
}

.side-menu-contact {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center; /* Center footer contact too */
}

.side-phone {
    display: block;
    color: var(--white) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-decoration: none;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: visible;
}

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

/* These elements must always be visible — never allow opacity:0 to orphan them */
.caregivers-strip.reveal,
.pre-apt-card.reveal {
    /* Start slightly dimmed but never fully invisible so content is never completely hidden */
    opacity: 0.01;
}

.caregivers-strip.reveal.revealed,
.pre-apt-card.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Image Security & Protection ── */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

/* Clear Overlay Protection */
.hero-bg::after,
.card-img::after,
.card-image::after,
.promise-img-box::after,
.side-menu-logo::after,
.footer-logo-small::after,
.strip-img-wrapper::after,
.image-stack::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: none; /* Changed to none to allow clicking on buttons/links beneath */
}


