/* SmileCare Dental - Professional Dental Office Template */

/* CSS Custom Properties - Dental Color Palette */
:root {
    /* Primary Colors */
    --dental-blue: #2C5F7C;         /* Professional medical blue */
    --light-blue: #4A90B8;         /* Lighter shade for accents */
    --dental-teal: #5BA3C1;        /* Calming teal for trust */
    --mint-green: #7ED8B8;         /* Fresh mint for cleanliness */
    --soft-mint: #A8E6CF;          /* Softer mint for backgrounds */
    
    /* Neutral Colors */
    --pure-white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-gray: #E5E8EB;
    --text-gray: #6C757D;
    --dark-gray: #495057;
    --charcoal: #343A40;
    
    /* Accent Colors */
    --success-green: #28A745;
    --warning-orange: #FD7E14;
    --danger-red: #DC3545;
    --info-blue: #17A2B8;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-accent: 'Source Sans Pro', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 80px 0;
    --container-padding: 20px;
    --card-radius: 12px;
    --button-radius: 8px;
    --input-radius: 6px;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(44, 95, 124, 0.08);
    --shadow-medium: 0 4px 20px rgba(44, 95, 124, 0.12);
    --shadow-heavy: 0 8px 30px rgba(44, 95, 124, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.4s ease;
}

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

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

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

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

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dental-blue);
}

h2 {
    font-size: 2.5rem;
    color: var(--dental-blue);
}

h3 {
    font-size: 1.75rem;
    color: var(--dark-gray);
}

h4 {
    font-size: 1.25rem;
    color: var(--dark-gray);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background: var(--pure-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dental-blue);
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--dental-blue);
}

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

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

.cta-button {
    background: var(--dental-blue);
    color: var(--pure-white) !important;
    padding: 12px 24px !important;
    border-radius: var(--button-radius);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.cta-button::after {
    display: none;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dental-blue);
    margin: 3px 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--button-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--dental-blue);
    color: var(--pure-white);
}

.btn-primary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--mint-green);
    color: var(--charcoal);
}

.btn-secondary:hover {
    background: var(--soft-mint);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--dental-blue);
    color: var(--pure-white);
}

.btn-emergency {
    background: var(--danger-red);
    color: var(--pure-white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dental-blue) 0%, var(--light-blue) 100%);
    color: var(--pure-white);
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.page-header h1 {
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dental-blue) 0%, var(--dental-teal) 100%);
    color: var(--pure-white);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="teeth" patternUnits="userSpaceOnUse" width="10" height="10"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23teeth)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--pure-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--dental-teal);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards & Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--pure-white);
    padding: 2.5rem 2rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dental-blue);
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--pure-white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--dental-blue);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--pure-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dental-blue);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--dental-teal);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: var(--input-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--dental-blue);
    box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Appointment Booking */
.appointment-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--input-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--pure-white);
}

.time-slot:hover {
    border-color: var(--dental-blue);
}

.time-slot.selected {
    background: var(--dental-blue);
    color: var(--pure-white);
    border-color: var(--dental-blue);
}

.time-slot.unavailable {
    background: var(--border-gray);
    color: var(--text-gray);
    cursor: not-allowed;
}

/* Emergency Section */
.emergency {
    background: linear-gradient(135deg, var(--danger-red) 0%, #B71C1C 100%);
    color: var(--pure-white);
    text-align: center;
    padding: 60px 0;
}

.emergency h2 {
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.emergency p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Insurance Grid */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.insurance-logo {
    background: var(--pure-white);
    padding: 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.insurance-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Testimonials */
.testimonial-card {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    margin: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--dental-blue);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--pure-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--mint-green);
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--dental-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--mint-green);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Feature Badges */
.feature-badge {
    display: inline-block;
    background: rgba(44, 95, 124, 0.1);
    color: var(--dental-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem;
}

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

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

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--pure-white);
    border-left: 4px solid var(--success-green);
    padding: 1rem 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    transform: translateX(400px);
    transition: var(--transition-smooth);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: var(--danger-red);
}

.notification.warning {
    border-left-color: var(--warning-orange);
}

.notification.info {
    border-left-color: var(--info-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--pure-white);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .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);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card,
    .appointment-form {
        padding: 1.5rem;
    }
}
