/* Custom styles for Re-Vamp Fashion */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d94065;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3a0a16;
}

/* ---- Geometric decorative shapes ---- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.geo-tri {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 0;
}

/* ---- Stripe pattern background ---- */
.stripe-pattern {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(122, 20, 46, 0.04) 10px,
        rgba(122, 20, 46, 0.04) 20px
    );
}

/* ---- Hero asymmetric photo block ---- */
.hero-photo-block {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-photo-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(101, 19, 42, 0.25) 0%, transparent 60%);
}

/* ---- Scroll reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Mobile navigation ---- */
#mobile-nav {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-nav.open {
    transform: translateX(0);
}
#mobile-nav.closed {
    transform: translateX(100%);
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff0f2;
}
::-webkit-scrollbar-thumb {
    background: #d94065;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b82042;
}

/* ---- CTA Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #7a142e;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(122, 20, 46, 0.35);
    text-decoration: none;
}
.btn-primary:hover {
    background: #971634;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(122, 20, 46, 0.4);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #7a142e;
    padding: 0.8125rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9375rem;
    border: 2.5px solid #7a142e;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    text-decoration: none;
}
.btn-outline:hover {
    background: #7a142e;
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Mobile link styles ---- */
.mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: #3a0a16;
    padding: 0.5rem 0;
    border-bottom: 1px solid #fce7eb;
    text-decoration: none;
    transition: color 0.2s;
}
.mobile-link:hover {
    color: #d94065;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 767px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: auto;
    }

    .hero-photo-block {
        grid-column: 1;
        grid-row: 2;
        min-height: 50vh;
    }

    .hero-grid > div:first-child {
        grid-column: 1;
        grid-row: 1;
        min-height: 80vh;
    }

    .hero-grid > div:last-child {
        grid-column: 1;
        grid-row: 3;
    }
}

/* ---- Print styles ---- */
@media print {
    header,
    #mobile-nav,
    #mobile-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-grid {
        min-height: auto;
        page-break-inside: avoid;
    }

    section {
        page-break-inside: avoid;
    }
}
