/* 
   Venkat Happy Dental Clinic - Premium CSS 
*/

/* --- CSS Variables --- */
:root {
    /* Colors */
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #e0f2fe;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --accent: #fbbf24;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background-color: var(--bg-light);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* --- Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 16px 0;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 48px;
    width: auto;
}

.nav-logo[onerror] {
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.desktop-nav .nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary);
    border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    text-align: center;
    margin-bottom: 40px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    margin-bottom: 24px;
}

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

.mobile-nav-footer {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.mobile-contact {
    margin-top: 20px;
    font-size: 1.125rem;
    font-weight: 500;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-wrapper {
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #fef3c7;
    color: #b45309;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatars {
    display: flex;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.proof-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 6s ease-in-out infinite;
}

.floating-card.top-right {
    top: 40px;
    right: -20px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-text strong {
    display: block;
    color: var(--secondary);
    font-size: 1.125rem;
}

.floating-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Trust Banner --- */
.trust-banner {
    margin-top: 80px;
    background-color: var(--secondary);
    color: white;
    padding: 24px 0;
    text-align: center;
    font-size: 1.125rem;
}

.trust-banner strong {
    color: var(--primary);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.experience-badge .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.125rem;
    line-height: 1.3;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 24px;
    font-weight: 500;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.features-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--secondary);
    font-size: 1.125rem;
}

.feature-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.review-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.author-details strong {
    display: block;
    color: var(--secondary);
}

.author-details span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
}

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

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

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), #1e293b);
    color: white;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-light);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-clinic-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 300px;
}

.footer-contact-details .contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hours-list .day {
    font-weight: 500;
}

.hours-list .time {
    color: var(--text-muted);
    text-align: right;
}

.footer-bottom {
    background-color: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 24px 0;
    font-size: 0.875rem;
}

/* --- Floating WhatsApp --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }

/* --- Responsive Layout (Mobile-First Setup inside Breakpoints) --- */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-map {
        grid-column: 1 / -1;
    }

    /* Hamburger Enable on Tablet */
    .desktop-nav, .sm-hidden {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-container, .about-container, .reviews-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        gap: 40px;
    }

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

    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }

    .hero-img, .about-img {
        height: 400px;
    }

    .floating-card.top-right {
        right: 10px;
        top: -20px;
        padding: 12px 16px;
    }

    .experience-badge {
        right: 10px;
        bottom: -20px;
        padding: 20px;
    }

    .experience-badge .number {
        font-size: 2.5rem;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .contact-grid-wrapper {
        grid-template-columns: 1fr !important;
    }
}

/* Hamburger Animation Details */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
