/* Custom styles for How Sweet It Is */

:root {
    --gold-400: #c9a84c;
    --teal-900: #0a1925;
    --teal-850: #0d1f2a;
    --slate-850: #152230;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--teal-900);
}

/* Section labels */
.section-label {
    letter-spacing: 0.3em;
}

/* Section titles */
.section-title {
    letter-spacing: -0.01em;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(10, 25, 37, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0.5;
}

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero animations */
.hero-title,
.hero-subtitle,
.hero-desc,
.hero-cta,
.hero-underline {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-desc.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.hero-cta.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.hero-underline.visible {
    opacity: 1;
    transform: translateY(0) scaleX(1);
    transition-delay: 0.3s;
    transform-origin: center;
}

/* Menu category hover */
.menu-category {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-category.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery */
.reveal-gallery {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-gallery.visible {
    opacity: 1;
    transform: scale(1);
}

/* Gold line accent */
.gold-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-400), transparent);
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: #fff !important;
}

/* Focus visible for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--teal-900);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* Selection color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    #hero h1 {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    #hero h1 span {
        font-size: 3.5rem;
    }
}

/* Print styles */
@media print {
    #navbar,
    .scroll-indicator,
    #contact-form button {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
