/* ─────────────────────────────────────────────
   The Local Juice — Custom Styles
   ───────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(250, 248, 245, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ─── MOBILE MENU ─── */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-line {
    display: block;
    height: 1.5px;
    background: #44403c;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px;
}

#mobile-menu {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                pointer-events 0.35s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 1rem;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #064e3b;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 78, 59, 0.55) 0%,
        rgba(6, 78, 59, 0.70) 50%,
        rgba(6, 46, 35, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 1.5rem;
    padding-top: 4rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(167, 243, 208, 0.6);
}

.hero-title {
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.hero-title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: #f0fdf4;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(240, 253, 244, 0.75);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: #065f46;
    color: #f0fdf4;
    border-color: #065f46;
}

.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #f0fdf4;
    border-color: rgba(240, 253, 244, 0.4);
}

.btn-ghost:hover {
    border-color: rgba(240, 253, 244, 0.8);
    background: rgba(240, 253, 244, 0.08);
}

/* ─── HERO SCROLL ─── */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(240, 253, 244, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.hero-scroll:hover {
    color: rgba(240, 253, 244, 0.85);
}

.hero-scroll span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ─── SECTIONS ─── */
.section {
    padding: 6rem 0;
}

.section--light {
    background: #faf8f5;
}

.section--cream {
    background: #f5f0e8;
}

.section--dark {
    background: #042f23;
}

/* ─── EYEBROW ─── */
.eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #065f46;
}

/* ─── ABOUT ─── */
.about-img-wrap {
    position: relative;
    overflow: hidden;
}

.about-img-wrap::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(6, 95, 70, 0.2);
    z-index: 0;
    pointer-events: none;
}

.about-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─── OFFERING CARDS ─── */
.offering-card {
    background: #f5f0e8;
    transition: background 0.3s ease, transform 0.3s ease;
}

.offering-card:hover {
    background: #faf8f5;
    transform: translateY(-2px);
}

.offering-icon {
    color: #065f46;
}

/* ─── STORY ─── */
.story-img-grid {
    position: relative;
    max-width: 480px;
}

.story-img-main {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.story-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.story-img-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 55%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.story-img-sm {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ─── MAP ─── */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.map-iframe {
    display: block;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-title-line {
        animation: none;
    }

    .offering-card {
        transition: none;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }

    .hero-content {
        padding-top: 3rem;
    }

    .hero-scroll {
        bottom: 1.5rem;
    }

    .story-img-accent {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 1rem;
    }

    .story-img-grid {
        max-width: 100%;
    }

    .about-img-wrap::before {
        top: -8px;
        left: -8px;
        right: 8px;
        bottom: 8px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section {
        padding: 5rem 0;
    }
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
    outline: 2px solid #065f46;
    outline-offset: 2px;
}

/* ─── PRINT ─── */
@media print {
    .nav, .hero-scroll, .menu-btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-bg {
        position: static;
    }

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