/* Dr. Aarav's Dental Studio - Custom Styles */
/* Using Materialize CSS Framework */

/* ===== CSS Variables ===== */
:root {
    --primary: #0D47A1;
    --primary-light: #E3F2FD;
    --accent: #FF6E40;
    --neutral-bg: #FAFAFA;
    --text-dark: #212121;
    --text-light: #FFFFFF;
    --text-muted: #757575;
    --whatsapp: #25D366;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
    background-color: var(--neutral-bg);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-family: 'Lato', sans-serif;
    color: #424242;
    line-height: 1.7;
}

/* ===== Navbar Styles ===== */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--text-light) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
}

#main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

nav .brand-logo {
    font-family: 'Playfair Display', serif !important;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.4rem;
}

nav ul a {
    color: var(--text-dark) !important;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav ul a:hover {
    color: var(--accent) !important;
    background-color: transparent !important;
}

/* ===== Sidenav Mobile ===== */
.sidenav {
    background-color: var(--text-light);
     padding-top: 57px;
}

.sidenav li > a {
    color: var(--text-dark) !important;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
}

.sidenav li > a:hover {
    background-color: var(--primary-light) !important;
}

.sidenav .sidenav-header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 20px;
    background-color: var(--primary);
}

.sidenav .sidenav-header h4 {
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 1.4rem;
}

.sidenav-cta {
    margin: 15px !important;
    width: calc(100% - 30px) !important;
    text-align: center !important;
    display: block !important;
}

/* ===== Button Styles ===== */
.btn, .btn-large {
    border-radius: 50px !important;
    text-transform: none !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.btn:hover, .btn-large:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent) !important;
    color: var(--text-light) !important;
}

.btn-whatsapp {
    background-color: transparent !important;
    border: 2px solid var(--whatsapp) !important;
    color: var(--whatsapp) !important;
    box-shadow: none !important;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp) !important;
    color: var(--text-light) !important;
}

.btn-accent {
    background-color: var(--accent) !important;
}

.btn-outline-white {
    background-color: transparent !important;
    border: 2px solid white !important;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 100%);
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-row {
    margin-bottom: 0 !important;
}

.hero-doctor-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(13, 71, 161, 0.2);
    object-fit: cover;
}

.doctor-name-hero {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 5px;
}

.hero-credentials {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
}

.certification-badges {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cert-badge i {
    font-size: 1rem;
}

.hero-headline {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
}

/* ===== Section Styles ===== */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--text-light);
}

.section-grey {
    background-color: var(--neutral-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-title-left {
    text-align: left;
}

.section-title-left h2 {
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
}

.section-subtitle-left {
    color: var(--text-muted);
    margin-top: 10px;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Trust Cards (Why Choose Us) ===== */
.trust-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--text-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.trust-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.trust-card h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.trust-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== Service Cards ===== */
.service-card {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid #E0E0E0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #1565C0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--text-light);
}

.service-card h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.service-price {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    border-left: 4px solid var(--accent);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: #616161;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.testimonial-stars {
    color: #FFC107;
    margin-top: 5px;
}

.testimonial-stars i {
    font-size: 1rem;
}

/* ===== Timings Section ===== */
.timings-card {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timing-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #EEEEEE;
}

.timing-row:last-child {
    border-bottom: none;
}

.timing-day {
    font-weight: 600;
    color: var(--text-dark);
}

.timing-hours {
    color: var(--primary);
    font-weight: 500;
}

.timing-closed {
    color: #F44336;
}

.emergency-contact {
    background: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.emergency-contact i {
    font-size: 1.5rem;
}

.emergency-contact span {
    font-weight: 600;
}

.clinic-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
}

/* ===== Contact Section ===== */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1565C0 100%);
    color: var(--text-light);
}

.contact-section h2 {
    color: var(--text-light);
}

.contact-section h2::after {
    background-color: var(--accent);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-info-item strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.contact-buttons {
    margin-top: 30px;
}

.contact-buttons .btn-large {
    margin-right: 10px;
    margin-bottom: 10px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background-color: #0A1929;
    padding: 50px 0 20px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-title {
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 8px;
    vertical-align: middle;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Floating WhatsApp Button ===== */
.appointment-badge {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
    /* Prevent causing horizontal overflow */
    max-width: calc(100vw - 40px);
}

.whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    background-color: var(--whatsapp) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.whatsapp-float i {
    font-size: 1.8rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Mobile adjustment for floating button */
@media only screen and (max-width: 600px) {
    nav .brand-logo {
        font-size: 0.9rem;
    }
    .appointment-badge {
        right: 15px;
        bottom: 20px;
    }
    
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
    }
    
    .whatsapp-float i {
        font-size: 1.5rem !important;
    }
}

/* ===== Smooth Scroll Offset ===== */
:target {
    scroll-margin-top: 80px;
}

/* ===== Responsive Styles ===== */
@media only screen and (max-width: 992px) {

    nav .brand-logo {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding-top: 70px;
        text-align: center;
    }
    
    /* Force vertical stacking on tablet and mobile */
    .hero-row {
        display: block !important;
    }
    
    .hero-row .col {
        width: 100% !important;
        margin-left: 0 !important;
        float: none !important;
    }
    
    .hero-headline {
        font-size: 2.2rem;
    }
    
    .hero-doctor-img {
        max-width: 350px;
        margin-bottom: 30px;
    }
    
    .hero-subheadline {
        margin: 0 auto 2rem;
    }
    
    .hero-cta-container {
        justify-content: center;
    }
    
    .stats-container {
        justify-content: center;
        text-align: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .certification-badges {
        justify-content: center;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media only screen and (max-width: 600px) {
    nav .brand-logo {
        font-size: 0.8rem;
    }
    .hero-headline {
        font-size: 1.8rem;
        margin-top: 30px;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .hero-doctor-img {
        max-width: 280px;
    }
    
    .doctor-name-hero {
        font-size: 1.4rem;
    }
    
    /* Fix CTA buttons on mobile - show full text */
    .btn-large {
        padding: 0 20px !important;
        height: 48px !important;
        line-height: 48px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .hero-cta-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    /* Ensure button text is visible */
    .hero-cta-container .btn-large {
        white-space: nowrap;
        overflow: visible;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .timings-card {
        padding: 25px;
    }
    
    .timing-row {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 768px) {
   nav {
        height: 56px;
        line-height: 56px;
    }

    nav .brand-logo {
        font-size: 0.85rem !important;
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== Animation Helpers ===== */
[data-aos] {
    pointer-events: auto !important;
}

/* ===============================
   TABLET / NEST HUB NAVBAR
   =============================== */
@media only screen and (min-width: 769px) and (max-width: 1279px) {

    nav {
        height: 60px;
        line-height: 60px;
    }

    nav .brand-logo {
        font-size: 1.05rem !important;
        max-width: 48%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    nav ul a {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

