/* ============================================
   JAMES' PLACE — Styles
   Palette: Cream (#FDF8F0) + Emerald (#064E3B)
   Fonts: Playfair Display (serif) + Inter (sans)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

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

ul {
    list-style: none;
}

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --cream-50: #FDF8F0;
    --cream-100: #F9F0E0;
    --cream-200: #F3E5C8;
    --emerald-850: #043A2A;
    --emerald-900: #064E3B;
    --emerald-950: #022C22;
    --gold: #B8860B;
    --gold-light: #D4A843;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* ---------- NAV ---------- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--cream-50);
    transition: color var(--transition);
}

.nav-fixed.scrolled .nav-logo {
    color: var(--emerald-950);
}

.nav-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(254, 243, 207, 0.15);
    border: 1px solid rgba(254, 243, 207, 0.3);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: #FEF3C7;
    transition: background var(--transition), border-color var(--transition);
}

.nav-fixed.scrolled .nav-logo-mark {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    color: #FEF3C7;
}

.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--cream-50);
    transition: color var(--transition);
}

.nav-fixed.scrolled .nav-menu-btn {
    color: var(--emerald-950);
}

.nav-overlay {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(253, 248, 240, 0.85);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width var(--transition);
}

.nav-link:hover {
    color: #FEF3C7;
}

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

.nav-fixed.scrolled .nav-link {
    color: var(--emerald-850);
}

.nav-fixed.scrolled .nav-link:hover {
    color: var(--emerald-900);
}

.nav-fixed.scrolled .nav-link::after {
    background: var(--emerald-900);
}

.nav-cta {
    padding: 10px 20px;
    background: rgba(254, 243, 207, 0.15);
    border: 1px solid rgba(254, 243, 207, 0.35);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: #FEF3C7;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: rgba(254, 243, 207, 0.25);
    transform: translateY(-1px);
}

.nav-fixed.scrolled .nav-cta {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    color: #FEF3C7;
}

.nav-fixed.scrolled .nav-cta:hover {
    background: var(--emerald-950);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.88) 0%,
        rgba(6, 78, 59, 0.80) 40%,
        rgba(6, 78, 59, 0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-card {
    max-width: 640px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(254, 243, 207, 0.7);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: #FEF3C7;
    margin-bottom: 24px;
}

.hero-headline em.serif-accent {
    font-style: italic;
    color: var(--gold-light);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: rgba(253, 248, 240, 0.8);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--emerald-900);
    color: #FEF3C7;
    border: 1.5px solid var(--emerald-900);
}

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

.btn-outline-light {
    background: transparent;
    color: #FEF3C7;
    border: 1.5px solid rgba(254, 243, 207, 0.4);
}

.btn-outline-light:hover {
    background: rgba(254, 243, 207, 0.1);
    border-color: rgba(254, 243, 207, 0.7);
    transform: translateY(-2px);
}

/* ---------- FLOATING STATS ---------- */
.hero-stats {
    position: absolute;
    bottom: 40px;
    right: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: rgba(253, 248, 240, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(254, 243, 207, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 200px;
    transition: transform var(--transition), background var(--transition);
}

.stat-card:hover {
    transform: translateX(-4px);
    background: rgba(253, 248, 240, 0.15);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #FEF3C7;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(253, 248, 240, 0.65);
    line-height: 1.4;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 100px 24px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--emerald-950);
    margin-bottom: 24px;
}

.section-headline em.serif-accent {
    font-style: italic;
    color: var(--emerald-850);
}

.section-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(6, 78, 59, 0.65);
    max-width: 560px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--cream-50);
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.03);
}

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

.about-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(6, 78, 59, 0.75);
}

/* ---------- MENU ---------- */
.menu-section {
    background: var(--emerald-950);
    color: var(--cream-50);
}

.menu-section .section-eyebrow {
    color: var(--gold-light);
}

.menu-section .section-headline {
    color: #FEF3C7;
}

.menu-section .section-sub {
    color: rgba(253, 248, 240, 0.6);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.menu-category {
    background: rgba(253, 248, 240, 0.05);
    border: 1px solid rgba(254, 243, 207, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: background var(--transition), border-color var(--transition);
}

.menu-category:hover {
    background: rgba(253, 248, 240, 0.08);
    border-color: rgba(254, 243, 207, 0.15);
}

.menu-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(254, 243, 207, 0.1);
}

.menu-category-icon {
    font-size: 1.5rem;
}

.menu-category-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #FEF3C7;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.menu-item-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream-100);
}

.menu-item-desc {
    font-size: 0.85rem;
    color: rgba(253, 248, 240, 0.5);
    line-height: 1.4;
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.9rem;
    color: rgba(253, 248, 240, 0.5);
}

.menu-note-link {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.menu-note-link:hover {
    color: #FEF3C7;
}

/* ---------- ATMOSPHERE ---------- */
.atmosphere {
    background: var(--cream-100);
}

.atmosphere-header {
    margin-bottom: 56px;
}

.atmosphere-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    margin-bottom: 56px;
}

.atm-img {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.atm-img--large {
    grid-row: 1 / 3;
    aspect-ratio: 4/5;
}

.atm-img--small {
    aspect-ratio: 5/4;
}

.atm-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.atmosphere-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.atm-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atm-feature svg {
    color: var(--gold);
}

.atm-feature-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--emerald-950);
}

.atm-feature-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(6, 78, 59, 0.65);
}

/* ---------- VISIT ---------- */
.visit {
    background: var(--cream-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

.visit-address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--emerald-950);
    margin: 24px 0;
}

.visit-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.visit-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(6, 78, 59, 0.7);
    transition: color var(--transition);
}

.visit-contact-item:hover {
    color: var(--emerald-900);
}

.visit-map-btn {
    display: inline-flex;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.12);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* ---------- CONTACT FORM ---------- */
.contact-section {
    border-top: 1px solid rgba(6, 78, 59, 0.1);
    padding-top: 80px;
}

.contact-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-headline {
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

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

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

.contact-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--emerald-950);
    letter-spacing: 0.02em;
}

.contact-input {
    padding: 14px 16px;
    background: var(--cream-100);
    border: 1.5px solid rgba(6, 78, 59, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--emerald-950);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.contact-input:focus {
    border-color: var(--emerald-900);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.08);
}

.contact-input::placeholder {
    color: rgba(6, 78, 59, 0.35);
}

.contact-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='%23064E3B' 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;
}

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

.btn-submit {
    align-self: center;
    margin-top: 8px;
}

.form-success {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(6, 78, 59, 0.06);
    border: 1px solid rgba(6, 78, 59, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--emerald-900);
    text-align: center;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--emerald-950);
    color: var(--cream-50);
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--emerald-900);
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: #FEF3C7;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #FEF3C7;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(253, 248, 240, 0.5);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(253, 248, 240, 0.6);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #FEF3C7;
}

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

.footer-contact-link {
    font-size: 0.9rem;
    color: rgba(253, 248, 240, 0.6);
    transition: color var(--transition);
}

.footer-contact-link:hover {
    color: var(--gold-light);
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(253, 248, 240, 0.4);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 243, 207, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(253, 248, 240, 0.3);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-active .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js-active .reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ---------- MOBILE MENU ---------- */
@media (max-width: 900px) {
    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(2, 44, 34, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 999;
    }

    .nav-overlay.open {
        display: flex;
    }

    .nav-overlay.hidden {
        display: none;
    }

    .nav-links {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.5rem;
        color: rgba(253, 248, 240, 0.85) !important;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 16px;
        font-size: 1.1rem;
        padding: 14px 28px;
    }

    .nav-fixed.scrolled .nav-link {
        color: rgba(253, 248, 240, 0.85) !important;
    }

    .nav-fixed.scrolled .nav-cta {
        background: rgba(254, 243, 207, 0.15);
        border-color: rgba(254, 243, 207, 0.35);
        color: #FEF3C7;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .section {
        padding: 72px 20px;
    }

    .hero-content {
        padding: 100px 20px 100px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: column;
        padding: 0 20px 40px;
        max-width: 1280px;
        margin: 0 auto;
    }

    .stat-card {
        min-width: auto;
    }

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

    .about-image {
        aspect-ratio: 3/4;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .atmosphere-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .atm-img--large {
        grid-row: auto;
        aspect-ratio: 4/3;
    }

    .atm-img--small {
        aspect-ratio: 4/3;
    }

    .atmosphere-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .visit-map {
        aspect-ratio: 16/9;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .nav-inner {
        padding: 0 16px;
    }
}

/* ---------- 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;
    }

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