/* ===================================
   The Plum House — Custom Styles
   Palette: Midnight Blue + Mint
   =================================== */

:root {
    --midnight: #0a1628;
    --midnight-light: #132744;
    --midnight-mid: #1a3456;
    --mint: #a8d5ba;
    --mint-light: #c5e8d4;
    --mint-dark: #7fb896;
    --cream: #faf9f7;
    --cream-dark: #f0ede8;
    --text-primary: #0a1628;
    --text-secondary: #3d5a7c;
    --text-muted: #6b8aad;
    --white: #ffffff;
    --line: rgba(10, 22, 40, 0.1);
    --line-strong: rgba(10, 22, 40, 0.2);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 1200px;
    --section-padding: clamp(80px, 12vw, 160px) 0;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--midnight);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--midnight);
}

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--midnight);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ===================================
   Hero
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--cream);
    overflow: hidden;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    width: 100%;
}

.hero-left {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--midnight);
    margin-bottom: 28px;
}

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

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 440px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--midnight-light);
    border-color: var(--midnight-light);
}

.btn-secondary {
    background: transparent;
    color: var(--midnight);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--midnight);
    background: var(--midnight);
    color: var(--white);
}

.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    pointer-events: none;
}

/* ===================================
   Section Shared
   =================================== */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--midnight);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 520px;
}

/* ===================================
   About
   =================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.about-content {
    order: 1;
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-image {
    order: 2;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 2px;
}

.about-image::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
    pointer-events: none;
}

/* ===================================
   Menu
   =================================== */
.menu-preview {
    padding: var(--section-padding);
    background: var(--cream);
}

.menu-preview > .container > .section-eyebrow,
.menu-preview > .container > .section-title,
.menu-preview > .container > .section-subtitle {
    margin-bottom: 60px;
}

.menu-preview > .container > .section-subtitle {
    margin-bottom: 60px;
}

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

.menu-category h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--midnight);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-strong);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.menu-item-name {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.menu-item-desc {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--text-muted);
    font-style: italic;
}

.menu-note {
    margin-top: 56px;
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* ===================================
   Visit
   =================================== */
.visit {
    padding: var(--section-padding);
    background: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.visit-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.visit-detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint-dark);
}

.visit-detail-value {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-primary);
}

.visit-detail-value a {
    color: var(--text-primary);
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.25s ease;
}

.visit-detail-value a:hover {
    border-color: var(--mint-dark);
}

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

.map-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 2px;
}

.map-link img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.map-link:hover img {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.7));
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

/* ===================================
   Contact
   =================================== */
.contact {
    padding: var(--section-padding);
    background: var(--midnight);
    color: var(--white);
}

.contact .section-eyebrow {
    color: var(--mint);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form {
    margin-top: 56px;
    max-width: 640px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-group label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--white);
    transition: border-color 0.25s ease, background 0.25s ease;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint);
    background: rgba(255, 255, 255, 0.09);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn-primary {
    margin-top: 8px;
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}

.contact-form .btn-primary:hover {
    background: var(--mint-light);
    border-color: var(--mint-light);
}

.form-success {
    margin-top: 32px;
    padding: 20px 24px;
    background: rgba(168, 213, 186, 0.1);
    border: 1px solid var(--mint-dark);
    border-radius: 2px;
    color: var(--mint-light);
    font-size: 0.9375rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--midnight);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--white);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9375rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.25s ease;
}

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

.footer-contact p {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.25s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 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);
    }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .hero-left {
        padding-right: 0;
        text-align: center;
    }

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

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

    .hero-right {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image-wrapper img {
        height: 500px;
    }

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

    .about-content {
        order: 1;
        text-align: center;
    }

    .about-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

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

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

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

@media (max-width: 640px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 40px 24px;
        gap: 28px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-image-wrapper img {
        height: 400px;
    }

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

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

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

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