/* Custom styles for Quick Stop - Clanton's Classic Station */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0b0a;
}
::-webkit-scrollbar-thumb {
    background: rgba(207, 159, 61, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(207, 159, 61, 0.5);
}

/* Selection color */
::selection {
    background: rgba(212, 82, 46, 0.3);
    color: #fdfcf8;
}

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

/* Image loading placeholder */
.img-frame {
    background: linear-gradient(135deg, #131110 0%, #1a1614 100%);
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    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)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(13, 11, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(207, 159, 61, 0.08);
}

/* Mobile menu animation */
.mobile-menu {
    z-index: 51;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Accent line animations */
@keyframes lineGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* Card hover glow effect */
.glass-card:hover {
    box-shadow: 0 0 60px rgba(207, 159, 61, 0.06);
}

/* Hero image grid gap compensation */
.grid.grid-cols-2 {
    gap: 0.75rem;
}

/* Ensure proper contrast for all text elements */
.text-sand-200\/50,
.text-sand-200\/60,
.text-sand-300\/60,
.text-sand-400\/80,
.text-sand-500\/60,
.text-sand-500\/40,
.text-sand-500\/30,
.text-sand-100 {
    /* All these classes maintain sufficient contrast against the dark noir background */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display.text-4xl,
    .font-display.text-5xl {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    body { background: white; color: black; }
    .glass-card, .img-frame { border: 1px solid #ccc; }
    .btn-gold, .btn-outline { border: 1px solid #333; color: #333; }
}
