/* Rio Snacks — Custom Styles */

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

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

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Selection color */
::selection {
    background: #c94f36;
    color: #fefcf8;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fbe0d4 0%, #f4d9a0 100%);
    min-height: 200px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}
img[data-loaded="true"] {
    opacity: 1;
}
img:not([data-loaded]) {
    opacity: 0;
}

/* Editorial section divider */
.section-divider {
    position: relative;
}
.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c94f36, transparent);
}

/* Hero asymmetric layout fix */
@media (max-width: 1023px) {
    .hero-img-col {
        position: relative;
        height: 50vh;
    }
}

/* Mobile menu backdrop blur */
@media (max-width: 767px) {
    #mobile-menu {
        backdrop-filter: blur(4px);
    }
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* 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;
    }
    .hero-img-col {
        position: relative;
        height: 50vh;
    }
}
