/* ========================================
   Bright Smiles Pediatric Dentistry
   Custom Styles
======================================== */

/* CSS Custom Properties */
:root {
    --color-coral: #FF6B6B;
    --color-coral-light: #FFE8E8;
    --color-charcoal: #303040;
    --color-mint: #10B981;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FF6B6B 0%, #E85555 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--color-charcoal);
    padding: 14px 28px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--color-charcoal-200);
}

.btn-secondary:hover {
    border-color: var(--color-coral);
    color: var(--color-coral);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--color-coral);
    padding: 14px 28px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-white-outline:hover {
    background: white;
    color: var(--color-coral);
    transform: translateY(-2px);
}

/* Badges */
.badge-hero {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--color-charcoal-600);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.badge-section {
    display: inline-flex;
    align-items: center;
    background: var(--color-coral-light);
    color: var(--color-coral);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    padding: 8px 0;
}

/* Hero Section */
.hero {
    position: relative;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 1.5s;
}

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

/* Stats */
.stats-row {
    border-top: 1px solid var(--color-charcoal-100);
    padding-top: 2rem;
}

/* Services */
.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

/* About */
.about-images {
    animation: fadeInUp 0.8s ease forwards;
}

.about-content {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.experience-badge {
    animation: float 3s ease-in-out infinite;
}

/* Testimonials */
.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }

/* Contact */
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.contact-item:nth-child(1) { animation-delay: 0s; }
.contact-item:nth-child(2) { animation-delay: 0.1s; }
.contact-item:nth-child(3) { animation-delay: 0.2s; }
.contact-item:nth-child(4) { animation-delay: 0.3s; }

/* Form */
.input-field {
    font-family: var(--font-body);
}

.input-field:focus {
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-charcoal-700);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-coral);
    transform: translateY(-2px);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: fadeInUp 0.8s ease 1s forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-image-secondary {
        width: 120px;
        height: 120px;
        bottom: -1rem;
        right: -1rem;
    }
    
    .experience-badge {
        top: 1rem;
        left: 1rem;
        padding: 1rem;
    }
    
    .experience-badge .font-heading {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-item {
        border-bottom: 1px solid var(--color-charcoal-100);
        padding-bottom: 1rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--color-coral-light);
    color: var(--color-coral);
}

/* Print Styles */
@media print {
    .nav,
    .scroll-indicator,
    .cta-banner {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
