/* ============================================
   TAMÁRHU NUTRITION — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #e05530;
    color: #faf7f2;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf7f2;
}
::-webkit-scrollbar-thumb {
    background: #d4a87a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e05530;
}

/* --- Navigation --- */
#site-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(61, 43, 31, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #e05530;
    transition: width 0.3s ease;
}

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

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

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

.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: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Floating Cards --- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* --- Marquee --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Hidden state for below-fold reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Buttons --- */
a {
    text-decoration: none;
}

/* --- Image aspect ratios --- */
img {
    max-width: 100%;
    height: auto;
}

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

/* --- Mobile responsive --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
