/* ============================================
   Ali & Ike Boutique — Custom Styles
   ============================================ */

/* ── Base / Reset ── */
*, *::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: #c9451e;
    color: #fefdf8;
}

/* ── Hero Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes drawLine {
    from {
        height: 0;
    }
    to {
        height: 40px;
    }
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    background: linear-gradient(to bottom, #b0a89e, transparent);
    height: 0;
    animation: drawLine 1s ease forwards;
    animation-delay: 1.2s;
}

/* ── Marquee ── */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 4px;
}

/* ── Scroll Reveal (below fold only) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Section Headers ── */
.section-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.revealed .section-eyebrow,
.section-header.revealed .section-title {
    opacity: 1;
    transform: translateY(0);
}

/* ── Collection Cards ── */
.collection-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.collection-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.collection-card.reveal-delay-1 { transition-delay: 0.1s; }
.collection-card.reveal-delay-2 { transition-delay: 0.25s; }
.collection-card.reveal-delay-3 { transition-delay: 0.4s; }

/* ── Buttons ── */
.btn-primary {
    box-shadow: 0 4px 20px rgba(201, 69, 30, 0.3);
    transition: box-shadow 0.4s ease, background-color 0.4s ease, transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(201, 69, 30, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    transition: box-shadow 0.4s ease, background-color 0.4s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    box-shadow: 0 4px 20px rgba(201, 69, 30, 0.15);
    transform: translateY(-2px);
}

/* ── Form Inputs ── */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
    height: auto;
}

.btn-submit {
    box-shadow: 0 4px 20px rgba(201, 69, 30, 0.25);
    transition: box-shadow 0.4s ease, background-color 0.4s ease, transform 0.3s ease;
}

.btn-submit:hover {
    box-shadow: 0 8px 30px rgba(201, 69, 30, 0.35);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ── Navbar transitions ── */
.nav-scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .logo-text {
    color: #26221e !important;
}

/* ── About accent card ── */
.about-accent-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Visit items ── */
.visit-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visit-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.visit-item.reveal-delay-1 { transition-delay: 0.1s; }
.visit-item.reveal-delay-2 { transition-delay: 0.2s; }
.visit-item.reveal-delay-3 { transition-delay: 0.3s; }
.visit-item.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Mobile menu ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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