/* CSS RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FAF8F5;    /* Soft warm alabaster/white */
    --bg-secondary: #F3EFE9;  /* Elegant warm beige */
    --accent-color: #D4C5B9;  /* Muted earth/stone beige */
    --text-dark: #3A3530;     /* Deep charcoal for readability */
    --text-muted: #6E665E;    /* Soft brown-gray for secondary text */
    --border-color: #E6DFD5;  /* Subtle divider lines */
    --white: #FFFFFF;
    --font-family: 'Nokora', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* LAYOUT UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 1rem auto 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid var(--text-dark);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* NAVIGATION HEADER (DEEP CHARCOAL BACKGROUND) */
header {
    background-color: #FAF8F5; /* Flipped to the dark landing page tone */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.site-alert {
    width: 100%;
    margin: 0;
    padding: 0.85rem 2rem;
    color: #7A1A1A;
    background-color: #F8D7DA;
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-align: center;
    font-weight: 700;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
}

.nav-logo {
    width: 48px;
    height: auto;
    display: block;
}

/* SVG Path overrides for crisp navigation branding on dark background */


.logo-placeholder {
    font-size: 1.45rem;
    letter-spacing: 0.75px;
    font-weight: 700;
    color: var(--text-muted ); /* Flipped to light text */
    text-decoration: none;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.75rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark); /* High contrast links */
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.25s ease;
}

/* Underline Hover Effect using bright baseline tone */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-muted);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav a:hover {
    color: var(--text-muted); /* Subtle accent color on hover */
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--bg-primary);
    transition: var(--transition);
}

/* MID-TONE LANDING PAGE (WARM BEIGE) */
.hero {
    background-color: var(--bg-secondary); /* Now matches the doctor section profile tone */
    min-height: calc(100vh - 95px); 
    display: flex;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag-line-decorator {
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: var(--text-muted);
}

.tag-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.hero-left h1 {
    font-size: 3.75rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark); /* Swapped back to deep charcoal */
    margin-bottom: 2.5rem;
}

.text-serif-accent {
    font-style: italic;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
}

/* Balanced Card Overlays */
.hero-right {
    display: flex;
    justify-content: flex-end;
}

.clinic-info-card {
    background-color: var(--bg-primary); /* Layered cleanly over the warm beige background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 15px 35px rgba(58,53,48,0.04);
}

.card-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-card-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.info-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.info-card-icon {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.info-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.row-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.row-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
}

/* DOCTOR PROFILE SECTION */
.doctor-section {
    background-color: var(--white); /* Adjusted cleanly to alternate sections */
    border-bottom: 1px solid var(--border-color);
}

.doctor-card {
    background-color: var(--bg-primary); /* Layered softly over the white background */
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border: 1px solid var(--border-color);
}

.doctor-image-placeholder {
    background-color: #EFECE6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.doctor-image-placeholder svg {
    width: 80px;
    height: 80px;
    fill: var(--accent-color);
}

.doctor-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doctor-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.doctor-bio {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58,53,48,0.03);
}

.service-icon {
    margin-bottom: 1.5rem;
    height: 40px;
    display: flex;
    align-items: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--text-dark);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CONTACT & MAP SECTION */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.contact-list li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list svg {
    width: 20px;
    height: 20px;
    fill: var(--text-dark);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-list span {
    font-size: 1rem;
    color: var(--text-dark);
}

.map-container {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 0.5rem;
    height: 450px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FOOTER */
footer {
    background-color: var(--text-dark);
    color: var(--bg-primary);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #4D4640;
    padding-bottom: 3rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--white);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
    color: var(--accent-color);
}

.footer-col p, .footer-col li {
    color: #C8BFB7;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #9E948C;
    font-size: 0.8rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-tagline {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-right {
        justify-content: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .doctor-card {
        grid-template-columns: 1fr;
    }
    .doctor-image-placeholder {
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .doctor-info {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }
    .hero-left h1 {
        font-size: 2.75rem;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 95px;
        left: 0;
        width: 100%;
        background-color: var(--text-dark); /* Responsive mobile dropdown matches dark header */
        padding: 2rem;
        border-bottom: 1px solid #4D4640;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .section {
        padding: 4rem 0;
    }
}