/* ============================================
   Nobody Home — Lewiston Restaurant
   Classic & Elegant · Midnight Blue + Mint
   ============================================ */

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

:root {
    --midnight: #0B1D3A;
    --midnight-light: #132D54;
    --midnight-deeper: #070F1F;
    --mint: #A7D8C9;
    --mint-light: #C5E8DC;
    --mint-pale: #E5F5EF;
    --cream: #F7F4F0;
    --cream-dark: #EDE8E2;
    --gold: #C9A84C;
    --gold-light: #D4BA6A;
    --text-dark: #0B1D3A;
    --text-muted: #4A5568;
    --text-light: #F7F4F0;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

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

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    background: var(--midnight);
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--midnight);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--midnight);
    color: var(--cream);
    padding: 10px 20px;
    z-index: 9999;
    font-size: 0.875rem;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--midnight);
    height: var(--nav-height);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(11, 29, 58, 0.3);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-logo svg {
    color: var(--mint);
}

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

.nav-menu a {
    color: var(--cream-dark);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--mint);
}

.nav-menu a::after {
    width: 100%;
}

.nav-cta {
    background: var(--mint) !important;
    color: var(--midnight) !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--mint-light) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.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);
}

/* Mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--midnight-deeper);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--cream);
    transition: color 0.25s ease;
}

.mobile-menu a:hover {
    color: var(--mint);
}

.mobile-menu-cta {
    margin-top: 12px;
    background: var(--mint);
    color: var(--midnight) !important;
    padding: 14px 40px;
    border-radius: 4px;
    font-family: var(--font-sans) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--midnight-deeper);
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/13485216/pexels-photo-13485216.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 15, 31, 0.92) 0%,
        rgba(11, 29, 58, 0.85) 50%,
        rgba(11, 29, 58, 0.6) 100%
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--cream);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
    display: block;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.08;
    color: var(--cream);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--mint);
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(247, 244, 240, 0.75);
    max-width: 480px;
    margin-bottom: 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--mint);
    color: var(--midnight);
}

.btn-primary:hover {
    background: var(--mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 216, 201, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(247, 244, 240, 0.3);
}

.btn-ghost:hover {
    border-color: var(--mint);
    color: var(--mint);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 40%;
    border: 2px solid var(--mint);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.4;
}

/* --- Signature --- */
.signature {
    background: var(--midnight);
    padding: 80px 0;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.signature-item {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid rgba(167, 216, 201, 0.15);
    border-radius: 8px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.signature-item:hover {
    border-color: var(--mint);
    transform: translateY(-4px);
}

.signature-icon {
    width: 48px;
    height: 48px;
    color: var(--mint);
    margin: 0 auto 20px;
}

.signature-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 12px;
}

.signature-item p {
    font-size: 0.95rem;
    color: rgba(247, 244, 240, 0.65);
    line-height: 1.7;
}

/* --- Menu --- */
.menu {
    padding: 120px 0;
    background: var(--cream);
}

.menu .section-eyebrow,
.menu .section-title,
.menu .section-subtitle {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.menu-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 29, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(11, 29, 58, 0.15);
}

.menu-card-image {
    overflow: hidden;
    height: 240px;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.05);
}

.menu-card-body {
    padding: 28px;
}

.menu-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--midnight);
    background: var(--mint-pale);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 14px;
}

.menu-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 10px;
}

.menu-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.menu-disclaimer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.menu-disclaimer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream-dark);
}

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

.about-image-col {
    position: relative;
}

.about-image-col img:first-child {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(11, 29, 58, 0.15);
}

.about-image-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 29, 58, 0.2);
    border: 4px solid var(--cream-dark);
}

.about-image-secondary img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    display: block;
}

.about-text-col .section-title {
    margin-top: 8px;
}

.about-text-col p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(11, 29, 58, 0.1);
}

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

.about-stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--midnight);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(11, 29, 58, 0.15);
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background: var(--cream);
}

.gallery .section-eyebrow,
.gallery .section-title {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
    margin-top: 60px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item--wide {
    grid-column: 1 / 3;
}

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

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item--wide img {
    height: 300px;
}

.gallery-item:not(.gallery-item--wide) img {
    height: 240px;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--midnight);
}

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

.visit .section-eyebrow {
    background: var(--mint);
    color: var(--midnight);
}

.visit .section-title {
    color: var(--cream);
    margin-bottom: 32px;
}

.visit-address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cream);
    margin-bottom: 20px;
}

.visit-address strong {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--mint);
}

.visit-phone {
    margin-bottom: 40px;
}

.visit-phone a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cream);
    transition: color 0.25s ease;
}

.visit-phone a:hover {
    color: var(--mint);
}

.visit-hours h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mint);
    margin-bottom: 16px;
}

.visit-hours ul {
    list-style: none;
}

.visit-hours li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(167, 216, 201, 0.15);
    font-size: 0.95rem;
}

.visit-hours li span:first-child {
    color: var(--cream);
}

.visit-hours li span:last-child {
    color: rgba(247, 244, 240, 0.6);
}

.visit-note {
    margin-top: 24px;
    font-size: 0.875rem;
    color: rgba(247, 244, 240, 0.5);
    font-style: italic;
}

.visit-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    height: 100%;
    min-height: 450px;
}

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

/* --- Footer --- */
.footer {
    background: var(--midnight-deeper);
    padding: 60px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(167, 216, 201, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(247, 244, 240, 0.5);
    line-height: 1.8;
}

.footer-brand a:hover {
    color: var(--mint);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(247, 244, 240, 0.6);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--mint);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        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; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

    .hero-image img {
        height: 60vh;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 24px;
        gap: 40px;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 45vh;
        border-radius: 8px;
    }

    .hero-image-accent {
        display: none;
    }

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

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

    .menu-card:last-child {
        max-width: 100%;
    }

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

    .about-image-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
    }

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

    .gallery-item--wide {
        grid-column: 1 / -1;
    }

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

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .about-stat-divider {
        width: 48px;
        height: 1px;
    }

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

    .gallery-item--wide {
        grid-column: 1;
    }
}
