/* Microsoft Fluent Inspired Design System */
:root {
    /* Brand Colors - Extracted from Logo Image */
    --brand-primary: #1e3a8a; /* Navy Blue */
    --brand-secondary: #15803d; /* Healthcare Green */
    --brand-accent: #0284c7; /* Light Blue Accent */
    
    /* Fluent UI Neutral Palette */
    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;
    --white: #ffffff;

    /* Fluent UI Shadows */
    --shadow-flyout: 0 8px 16px rgba(0, 0, 0, 0.14);
    --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04), 0 0 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 2px rgba(0, 0, 0, 0.06);
    
    /* Materials */
    --acrylic-bg: rgba(255, 255, 255, 0.85);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--neutral-50);
    color: var(--neutral-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
}

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

/* -------------------------------------
   Top Bar
-------------------------------------- */
.top-bar {
    background-color: var(--brand-secondary);
    color: var(--white);
    padding: 8px 5%;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    z-index: 1001;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.top-bar-content {
    display: inline-block;
    animation: marquee 100s linear infinite;
}

.top-bar-content span {
    margin-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* -------------------------------------
   Navbar (Fluent Acrylic)
-------------------------------------- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--acrylic-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    transition: var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-flyout);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2px 5%;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 8px 4px;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--brand-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

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

/* Dropdown Menu */
.nav-links li.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-flyout);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--neutral-700);
    font-size: 0.9rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: var(--neutral-50);
    color: var(--brand-primary);
}

.dropdown-menu li a::after {
    display: none; /* Disable underline effect on hover for submenu */
}

/* -------------------------------------
   Buttons (Fluent Style)
-------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px; /* Microsoft uses slight rounding */
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: #106630;
    box-shadow: 0 4px 8px rgba(21, 128, 61, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--neutral-300);
}

.btn-outline:hover {
    background-color: var(--neutral-100);
    border-color: var(--neutral-400);
}

/* -------------------------------------
   Hero Slider Section
-------------------------------------- */
.hero {
    position: relative;
    height: calc(100vh - 90px);
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--neutral-900);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Dark overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.6) 50%, rgba(17, 24, 39, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.hero-text-box {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero h1 span {
    background: linear-gradient(to right, #8b5cf6, #3b82f6, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--neutral-200);
    margin-bottom: 40px;
    max-width: 550px;
}

/* -------------------------------------
   Trust / Stats Section
-------------------------------------- */
.trust-bar {
    background-color: var(--white);
    padding: 40px 5%;
    border-bottom: 1px solid var(--neutral-200);
}

.stats-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* -------------------------------------
   Page Headers (Internal Pages)
-------------------------------------- */
.page-header {
    background-color: var(--neutral-100);
    padding: 80px 5% 60px;
    text-align: center;
    border-bottom: 1px solid var(--neutral-200);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 700px;
    margin: 0 auto;
}

/* -------------------------------------
   Standard Sections
-------------------------------------- */
.section {
    padding: 80px 5%;
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------------------------
   Fluent Cards Grid
-------------------------------------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.fluent-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.fluent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--brand-secondary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-normal);
}

.fluent-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.fluent-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--neutral-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 24px;
}

.fluent-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.fluent-card p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.card-link {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link i {
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* -------------------------------------
   Gallery Grid Section
-------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
    pointer-events: none;
}

/* -------------------------------------
   Image Text Split (About / SEO)
-------------------------------------- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.split-content p {
    color: var(--neutral-600);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.check-list {
    list-style: none;
    margin-top: 24px;
    margin-bottom: 32px;
}

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

.check-list i {
    color: var(--brand-secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--neutral-800);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--neutral-300, #d1d5db);
    border-radius: 4px;
    background-color: var(--white);
    transition: var(--transition-fast);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* -------------------------------------
   Footer
-------------------------------------- */
footer {
    background-color: var(--neutral-900);
    color: var(--neutral-200);
    padding: 80px 5% 24px;
}

.footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: var(--neutral-400);
    font-size: 0.95rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--neutral-400);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--neutral-400);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--brand-secondary);
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid var(--neutral-800);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--neutral-500);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real scenario, implement a hamburger menu */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .slide {
        background-position: 75% center; /* Adjust focus to keep doctor/content visible */
    }
}

/* -------------------------------------
   Horizontal Service Cards
-------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.service-card-horizontal {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.service-card-horizontal:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-card-content {
    position: relative;
    z-index: 2;
    width: 65%;
}

.service-card-horizontal h3 {
    font-size: 1.5rem;
    color: var(--neutral-800);
    margin-bottom: 12px;
}

.service-card-horizontal p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-card-icon {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 10rem;
    color: #14b8a6; /* Teal/Green color matching reference */
    opacity: 0.15;
    z-index: 1;
    transition: transform 0.5s ease;
}

.service-card-horizontal:hover .service-card-icon {
    transform: scale(1.1) rotate(-5deg);
    opacity: 0.25;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .service-card-content {
        width: 100%;
        margin-bottom: 20px;
    }
    .service-card-icon {
        font-size: 8rem;
        bottom: 0px;
        right: -10px;
    }
}

/* -------------------------------------
   Doorstep Section
-------------------------------------- */
.text-center {
    text-align: center;
}

.doorstep-title {
    font-size: 2.25rem;
    color: var(--neutral-900);
    margin-bottom: 16px;
    font-weight: 700;
}

.doorstep-desc {
    color: var(--neutral-600);
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.doorstep-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.doorstep-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.doorstep-feature .feature-icon {
    font-size: 2rem;
    color: var(--brand-secondary); /* or #15803d */
    margin-top: 4px;
}

.doorstep-feature .feature-text h4 {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin-bottom: 8px;
    font-weight: 600;
}

.doorstep-feature .feature-text p {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   Premium Global Appointment Modal
========================================= */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.premium-modal-container {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.premium-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s ease;
}

.premium-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.premium-modal-header {
    padding: 35px 35px 20px 35px;
    text-align: center;
    position: relative;
}

.premium-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
}

.modal-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--brand-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.15);
}

.premium-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.5px;
}

.premium-modal-header p {
    margin: 0;
    color: var(--neutral-500);
    font-size: 0.95rem;
}

.premium-modal-body {
    padding: 0 35px 35px 35px;
}

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

@media (max-width: 480px) {
    .premium-form .input-row {
        grid-template-columns: 1fr;
    }
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.premium-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 8px;
}

.premium-form label i {
    color: var(--brand-primary);
    margin-right: 5px;
    opacity: 0.7;
}

.premium-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--neutral-800);
    transition: all 0.3s ease;
    font-family: inherit;
}

.premium-input:focus {
    outline: none;
    background: white;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.premium-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
    transition: all 0.3s ease;
}

.premium-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(29, 78, 216, 0.3);
}

.premium-submit-btn:active {
    transform: translateY(0);
}

#modal-response-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

#modal-response-msg.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#modal-response-msg.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
