* {
    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-11-10 at 6.18.48 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: background 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;
    background-position: center 20%; /* Specialist photo default position */
    position: relative;
    overflow: hidden;
}

/* --- RECEPTIONIST MODIFICATION --- */
.receptionist-photo {
    /* This overrides the 20% above, moving the background image further down (40%), 
       which shifts the subject's face slightly UP within the visible area. 
       This class is now applied to DR. GHASSAN, NURSE JUNIEBE, and THE RECEPTIONIST. */
    background-position: center 40%;
}
/* ---------------------------------- */

.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 - MODIFIED */
.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;
    max-height: 80vh;
    transform: scale(0.9);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.modal-details {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 100%;
}

.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 Styling (Updated for 7 Cards in a Grid) --- */

.offers-grid {
    display: grid;
    /* This creates a responsive grid: 
       it will fit as many 300px columns as possible, up to 1200px wide. 
       This usually means 3 or 4 columns on desktop, and 1 on mobile. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.special-offer-card {
    display: block; /* Stacks image and details vertically */
    background-color: #fff8e1; 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center text within the card */
}

.special-offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.offer-image {
    max-width: 100%; 
    height: 200px; /* Fixed height for consistent image display */
    margin-bottom: 15px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container cleanly */
}

.offer-details {
    padding: 0 20px 20px 20px; /* Padding for the text content */
}

.offer-tag {
    font-size: 0.8em;
    color: #ff5722; 
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.offer-title {
    font-size: 1.4em; /* Slightly smaller title for the grid cards */
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.offer-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block; /* Ensure the button is styled correctly */
    margin-top: 10px;
}

/* 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;
}

.final-cta .section-tag {
    color: #D4C4B0;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* 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;
    }
    
    .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: 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;
  }
}
