/*
 * Rosehill Care - Main Stylesheet
 * Brand Colors: White and Rose Red
 * Supports Light & Dark Mode
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,400&display=swap');

/* ============================
   Light Mode (Default)
============================ */
:root {
    /* Rose Red Color Palette */
    --primary: #E11D48;        /* Rose Red */
    --primary-hover: #BE123C;  /* Darker Rose Red */
    --primary-light: #FFE4E6;  /* Soft Rose Tint */
    --primary-glow: rgba(225, 29, 72, 0.3);
    --accent: #111111;         /* Pure Black */
    --bg-light: #FFFFFF;       /* Pure White */
    --bg-alt: #F9F9F9;         /* Neutral Light Gray */
    --text-dark: #222222;      /* Near Black */
    --text-muted: #555555;     /* Neutral Gray */
    --border-color: #EAEAEA;   /* Neutral Light Border */
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #FFFFFF;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --footer-bg: #111111;      /* Pure Black Footer */
    --footer-text: #AAAAAA;    /* Neutral Light Gray */

    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   Dark Mode
============================ */
[data-theme="dark"] {
    --primary: #FB7185;        /* Rose Red Light (vibrant on dark) */
    --primary-hover: #F43F5E;  /* Brighter Rose */
    --primary-light: rgba(251, 113, 133, 0.12);
    --primary-glow: rgba(251, 113, 133, 0.25);
    --accent: #F5F5F5;         /* Light neutral text for headings */
    --bg-light: #121212;       /* Charcoal Black */
    --bg-alt: #121212;         /* Charcoal Black */
    --text-dark: #EAEAEA;      /* Off-white neutral text */
    --text-muted: #A0A0A0;     /* Neutral light gray */
    --border-color: #2D2D2D;   /* Dark border */
    --header-bg: rgba(18, 18, 18, 0.95); /* Charcoal Black */
    --card-bg: #121212;        /* Charcoal Black */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --footer-bg: #121212;
    --footer-text: #A0A0A0;
}

/* ============================
   Theme Toggle Button
============================ */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* Common Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-light);
}

.btn-primary:hover {
    background-color: var(--primary);
    color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Navigation button remains Rose Red as a small brand highlight */
.btn-nav.btn-primary {
    background-color: var(--primary);
    color: var(--bg-light);
}

.btn-nav.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--bg-light);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--bg-light);
    color: var(--accent);
}

.btn-white:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--accent);
    color: var(--bg-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-links, .top-bar-contact {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-contact a:hover, .top-bar-links a:hover {
    color: var(--primary-light);
}

.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.shrink {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo span {
    color: var(--text-dark);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-light);
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.header.shrink .logo-img {
    height: 55px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: clamp(40px, 6vh, 100px) 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-alt));
    min-height: calc(100vh - var(--header-height) - 38px);
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .hero {
        height: calc(100vh - 125px);
        min-height: auto;
        overflow: hidden;
    }
}

/* About Hero Section */
.about-hero {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,250,252,0.60)), url('../images/about-hero-bg.png?v=2') no-repeat center center/cover;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .about-hero {
    background: linear-gradient(135deg, rgba(18,18,18,0.94), rgba(18,18,18,0.88)), url('../images/about-hero-bg.png?v=2') no-repeat center center/cover;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-tagline {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: inline-block;
}

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

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Service Cards */
.home-services {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 228, 230, 0.90)), url('../images/services-bg.png') no-repeat center center/cover;
    background-attachment: scroll;
}

[data-theme="dark"] .home-services {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.96), rgba(18, 18, 18, 0.92)), url('../images/services-bg.png') no-repeat center center/cover;
}

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

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-hover);
}

/* Intro Section */
.intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.intro-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--bg-light);
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.intro-badge span.num {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-body);
}

.intro-badge span.lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.intro-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* How It Works Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover::after {
    background-color: var(--primary);
    transform: scale(1.2);
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -10px;
}

.timeline-content {
    padding: 24px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 30px;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 24px;
    line-height: 1.5;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* CQC Rating Widget Card */
.cqc-widget-card {
    background-color: var(--card-bg);
    border-left: 6px solid #4CAF50; /* Green representing 'Good' */
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.cqc-logo-mock {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
}

.cqc-logo-mock span {
    color: var(--primary);
}

.cqc-rating-info {
    flex-grow: 1;
}

.cqc-rating-info h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.cqc-rating-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cqc-badge-good {
    background-color: #4CAF50;
    color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Forms */
.form-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

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

.form-group-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.form-feedback {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-feedback.success {
    display: block;
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.form-feedback.error {
    display: block;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--primary);
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--bg-light);
    text-align: center;
    padding: 80px 0;
}

.cta-banner h2 {
    color: var(--bg-light);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 20px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3, .footer-col h4 {
    color: var(--bg-light);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--bg-light);
    padding-left: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--primary);
}

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

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--bg-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

.chat-widget:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: var(--primary-hover);
}

/* Why Choose Us & Values Page specifics */
.values-grid, .why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.value-card, .benefit-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover, .benefit-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.value-card h3, .benefit-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.value-card p, .benefit-card p {
    color: var(--text-muted);
}

/* Contact Offices Cards */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.office-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.office-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.office-card p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .services-grid, .values-grid, .why-us-grid, .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .top-bar {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .intro-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image-wrapper img {
        height: 320px;
    }
    
    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .diaspora-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .header {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid var(--border-color);
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 20px;
    }

    .mobile-toggle {
        display: flex;
    }
    
    /* Lock body scrolling on mobile when nav is active */
    body.nav-active {
        overflow: hidden !important;
        height: 100vh !important;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--card-bg);
        transform: translateY(-100%);
        visibility: hidden;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 40px 30px 40px 30px;
        box-shadow: var(--shadow-lg);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
        z-index: 999;
        overflow: hidden; /* Restrict scrolling beyond the contents */
    }

    .header.shrink .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }


    
    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-dark); /* Strong contrast in both light and dark mode */
        padding: 10px 0; /* Compact padding to fit everything without overflow */
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
        transition-delay: 0s !important;
    }

    .nav-menu .nav-link::after {
        content: '→';
        display: block;
        font-size: 1.2rem;
        color: var(--primary);
        opacity: 0.5;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu .nav-link:hover::after {
        transform: translateX(5px);
        opacity: 1;
    }

    /* Staggered entry animation when active */
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.05s !important; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.1s !important; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.15s !important; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.2s !important; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.25s !important; }
    .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.3s !important; }
    .nav-menu.active .nav-link:nth-child(7) { transition-delay: 0.35s !important; }
    .nav-menu.active .nav-link:nth-child(8) { transition-delay: 0.4s !important; }
    
    .nav-menu .btn {
        margin-top: 30px;
        width: 100%;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.35s ease, transform 0.35s ease;
        transition-delay: 0s !important;
    }

    .nav-menu.active .btn {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.45s !important;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .cqc-widget-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .top-bar-content {
        justify-content: center;
    }
}
