/* Custom styles — minimal, complementary to Tailwind */

/* Smooth focus styles */
*:focus-visible {
    outline: 1px solid rgba(180, 64, 64, 0.4);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(180, 64, 64, 0.15);
    color: #571c1c;
}

/* Ensure images don't cause layout shift */
img {
    display: block;
    max-width: 100%;
}

/* Prevent awkward text scaling on mobile */
html {
    -webkit-text-size-adjust: 100%;
}

/* Subtle grain texture overlay (optional, for hero) */
.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(46, 13, 13, 0.2) 100%);
    pointer-events: none;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff8f7 inset !important;
    -webkit-text-fill-color: #571c1c !important;
    caret-color: #571c1c;
}
