/* ===== CSS VARIABLES & SETUP ===== */
:root {
    --primary: #0d9488; /* Teal 600 */
    --primary-dark: #0f766e; /* Teal 700 */
    --primary-light: #ccfbf1; /* Teal 50 */
    --secondary: #0ea5e9; /* Sky 500 */
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 */
    --bg-main: #ffffff;
    --bg-light: #f8fafc; /* Slate 50 */
    --border: #e2e8f0; /* Slate 200 */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-muted); }

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-main);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1;
}

.logo-red {
    color: #e03131; /* Vibrant warm medical brand red */
    font-weight: 700;
}

.logo-black {
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.navbar.scrolled .logo-black {
    color: #0f172a; /* Slate 900 (Rich Black) */
}

.footer .logo-black {
    color: white;
}

.logo-text > span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar.scrolled .logo-text > span {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: white;
    font-size: 0.95rem;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--text-main);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--text-main);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: white;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ===== SECTIONS GENERIC ===== */
.section {
    padding: 6rem 0;
}

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

/* ===== ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 8px solid white;
    font-family: var(--font-heading);
    font-weight: 700;
}

.experience-badge span {
    font-size: 2rem;
    line-height: 1;
}

.insurance-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.insurance-box h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insurance-box .small-text {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

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

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
}

/* ===== DOCTOR SECTION ===== */
.doctor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.doctor-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doctor-details li {
    display: flex;
    gap: 1rem;
}

.doctor-details i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.doctor-details strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.doctor-details span {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.doctor-image-placeholder {
    border-radius: 20px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

/* Sharpening filter applied to doctor's photo */
.doctor-image-placeholder img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.08) brightness(1.02) saturate(1.05);
    /* Unsharp-mask equivalent via drop-shadow trick */
    transition: filter 0.3s ease;
}

.doc-badge {
    position: absolute;
    background: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-card {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.office-photo-card {
    margin-top: 0.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: white;
    padding: 0.5rem;
}

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

.office-photo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.office-photo-card:hover img {
    transform: scale(1.03);
}

.info-card-link {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    width: 100%;
}

.info-card > i,
.info-card-link > i {
    width: 48px;
    height: 48px;
    background-color: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.info-card p, .info-card a {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.info-card a:hover {
    color: var(--primary);
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-success {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer .logo-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer .logo-text strong {
    color: white;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links a,
.footer-services a {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-links a:hover,
.footer-services a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.75rem; }
    .about-container, .doctor-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .experience-badge {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a:not(.btn) {
        color: var(--text-main);
    }
    
    .mobile-toggle {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
