/* ============================================
   Pour Amor — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #781f2d;
    color: #fce7eb;
}

/* --- Skip Link --- */
.skip-link {
    z-index: 9999;
}

/* --- Navigation --- */
.nav-header {
    background: rgba(254, 246, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(120, 31, 45, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 1px 20px rgba(120, 31, 45, 0.08);
    background: rgba(254, 246, 240, 0.97);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open {
    translate: 0;
}

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

/* --- Buttons --- */
.btn-primary {
    background: #781f2d;
    color: #fff;
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: #b81d3a;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(120, 31, 45, 0.3);
    color: #fff;
}

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

.btn-secondary {
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* --- Craft Cards --- */
.craft-card {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.craft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(120, 31, 45, 0.1);
}

/* --- Product Cards --- */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* --- Input Fields --- */
.input-field {
    border: 1.5px solid #e7e5e4;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1c1917;
    background: #fafaf9;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input-field:hover {
    border-color: #d4a5a5;
    background: #fff;
}

.input-field:focus {
    border-color: #781f2d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(120, 31, 45, 0.1);
}

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

.input-field.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .craft-card:hover,
    .product-card:hover {
        transform: none;
    }
    .craft-card:hover img,
    .product-card:hover img {
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}
