/*
Theme Name: Dental Care Pro
Theme URI: https://dentalcarepro.com
Author: Antigravity AI
Author URI: https://antigravity.ai
Description: A premium, modern, and fully interactive WordPress theme for dental clinics.
Version: 1.0.0
Text Domain: dental-care-pro
*/

/* Google Fonts are loaded via functions.php wp_enqueue_style */

:root {
    --primary: #0077B6;
    --secondary: #00B4D8;
    --accent: #48CAE4;
    --success: #10B981;
    --dark-text: #1A1A2E;
    --light-bg: #F0F9FF;
    --white: #FFFFFF;
    --gray: #6B7280;
    --shadow: 0 4px 20px rgba(0, 119, 182, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.btn:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.btn-primary {
    background-color: var(--success);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* 1. STICKY HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 999;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--primary);
}

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

/* Navigation menu integration */
.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

header.scrolled .nav-links li a {
    color: var(--dark-text);
}

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

.nav-links li a.active, .nav-links li.current-menu-item a {
    color: var(--primary) !important;
}

.nav-links li a.active::after, .nav-links li.current-menu-item a::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

header.scrolled .phone-number {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

header.scrolled .hamburger span {
    background-color: var(--dark-text);
}

/* 2. HERO SECTION */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 140px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-left .tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.trust-badges {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-right .appointment-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    color: var(--dark-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.appointment-card h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 15px;
}

/* 3. STATS BAR */
.stats-bar {
    background-color: var(--primary);
    padding: 60px 0;
    color: var(--white);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 500;
    opacity: 0.8;
}

/* 4. SERVICES SECTION */
.services {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 5. WHY CHOOSE US */
.why-choose {
    background-color: var(--light-bg);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-left h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1rem;
}

.why-item span {
    color: var(--success);
    font-size: 1.2rem;
}

.why-right .image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-right .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. DOCTORS SECTION */
.doctors {
    background-color: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.doctor-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.doctor-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.doctor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.doctor-card .specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.doctor-card .exp {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.rating {
    color: #FFB300;
    font-size: 1.1rem;
}

.view-all-btn {
    display: flex;
    justify-content: center;
}

/* 7. TESTIMONIALS */
.testimonials {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    color: var(--dark-text);
    position: relative;
}

.testimonial-card .stars {
    color: #FFB300;
    margin-bottom: 15px;
    display: block;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-weight: 700;
    font-size: 1rem;
}

.patient-location {
    font-size: 0.85rem;
    color: var(--gray);
}

/* 8. APPOINTMENT SECTION (CTA) */
.cta-section {
    background-color: var(--dark-text);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.cta-phone {
    margin-top: 25px;
    font-size: 1.2rem;
    display: block;
}

/* 9. FOOTER */
footer {
    background-color: #0D1117;
    color: var(--white);
    padding: 80px 0 30px;
}

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

.footer-col {
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.footer-tagline {
    opacity: 0.7;
    margin-bottom: 25px;
    display: block;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
}

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

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.bottom-links {
    display: flex;
    gap: 20px;
}

/* ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    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: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20BA5A;
}

.whatsapp-btn::before {
    content: 'Chat with us';
    position: absolute;
    right: 75px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .hero-left h1 {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header {
        background: var(--primary);
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.4s ease;
    }

    .nav-links.active {
        height: auto;
        padding-bottom: 20px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 15px;
        color: var(--white) !important;
    }

    .header-right .phone-number {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns, .trust-badges {
        justify-content: center;
    }

    .stats-container, .services-grid, .why-content, .doctors-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

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

    .section-padding {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }
}
