/* style.css (Updated) */
/* --- Desktop Navbar Fix (Ensure visibility) --- */
.nav-menu {
    display: flex;
    list-style: none;
}

/* --- Mobile Menu Styles --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--charcoal);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Shown on mobile */
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%; /* Hidden off-screen by default */
        top: 70px; /* Adjust based on your navbar height */
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-menu.mobile-active {
    left: 0;
    display: flex; /* Ensures it shows up */
}

    .nav-menu li {
        margin: 15px 0;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #3d3d3d;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #be8f4b;
    padding: 1.2rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: padding 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    padding: 0.8rem 5%;
    background: #be8f4b;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.logo-section img {
    transition: transform 0.3s;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.logo-text p {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: opacity 0.3s;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 1.1rem;
    transition: transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 90vh;
    background: linear-gradient(rgba(139, 115, 85, 0.5), rgba(139, 115, 85, 0.5)), 
                url('pics/WhatsApp Image 2025-12-10 at 4.56.29 PM.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;    
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-btn {
    background: #be8f4b;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
    border-radius: 50px;
    text-decoration: none;
}

.cta-btn:hover {
    background: #be8f4b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Journey Section */
.journey-section {
    padding: 5rem 5%;
    background: #8B7355;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.journey-content {
    color: white;
}

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.journey-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.3;
}

.features-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon::after {
    content: '✔';
    font-size: 1rem;
}

.journey-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.more-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.more-link:hover {
    transform: translateX(10px);
}

.journey-carousel {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Specialists Section */
.specialists-section {
    padding: 5rem 5%;
    background: #D4C4B0;
}

.specialists-section .section-tag {
    text-align: center;
    color: #B89968;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #3d3d3d;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section-intro {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 4rem;
    color: #3d3d3d;
    font-size: 0.95rem;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.team-member {
    background: #F5F0E8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.member-photo {
    width: 100%;
    height: 350px;
    background-size: cover;
    /* Changed default position to be a little less aggressive for better head clearance */
    background-position: center 15%; 
    position: relative;
    overflow: hidden;
}

/* --- RECEPTIONIST MODIFICATION (Original Class, kept for receptionist) --- */
.receptionist-photo {
    background-position: center 30%;
}

/* --- CHAUNCY'S HEADS-IN-FRAME FIX: Dr. Raza and Nurse Labita --- */
/* (Image moved UP inside frame to show head) */
.member-photo-down {
    background-position: center 5%; 
}

/* --- NEW FIX: Dr. Ghassan only (Image moved slightly DOWN to 15% from the top) --- */
.dr-ghassan-position {
    background-position: center 15%; 
}
/* ----------------------------------------------------------------------- */


.member-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.member-info {
    padding: 1.8rem;
    text-align: center;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6B5D47;
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.8rem;
    color: #B89968;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.member-bio {
    color: #5d5d5d;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
}

/* Services Section */
.services-section {
    padding: 5rem 5%;
    background: white;
}

.services-section .section-tag {
    text-align: center;
    color: #B89968;
}

.services-description {
    max-width: 1100px;
    margin: 0 auto 3rem;
    color: #5d5d5d;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto 3rem;
}

.service-card {
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d3d3d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.view-all-link {
    color: #B89968;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: transform 0.3s;
}

.view-all-link:hover {
    transform: translateX(10px);
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    padding: 20px;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    display: flex; /* IMPORTANT: Enables flex layout */
    max-height: 80vh;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* SWAP CLASS FOR SERVICE MODAL (Desktop/Horizontal Swap) */
.modal-content.swapped-modal .modal-image {
    order: 1; /* Moves the image to the bottom/right side */
}

.modal-content.swapped-modal .modal-details {
    order: 0; /* Moves the details to the top/left side */
}
/* END SWAP CLASS */

.service-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    cursor: pointer; /* Indicate it's clickable */
    transition: order 0.3s ease; /* For smooth visual change */
}

.modal-details {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 100%;
    transition: order 0.3s ease; /* For smooth visual change */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    color: #B89968;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.modal-description {
    color: #5d5d5d;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-features {
    margin-bottom: 1.5rem;
}

.modal-features h3 {
    color: #6B5D47;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* --- Special Offers Section --- */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.special-offer-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.special-offer-card:hover {
    transform: translateY(-10px);
}

/* Make the link container fill the card */
.special-offer-card a {
    text-decoration: none;
    display: block;
    width: 100%;
}

.offer-image {
    width: 100%;
    line-height: 0; /* Removes extra space under image */
}

.offer-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Shows full picture without cropping */
}

.offer-details {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.offer-tag {
    display: inline-block;
    background: #fdf2f8;
    color: #be185d;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr; /* Forces cards to be full width on phones */
        padding: 15px;
        gap: 20px;
    }
    
    .special-offer-card {
        max-width: 100%;
    }

    .offer-image img {
        width: 100%;
        height: auto; /* Ensures the flyer isn't squished */
    }
}

.cta-btn {
    display: inline-block; /* Ensure the button is styled correctly */
    margin-top: 0; /* Remove top margin, rely on fineprint margin */
}

/* Media query is no longer necessary here as the grid automatically adjusts */

.modal-features ul {
    list-style: none;
    padding-left: 0;
}

.modal-features li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
}

.modal-features li i {
    color: #B89968;
    margin-right: 8px;
    margin-top: 4px;
    font-size: 0.8rem;
}

.modal-pricing {
    background: #F5F0E8;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-pricing h3 {
    color: #6B5D47;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e0d9cc;
    font-size: 0.9rem;
}

.price-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-cta {
    text-align: center;
}

.modal-cta .cta-btn {
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* Final CTA */
.final-cta {
    padding: 6rem 5%;
    background: linear-gradient(rgba(93, 78, 58, 0.7), rgba(93, 78, 58, 0.7)), 
                url('https://images.unsplash.com/photo-1487412947147-5cebf100ffc2?w=1920&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

/* Footer */
footer {
    background: #5d4e3a;
    color: #D4C4B0;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto 3rem;
}

.footer-logo .logo-icon {
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #D4C4B0;
    font-size: 0.9rem;
    line-height: 1.8;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #7a6a53;
    font-size: 0.85rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* New rule to center the payment logos (Tabby and Tamara) */
.payment-logos-container {
    /* 1. Use Flexbox to manage internal layout */
    display: flex;
    /* 2. Center the items (Tabby and Tamara) horizontally */
    justify-content: center;
    /* Optional: Space between the logos, adjust as needed */
    gap: 3rem; 
    /* Max width to prevent them from stretching too wide on large screens */
    max-width: 1200px;
    /* Center the container itself using margin auto (if its parent is full width) */
    margin: 3rem auto;
    padding: 0 5%;
}

/* Optional: To make the individual logo blocks responsive */
.payment-logo-block {
    max-width: 300px; /* Adjust as per your image size */
    flex-basis: 45%; /* Give them space to grow/shrink */
    text-align: center; /* Centers any text/captions below the image */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .modal-content {
        flex-direction: column;
        max-height: 85vh;
    }

    /* FOR MODALS ON SMALL SCREENS (Stacking) */
    .modal-content.swapped-modal .modal-image {
        order: 1; /* Move image to the bottom */
    }

    .modal-content.swapped-modal .modal-details {
        order: 0; /* Move details/text to the top */
    }
    
    .modal-image {
        min-height: 250px;
        flex: 0 0 auto;
    }
    
    .staff-modal .modal-content {
        flex-direction: column;
        max-height: 85vh;
    }
    
    .staff-modal .modal-image {
        min-height: 250px;
        flex: 0 0 auto;
    }
}

@media (max-width: 968px) {
    .nav-menu,
    .social-icons {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu.mobile-active {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #B89968;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .journey-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .final-cta h2 {
        font-size: 2.2rem;
    }

    .journey-content h2,
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Ensure the offer card swaps correctly on smaller screens */
    .offers-grid {
         grid-template-columns: 1fr; /* Stack offers on mobile */
    }
}

@media (max-width: 640px) {
    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .journey-carousel {
        height: 300px;
    }

    .member-photo {
        height: 300px;
    }

    nav {
        padding: 1rem 5%;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.6rem;
    }

    .logo-section img {
        height: 45px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-details {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
}
@media (max-width: 480px) {

  /* General Body */
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Navigation */
  nav {
    padding: 0.8rem 5%;
  }

  .logo-section img {
    height: 40px;
  }

  .logo-text h1 {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .logo-text p {
    font-size: 0.55rem;
  }

  .nav-menu.mobile-active {
    top: 70px;
    padding: 1.5rem;
    gap: 1rem;
  }

  /* Hero Section */
  .hero {
    height: 60vh;
    padding: 1.5rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
  }

  .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  /* ðŸ”¥ Fix: Book Appointment Button */
  .cta-btn {
    display: inline-block;
    white-space: nowrap;     /* Prevents text from breaking */
    width: auto;
    max-width: 90%;          /* Makes sure it fits on mobile */
    padding: 0.8rem 1.8rem;
    font-size: 0.85rem;
    border-radius: 40px;
    text-align: center;
    margin: 0 auto;
  }

  /* Sections */
  .journey-section,
  .specialists-section,
  .services-section,
  .final-cta,
  footer {
    padding: 3rem 1.5rem;
  }

  .section-title,
  .journey-content h2 {
    font-size: 1.6rem;
  }

  .journey-carousel {
    height: 250px;
  }

  .service-image {
    height: 180px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    }

    .footer-logo img {
        height: 50px;
        margin: 0 auto;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }

    /* WhatsApp Floating Button */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
    }

    /* --- SPECIALIST SECTION UPDATES --- */

.specialist-container {
    max-width: 1100px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}

.specialist-header {
    font-size: 2.2rem;
    text-transform: uppercase;
    color: #3d3d3d;
    margin: 40px 0 20px;
    border-bottom: 2px solid #be8f4b; /* Match clinic gold color */
    display: inline-block;
}

/* 1. New style for the prominent gold header above the owner's picture */
.owner-main-header {
    font-size: 2.2rem;
    text-transform: uppercase;
    color: #be8f4b; /* Gold color */
    margin: 50px 0 20px; /* Add some space above and below */
    border-bottom: 2px solid #be8f4b; 
    display: inline-block;
    padding-bottom: 5px;
}

/* --- OWNER FRAME MODIFICATION (Using .group-lead styling now) --- */

/* New class to apply special styling to the owner's group-lead block */
.owner-group-lead-modified {
    border: 3px solid #be8f4b; /* Gold border for emphasis */
    box-shadow: 0 6px 20px rgba(190, 143, 75, 0.3); /* Gold shadow for emphasis */
    margin-bottom: 40px; /* Space before the doctors section starts */
}

/* The following classes are now obsolete/unused in the new owner HTML structure 
    (replaced by .group-lead and .owner-group-lead-modified) but kept or 
    modified here for safety based on the code you last provided:
*/
.owner-wrapper-fixed,
.owner-box-modified {
    display: initial; 
}

.owner-box-modified p:first-of-type,
.owner-small-label {
    display: initial;
}

.owner-description {
    font-size: 0.85rem;
    color: #5d5d5d; 
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
    padding: 0 5px; 
}


/* Grid Logic based on Chauncy's Drawing */
.staff-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.doctors-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Boxes row */
}

.emy-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 Boxes row */
}

.ethel-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Boxes row */
}

.staff-box {
    border: 1px solid #000;
    padding: 20px 10px;
    font-weight: 600;
    background: #fff;
    transition: transform 0.3s;
}

.staff-box:hover {
    transform: translateY(-5px);
    background: #fdfaf5;
}

.group-lead {
    display: inline-block;
    border: 2px solid #3d3d3d;
    padding: 10px 60px;
    margin: 30px 0 15px;
    font-size: 1.4rem;
    font-weight: bold;
    background-color: #fff;
    letter-spacing: 2px;
}

/* Responsive Mobile view: Stack them all vertically */
@media (max-width: 768px) {
    .doctors-grid, .emy-grid, .ethel-grid {
        grid-template-columns: 1fr;
    }
}

/* Container alignment */
.specialist-container {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base boxes for all staff */
.owner-box, .staff-box { /* Keeping .owner-box here for general scope, but it's replaced in HTML */
    border: 2px solid #000;
    padding: 15px;
    margin: 10px;
    display: inline-block;
    min-width: 120px;
}

/* Large box for EMY and ETHEL */
.group-lead {
    border: 3px solid #000; 
    padding: 25px 50px;
    margin: 20px auto;
    width: fit-content;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    display: block; 
}

/* Team Grid Layout */
.staff-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
/* Styling for the images inside boxes */
.owner-box img, .staff-box img, .group-lead img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px; /* Optional: rounds corners slightly */
}

/* Ensure boxes expand to fit content properly */
.staff-box {
    width: 160px; /* Set a fixed width for team members */
    vertical-align: top;
}

.group-lead {
    width: 250px; /* Set a larger width for EMY and ETHEL */
    text-align: center;
}

/* --- NEW STAFF MODAL STYLES --- */
.staff-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    padding: 20px;
}

.staff-modal.active {
    opacity: 1;
    visibility: visible;
}

.staff-modal .modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    max-height: 80vh;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.staff-modal.active .modal-content {
    transform: scale(1);
}

.staff-modal .modal-image {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center top; 
    min-height: 400px;
}

.staff-modal .modal-details {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 100%;
}

.modal-role {
    font-size: 0.9rem;
    color: #6B5D47;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive adjustment for staff modal on smaller screens */
@media (max-width: 1024px) {
    .staff-modal .modal-content {
        flex-direction: column;
        max-height: 85vh;
    }
    
    .staff-modal .modal-image {
        min-height: 250px;
        flex: 0 0 auto;
    }
}

/* Container for all cards */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Individual Card Styling */
.special-offer-card {
    display: flex;
    flex-direction: column; /* This stacks image top, details bottom */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.special-offer-card:hover {
    transform: translateY(-5px);
}

/* Ensure image takes full width and maintains aspect ratio */
.offer-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Styling for the section below the image */
.offer-details {
    padding: 20px;
    text-align: center; /* Centers the button */
    background: #fdfdfd;
}

.offer-tag {
    font-weight: bold;
    margin-bottom: 15px;
    color: #d4af37; /* Example gold color */
}

/* Make the button look nice */
.offer-details .cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #000; /* Adjust to your brand color */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.logo-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;               /* Increased gap so they don't feel crowded */
  padding: 40px 0;         /* More space above and below the logos */
  flex-wrap: wrap;
}

.logo-footer img {
  height: 50px;           /* Increased from 60px to 100px for visibility */
  width: auto;             /* Keeps the logo proportions perfect */
  object-fit: contain;
  transition: transform 0.3s; /* Optional: makes them grow slightly when hovered */
}

/* Optional: Hover effect to make it interactive */
.logo-footer img:hover {
  transform: scale(1.05);
}

/* --- Video Gallery Section --- */
.about-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for 4 videos */
    gap: 15px;
    margin-top: 80px;
    margin-bottom: 30px; /* Space before the images */
}

.about-video-grid video {
    width: 100%;
    height: 600px; /* Tall height for portrait look */
    object-fit: cover;
    border-radius: 4px;
    background: #000;
}

/* Responsive adjustment for mobile */
@media (max-width: 992px) {
    .about-video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .about-video-grid { grid-template-columns: 1fr; }
    .about-video-grid video { height: 450px; }
}

/* Lightbox Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.video-overlay video {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold);
}

/* Add a pointer cursor to the grid videos so users know they are clickable */
.about-video-grid video {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.about-video-grid video:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}


/* --- FIX FOR MOBILE OVERFLOW --- */

/* 1. Force the page to stay within the screen width */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 2. Ensure no element pushes past the 100% width */
* {
    box-sizing: border-box !important;
}

/* 3. Patch for the hero/header shift on mobile */
@media (max-width: 768px) {
    .container, 
    .navbar, 
    .hero-content, 
    .hero {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        left: 0 !important;
    }

    /* Prevents images or large text from stretching the screen */
    img, h1, h2, p {
        max-width: 100% !important;
        word-wrap: break-word;
    }
}

