/* ===================================
   Physiotherapy Clinic For Muscular And Joint Pain - Custom Styles
   Using Materialize CSS with Green Theme
   =================================== */

/* CSS Variables */
:root {
    --primary-green: #2e7d32;
    --primary-green-light: #4caf50;
    --primary-green-dark: #1b5e20;
    --accent-green: #81c784;
    --bg-light: #f1f8e9;
    --text-dark: #1a1a1a;
    --text-muted: #616161;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-medium);
}

.nav-wrapper {
    padding: 0 10px;
}

.brand-logo {
    display: flex !important;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem !important;
}

.brand-logo i {
    margin-right: 8px;
}

.clinic-name {
    font-weight: 600;
}

.call-btn {
    margin-left: 15px;
    border-radius: 25px;
    text-transform: none;
    font-weight: 600;
}

.sidenav {
    width: 280px;
}

.sidenav .user-view {
    padding: 52px 32px 16px;
}

.sidenav li > a {
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 64px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.92) 0%, rgba(200, 230, 201, 0.88) 50%, rgba(165, 214, 167, 0.85) 100%);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e7d32' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-cta .btn-large {
    border-radius: 30px;
    text-transform: none;
    font-weight: 600;
    padding: 0 35px;
    height: 54px;
    line-height: 54px;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--shadow-medium);
    transition: var(--transition-smooth);
}

.hero-cta .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.whatsapp-btn {
    border: 2px solid var(--primary-green) !important;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-green-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.divider-line {
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 15px auto 25px;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: var(--white);
}

.doctor-image-wrapper {
    padding: 20px;
}

.doctor-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.doctor-info {
    padding: 20px 0;
}

.doctor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-bottom: 5px;
}

.doctor-title {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
}

.doctor-bio {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: justify;
}

.doctor-highlights {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-highlights .chip {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    height: auto;
}

.doctor-highlights .chip i {
    font-size: 16px;
}

/* Services Section */
.services-section {
    background: var(--bg-light);
}

 .services-section .row:not(:has(.section-title)) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Neutralize Materialize column behavior inside grid */
  .services-section .row:not(:has(.section-title)) > .col {
    width: auto;
    margin-left: 0;
  }


.service-card {
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: none;
    height: 100%;
    min-height: 280px;
    margin-bottom: 0;
}


.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.service-card .card-content {
    padding: 25px;
    text-align: center;
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon-wrapper i {
    font-size: 32px;
}

.service-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Timings Section */
.timings-section {
    background: var(--white);
}

.timings-card, .map-card {
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.timings-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.timing-block {
    margin-bottom: 25px;
}

.timing-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.timing-row:last-child {
    border-bottom: none;
}

.timing-label {
    font-weight: 600;
    color: var(--text-dark);
}

.timing-value {
    color: var(--primary-green);
    font-weight: 600;
}

.address-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.full-width-btn {
    width: 100%;
    border-radius: 25px;
    text-transform: none;
    font-weight: 600;
    height: 48px;
    line-height: 48px;
}

/* Map Embed */
.map-embed-container {
    margin-top: 15px;
    text-align: center;
}

.map-embed-container iframe {
    box-shadow: 0 4px 15px var(--shadow-light);
}

.map-directions-btn {
    margin-top: 15px;
    border-radius: 25px;
    text-transform: none;
    font-weight: 600;
}

/* Map Placeholder (fallback) */
.map-placeholder {
    margin-top: 20px;
}

.map-container {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232e7d32' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.map-overlay {
    text-align: center;
    position: relative;
    z-index: 2;
}

.map-overlay i {
    margin-bottom: 10px;
}

.map-overlay p {
    font-weight: 600;
    color: var(--primary-green-dark);
    margin: 5px 0;
}

.map-address {
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    margin-bottom: 15px !important;
}

/* Reviews Section */
.reviews-section {
    background: var(--bg-light);
}

/* .reviews-section .row > .col {
    display: flex;
} */

.reviews-section .row {
    display: flex;
    flex-wrap: wrap;
}


.review-card {
     display: flex;
    flex-direction: column;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    height: 100%;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.review-card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
}

.review-stars {
    margin-bottom: 15px;
}

.review-stars i {
    font-size: 20px;
}

.review-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    border-left: 3px solid var(--primary-green);
    padding-left: 20px;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.cta-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

.cta-buttons .btn-large {
    border-radius: 30px;
    text-transform: none;
    font-weight: 600;
    padding: 0 40px;
    height: 54px;
    line-height: 54px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.cta-buttons .btn-large:hover {
    transform: translateY(-2px);
}

/* Footer */
.page-footer {
    padding-top: 50px;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact-list li a {
    transition: var(--transition-smooth);
}

.footer-contact-list li a:hover {
    color: var(--white) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    transition: var(--transition-smooth);
}

.footer-links li a:hover {
    color: var(--white) !important;
}

.footer-copyright {
    padding: 15px 0;
    margin-top: 30px;
}

.footer-bottom {
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Mobile Responsiveness */
@media only screen and (max-width: 992px) {
   
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .flex-column-mobile {
        flex-direction: column;
    }
    
    .doctor-photo {
        width: 180px;
        height: 180px;
    }
    
    .right-align-desktop {
        text-align: left !important;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 600px) {
    nav .brand-logo {
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-40%);
        font-size: 0.99rem !important;
        }

     nav .brand-logo {
    white-space: normal;   /* now mobile REALLY wins */
    line-height: 1.5;
    width: 74%;
    }

    .clinic-name {
        display: block;
        font-size: 1.2rem;         /* adjust if needed */
        text-align: left;
    }
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn-large {
        width: 100%;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
    
    .doctor-name {
        font-size: 1.5rem;
    }
    
    .service-card {
        min-height: auto;
    }
    
    .timings-card, .map-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .map-container {
        height: 220px;
    }

    .services-section .row:not(:has(.section-title)) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

    .reviews-section .row {
    gap: 20px; /* space between stacked cards */
  }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .whatsapp-floating {
        bottom: 70px;
        right: 15px;
    }
    
    .footer-copyright .row {
        text-align: center;
    }
    
    .disclaimer {
        display: block;
        margin-top: 10px;
    }
}

/* Smooth scroll offset for fixed nav */
:target::before {
    content: "";
    display: block;
    height: 80px;
    margin-top: -80px;
}

/* Print styles */
@media print {
    .whatsapp-floating,
    nav,
    .sidenav {
        display: none !important;
    }
}
/* =====================================
   Nest Hub ONLY (1024px) Navbar Tuning
   Does NOT affect mobile
   ===================================== */
@media only screen and (min-width: 993px) and (max-width: 1280px) {
  nav,
  nav .nav-wrapper,
  nav .nav-wrapper i,
  nav a.sidenav-trigger {
    height: 56px !important;
    line-height: 56px !important;
  }

  nav {
    padding: 4px 0;
  }

  nav .nav-wrapper {
    display: flex;
    align-items: center;
  }

  /* Brand heading */
  nav .brand-logo {
    font-size: 0.95rem !important;
    line-height: 3.55;
    max-width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nav items */
  nav ul li a {
    font-size: 0.8rem;
    padding: 0 8px;
    line-height: 52px;
  }

  /* Call Now button */
  nav .call-btn {
    font-size: 0.8rem;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    border-radius: 18px;
  }

  nav .call-btn i {
    font-size: 14px;
  }
}
