/* ═══════════════════════════════════════════════════════ */
/* CUSTOM STYLES — Maima's Unisex Creations               */
/* ═══════════════════════════════════════════════════════ */

/* ── Base ────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

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

/* ── Navbar scroll state ─────────────────────────────── */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(127, 26, 53, 0.08);
}

.nav-scrolled .font-serif {
    color: #7f1a35 !important;
}

.nav-scrolled a:not(.bg-burgundy-700) {
    color: #4b5563 !important;
}

.nav-scrolled .menu-line {
    background: #7f1a35 !important;
}

/* ── Hero Blobs Animation ────────────────────────────── */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 20px) scale(1.08); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -25px); }
}

.hero-blob {
    animation: float-slow 12s ease-in-out infinite;
}

.blob-2 {
    animation: float-medium 10s ease-in-out infinite;
    animation-delay: -3s;
}

.blob-3 {
    animation: float-fast 8s ease-in-out infinite;
    animation-delay: -5s;
}

/* ── Mobile Menu ─────────────────────────────────────── */
.mobile-menu-open #mobile-menu {
    transform: translateX(0) !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

.mobile-link {
    position: relative;
}

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

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

/* ── Scroll Reveal ───────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-blob {
        animation: none;
    }
    .service-card img,
    #gallery img {
        transition: none;
    }
}

/* Default hidden state for reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Service Cards ───────────────────────────────────── */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(127, 26, 53, 0.06);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(127, 26, 53, 0.1);
    transform: translateY(-4px);
}

/* ── Back to Top ─────────────────────────────────────── */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Selection ───────────────────────────────────────── */
::selection {
    background: #f9cfd8;
    color: #7f1a35;
}

/* ── Focus visible ───────────────────────────────────── */
:focus-visible {
    outline: 2px solid #b9274d;
    outline-offset: 2px;
}

/* ── Responsive adjustments ──────────────────────────── */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}
