/* ========================================
   Timmys Tacos — Custom Styles
   Clean Minimalist | Terracotta & Sand
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #ebd1c7;
    color: #65281e;
}

/* ========================================
   Animations
   ======================================== */

/* Fade In Animation for Hero Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

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

/* ========================================
   Navbar
   ======================================== */

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(196, 95, 66, 0.08);
}

/* ========================================
   Mobile Menu
   ======================================== */

#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger Animation */
#mobile-menu-btn.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active #line2 {
    opacity: 0;
}

#mobile-menu-btn.active #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ========================================
   Typography Refinements
   ======================================== */

.font-serif {
    font-weight: 300;
}

.font-serif em {
    font-style: italic;
}

/* ========================================
   Form Styles
   ======================================== */

input:focus,
textarea:focus {
    border-color: #ddaa96 !important;
    background-color: #fdf8f3 !important;
}

input::placeholder,
textarea::placeholder {
    color: #b5a89a;
}

/* ========================================
   Image Hover Effects
   ======================================== */

img {
    will-change: transform;
}

/* ========================================
   Smooth Scroll Offset for Fixed Nav
   ======================================== */

section[id] {
    scroll-margin-top: 80px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 767px) {
    .font-serif {
        font-weight: 400;
    }
    
    section[id] {
        scroll-margin-top: 70px;
    }
}

/* ========================================
   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-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   Utility: Thin Lines & Borders
   ======================================== */

.border-thin {
    border-width: 0.5px;
}

/* ========================================
   Subtle Hover Transitions
   ======================================== */

a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Card Hover States
   ======================================== */

.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}
