/* 1. Global Reset & Variables */
:root {
    --lead: #212121;
    --orange: #FF7A00;
    --lime: #32CD32;
    --white: #ffffff;
    --light-bg: #F8F9FA;
    --border-color: #eeeeee;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    color: var(--lead);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

.logo-image {
    display: block;
    height: 80px; /* Adjust this height to fit your navbar's aesthetic */
    width: auto;  /* Keeps the aspect ratio perfect */
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8; /* Subtle visual feedback when hovering */
}

/* Ensure the logo container doesn't have extra padding */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* 2. Responsive Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; /* Prevents the items from wrapping to a second line */}
.logo-text { font-weight: 800; font-size: 1.2rem; }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--lead); font-weight: 500; font-size: 0.95rem; }

.nav-cta {
    background: var(--orange);
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
}

/* 3. Hero Section */
.hero { padding: 40px 0; background-color: var(--light-bg); }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center; /* This ensures both columns center their content */
}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: clamp(2.0rem, 3vw, 4rem); line-height: 1.1; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; color: var(--lead); margin-bottom: 40px; opacity: 0.9; }

.hero-image {
    display: flex;
    justify-content: center; /* Centers the image horizontally */
}

.hero-image img {
   display: block;
    width: 100%;
    max-width: 500px; /* Limits size on large screens */
    height: auto;
    border-radius: 12px;
}

@media (max-width: 992px) { 
    /* We increase this to 992px to handle tablets where 2-cols feel cramped */
    .hero-grid {
        grid-template-columns: 1fr; /* Switch to 1 column earlier */
        text-align: center;
    }
    
    .hero-text {
        order: 2; /* Keeps text on top */
    }
    
    .hero-image {
        order: 1; /* Keeps image below */
        margin-top: 30px;
    }
}

.cta-group { display: flex; gap: 15px; justify-content: center; }
.btn { padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s; text-align: center; }
.btn-orange { background: var(--orange); color: white; }
.btn-outline { border: 2px solid var(--orange); color: var(--orange); }

/* 4. Logo Banner */
.logo-banner { padding: 40px 0; background: white; overflow: hidden; border-top: 1px solid var(--border-color); }
.banner-title { text-align: center; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--lead); margin-bottom: 20px; opacity: 0.6; }
.logo-slider { overflow: hidden; width: 100%; }
.logo-slide-track { display: flex; width: calc(250px * 10); animation: scroll 40s linear infinite; }
.slide { width: 250px; padding: 0 30px; }
.slide img { width: 100%; max-height: 50px; object-fit: contain; filter: grayscale(0%); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 5)); } }

/* Update your existing .logo-slide-track class or add this below it */
.logo-slide-track:hover {
    animation-play-state: paused;
}

/* Ensure the slider container is interactive */
.logo-slider {
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}

/* Adjust slide images for better visibility since removing grayscale */
.slide img {
    height: 400px;        /* Set this to your desired consistent height */
    width: auto;          /* Let the width adjust proportionally */
    min-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom effect on individual logo hover */
.slide img:hover {
    transform: scale(1.1);
}

/* 4. Logo Banner */
.logo-banner { 
    padding: 40px 0; 
    background: white; 
    overflow: hidden; 
    border-top: 1px solid var(--border-color); 
}

.banner-title { 
    text-align: center; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--lead); 
    margin-bottom: 20px; 
    opacity: 0.6; 
}

.logo-slider { 
    overflow: hidden; 
    width: 100%; 
}

.logo-slide-track { 
    display: flex; /* This prevents vertical stacking */
    width: calc(250px * 18); /* Must be wide enough for all slides */
    animation: scroll 30s linear infinite; 
}

/* Pause animation on hover */
.logo-slide-track:hover {
    animation-play-state: paused;
}

.slide { 
    width: 250px; 
    padding: 0 30px; 
    flex-shrink: 0; /* Ensures slides don't squash */
}

.slide img { 
    width: 100%; 
    max-height: 50px; 
    object-fit: contain; 
    filter: grayscale(0%); /* Removed grayscale as requested */
    transition: transform 0.3s ease;
    opacity: 1;
}

.slide img:hover {
    transform: scale(1.1); /* Interactive feedback */
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-250px * 9)); } 
}

.about-brief {
    padding: 100px 0;
    background: var(--white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Image on left, text on right */
    gap: 60px;
    align-items: center;
}

.portrait {
    width: 100%;
    border-radius: 12px;
}

.bio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.bio-text p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--lead);
    opacity: 0.9;
}

.text-link {
    color: var(--orange);
    font-weight: 400;
    text-decoration: none;
}

/* Mobile stacking */
@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .portrait {
        max-width: 300px;
        margin: 0 auto;
    }
}

.profile-photo {
    width: 100%;
    max-width: 500px;
    border-radius: 15px; /* Softens the professional look */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

.location-bar {
    background: var(--light-bg);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
}

/* 5. Hamburger & Mobile Logic */
.menu-toggle { display: none !important; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1100; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--lead); border-radius: 10px; }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: flex; position: fixed; right: -100%; top: 0; 
        flex-direction: column; background: white; width: 70%; height: 100vh;
        padding-top: 100px; transition: 0.4s; box-shadow: -10px 0 20px rgba(0,0,0,0.05);
    }
    .menu-toggle:checked ~ .nav-links { right: 0; }
    .hero-grid { text-align: center; }
    .cta-group { flex-direction: column; justify-content: center; }
}

@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Prevents the hamburger from dropping to a new line */
    }

    .logo-image {
        height: 50px; /* Smaller logo on mobile to leave room for the hamburger */
    }

    .hamburger {
        display: flex;
        flex-shrink: 0; /* Prevents the hamburger from being squashed */
        margin-left: 15px;
    }
}

/* 6. Footer */
footer { padding: 60px 0; background: var(--lead); color: white; font-size: 0.85rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-legal a { color: var(--orange); text-decoration: none; }
.practice-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 5px; }

.footer-link {
    color: var(--white); /* Starts white to match footer text */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--orange); /* Turns orange when hovered */
}

.about-section {
    padding: 40px 0;
}

.about-section.alternate {
    background-color: var(--light-bg);  /* Subtle grey background for contrast */
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-flex.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    flex: 40% 0;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* Mobile: Stack normally and remove the reverse effect */
@media (max-width: 768px) {
    .about-flex, .about-flex.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.contact-hero {
    text-align: center;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.contact-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.contact-link {
    display: block;
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    font-size: 1.1rem;
}

.map-placeholder {
    margin: 20px 0;
    padding: 40px;
    background: #f0f0f0;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.parking-note {
    font-size: 0.9rem;
    color: #666;
    padding: 15px;
    background: #fffbe6; /* Very subtle yellow for a "note" feel */
    border-left: 4px solid var(--orange);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.map-container {
    margin: 20px 0;
    line-height: 0; /* Removes unexpected spacing at the bottom of the iframe */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: 0.3s;
}

.instagram-link:hover {
    opacity: 1;
    color: var(--orange);
}

.instagram-link svg {
    stroke: currentColor;
}

.professional-meta {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.qualifications {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--lead);
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.gdc-tag {
    font-size: 0.85rem;
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: 4px;    color: #666;
    text-transform: uppercase;
}

/* Referral Card Styling */
.referral-section { padding: 30px 0; }
.referral-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Ensure referral buttons wrap and stack on mobile */
.referral-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows buttons to drop to the next line */
    margin-top: 20px;
}

@media (max-width: 480px) {
    .referral-actions .btn {
        width: 100%; /* Makes buttons full-width on very small screens */
        display: block;
    }
}
.referral-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.referral-list { list-style: none; }
.referral-list li::before {
    content: "•";
    color: var(--orange);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* Education Grid */
.education-section { padding-bottom: 80px; }
.education-header { text-align: center; margin-bottom: 40px; }
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.edu-card {
    background: white;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}
.edu-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-decoration-line: underline;
    text-decoration-color: rgba(255, 122, 0, 0.5);
}

.edu-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.edu-card h3 { margin-bottom: 15px; color: var(--lead); }
.edu-card ul { list-style-position: inside; list-style: none; font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;}
.edu-card ul li { margin-bottom: 8px; }

.mentor-link {
    display: inline-block;
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto; /* This is the "magic" line that pushes the link down */
    padding-top: 20px; /* Adds a bit of breathing room above the link */
    display: inline-block;
}

/* Testimonials */
.edu-testimonials {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: #555;
}

.testimonial-author {
    font-style: normal;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .referral-grid, .education-grid { grid-template-columns: 1fr; }
}

/* Patient Page Specifics */
.philosophy-section {
    padding: 60px 0;
}

.philosophy-card {
    background: #fdfdfd;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.philo-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.philo-item h3 {
    color: var(--orange);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cases-cta {
    text-align: center;
    background: var(--lead);
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 40px 0;
}

.cases-cta h2 { color: white; }

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.testimonial {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    font-style: italic;
}

.client-name {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .philosophy-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Cases Gallery Styling */
.cases-header {
    padding: 60px 0 40px;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.case-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px); /* Very subtle lift without a shadow */
}

.case-image img {
    width: 100%;
    height: 300px;
    object-fit: cover; /* Keeps before/after alignment tidy */
    border-bottom: 1px solid var(--border-color);
}

.case-content {
    padding: 30px;
}

.case-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.case-card h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.case-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .case-image img {
        height: 200px;
    }
}

/* Lightbox Styles */
.case-lightbox {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.zoom-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.case-lightbox:hover .zoom-overlay {
    opacity: 1;
}

/* The actual overlay that appears when clicked */
#lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: zoom-out;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid white;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
/* Remove default link styling from the lightbox wrapper */
.case-lightbox {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Forces text to stay your dark grey/black */
    display: block;        /* Ensures it keeps its shape */
}

.case-lightbox:hover {
    text-decoration: none; /* Keeps underline off on hover */
    color: inherit;
}

.privacy-policy {
    max-width: 850px;
    margin: 80px auto;
    color: var(--lead);
}

.policy-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.privacy-policy h1 {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 20px;
}

.privacy-policy h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.privacy-policy ul {
    margin: 20px 0;
    padding-left: 20px;
}

.privacy-policy li {
    margin-bottom: 12px;
}

.privacy-policy address {
    font-style: normal;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
