/* ===== CUSTOM STYLES ===== */

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: color-mix(in srgb, currentColor 20%, transparent);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: color-mix(in srgb, #fbbf24 90%, #d97706);
    color: #1a391a;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(251, 191, 36, 0.4);
    background: color-mix(in srgb, #fbbf24 95%, #d97706);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fefdf8;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #2e6e2e;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 2px solid #2e6e2e;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: #2e6e2e;
    color: #fefdf8;
    transform: translateY(-2px);
}

/* ===== PILL TAGS ===== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: color-mix(in srgb, #d9ecd9 80%, transparent);
    color: #1f451f;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, #b7dbb7 60%, transparent);
}

/* ===== NAV LINKS ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5aaa5a;
    border-radius: 1px;
    transition: width 0.2s ease;
}

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

/* ===== MOBILE LINKS ===== */
.mobile-link {
    display: block;
    border-bottom: 1px solid color-mix(in srgb, #d9ecd9 50%, transparent);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default visible state (no-JS friendly) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GALLERY SCROLL ===== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

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

/* ===== NAVBAR SCROLLED STATE ===== */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .nav-link {
    color: #1f451f;
}

#navbar.scrolled .font-display {
    color: #1f451f;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #5aaa5a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-scroll {
        animation: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}
