/* ===== Custom Styles for Branding Barrel Marketing Group ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5ebe3;
}
::-webkit-scrollbar-thumb {
    background: #781f2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #641a23;
}

/* ===== Hero Animations ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }
.hero-anim:nth-child(5) { animation-delay: 0.9s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Card Hover ===== */
.service-card {
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Process Step Hover ===== */
.process-step:hover .font-serif {
    color: #781f2a;
    transition: color 0.3s ease;
}

/* ===== Navbar Transition ===== */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Intersection Observer Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Mobile Menu ===== */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 500px;
    padding-top: 0;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ===== Button Focus States ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #781f2a;
    outline-offset: 2px;
}

/* ===== Selection Color ===== */
::selection {
    background-color: #781f2a;
    color: #faf5f2;
}

/* ===== Image Aspect Ratio Fallback ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #mobileMenuBtn, .hero-anim { display: none; }
    body { color: #000; background: #fff; }
}
