/* Quesabirras La Tapatia — Custom Styles */

/* Base reset & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #052e16;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection */
::selection {
    background: #16a34a;
    color: #fefdf8;
}

/* Hero parallax-like effect */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(5, 46, 22, 0.88) 0%,
        rgba(20, 83, 45, 0.72) 50%,
        rgba(22, 101, 52, 0.58) 100%
    );
}

/* Button styles */
.btn-primary {
    background: #14532d;
    color: #fefdf8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-primary:hover {
    background: #052e16;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 83, 45, 0.4);
}

.btn-cream {
    background: #fdf9ee;
    color: #14532d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-cream:hover {
    background: #faf0d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    border-radius: 2px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in delays */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Text shadow for hero */
.text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Menu line animation */
.menu-item:hover .menu-line {
    width: 100%;
}
.menu-line {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(5, 46, 22, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.15);
}

/* Image hover zoom */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* 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;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .decorative-line {
        width: 40px;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .fade-in {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
