/* Custom styles for Cutthroat Coffee */

/* Smooth scroll padding for fixed nav */
section {
    scroll-margin-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Mobile menu line animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Geometric shapes on hero */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.geometric-shape {
    animation: float-slow 6s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 7s;
}

.geometric-shape:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 5s;
}

.geometric-shape:nth-child(4) {
    animation-delay: -3s;
    animation-duration: 8s;
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #e8a838;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #e8a838;
    color: #0a1628;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #e8a838;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f0b84d;
}

/* Ensure hero image loads properly */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img {
    object-fit: cover;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .geometric-shape {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, .geometric-shape, button, form {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
