/* ============================================
   Nord Avenue Market — Editorial Style
   Emerald Green + Cream Palette
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --cream-50: #fefdf8;
    --cream-100: #fef9e8;
    --cream-200: #fdf0c7;
    --warm-50: #faf8f3;
    --warm-100: #f5f0e8;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6b6b6b;
    --text-on-dark: #f5f0e8;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.section-eyebrow--light {
    color: var(--cream-200);
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.section-headline--light {
    color: var(--text-on-dark);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 6px;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-700);
    color: #fff;
    border: 2px solid var(--emerald-700);
}

.btn--primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 36px;
    font-size: 0.9375rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.4s var(--ease-smooth);
}

.nav--scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav--scrolled .nav__logo-text {
    color: var(--text-dark);
}

.nav--scrolled .nav__logo-mark {
    background: var(--emerald-700);
    color: #fff;
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: padding 0.4s var(--ease-smooth);
}

.nav--scrolled .nav__inner {
    padding: 14px 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
    background: #fff;
    color: var(--emerald-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s var(--ease-smooth);
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.0625rem;
    color: #fff;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease-smooth);
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.3s var(--ease-smooth);
}

.nav__link:hover {
    color: #fff;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s var(--ease-smooth);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav--scrolled .nav__link {
    color: var(--text-mid);
}

.nav--scrolled .nav__link:hover {
    color: var(--emerald-700);
}

.nav--scrolled .nav__link--cta {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    color: #fff !important;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s var(--ease-smooth);
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav__toggle-icon {
    color: #fff;
    transition: opacity 0.3s var(--ease-smooth);
}

.nav__toggle-close {
    position: absolute;
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon:first-child {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon:last-child {
    opacity: 1;
}

.nav__toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
}

.nav--scrolled .nav__toggle-icon {
    color: var(--text-dark);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

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

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 30, 20, 0.55) 0%,
        rgba(6, 30, 20, 0.4) 50%,
        rgba(6, 30, 20, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-200);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.0;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
    opacity: 0;
}

.hero__scroll svg {
    animation: bounce 2s var(--ease-smooth) infinite;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section--light {
    background: var(--cream-50);
}

.section--dark {
    background: var(--emerald-900);
}

.section--cream {
    background: var(--cream-100);
}

/* --- About --- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    max-width: 520px;
}

.about__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--warm-100);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
}

.stat__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about__image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about__image:hover img {
    transform: scale(1.03);
}

/* --- Offerings --- */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.offering-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.offering-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.offering-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.offering-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.offering-card:hover .offering-card__img img {
    transform: scale(1.05);
}

.offering-card__body {
    padding: 32px;
}

.offering-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.offering-card__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* --- Community --- */
.community {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.community__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.community__image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.community__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.community__image:hover img {
    transform: scale(1.03);
}

/* --- Visit --- */
.visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit__info {
    max-width: 480px;
}

.visit__details {
    font-style: normal;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.visit__icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--emerald-700);
}

.visit__row a {
    color: var(--emerald-700);
    transition: color 0.3s var(--ease-smooth);
}

.visit__row a:hover {
    color: var(--emerald-600);
    text-decoration: underline;
}

.visit__map {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    min-height: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
.footer {
    background: var(--emerald-900);
    padding: 64px 0 40px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nav__logo-mark--footer {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cream-200);
}

.footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact a {
    color: var(--cream-200);
    transition: color 0.3s var(--ease-smooth);
}

.footer__contact a:hover {
    color: #fff;
}

.footer__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 30, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

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

.mobile-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease-smooth);
}

.mobile-menu__link:hover {
    color: var(--cream-200);
}

.mobile-menu__link--cta {
    margin-top: 16px;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about,
    .community,
    .visit {
        gap: 48px;
    }

    .offerings-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
        position: relative;
    }

    .hero {
        min-height: 100svh;
    }

    .hero__headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        justify-content: center;
        width: 100%;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__text {
        max-width: 100%;
    }

    .about__image {
        aspect-ratio: 16/10;
        order: -1;
    }

    .about__stats {
        gap: 32px;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .community {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .community__image {
        order: -1;
        aspect-ratio: 16/9;
    }

    .visit {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visit__map {
        aspect-ratio: 16/9;
        min-height: 240px;
    }

    .footer__inner {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 64px 0;
    }

    .section-headline {
        margin-bottom: 24px;
    }

    .about__stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .offering-card__body {
        padding: 24px;
    }

    .hero__scroll {
        bottom: 24px;
    }
}
