/*
 * Industry Apizza — Custom Styles
 */

/* Custom Fonts */
@font-face {
    font-family: 'BerringerRough';
    src: url("/assets/Berringer-Rough-03b25539.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Base */
body {
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/assets/industry-flame-logo-4f0f65d2.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 40%;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}
.font-display { font-family: 'BerringerRough', Georgia, serif; }

/* Only show scroll indicator when viewport is tall enough */
.scroll-indicator { display: none; }
@media (min-height: 700px) and (min-width: 768px) {
    .scroll-indicator { display: block; }
}

/* Arbitrary value replacements (Tailwind v4 can't extract bracket values from .erb) */
.leading-tight-hero { line-height: 0.9; }
.hero-glow { width: 600px; height: 600px; }
.z-modal { z-index: 100; }

/* Nav Logo */
.nav-logo {
    opacity: 0.9;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.nav-logo:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(238, 118, 35, 0.4));
}


/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #ebe6df; }
::-webkit-scrollbar-thumb { background: #ee7623; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4580a; }

/* ====== Animations ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}
.animate-slide-down {
    animation: slideDown 0.5s ease-out forwards;
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ====== Scroll Reveal ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Grain Texture Overlay ====== */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ====== Hover Lift Effect ====== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ====== Gold Gradient Text ====== */
.gold-text {
    background: linear-gradient(to bottom, #d4580a, #b1430b, #8c3410);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== Parallax-lite ====== */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* ====== Nav Blur ====== */
.nav-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ====== Map Styling ====== */
#google-map {
    background: #ebe6df;
}
