/* ============================================
   The Post Nutrition — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 74, 0.25);
    color: #4A2C3E;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #d4c0cc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b895aa;
}

/* --- Navbar --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav-fixed.scrolled {
    background: rgba(245, 245, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(74, 44, 62, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.nav-fixed.scrolled .nav-link {
    color: #4A2C3E;
}

.nav-fixed .nav-link {
    color: #d4c0cc;
}

.nav-fixed.scrolled .nav-link:hover {
    color: #c48a2e;
}

.nav-fixed .nav-link:hover {
    color: #D4A04A;
}

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

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

.mobile-link {
    position: relative;
}

/* --- Hero Content Animation --- */
.hero-content {
    opacity: 1;
    transform: none;
}

.hero-image-stack {
    opacity: 1;
    transform: none;
}

/* --- Scroll Line Animation --- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* --- Form Styles --- */
input::placeholder,
textarea::placeholder {
    color: #d4c0cc;
}

input:focus,
textarea:focus {
    border-color: #D4A04A !important;
}

/* --- Subtle Hover Effects --- */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* --- Print Styles --- */
@media print {
    .nav-fixed,
    .scroll-line {
        display: none;
    }
}
