/* ================================
   GLOBAL & ROOT VARIABLES
================================ */
:root {
    --primary-color: #007bff; /* A professional, trustworthy blue */
    --secondary-color: #1e90ff;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #555;
    --white-color: #ffffff;
    --success-color: #28a745; /* A calm green */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.button-primary, .button-secondary {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.button-primary:hover {
    background-color: #0056b3;
}

.button-secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.button-secondary:hover {
     background-color: var(--primary-color);
    color: var(--white-color);
}

/* ================================
   HEADER & NAVIGATION (GLOBAL)
================================ */
.main-header {
    background: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
    text-decoration: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 15px;
    font-weight: 500;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--primary-color);
}

/* ================================
   HERO SECTION
================================ */
.hero-section {
    background-image: linear-gradient(rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.1)), url(https://images.unsplash.com/photo-1551192018-09e843e93823?w=1200);
    background-size: cover;
    background-position: center;
    color: var(--dark-color);
    text-align: center;
    padding: 100px 0;
}
.hero-section h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
}
.section-title h2 {
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
    color: var(--dark-color);
    margin-bottom: 10px;
}
.hero-section .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 15px auto 30px auto;
}
.hero-buttons .button-primary {
    margin-right: 15px;
}
.page-header h1 {
    color: var(--white-color);
    font-size: clamp(2.2rem, 5vw + 1rem, 3rem);
    margin: 0;
}


/* ================================
   KEY INFO BAR
================================ */
.key-info-bar {
    background: var(--light-color);
}
.key-info-bar .container {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    text-align: center;
    flex-wrap: wrap;
}
.info-item {
    display: flex;
    align-items: center;
    text-align: left;
    margin: 10px 15px;
}
.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 15px;
}
.info-item h4 {
    margin: 0;
    color: var(--dark-color);
}
.info-item p {
    margin: 0;
}

/* ================================
   SERVICES OVERVIEW
================================ */
.services-overview {
    padding: 80px 0;
    background: var(--white-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--light-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}
.service-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}


/* ================================
   WHY CHOOSE US
================================ */
.why-choose-us {
    padding: 80px 0;
    background: var(--light-color);
}
.why-choose-us .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.why-image, .why-content {
    flex: 1;
}
.why-image img {
    width: 100%;
    border-radius: 8px;
}
.why-content .section-title { text-align: left; }
.why-content ul {
    list-style: none;
    padding: 0;
}
.why-content ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.why-content ul li i {
    color: var(--success-color);
    margin-right: 10px;
}


/* ================================
   FOOTER (GLOBAL)
================================ */
.main-footer {
    background: var(--dark-color);
    color: #ccc;
    padding: 50px 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}
.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}
.footer-column p, .footer-column a {
    color: #ccc;
    text-decoration: none;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul a:hover {
    color: var(--white-color);
}
.social-icons a {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-right: 15px;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}
/* ================================
   SERVICES PAGE
================================ */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 50px 20px;
}
.page-header h1 {
    color: var(--white-color);
    font-size: 3rem;
    margin: 0;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
}

.service-detail-section {
    padding: 80px 0;
}

.service-item-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

/* For alternating layout */
.service-item-layout.reverse {
    flex-direction: row-reverse;
}

.service-item-image, .service-item-content {
    flex: 1;
}

.service-item-image img {
    width: 100%;
    border-radius: 8px;
}

.service-item-content h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-top: 0;
}

.service-item-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.service-item-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
.service-item-content ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* Responsive adjustments for services page */
@media(max-width: 768px) {
    .service-item-layout, .service-item-layout.reverse {
        flex-direction: column;
    }
}
/* ================================
   OUR TEAM PAGE
================================ */
.team-section {
    padding: 80px 0;
    background: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top; /* Ensures headshots are not cut off */
}

.team-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-card-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.team-card-content .specialty {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}

.team-card-content .bio {
    flex-grow: 1; /* Pushes the button to the bottom */
    margin-bottom: 20px;
}
/* ================================
   PATIENT INFO PAGE
================================ */
.patient-info-page {
    padding: 80px 0;
    background: var(--white-color);
}

.patient-info-layout {
    display: flex;
    gap: 60px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 0 0 250px; /* Do not grow, do not shrink, base width of 250px */
    position: sticky;
    top: 120px; /* Aligns with sticky header height */
    align-self: flex-start; /* Important for sticky positioning */
}

.sidebar-nav h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.sidebar-nav ul li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Main Content Area */
.info-content {
    flex: 1; /* Takes up the remaining space */
}

.info-section {
    margin-bottom: 60px;
    padding-top: 20px; /* For scroll-to-id offset */
    margin-top: -20px;
}

.info-section h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.form-download-list {
    margin-top: 20px;
}
.form-download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}
.form-download-item:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
.form-download-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* Responsive adjustments */
@media(max-width: 992px) {
    .patient-info-layout {
        flex-direction: column;
    }
    .sidebar-nav {
        position: static; /* Remove sticky on smaller screens */
        width: 100%;
        margin-bottom: 40px;
    }
}
/* ================================
   CONTACT PAGE
================================ */
.contact-page-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.map-container {
    margin-top: 30px;
    width: 100%;
    height: 350px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.contact-form-container {
    background: var(--light-color);
    padding: 40px;
    border-radius: 8px;
}
.contact-form-container h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.contact-form .full-width {
    width: 100%;
}

/* Responsive adjustments */
@media(max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================
   MOBILE NAVIGATION & RESPONSIVE HEADER
================================ */
.header-right {
    display: flex;
    align-items: center;
}

.hamburger-button {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Responsive styles starting from tablet size downwards */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 75px; /* Height of the header */
        left: 0;
        width: 100%;
        background: var(--white-color);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-nav.is-active {
        display: flex; /* Show the nav when active */
    }

    .main-nav a {
        margin: 15px 0;
        text-align: center;
        font-size: 1.2rem;
    }

    .desktop-only {
        display: none; /* Hide desktop CTA button */
    }

    .hamburger-button {
        display: flex; /* Show the hamburger button */
    }
}

/* Animation for the hide/show header on scroll */
.main-header {
    transition: transform 0.3s ease-in-out;
}

.main-header.is-hidden {
    transform: translateY(-100%);
}
/* Add these styles to the bottom of your style.css file */

/* --- HAMBURGER & MOBILE MENU ENHANCEMENTS --- */

/* Add a transition to the mobile nav for a smooth slide-down effect */
.main-nav {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
}

/* Modify the .is-active state to use transform and opacity */
@media (max-width: 992px) {
    .main-nav {
        display: flex; /* Keep it as flex */
        position: fixed;
        top: 75px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background: var(--white-color);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        
        /* Set initial state for transition */
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.is-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto; /* Allow interaction when visible */
    }
}


/* Hamburger Icon transition to "X" */
.hamburger-button.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}