:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8; 
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --accent: #10b981;
    --success: #4ade80; 
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* --- NAVBAR --- */
.navbar {
    height: 110px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar .container {
    max-width: 100%; 
    padding: 0 40px; 
    width: 100%;     
}

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

.logo {
    display: flex;
    align-items: center; 
    gap: 15px;
    min-width: 0; 
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text);
    margin: 0 1.5rem;
    font-weight: 600;
    transition: 0.3s;
    font-size: 1rem;
}

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

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    margin-left: 1rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #e0e7ff, #ffffff);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.badge {
    background: #dbeafe;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark);
    line-height: 1.1;
    margin: 1.5rem 0;
}

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

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Facilities Grid */
.facilities { padding: 100px 0; background: var(--light); }

.section-header { text-align: center; margin-bottom: 4rem; }

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.1); border-color: transparent; }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); border-color: var(--primary); }
    100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.1); border-color: transparent; }
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    transition: 0.4s;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    animation: pulseGlow 2s infinite;
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card h3 { margin-bottom: 0.8rem; color: var(--dark); }

/* --- APPOINTMENT SECTION --- */
.appointment { 
    padding: 80px 0; /* Reduced padding slightly */
    scroll-margin-top: 120px; 
}

/* FIX: Changed from Grid to Flex Column to stack vertically */
.flex-split {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Space between details and form */
    max-width: 800px; /* Limits width for better readability */
    margin: 0 auto; /* Centers content */
}

/* Ensure contact details take full width of the centered container */
.contact-details { 
    scroll-margin-top: 150px; 
    width: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0;
}

.info-item i {
    background: #eff6ff;
    color: var(--primary);
    padding: 1rem;
    border-radius: 12px;
    margin-right: 1.5rem;
}


/* === BOOKING CARD (Custom Palette) === */
.booking-card {
    background: linear-gradient(135deg, #E3E3E3 0%, #ffffff 100%);
    color: #1B3C53;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -5px rgba(27, 60, 83, 0.1);
    border: 1px solid #d1d5db;
    position: relative;
    overflow: hidden;
    width: 100%; /* Ensures it fills the container */
}

.booking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #234C6A;
}

.booking-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: #1B3C53;
}

.input-group { margin-bottom: 2rem; position: relative; z-index: 2; }

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #456882;
    font-weight: 600;
}

.input-group select {
    width: 100%;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid #456882;
    background: #ffffff;
    color: #1B3C53;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231B3C53%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem top 50%;
    background-size: 0.8rem auto;
}

.input-group select:focus {
    border-color: #234C6A;
    box-shadow: 0 0 0 4px rgba(35, 76, 106, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: #234C6A;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(27, 60, 83, 0.2);
}

.btn-submit:hover {
    background: #1B3C53;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(27, 60, 83, 0.3);
}

.phone-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.phone-link {
    background: #ffffff;
    color: #1B3C53;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #E3E3E3;
    border-left: 5px solid var(--success);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.phone-link:hover {
    background: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--success);
}

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

footer { text-align: center; padding: 3rem; color: #64748b; font-size: 0.9rem; }

/* === MOBILE STYLES === */
.mobile-bottom-bar {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 10px 15px;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
}

.mobile-action-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.call-btn { background: #eff6ff; color: var(--primary); border: 1px solid var(--primary); }
.book-btn { background: var(--primary); color: white; }

/* Media Queries for Smartphone Screens */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    .navbar { height: 80px; }
    .navbar .container { 
        padding: 0 15px; 
        justify-content: flex-start;
        gap: 12px;
    } 

    .logo-img { height: 50px; flex-shrink: 0; }
    
    .brand-name { 
        display: block; 
        font-size: 0.85rem; 
        line-height: 1.2; 
        white-space: normal; 
        max-width: 200px;
        color: var(--dark);
    }
    
    .nav-links { display: none; }
    .mobile-bottom-bar { display: flex; }
    
    body { padding-bottom: 70px; } 

    .hero { padding: 80px 0 40px 0; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 2rem; }
    
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn-primary, .btn-secondary { width: 100%; margin: 0; text-align: center; padding: 1rem; }

    .facilities { padding: 60px 0; }
    .facility-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    
    .card { 
        padding: 1.5rem 0.5rem; 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }
    .card i { font-size: 1.8rem; margin-bottom: 0.8rem; }
    .card h3 { font-size: 0.95rem; line-height: 1.3; margin-bottom: 0.3rem; }
    .card p { display: none; }

    .appointment { padding: 60px 0; }
    .section-header h2 { font-size: 1.8rem; }
    
    /* On mobile, flex-split already stacks because of column direction, but gaps can be adjusted */
    .flex-split { gap: 3rem; }
    
    .booking-card { padding: 2rem 1.5rem; }
    .booking-card h3 { font-size: 1.5rem; }
    
    .input-group select { font-size: 16px; }
}