/* ============================================
   C.S.A. Dental — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f0;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Selection color */
::selection {
    background: #f6dfaa;
    color: #102a43;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.06);
}

#navbar.scrolled .font-serif {
    color: #102a43 !important;
}

#navbar.scrolled .text-navy-600 {
    color: #486581 !important;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(246, 223, 170, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(167, 195, 183, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(246, 223, 170, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e5a82c, #f0ce7f);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #e5a82c;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 60%;
}

/* ============================================
   Testimonial Quote Mark
   ============================================ */
section:has(blockquote) {
    position: relative;
}

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

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

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(229, 168, 44, 0.15);
}

/* ============================================
   Button Hover Effects
   ============================================ */
a[href="#contact"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

button[type="submit"]:hover::before {
    left: 100%;
}

/* ============================================
   Image Hover Zoom
   ============================================ */
.group img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Tablet Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    section > .max-w-7xl > div > div:first-child > h2,
    section > .max-w-7xl > div > div:first-child > p {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav,
    #contactForm,
    .floating {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900 {
        background: #fff !important;
        color: #000 !important;
    }
}
