/* ============================================
   Miss Aurora Cleaning — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 160, 23, 0.25);
    color: #3E1C35;
}

/* --- Header --- */
.header {
    background: transparent;
    backdrop-filter: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 47, 91, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width 0.3s ease;
}

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

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

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

.mobile-nav-link {
    position: relative;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #D4A017 0%, #B8860B 100%);
    color: #1A0D17;
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #EAB828 0%, #D4A017 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #F5F0F7;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-dark {
    background: #1A0D17;
    color: #F5F0F7;
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #2A1424;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 13, 23, 0.4);
}

.btn-secondary-dark {
    background: transparent;
    color: #1A0D17;
    border: 2px solid #1A0D17;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.btn-secondary-dark:hover {
    background: #1A0D17;
    color: #F5F0F7;
    transform: translateY(-2px);
}

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

.hero-split {
    opacity: 1;
}

.hero-text {
    animation: heroFadeIn 0.8s ease forwards;
}

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

.hero-image {
    animation: heroImageIn 1s ease 0.2s forwards;
    opacity: 0;
}

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

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(107, 47, 91, 0.2);
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(107, 47, 91, 0.12);
}

/* --- Form Inputs --- */
.input-field {
    border: 1.5px solid #E8DDEA;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #2A1424;
    background: #F5F0F7;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #BA94BC;
}

.input-field:focus {
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
    background: #fff;
}

.input-field:hover:not(:focus) {
    border-color: #D4BFD6;
}

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

@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* Stagger delays */
    .section-reveal:nth-child(2) { transition-delay: 0.1s; }
    .section-reveal:nth-child(3) { transition-delay: 0.2s; }
    .section-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #6B2F5B;
    color: #F5F0F7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 47, 91, 0.3);
    z-index: 30;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #D4A017;
    color: #1A0D17;
    transform: translateY(-3px);
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
}

/* --- Success Message --- */
.success-message {
    animation: fadeIn 0.4s ease forwards;
}

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

/* --- Accessibility --- */
@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;
    }

    .section-reveal {
        opacity: 1;
        transform: none;
    }

    .hero-text, .hero-image {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.75rem !important;
    }

    .hero h1 span.text-3xl {
        font-size: 1.5rem !important;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image .relative {
        aspect-ratio: 4/3;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        min-height: auto;
        padding: 7rem 0 5rem;
    }
}

/* --- Print --- */
@media print {
    .header, .back-to-top, .hero [class*="absolute"] {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        background: #fff !important;
        color: #000 !important;
    }
}
