/* ===========================
   CSS VARIABLES & COLOR SYSTEM
   =========================== */
:root {
    --primary: #E63946;           /* Bold Red */
    --primary-dark: #D62828;       /* Dark Red */
    --accent: #F77F88;             /* Pink */
    --accent-light: #FCB4BA;       /* Light Pink */
    --neutral-50: #FAFAFA;         /* Almost White */
    --neutral-100: #F0F0F0;        /* Light Gray */
    --neutral-200: #E5E5E5;        /* Gray */
    --neutral-700: #333333;        /* Dark Gray */
    --neutral-900: #1A1A1A;        /* Black */
    --radius: 0.5rem;
    --spacing-unit: 1rem;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    line-height: 1.6;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neutral-900);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--neutral-700);
    margin-bottom: 2rem;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    color: var(--neutral-900);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--neutral-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neutral-900);
    transition: all 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--neutral-900);
    line-height: 1.2;
}

.hero-title .accent {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) * 2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===========================
   CTA BUTTON
   =========================== */
.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: calc(var(--radius) * 1.5);
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    background: var(--neutral-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-700);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) * 2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   TEAM SECTION
   =========================== */
.team {
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1.2fr));
    gap: 3rem;
}

.team-card {
    background: var(--neutral-100);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(230, 57, 70, 0.15);
}

.team-image {
    width: 100%;
    height: 400px; /* Note: This is quite short for a portrait */
    overflow: hidden;
    /* Change the background to white or transparent */
    background: #ffffff; 
}

.team-image img {
    width: 100%;
    height: 100%;
    /* 'contain' is fine here if the background matches */
    object-fit: contain;
}
.team-card > * {
    padding: 0 2rem;
}

.team-card .team-image {
    padding: 0;
}

.team-name {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-credentials {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.specialty-tag {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: calc(var(--radius) * 1.5);
    font-size: 0.85rem;
    font-weight: 500;
}

.specialty-list {
    list-style: none;
    margin-bottom: 2rem;
}

.specialty-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--neutral-700);
}

.specialty-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===========================
   LOCATION SECTION
   =========================== */
.location {
    background: var(--neutral-100);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.location-info p {
    font-size: 1.1rem;
    color: var(--neutral-700);
    margin-bottom: 1rem;
}

.location-info a {
    font-weight: 600;
    color: var(--primary);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    background: white;
}

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

.service-card {
    background: white;
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.15);
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--neutral-700);
    margin: 0;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery {
    background: var(--neutral-100);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) * 1.5);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials {
    background: white;
}

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

.testimonial-item {
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-item iframe {
    width: 100%;
    display: block;
}

/* ===========================
   DOCTOR WISDOM SECTION
   =========================== */
.doctor-wisdom {
    background: var(--neutral-100);
}

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

.wisdom-item {
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wisdom-item iframe {
    width: 100%;
    display: block;
}

/* ===========================
   BLOG SECTION
   =========================== */
.blog {
    background: white;
}

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

.blog-card {
    background: white;
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-card h3 {
    margin: 1rem 0;
    font-size: 1.3rem;
}

.blog-card p {
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.8rem;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    background: var(--neutral-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--neutral-700);
    margin: 0;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000; /* Ensures it stays above your gallery images */
  
  /* Centers the icon inside the circle */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}
/* Add this to your existing .whatsapp-float CSS */
.whatsapp-float::before {
  content: "Book an Appointment";
  position: absolute;
  right: 70px;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.whatsapp-float:hover::before {
  opacity: 1;
}
/* ===============================================================================================================
   RESPONSIVE DESIGN
   ================================================================================================================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        list-style: none;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    .nav-menu li {
        padding: 1rem 2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .map-container {
        height: 300px;
    }
.services-grid{
        grid-template-columns: 1fr;
}
    .gallery-grid{
            grid-template-columns: repeat(2, 1fr); /* Creates 2 equal columns */
      }

    .testimonial-carousel,
    .wisdom-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .navbar-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .contact-content {
        gap: 2rem;
    }
}
