/* ============================================
   Model T Meats Corporation — Custom Styles
   Premium Dark Luxury Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-burgundy-700: #7B2D3B;
    --color-burgundy-950: #2a0d12;
    --color-gold-400: #C9A96E;
    --color-dark-950: #0a0908;
    --color-dark-900: #0f0d0c;
    --color-dark-850: #141110;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Raleway', Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* --- Selection --- */
::selection {
    background: rgba(201, 169, 110, 0.3);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-burgundy-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-400);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.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; }

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(10, 9, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#navbar.scrolled .font-serif {
    color: var(--color-gold-400);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-gold-400) !important;
}

/* --- Hero --- */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(123, 45, 59, 0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 50%, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* --- Buttons --- */
button, [type="submit"], a[href="#"] {
    cursor: pointer;
}

/* --- Input Focus --- */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.2);
}

/* --- Image Hover Effects --- */
.group img {
    will-change: transform;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Gold Shimmer on Hover --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer:hover {
    background: linear-gradient(90deg, var(--color-gold-400) 0%, #e8d5a3 50%, var(--color-gold-400) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* --- Parallax-like subtle effect --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

/* --- Form Success State --- */
#form-success {
    animation: slideDown 0.4s ease forwards;
}

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

/* --- Button Ripple Effect --- */
button::after, .btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

/* --- Decorative Corner Accents --- */
.corner-accent {
    position: relative;
}

.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(201, 169, 110, 0.2);
    border-style: solid;
}

.corner-accent::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.corner-accent::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}
