/* ============================================
   Monica Doctor MD — Custom Styles
   Classic & Elegant | Terracotta + Sand
   ============================================ */

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

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #D4704A;
    color: white;
}

/* ---- Navigation ---- */
#navbar {
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 36, 25, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(45, 36, 25, 0.08);
}

.nav-line {
    display: block;
}

/* Mobile menu open state */
#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenuBtn.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobileMenuBtn.active .nav-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ---- Hero ---- */
#hero {
    background-color: #FAF6F0;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 112, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #D4704A, #E8B59E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ---- Testimonial Cards ---- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(45, 36, 25, 0.1);
}

/* ---- Form Inputs ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 112, 74, 0.15);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5E50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ---- Scroll Reveal Animations ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    .service-card::before {
        transition: none;
    }
    
    .testimonial-card {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 .italic {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem !important;
    }
    
    #about .relative {
        margin-bottom: 2rem;
    }
    
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    #contact,
    iframe {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .service-card,
    .testimonial-card {
        break-inside: avoid;
    }
}
