/* ================================
   AFTFOODS — style.css
   ================================ */

/* Navbar */
#navbar {
    background: transparent;
    transition: padding 0.4s ease, background 0.4s ease;
}
#navbar.nav-scrolled {
    background: rgba(245, 240, 232, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(13, 31, 18, 0.08), 0 4px 20px rgba(13, 31, 18, 0.06);
}

/* When scrolled, blend pills into the navbar background */
#navbar.nav-scrolled .nav-pill-left,
#navbar.nav-scrolled .nav-pill-right {
    background: rgba(13, 31, 18, 0.06);
    border-color: rgba(13, 31, 18, 0.1);
    box-shadow: none;
}

/* Navbar pills */
.nav-pill-left,
.nav-pill-right {
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(13, 31, 18, 0.08);
    box-shadow: 0 2px 12px rgba(13, 31, 18, 0.08);
    transition: background 0.3s ease;
}
.nav-pill-left:hover,
.nav-pill-right:hover {
    background: rgba(245, 240, 232, 1);
}

.nav-pill-center {
    background: #0d1f12;
    box-shadow: 0 4px 24px rgba(13, 31, 18, 0.35);
}

.nav-link-active {
    background: rgba(201, 168, 76, 0.15);
    color: #c9a84c !important;
}

.nav-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
}
.nav-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Marquee */
.marquee-wrap { overflow: hidden; }

.marquee-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: marquee-move 30s linear infinite;
    will-change: transform;
    width: max-content;
}

.strip-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: marquee-move 45s linear infinite;
    will-change: transform;
    width: max-content;
}

@keyframes marquee-move {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #f5f0e8; }
::-webkit-scrollbar-thumb { background: #1a4d2e; border-radius: 2px; }

/* Page hero */
.page-hero {
    background: linear-gradient(140deg, #0d1f12 0%, #1a4d2e 100%);
    color: #f5f0e8;
}
.page-hero h1 { color: #f5f0e8; }
.page-hero p  { color: rgba(232, 228, 217, 0.55); }
.page-hero a  { color: rgba(232, 228, 217, 0.35); }
.page-hero a:hover { color: #c9a84c; }
.page-hero .tag { color: #c9a84c; }

/* Image zoom on hover */
.img-zoom {
    overflow: hidden;
    background-color: #1a4d2e; /* fallback when image missing */
}
.img-zoom img {
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-zoom:hover img { transform: scale(1.06); }

/* Hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(13, 31, 18, 0.12);
}

/* Arrow animation */
.arrow-icon { transition: transform 0.3s ease; display: inline-block; }
a:hover .arrow-icon { transform: translateX(5px); }

/* Form inputs */
.form-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(13, 31, 18, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e8e4d9;
    font-size: 0.875rem;
    transition: border-color 0.25s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: rgba(0, 0, 0, 0.4); }
.form-input:focus { border-color: rgba(201, 168, 76, 0.5); }
.form-input option { background: #0d1f12; color: #e8e4d9; }

/* Mobile menu overlay */
#mobile-menu {
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Tag / badge */
.tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Chain step number */
.step-num {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    flex-shrink: 0;
}

/* Value card min height */
.value-card { min-height: 220px; }

/* Opportunity card overlay */
.opp-overlay {
    background: linear-gradient(to top, rgba(13,31,18,0.95) 0%, rgba(13,31,18,0.3) 50%, transparent 100%);
}

/* News category tag */
.news-tag {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.7);
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #0d1f12, #1a4d2e);
}

/* Stat item */
.stat-item { text-align: center; }

/* Border dim */
.border-dim { border-color: rgba(232, 228, 217, 0.08); }

/* Responsive images */
img { max-width: 100%; }

/* Ensure dark sections have light text cascade */
.page-hero h2, .page-hero h3, .page-hero span { color: inherit; }

/* Fallback bg for full-bleed sections with bg image + overlay */
.relative.overflow-hidden > .absolute.inset-0:first-child ~ .absolute.inset-0,
section.relative > .absolute.inset-0 + .absolute.inset-0 { pointer-events: none; }

/* Overlay divs always render even without image */
[class*="bg-gradient-to-t"],
[class*="bg-gradient-to-r"],
[class*="bg-gradient-to-b"] { min-height: inherit; }
