/* Huffman's Ice Cream — Custom Styles */

/* Base adjustments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure smooth rendering */
img {
    display: block;
    max-width: 100%;
}

/* Selection color */
::selection {
    background: #e85d3a;
    color: #ffffff;
}

/* Reduced motion — all animations disabled */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-img-container img,
    .grid img {
        transition: none;
    }
    .hero-img-container img:hover,
    .grid img:hover {
        transform: none;
    }
}

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

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Prevent layout shift on images */
img {
    vertical-align: middle;
}

/* Custom coral gradient for special elements */
.coral-gradient {
    background: linear-gradient(135deg, #e85d3a 0%, #d14525 100%);
}

/* Subtle card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Decorative divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e85d3a, #ffaa85);
    border-radius: 2px;
}

/* Image overlay gradient for text readability */
.img-overlay {
    position: relative;
}
.img-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.6) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Noise texture overlay for depth */
.noise-overlay {
    position: relative;
}
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Coral glow effect */
.coral-glow {
    box-shadow: 0 0 40px rgba(232, 93, 58, 0.15);
}

/* Text gradient for special headings */
.text-gradient-coral {
    background: linear-gradient(135deg, #e85d3a 0%, #ffaa85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
