/* ═══════════════════════════════════════════════════════════
   JAKs Taproom Old Ranch — Styles
   Palette: Forest Green (#1a4d2e) · Off-White (#f7f5f0)
   Fonts: Playfair Display (headings) · Inter (body)
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --green-900: #0d2818;
    --green-800: #1a4d2e;
    --green-700: #236b3f;
    --green-600: #2d8a52;
    --green-100: #d4e8d8;
    --green-50:  #eaf5ec;

    --off-white: #f7f5f0;
    --off-white-dark: #ede9e0;
    --cream: #faf9f6;

    --text-dark: #1a1a18;
    --text-mid:  #4a4a44;
    --text-light: #7a7a72;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 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;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ── Typography ── */
.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 12px;
}

.label--light {
    color: var(--green-100);
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section__title--light {
    color: #f0f0ea;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

/* ── 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 32px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn--light {
    background: #f0efe8;
    color: var(--green-800);
    border-color: #f0efe8;
}

.btn--light:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn--ghost-light {
    background: transparent;
    color: #f0efe8;
    border-color: rgba(240, 239, 232, 0.4);
}

.btn--ghost-light:hover {
    border-color: #f0efe8;
    background: rgba(240, 239, 232, 0.08);
}

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

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

.section--light {
    background: var(--off-white);
}

.section--dark {
    background: var(--green-800);
}

.section--green {
    background: var(--green-700);
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
    transition: background 0.3s ease;
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--green-800);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.nav__logo-icon {
    color: var(--green-800);
}

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

.nav__link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-700);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--green-800);
}

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

.nav__link--cta {
    padding: 8px 20px;
    border: 1px solid var(--green-700);
    border-radius: 2px;
    color: var(--green-700);
    transition: all 0.2s ease;
}

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

.nav__link--cta:hover {
    background: var(--green-700);
    color: #f0efe8;
}

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

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--green-800);
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 40, 24, 0.72) 0%,
        rgba(26, 77, 46, 0.65) 50%,
        rgba(13, 40, 24, 0.80) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
}

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 24px;
    opacity: 0.85;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #f0efe8;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero__headline--accent {
    font-style: italic;
    font-weight: 400;
    color: var(--green-100);
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(240, 239, 232, 0.8);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(240, 239, 232, 0.5);
    animation: float 2.4s var(--ease-smooth) infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

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

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

.about__image {
    border-radius: 2px;
    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* ── Offerings ── */
.offerings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.offering {
    padding: 40px 0;
    border-top: 1px solid rgba(212, 232, 216, 0.3);
}

.offering__icon {
    color: var(--green-100);
    margin-bottom: 24px;
}

.offering__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: #f0efe8;
    margin-bottom: 16px;
}

.offering__title + p {
    font-size: 0.9375rem;
    color: rgba(240, 239, 232, 0.7);
    line-height: 1.75;
    margin-bottom: 24px;
}

.offering__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offering__list li {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(240, 239, 232, 0.55);
    padding-left: 16px;
    position: relative;
}

.offering__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 1px;
    background: var(--green-100);
    opacity: 0.5;
}

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

.visit__info p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--off-white-dark);
}

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

.visit__detail-icon {
    color: var(--green-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__detail strong {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.visit__detail span,
.visit__detail a {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.visit__detail a:hover {
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-color: var(--green-100);
}

.visit__hours {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.visit__hours strong {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.visit__map {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.visit__map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 720 / 560;
}

.visit__map-link {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-800);
    background: rgba(240, 239, 232, 0.95);
    padding: 10px 18px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.visit__map-link:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ── Contact ── */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__sub {
    font-size: 1rem;
    color: rgba(240, 239, 232, 0.7);
    line-height: 1.8;
    margin-top: 16px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240, 239, 232, 0.6);
}

.form__input {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(240, 239, 232, 0.2);
    border-radius: 2px;
    padding: 12px 16px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.form__input::placeholder {
    color: rgba(240, 239, 232, 0.35);
}

.form__input:focus {
    border-color: rgba(240, 239, 232, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,239,232,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--green-100);
    padding: 12px 0;
}

.form__success svg {
    flex-shrink: 0;
}

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

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(240, 239, 232, 0.08);
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #f0efe8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__tagline {
    font-size: 0.8125rem;
    color: rgba(240, 239, 232, 0.4);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.footer__links {
    display: flex;
    gap: 32px;
}

.footer__links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(240, 239, 232, 0.5);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: #f0efe8;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.footer__contact a {
    font-size: 0.875rem;
    color: rgba(240, 239, 232, 0.5);
    transition: color 0.2s ease;
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.75rem;
    color: rgba(240, 239, 232, 0.25);
    letter-spacing: 0.02em;
}

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

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

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

    .offerings {
        gap: 32px;
    }
}

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

    /* Mobile nav */
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-smooth);
    }

    .nav__links.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .nav__link--cta {
        border: none;
        padding: 0;
        font-size: 1rem;
    }

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

    /* Hero */
    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }

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

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

    .about__image {
        order: -1;
    }

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

    /* Offerings */
    .offerings {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Visit */
    .visit {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visit__map {
        order: -1;
    }

    /* Contact */
    .contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    /* Footer */
    .footer__inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer__contact {
        text-align: left;
    }

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

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

    .section {
        padding: 64px 0;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
