/* ═══════════════════════════════════════
   Rebel Grounds — Custom Styles
   ═══════════════════════════════════════ */

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

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

::selection {
    background-color: rgba(27, 67, 50, 0.2);
    color: #1B4332;
}

/* ── Navigation ── */
#site-header {
    background: rgba(253, 252, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.25s ease;
}

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

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1B4332;
    color: #FDFCF8;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #163628;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.25);
}

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

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FDFCF8;
    color: #1B4332;
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
    background: #F5F0E6;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #FDFCF8;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1rem 2rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ── Form Inputs ── */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1B4332;
    background: #FDFCF8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-field::placeholder {
    color: #94A3B8;
}

.input-field:hover {
    border-color: #1B4332;
}

.input-field:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* ── Product Cards ── */
.card-product {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 1.25rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-product:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

/* ── 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);
}

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

/* ── Mobile Menu ── */
.mobile-nav-link {
    display: block;
    width: 100%;
}

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