/*
Theme Name: Dr. Consultant
Theme URI: 
Author: Antigravity
Author URI: 
Description: Custom WordPress theme converted from MediConsult HTML website for Dr. Anubha Jain.
Version: 1.0
Tags: medical, clean, responsive, clinic, pediatrician, child specialist
Text Domain: dr-consultant
*/

/* --- CSS Variables & Design System --- */
:root {
    /* Colors */
    --primary: #0284c7; /* Ocean Blue */
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary: #0d9488; /* Teal */
    --accent: #f59e0b; /* Amber */
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-light: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

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

    /* Spacing */
    --section-padding: 3rem;
    --container-width: 1200px;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed header */
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #fdfbfb, #e0f2fe 50%, #f0fdfa 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding) 0;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: top;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: #000000;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Book Section & Form Elements --- */
.book-section {
    background-color: #ffffff;
}

.book-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.book-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.book-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.benefits-list li svg {
    color: var(--secondary);
    background-color: rgba(13, 148, 136, 0.1);
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.book-form-wrapper {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.appointment-form h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-group input:hover, .form-group select:hover {
    border-color: var(--secondary);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-msg {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
}
.form-msg.success { color: var(--secondary); }
.form-msg.error { color: #ef4444; }

/* --- Floating WhatsApp Button (Global Widget) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Footer --- */
.footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.875rem;
}

/* --- New Footer Elements --- */
.trust-badge {
    display: inline-block;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 1rem 0;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    color: #cbd5e1;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-newsletter h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.6rem 1rem;
    border: 1px solid #334155;
    background-color: rgba(15, 23, 42, 0.5);
    color: white;
    border-radius: var(--radius-md);
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: #94a3b8;
}

.contact-item a:hover {
    color: var(--primary-light);
}

.get-directions {
    font-size: 0.85rem;
    color: var(--secondary) !important;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.3rem;
}

.get-directions:hover {
    color: white !important;
}

.timings {
    background-color: rgba(255,255,255,0.05);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    align-items: center;
    border-left: 3px solid var(--primary);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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


/* ================================================================
   GLOBAL RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 1200px) {
    .container {
        max-width: 96%;
    }
}

@media (max-width: 992px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .book-container, .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 2rem;
    }

    .header {
        background-color: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
        box-shadow: var(--shadow-sm);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* 1. Global Viewport & Horizontal Scroll Fix */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 2. WhatsApp Floating Button Position */
    .whatsapp-float {
        bottom: 85px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        z-index: 9999 !important;
    }
    
    .whatsapp-float svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* 3. Spacing & Padding Optimization */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
    }
    
    .section-padding {
        padding: 3rem 0 !important;
    }

    /* 4. Fix Header & Admin Bar Overlap */
    .admin-bar .header { 
        top: 0px !important; 
    }
    
    /* 5. Show Hamburger Menu */
    .header .mobile-menu-btn { 
        display: block !important; 
    }
    .header .nav-actions .btn { 
        display: none !important; 
    }
    
    /* 6. Fix WhatsApp Floating Button Overlap */
    .whatsapp-float {
        bottom: 20px !important;
        right: 15px !important;
        z-index: 99999 !important;
    }

    .book-container {
        gap: 2rem;
    }
}
