/*
 * Smile Bright Dental - Main Stylesheet
 * This file imports the custom CSS and adds any additional styling needed
 */

/* Import the custom styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Additional Styles */
:root {
    --primary-color: #D2B48C;      /* Rich beige/tan */
    --primary-dark: #C19A6B;       /* Deeper beige/tan for hover states */
    --secondary-color: #8D7B68;    /* Earthy brown */
    --accent-color: #A77B59;       /* Terracotta accent */
    --light-bg: #F9F5F0;           /* Light background */
    --text-color: #4D3C30;         /* Main text color */
    --light-text: #ffffff;         /* Light text color */
    --gray-text: #786356;          /* Secondary text color */
    --border-color: #EAE3D7;       /* Border color */
    --light-border: #F2ECE4;       /* Lighter border color */
    --footer-bg: #5C4D42;          /* Footer background */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Standard shadow */
}

/* Enhance accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

/* Navbar scrolled effect */
.navbar-scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Gallery filter active state */
.gallery-filter.active {
    background-color: var(--primary-color);
    color: white;
}

/* Make form elements more accessible */
.form-control:focus, 
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(210, 180, 140, 0.25);
}

/* Service icons enhancement */
.service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.2);
}

/* Custom styles for the appointment form */
#appointment-form .form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

#appointment-form .form-check-label {
    color: var(--gray-text);
}

#appointment-form .btn {
    transition: all 0.3s ease;
}

#appointment-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 180, 140, 0.3);
}

/* Enhanced page transitions */
main {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Emergency section enhancements */
.emergency-info .alert-danger {
    border-left: 5px solid #dc3545;
}

.emergency-list li {
    position: relative;
    padding-left: 25px;
}

.emergency-list li:before {
    content: "!";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Enhance card hover effects */
.service-card,
.feature-card,
.testimonial-card,
.team-member,
.approach-card {
    transition: all 0.3s ease;
}

.service-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.team-member:hover,
.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Improve form validation feedback */
.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Custom styling for services section */
.service-list li {
    transition: transform 0.2s ease;
}

.service-list li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Enhanced footer styling */
.footer .social-icons a:hover {
    transform: translateY(-5px) rotate(360deg);
    transition: all 0.5s ease;
}

/* Print styles */
@media print {
    .navbar, 
    .footer, 
    .cta-section,
    .appointment-btn,
    .gallery-filter-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img, svg {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
}

/* Focus visible styling for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Additional responsive adjustments */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .feature-card,
    .service-card,
    .testimonial-card {
        padding: 20px;
    }
}

/* Fix for iOS Safari font-size issue */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}
