/* ============================================
   Bernice Brews — Styles
   Palette: Deep Navy (#0f1f3d) + Warm Gold (#c8a45e)
   Fonts: Cormorant Garamond (headlines) + Inter (body)
   ============================================ */

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

:root {
    --navy: #0f1f3d;
    --navy-light: #1a2d4a;
    --navy-dark: #091428;
    --gold: #c8a45e;
    --gold-light: #d4b76e;
    --gold-pale: #f5ecd7;
    --cream: #faf8f4;
    --cream-dark: #f2efe8;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #9a9a9a;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 31, 61, 0.06);
    transition: box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 30px rgba(15, 31, 61, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    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(--navy);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--navy);
}

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

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

.nav-toggle-line {
    width: 22px;
    height: 1px;
    background: var(--navy);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

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

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

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

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

.nav-overlay-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--navy);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-overlay-link:hover {
    color: var(--gold);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cream);
    padding-top: 72px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

.hero-left {
    padding-right: 1rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

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

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-detail svg {
    flex-shrink: 0;
    color: var(--gold);
}

.hero-detail a {
    transition: color 0.3s ease;
}

.hero-detail a:hover {
    color: var(--navy);
}

.hero-right {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--navy-light);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(200, 164, 94, 0.2);
    pointer-events: none;
}

.hero-line {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--navy), transparent 80%);
    opacity: 0.1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 1px solid;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(15, 31, 61, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================
   Section Labels & Titles
   ============================================ */
.label-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 1rem;
}

.label-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 8rem 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.about-content {
    padding-top: 1rem;
}

.about-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-image {
    overflow: hidden;
    aspect-ratio: 5 / 6;
    background: var(--navy-light);
}

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

/* ============================================
   Divider
   ============================================ */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--navy), transparent);
    opacity: 0.08;
}

/* ============================================
   Menu
   ============================================ */
.menu {
    padding: 8rem 0;
    background: var(--navy);
}

.menu-header {
    text-align: center;
    margin-bottom: 5rem;
}

.menu-header .label-line {
    margin-left: auto;
    margin-right: auto;
}

.menu-header .label-text {
    text-align: center;
}

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

.menu-intro {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin: 0 auto;
}

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

.menu-category {
    padding: 2.5rem;
    border: 1px solid rgba(200, 164, 94, 0.15);
    transition: border-color 0.3s ease;
}

.menu-category:hover {
    border-color: rgba(200, 164, 94, 0.35);
}

.category-icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.menu-items li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.item-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
}

.item-desc {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

.menu-note {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3rem;
    letter-spacing: 0.05em;
}

/* ============================================
   Space
   ============================================ */
.space {
    padding: 8rem 0;
    background: var(--cream);
}

.space-header {
    text-align: center;
    margin-bottom: 4rem;
}

.space-header .label-line {
    margin-left: auto;
    margin-right: auto;
}

.space-header .label-text {
    text-align: center;
}

.space-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.space-photo {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--navy-light);
}

.space-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.space-photo:hover img {
    transform: scale(1.04);
}

.space-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.space-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

/* ============================================
   Visit
   ============================================ */
.visit {
    padding: 8rem 0;
    background: var(--cream-dark);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.visit-info {
    padding: 2rem 0;
}

.visit-info .label-line {
    margin-bottom: 1rem;
}

.visit-info .label-text {
    margin-bottom: 1rem;
}

.visit-info .section-title {
    margin-bottom: 3rem;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.visit-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.visit-item-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.visit-item-value {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
}

.visit-item-link {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(15, 31, 61, 0.2);
    padding-bottom: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.visit-item-link:hover {
    border-color: var(--gold);
    color: var(--navy);
}

.visit-map {
    min-height: 450px;
    background: var(--navy-light);
    overflow: hidden;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.3) contrast(1.05);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy-dark);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-contact a {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

.footer-contact span {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

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

    .reveal.visible {
        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: 2.5rem;
    }

    .menu-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }

    .hero-left {
        padding-right: 0;
        order: 2;
    }

    .hero-right {
        order: 1;
    }

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

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-details {
        gap: 0.5rem;
    }

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

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

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

    .menu-category {
        padding: 2rem;
    }

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

    .space-features {
        gap: 1.5rem;
    }

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

    .visit-map {
        min-height: 300px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about, .menu, .space, .visit {
        padding: 5rem 0;
    }
}

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

    .section-title {
        font-size: 1.75rem;
    }

    .nav-inner {
        padding: 0 1.5rem;
    }
}
