/* ========================================
   JD's Tavern — Stylesheet
   Forest Green + Off-White | Vibrant Modern
   ======================================== */

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

:root {
    --green-900: #052e16;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #15803a;
    --green-500: #16a34a;
    --green-400: #22c55e;
    --green-300: #4ade80;
    --green-200: #86efac;
    --green-100: #bbf7d0;
    --green-50:  #dcfce7;

    --cream-50:  #f8faf8;
    --cream-100: #f0f4f0;
    --cream-200: #e2e8e2;
    --cream-300: #c8d4c8;

    --warm-50:  #faf9f6;
    --warm-100: #f5f3ed;
    --warm-200: #e8e4d8;
    --warm-300: #d4cfc0;
    --warm-400: #a89e88;
    --warm-500: #7a7060;

    --text-primary:   #1a2e1a;
    --text-secondary: #3d5a3d;
    --text-muted:     #6b8a6b;
    --text-inverse:   #f0f7f0;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Outfit', system-ui, sans-serif;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --shadow-sm:  0 1px 3px rgba(5,46,22,.08), 0 1px 2px rgba(5,46,22,.06);
    --shadow-md:  0 4px 16px rgba(5,46,22,.1), 0 2px 6px rgba(5,46,22,.06);
    --shadow-lg:  0 12px 40px rgba(5,46,22,.14), 0 4px 12px rgba(5,46,22,.08);
    --shadow-xl:  0 24px 60px rgba(5,46,22,.16), 0 8px 20px rgba(5,46,22,.1);
}

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

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

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

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- BLOBS (background decoration) ---------- */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .12;
    pointer-events: none;
    z-index: 0;
}

.blob--1 {
    width: 600px;
    height: 600px;
    background: var(--green-400);
    top: -200px;
    right: -150px;
}

.blob--2 {
    width: 500px;
    height: 500px;
    background: var(--green-300);
    bottom: 10%;
    left: -100px;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(22, 101, 52, .08);
    transition: box-shadow .3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* ---------- LOGO ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    text-decoration: none;
    color: var(--green-800);
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--green-700);
    color: var(--green-50);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.02em;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.logo__wordmark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.logo__mark--light {
    background: var(--green-500);
    color: var(--warm-50);
}

.logo__wordmark--light {
    color: var(--text-inverse);
}

/* ---------- NAV ---------- */
.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}

.nav__link:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.nav__link--cta {
    background: var(--green-700);
    color: var(--text-inverse) !important;
    margin-left: 8px;
}

.nav__link--cta:hover {
    background: var(--green-600);
}

/* Nav toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--green-700);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(22, 101, 52, .35);
}

.btn--primary:hover {
    background: var(--green-600);
    box-shadow: 0 8px 24px rgba(22, 101, 52, .4);
}

.btn--ghost {
    background: transparent;
    color: var(--green-700);
    border: 2px solid var(--green-200);
}

.btn--ghost:hover {
    background: var(--green-50);
    border-color: var(--green-400);
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* ---------- SECTION LABELS ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--green-400);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -.03em;
    margin-bottom: 24px;
}

.text-gradient {
    color: var(--green-600);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-200);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.hero__line {
    display: block;
}

.hero__line:nth-child(3) {
    color: var(--green-600);
}

.hero__line:nth-child(4) {
    color: var(--green-700);
    font-style: italic;
}

.italic-accent {
    font-style: italic;
    color: var(--green-600);
}

.hero__sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__info-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero__info-item svg {
    color: var(--green-500);
    flex-shrink: 0;
}

/* Hero image stack */
.hero__img-stack {
    position: relative;
    height: 680px;
}

.img-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.img-card--main {
    width: 340px;
    height: 460px;
    top: 0;
    right: 0;
    z-index: 2;
}

.img-card--accent {
    width: 260px;
    height: 200px;
    bottom: 160px;
    left: 0;
    z-index: 3;
    border: 4px solid var(--warm-50);
}

.img-card--small {
    width: 160px;
    height: 160px;
    bottom: 40px;
    right: 40px;
    z-index: 4;
    border: 4px solid var(--warm-50);
}

/* Geometric accents */
.hero__geo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: var(--green-100);
    top: -100px;
    left: -150px;
    opacity: .5;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    background: var(--green-200);
    bottom: 10%;
    left: 35%;
    opacity: .4;
}

.geo-diamond {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--green-400);
    top: 20%;
    left: 42%;
    transform: rotate(45deg);
    opacity: .3;
    border-radius: 4px;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__content {
    max-width: 520px;
}

.about__content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.about__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.about__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.about__features li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.about__image-wrap {
    position: relative;
}

.about__img-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--green-400);
    border-radius: var(--radius-lg);
    top: -24px;
    right: -24px;
    z-index: 0;
    opacity: .6;
}

.about__image-wrap img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 700px;
    object-fit: cover;
}

/* ---------- MENU ---------- */
.menu {
    padding: 120px 0;
    background: var(--green-800);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(34,197,94,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(74,222,128,.1) 0%, transparent 50%);
    pointer-events: none;
}

.menu__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
    position: relative;
    z-index: 1;
}

.menu__header .section-label {
    color: var(--green-300);
}

.menu__header .section-label::before {
    background: var(--green-400);
}

.menu__header .section-title {
    color: var(--text-inverse);
}

.menu__header .text-gradient {
    color: var(--green-300);
}

.menu__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--green-200);
}

.menu__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.menu-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    backdrop-filter: blur(8px);
    transition: transform .3s, background .3s;
}

.menu-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.1);
}

.menu-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-300);
    background: rgba(34,197,94,.2);
    border: 1px solid rgba(34,197,94,.3);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.menu-card__badge--food {
    color: #fbbf24;
    background: rgba(251,191,36,.15);
    border-color: rgba(251,191,36,.3);
}

.menu-card__badge--vibe {
    color: var(--green-200);
    background: rgba(134,239,172,.15);
    border-color: rgba(134,239,172,.3);
}

.menu-card__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-inverse);
    letter-spacing: -.02em;
    margin-bottom: 24px;
}

.menu-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-card__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    color: var(--green-100);
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.menu-card__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-card__tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-400);
    background: rgba(34,197,94,.15);
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu__note {
    text-align: center;
    font-size: 14px;
    color: var(--green-400);
    margin-top: 40px;
    position: relative;
    z-index: 1;
    opacity: .8;
}

/* ---------- VIBE / GALLERY ---------- */
.vibe {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.vibe__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.vibe__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.vibe__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.vibe__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.vibe__item:hover img {
    transform: scale(1.05);
}

.vibe__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,46,22,.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s ease;
}

.vibe__item:hover .vibe__item-overlay {
    opacity: 1;
}

.vibe__item-overlay span {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-inverse);
}

.vibe__item--1 {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    height: 380px;
}

.vibe__item--2 {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 380px;
}

.vibe__item--3 {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
    height: 280px;
}

.vibe__item--4 {
    grid-column: 5 / 9;
    grid-row: 2 / 3;
    height: 280px;
}

/* ---------- VISIT / CONTACT ---------- */
.visit {
    padding: 120px 0;
    background: var(--cream-100);
    position: relative;
    z-index: 1;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit__info {
    display: flex;
    flex-direction: column;
}

.visit__desc {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.visit__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit__detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.visit__detail strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.visit__detail p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.visit__detail a {
    color: var(--green-600);
    font-weight: 600;
    transition: color .2s;
}

.visit__detail a:hover {
    color: var(--green-500);
}

.visit__map {
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--green-900);
    color: var(--text-inverse);
    padding: 64px 0 32px;
    position: relative;
    z-index: 1;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__brand p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--green-300);
    line-height: 1.7;
    max-width: 280px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--green-300);
    padding: 6px 0;
    transition: color .2s;
}

.footer__links a:hover {
    color: var(--green-200);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    text-align: center;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--green-400);
    opacity: .7;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

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

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero__grid {
        gap: 40px;
    }

    .hero__img-stack {
        height: 520px;
    }

    .img-card--main {
        width: 280px;
        height: 380px;
    }

    .img-card--accent {
        width: 200px;
        height: 160px;
    }

    .img-card--small {
        width: 130px;
        height: 130px;
    }

    .about__grid {
        gap: 48px;
    }

    .menu__categories {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__info {
        align-items: center;
    }

    .hero__right {
        display: none;
    }

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

    .about__image-wrap {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .about__image-wrap img {
        height: 480px;
    }

    .menu__categories {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

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

    .vibe__item--1 {
        grid-column: 1 / -1;
        height: 300px;
    }

    .vibe__item--2 {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 300px;
    }

    .vibe__item--3 {
        grid-column: 2 / 3;
        grid-row: auto;
        height: 300px;
    }

    .vibe__item--4 {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 280px;
    }

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

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--warm-50);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 24px 40px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform .35s ease;
        z-index: 999;
    }

    .nav__list.open {
        transform: translateX(0);
    }

    .nav__link {
        padding: 14px 16px;
        font-size: 17px;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero__headline {
        font-size: clamp(36px, 8vw, 56px);
    }

    .section-title {
        font-size: clamp(28px, 6vw, 44px);
    }

    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__brand p {
        max-width: 100%;
    }
}

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

    .hero {
        padding: 100px 0 60px;
    }

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

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

    .about, .menu, .vibe, .visit {
        padding: 80px 0;
    }

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

    .vibe__item--1,
    .vibe__item--2,
    .vibe__item--3,
    .vibe__item--4 {
        grid-column: 1 / -1;
        height: 240px;
    }

    .footer__links {
        justify-content: center;
    }
}
