/* ========================================
   Downtown Nutrition Griffin — Custom Styles
   ======================================== */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: #1A1D23;
    color: #E5E7EB;
}

::selection {
    background-color: rgba(232, 93, 74, 0.3);
    color: #fff;
}

/* --- Geometric Background Shapes --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -50px;
    background: radial-gradient(circle, rgba(232, 93, 74, 0.06) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: -30px;
    background: radial-gradient(circle, rgba(232, 93, 74, 0.04) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.geo-diamond {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(232, 93, 74, 0.05);
    transform: rotate(45deg);
    pointer-events: none;
}

.geo-diamond--1 {
    top: 40%;
    left: 5%;
    animation: spin-slow 20s linear infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(232, 93, 74, 0.03);
    pointer-events: none;
}

.geo-triangle--1 {
    top: 60%;
    right: 8%;
    animation: float 12s ease-in-out infinite;
}

.geo-square {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(232, 93, 74, 0.04);
    pointer-events: none;
}

.geo-square--1 {
    bottom: 20%;
    right: 15%;
    transform: rotate(20deg);
    animation: spin-slow 15s linear infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #E85D4A 0%, #D14A38 100%);
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(232, 93, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 93, 74, 0.45);
    background: linear-gradient(135deg, #FF8C7A 0%, #E85D4A 100%);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

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

.btn-white {
    background: #ffffff;
    color: #E85D4A;
    border: none;
    border-radius: 1rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: #fff5f3;
}

/* --- Navigation --- */
.nav {
    background: rgba(26, 29, 35, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav.scrolled {
    background: rgba(26, 29, 35, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Product Cards --- */
.product-card {
    background: rgba(44, 48, 56, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 93, 74, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(232, 93, 74, 0.1);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* --- Map invert fix for dark theme --- */
iframe[src*="google.com/maps"] {
    border-radius: 1.5rem;
}

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #E85D4A;
    outline-offset: 3px;
    border-radius: 0.5rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    .geo-circle--1 {
        width: 150px;
        height: 150px;
    }

    .geo-diamond--1 {
        width: 40px;
        height: 40px;
    }
}
