:root {
    /* Color Palette */
    --clr-primary: #0F3B59;
    --clr-primary-light: #1A547A;
    --clr-accent: #4B9131;
    --clr-accent-light: #5DB53E;
    --clr-accent-glow: rgba(75, 145, 49, 0.4);
    
    --clr-surface: #FFFFFF;
    --clr-surface-alt: #F1F8FA;
    
    --clr-text: #334155;
    --clr-text-light: #64748B;
    --clr-heading: #0F172A;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Borders & Shadow */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px var(--clr-accent-glow);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--clr-heading);
    line-height: 1.2;
}
.text-highlight { color: var(--clr-accent); }
.text-green { color: var(--clr-accent); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--clr-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(75, 145, 49, 0.3);
}
.btn-primary:hover {
    background-color: var(--clr-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 145, 49, 0.4);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}
.btn-outline:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-2px);
}
.btn-white {
    background-color: white;
    color: var(--clr-primary);
}
.btn-white:hover {
    background-color: var(--clr-surface-alt);
    transform: translateY(-2px);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--clr-primary);
}
.nav-logo img {
    height: 48px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--clr-accent);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #1a2a47; /* Match screenshot dark blue */
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-radius: 4px; /* Slight rounding */
    padding: 10px 0;
    padding-bottom: 15px;
    max-height: 70vh;
    overflow-y: auto;
}
/* Custom dropdown scrollbar */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: var(--clr-accent-light);
    border-radius: 6px;
}
.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropFade 0.2s ease forwards;
}
@keyframes dropFade {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-menu a {
    color: white !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.2s;
}
.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.dropdown > a::after {
    content: '\f107'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--clr-accent);
}
/* Make sure home/about/contact have expected styling */

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}
.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}
.hero-bg-shapes .shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(75, 145, 49, 0.15);
}
.hero-bg-shapes .shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(15, 59, 89, 0.1);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--clr-surface-alt);
    color: var(--clr-accent);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    border: 1px solid rgba(75, 145, 49, 0.2);
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-light);
    margin-bottom: 32px;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}
.hero-features {
    display: flex;
    gap: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-heading);
}
.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Image Showcase (Hero) */
.image-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}
.image-showcase .main-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 8px);
    display: block;
}
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* Soft, professional static shadow */
    border: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
    z-index: 10;
}
.floating-card .icon-circle {
    width: 55px;
    height: 55px;
    background: var(--clr-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.floating-card .card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.floating-card h4 { margin: 0; font-size: 1.2rem; color: var(--clr-primary); font-weight: 800; line-height: 1.2;}
.floating-card p { margin: 6px 0 0; font-size: 0.95rem; color: #64748b; line-height: 1.3;}

@media (max-width: 768px) {
    .floating-card {
        padding: 16px 20px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        gap: 15px;
        justify-content: center;
    }
    .floating-card .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Section Utilities */
.shape-bg-light {
    background-color: var(--clr-surface-alt);
    position: relative;
}
.section-badge {
    color: var(--clr-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-desc {
    font-size: 1.15rem;
    color: var(--clr-text-light);
}

/* About Section */
.about-section {
    padding: 100px 0;
}
.about-container {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.about-container p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
    margin-bottom: 40px;
}
.consultation-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}
@media (max-width: 900px) {
    .consultation-types {
        grid-template-columns: 1fr;
    }
}
.type-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.type-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

/* Specialties Carousel Section (Replaced Services Grid) */
.specialties-section {
    padding: 100px 0;
    background: #f7f9f7; /* Soft clinical background matching reference */
}
.specialties-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100vw;
}
.specialties-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 30px 15px 80px; /* Increased bottom padding to accommodate staggered items */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for a clean native app feel */
    scrollbar-width: none; 
}
.specialties-grid::-webkit-scrollbar {
    display: none;
}
.specialty-card {
    flex: 0 0 280px; /* Fixed width matching the reference cards */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
}
/* Stagger alternate cards downwards */
.specialty-card:nth-child(even) {
    margin-top: 50px;
}
.specialty-card:hover {
    transform: translateY(-8px);
}
.specialty-img-wrapper {
    width: 100%;
    aspect-ratio: 1; /* Perfect square matching reference image bounds */
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    background: white; /* In case of transparent images */
}
.specialty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.specialty-card:hover .specialty-img-wrapper img {
    transform: scale(1.05); /* Gentle zoom on hover */
}
.specialty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
}

/* --- AI Precision Recovery --- */
.ai-precision-section {
    padding: 100px 0;
    background: #ffffff;
}
.ai-precision-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 80px;
    letter-spacing: -0.5px;
}
.ai-steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}
/* Dotted line behind steps */
.ai-steps-container::before {
    content: '';
    position: absolute;
    top: 50px; /* Aligned exactly behind icons (100px height / 2) */
    left: 10%;
    right: 10%;
    height: 3px;
    background-image: linear-gradient(to right, var(--clr-accent) 40%, rgba(255,255,255,0) 20%);
    background-position: top;
    background-size: 15px 3px;
    background-repeat: repeat-x;
    z-index: 0;
}
.ai-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.ai-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--clr-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 24px;
    border: 10px solid #ffffff; /* Gives solid space from dashed line */
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.ai-step:hover .ai-icon-wrapper {
    transform: scale(1.05);
    background: var(--clr-primary);
}
.ai-step-subtitle {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 12px;
}
.ai-step-bold {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 12px;
}
.ai-step-text {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}
@media (max-width: 992px) {
    .ai-steps-container {
        flex-direction: column;
        gap: 60px;
    }
    .ai-steps-container::before {
        display: none; /* Stack vertically on mobile */
    }
    .ai-step-text {
        max-width: 100%;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}
.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 10px 10px 30px 10px; /* Space for scrollbar and hover effects */
    -webkit-overflow-scrolling: touch;
    /* Custom Scrollbar for Carousel */
    scrollbar-width: thin;
    scrollbar-color: var(--clr-accent-light) var(--clr-surface-alt);
}
.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}
.testimonials-grid::-webkit-scrollbar-track {
    background: var(--clr-surface-alt);
    border-radius: var(--radius-full);
}
.testimonials-grid::-webkit-scrollbar-thumb {
    background-color: var(--clr-accent-light);
    border-radius: var(--radius-full);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    /* Carousel properties */
    flex: 0 0 350px;
    max-width: 85vw;
    scroll-snap-align: center;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.quote-icon {
    font-size: 2rem;
    color: var(--clr-accent-glow);
    margin-bottom: 20px;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--clr-text);
    flex-grow: 1;
    margin-bottom: 30px;
    line-height: 1.7;
}
.patient-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}
.patient-avatar {
    width: 50px;
    height: 50px;
    background: var(--clr-surface-alt);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.patient-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--clr-heading);
}
.rating {
    color: #F59E0B;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: white;
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 16px;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--clr-accent);
}
.faq-question i {
    transition: transform 0.3s;
    color: var(--clr-accent);
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}
.faq-answer p {
    padding: 0 20px;
    color: var(--clr-text-light);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 20px;
    transition: max-height 0.6s ease-in-out, padding 0.3s ease;
}

/* Footer */
.footer {
    background-color: var(--clr-primary);
    color: white;
    padding: 80px 0 30px;
}
.footer-callout {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-callout h2 { color: white; font-size: 2.5rem; margin-bottom: 16px; }
.footer-callout p { font-size: 1.2rem; color: rgba(255,255,255,0.8); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}
.footer-brand p { color: rgba(255,255,255,0.6); }
.footer-info { font-size: 1.1rem; }

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    padding-top: 20px;
}

/* Animations Tools */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.visible { opacity: 1 !important; transform: translate(0) !important; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-features { justify-content: center; }
    .floating-card { left: 20%; bottom: 20px; }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    .nav-logo span { font-size: 1rem; white-space: nowrap; }
    .nav-logo img { height: 36px; }
    .nav-container .btn { padding: 8px 16px; font-size: 0.9rem; }
    
    .hero { padding: 120px 0 60px; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .badge-accent { margin-bottom: 20px; }
    .hero-title { font-size: 2.3rem; line-height: 1.1; margin-bottom: 16px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 24px; padding: 0 10px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 30px; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .floating-card { left: 50%; transform: translateX(-50%); bottom: 10px; animation: float-mobile 6s ease-in-out infinite; }
    
    @keyframes float-mobile {
        0% { transform: translate(-50%, 0px); }
        50% { transform: translate(-50%, -10px); }
        100% { transform: translate(-50%, 0px); }
    }
    
    .hero-features { flex-direction: column; gap: 12px; }
    .consultation-types { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 30px; text-align: center; }
}
@media (max-width: 480px) {
    .nav-logo span { display: none; } /* Hide text on extremely small screens to save button */
    .nav-container .btn { font-size: 0.8rem; padding: 6px 12px; }
}
