/* --- Variables & Reset --- */
:root {
    --primary-color: #2D5F3F;
    --primary-light: #4A7C59;
    --primary-dark: #1a3a28;
    --secondary-color: #F8F6F1;
    --accent-color: #C49A6C;
    --accent-hover: #B38954;

    /* Text Colors */
    --text-color: #2C2C2C;
    --text-light: #5A5A5A;
    --text-muted: #8E8E8E;
    --white: #ffffff;

    /* Reveal Animations */
    --reveal-dist: 20px;
    --reveal-speed: 0.6s;

    /* Status Colors */
    --success: #4CAF50;
    --warning: #FF9800;

    /* Shadows - Enhanced for depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 50px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Mobile Spacing - Touch-friendly */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 1.5rem;
    /* 24px */
    --spacing-lg: 2rem;
    /* 32px */
    --spacing-xl: 3rem;
    /* 48px */
    --spacing-xxl: 4rem;
    /* 64px */

    /* Touch Targets - Minimum 44px for accessibility */
    --touch-target: 48px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container & Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    min-height: 48px;
    /* Touch-friendly */
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;

    /* Active/tap feedback */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
    min-height: 52px;
}

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
    /* Show on mobile via media query */
    animation: slideUp 0.4s ease-out;
    max-width: calc(100% - var(--spacing-lg));
}

.floating-cta .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(45, 95, 63, 0.3);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.floating-cta .btn:hover,
.floating-cta .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(45, 95, 63, 0.4);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* --- Header --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
    padding: 0.25rem 0;

    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;

    @media (min-width: 1024px) {
        background-attachment: fixed;
    }

    /* Parallax effect on desktop */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero h2 {
    font-size: clamp(1.25rem, 5vw, 2rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2.5rem;
    color: #f0f0f0;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.trust-badge {
    margin-top: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
}

.trust-badge i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* --- About --- */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 1;
    max-width: 500px;
    /* Constrain width for better layout */
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    background-color: #ae4a54;
    border-radius: var(--border-radius-lg);
    /* Slightly larger radius */
    z-index: -1;
    transition: var(--transition);
}

.about-image img {
    border-radius: var(--border-radius-lg);
    /* Match the wrapper radius */
    box-shadow: var(--shadow-lg);
    /* Stronger shadow for depth */
    width: 100%;
    /* Ensure responsiveness */
    display: block;
}

.about-text h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    font-weight: 700;
}

.about-list i {
    color: var(--primary-color);
}

/* --- Enhanced Services Section --- */
.services {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(1);
}

.service-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e8e4dc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card .icon-box {
    scale: 0.9;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.925rem;
    line-height: 1.7;
}

/* --- Banner --- */
.banner-section {
    background-image: url('https://images.unsplash.com/photo-1490818387583-1baba5e638af?q=80&w=1932&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    color: var(--white);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 124, 89, 0.85);
    /* Primary color overlay */
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Process Section Styles --- */
.process-section {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #ffffff 100%);
    position: relative;
}

.process-section .section-title {
    margin-bottom: 1.5rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 1rem;
    position: relative;
}

/* Connecting line for desktop */
@media (min-width: 992px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 120px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: dashed var(--accent-color);
        opacity: 0.3;
        z-index: 0;
    }
}

.process-item {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.process-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 95, 63, 0.1);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: absolute;
    top: 0;
    right: 1.5rem;
    transform: none;
    z-index: 0;
    opacity: 0.06;
    left: auto;
    line-height: 1;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c5c5c5 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.process-item:hover .process-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.process-item h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.process-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* --- Results Section --- */
.results-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
    text-align: center;
}

.result-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-weight: 700;
}

.result-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
}

.progress-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.progress-circle .bg {
    stroke: var(--secondary-color);
}

.progress-circle .progress {
    stroke: var(--primary-light);
    stroke-dasharray: 408;
    /* Circumference: 2 * PI * 65 */
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 2s ease-out;
}

.progress-circle .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.results-section .section-title {
    margin-bottom: 1rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.stars {
    color: #FFC107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.patient-name {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.faq-section {
    background-color: var(--secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    transition: var(--transition);
    min-height: 60px;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question.active {
    color: var(--primary-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    color: var(--text-light);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.contact-details p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details i {
    color: var(--accent-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-map iframe {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}


.footer-bottom {
    background: #1a252f;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.45s;
    opacity: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {

    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.8rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-image {
        margin-bottom: 4rem;
        /* Space for the text below */
        margin-left: auto;
        margin-right: auto;
        width: 85%;
        /* Prevent full width to show the offset clearly */
        max-width: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 1.25rem;
        --spacing-lg: 1.75rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }

    /* Show floating CTA on mobile */
    .floating-cta {
        display: block;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding-top: 80px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    /* Hero adjustments */
    .hero {
        background-attachment: scroll;
        /* Better performance on mobile */
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* Service and testimonial cards */
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .testimonial-card {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .floating-cta {
        bottom: var(--spacing-sm);
        max-width: calc(100% - var(--spacing-md));
    }

    .floating-cta .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .hero h2 {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
    }

    .btn-lg {
        font-size: 0.9375rem;
        padding: 1rem 1.75rem;
    }

    .footer-info h3 {
        font-size: 1.5rem;
    }

    .contact-details p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 360px) {
    .floating-cta .btn {
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }
}


/* --- Performance Optimizations --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Mobile Fixes & Touch Devices --- */
@media (hover: none) {

    .btn:hover,
    .nav-link:hover,
    .service-card:hover,
    .process-item:hover,
    .result-card:hover,
    .social-links a:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
        /* Reset to default shadow */
    }

    .service-card:hover .icon-box,
    .process-item:hover .process-icon {
        transform: none;
    }
}

/* Prevent Horizontal Wiggle */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
        max-width: 400px;
    }

    .about-text h2::after {
        margin: 1rem auto 0;
        /* Center underline if existing */
    }

    .about-list {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .process-grid::before {
        display: none;
        /* Hide connecting line on tablet */
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .hamburger {
        display: block;
        z-index: 2002;
        /* Significantly higher than overlay */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem 2rem;
        z-index: 2001;
        /* Higher than overlay */
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .nav-link {
        font-size: 1.25rem;
        justify-content: center;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 995;
        /* Below Header (1000) */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Mobile Adjustments */
    .hero {
        background-attachment: scroll;
        /* Fix parallax on mobile */
        min-height: 100dvh;
        /* Dynamic viewport height */
    }

    .hero-content {
        padding-top: 4rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero .btn {
        width: 100%;
    }

    /* Process Mobile */
    .process-number {
        display: none;
        /* Hide giant numbers on small screens to save space */
    }

    /* Floating CTA */
    .floating-cta {
        display: block;
        /* Enabled via JS, but ensured here */
        max-width: 90%;
        width: 100%;
    }

    .floating-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* --- Reveal/Animation Utilities --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(var(--reveal-dist));
    transition: opacity var(--reveal-speed) ease-out, transform var(--reveal-speed) ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Optimization: Reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Print Styles --- */
@media print {

    .header,
    .hamburger,
    .floating-cta,
    .btn {
        display: none;
    }

}