/* =========================================
    CSS Variables & Theme Setup
    ========================================= */
:root {
    --primary-green: #0c3e26;
    --primary-dark: #072718;
    --accent-gold: #c69f4c;
    --accent-gold-light: #dfba6b;
    --bg-offwhite: #fdfdfb;
    --surface-color: #f4f1ea;
    
    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-light: #ffffff;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .serif {
    font-family: var(--font-serif);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
    Header & Navigation
    ========================================= */
.header {
    background-color: var(--primary-green);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(198, 159, 76, 0.2);
}

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

.logo-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-green);
    border: 1px solid var(--accent-gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--primary-green);
}

/* =========================================
    Hero Section (Typographic & CSS Art)
    ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 6rem 0 10rem 0;
    position: relative;
    overflow: hidden;
    border-bottom-right-radius: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(198, 159, 76, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-tagline {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0; 
}



.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--bg-offwhite);
}

.hero-title span {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-title .plain-text, .hero-title .pipe {
    color: var(--bg-offwhite);
    font-style: normal;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.8;
}

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

/* Abstract CSS Art */
.hero-art {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.art-circle-1 {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(198, 159, 76, 0.2);
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

.art-circle-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px dashed var(--accent-gold);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.art-monogram {
    font-family: var(--font-serif);
    font-size: 8rem;
    color: var(--accent-gold);
    line-height: 1;
    font-style: italic;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.art-monogram::after {
    content: 'C';
    position: absolute;
    left: -15px;
    top: -15px;
    color: rgba(198, 159, 76, 0.1);
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* =========================================
    Specialists Section
    ========================================= */
.specialists {
    padding: 0 0 6rem 0;
    position: relative;
    z-index: 10;
}

.specialists-inner {
    margin-top: -5rem;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-body);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.doctor-card {
    background-color: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-gold);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(12, 62, 38, 0.08);
}

/* Monogram Avatar */
.avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-family: var(--font-serif);
    font-size: 2.2rem;
    box-shadow: 0 10px 20px rgba(198, 159, 76, 0.2);
    overflow: hidden; /* Added to keep photo inside circle */
}

/* Added to style the uploaded photo if you decide to replace the NP/HP text with an <img> tag */
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-name {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.doc-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.doc-creds {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.7;
}

.doc-creds span {
    display: block;
    margin-top: 0.3rem;
}

/* =========================================
    Services Section
    ========================================= */
.services {
    padding: 4rem 0 6rem 0;
    background-color: var(--bg-offwhite);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    border: 1px solid rgba(12, 62, 38, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    background: #ffffff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--accent-gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: rgba(198, 159, 76, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.service-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-icon {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: rgba(198, 159, 76, 0.3);
    margin-bottom: 1.5rem;
    display: block;
}

.service-title {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
    Footer
    ========================================= */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem 0;
    border-top: 4px solid var(--accent-gold);
}

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

.footer-logo .logo-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 300px;
    margin-top: 1rem;
}

.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 80px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* =========================================
    Hamburger Menu Base Styles
    ========================================= */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 110;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--accent-gold);
    transition: 0.3s;
}

/* =========================================
    Responsive Design
    ========================================= */
@media (max-width: 992px) {
    /* Hide the header Book Appointment button on mobile */
    .header .btn {
        display: none;
    }

    /* Stack Hero Title neatly on mobile */
    .hero-title .pipe, .hero-title .desktop-br {
        display: none;
    }
    .hero-title .plain-text, .hero-title span {
        display: block;
        margin-bottom: 0.3rem;
        line-height: 1.1;
    }

    /* Show Hamburger on Mobile */
    .hamburger {
        display: flex;
        margin-left: auto; /* This pushes the icon to the far right edge */
    }

    /* Style the Slide-out Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 250px;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        transition: 0.4s ease-in-out;
        border-left: 2px solid var(--accent-gold);
        z-index: 105;
    }

    .nav-links.active {
        right: 0; /* Slides in when active */
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    /* Animate Hamburger into an 'X' */
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Layout Adjustments */
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        position: relative;
        z-index: 2;
    }
    .hero-content {
        position: relative;
        z-index: 3;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-desc {
        margin: 0 auto 2.5rem auto;
    }
    .hero-actions {
        justify-content: center;
    }
    
    /* Move Hero Art to Background Watermark on Mobile */
    .hero-art {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
        opacity: 0.15; /* Fades it into the background */
        z-index: 1; /* Puts it strictly behind the text */
        pointer-events: none; /* Prevents it from blocking button clicks */
        height: 100%;
        width: 100%;
    }
    
    .specialists-inner {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero {
        padding: 4rem 0 8rem 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
}