/* ========================================
   Factory Square — Custom Styles
   Clean Minimalist | Burgundy + Blush
======================================= */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #84132e;
    color: #fdf8f7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fdf2f4;
}

::-webkit-scrollbar-thumb {
    background: #c2264b;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6f132b;
}

/* ========================================
   Reveal Animations (Progressive Enhancement)
   Content is visible by default; JS adds animation
======================================= */
.reveal {
    /* Default: visible for accessibility / no-JS */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* JS-enhanced: start hidden for scroll-reveal */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: never animate */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Navigation
======================================= */
#nav {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#nav.scrolled {
    box-shadow: 0 1px 0 rgba(132, 19, 46, 0.08);
}

/* ========================================
   Buttons & Links
======================================= */
a {
    text-decoration: none;
}

/* ========================================
   Form Elements
======================================= */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #fad0d9;
}

/* ========================================
   Mobile Menu
======================================= */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ========================================
   Image Hover Effects
======================================= */
img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Utility: Thin Divider Lines
======================================= */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #fce7eb, transparent);
}

/* ========================================
   Focus Visible (Accessibility)
======================================= */
:focus-visible {
    outline: 2px solid #84132e;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #fce7eb;
    outline-offset: 2px;
}
