/* ============================================
   Dawg House Nutrition — Custom Styles
   ============================================ */

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

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

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #2c3f1c;
    color: #fdfcf8;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2c3f1c;
}

.btn-primary:hover {
    background-color: #446628;
    border-color: #446628;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 63, 28, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #2c3f1c;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2c3f1c;
}

.btn-secondary:hover {
    background-color: #2c3f1c;
    color: #fdfcf8;
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar-scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(44, 63, 28, 0.08);
}

.navbar-scrolled .nav-link {
    color: #2c3f1c;
}

.navbar-scrolled .font-serif.font-bold {
    color: #2c3f1c;
}

/* ---- Nav Links ---- */
.nav-link {
    position: relative;
}

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

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

/* ---- Product Cards ---- */
.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ---- Mobile Menu ---- */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #5a8235;
}

/* ---- Form Styles ---- */
input:focus,
textarea:focus {
    outline: none;
}

/* ---- Selection ---- */
::selection {
    background-color: #c7dbaa;
    color: #131a0b;
}

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

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

::-webkit-scrollbar-thumb {
    background: #a2c278;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a8235;
}

/* ---- Image Aspect Ratio Fallbacks ---- */
img {
    max-width: 100%;
    height: auto;
}

/* ---- Focus Visible ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5a8235;
    outline-offset: 2px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

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

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}
