/* ============================================
   B St Bagel Bistro — Styles
   Palette: Charcoal (#2D2D2D) + Coral (#E07A5F)
   Fonts: Inter (body) + Playfair Display (display)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #2D2D2D;
    background-color: #FAFAF8;
    overflow-x: hidden;
}

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

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

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

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

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

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(45, 45, 45, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #2D2D2D;
}

.nav-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E07A5F;
    flex-shrink: 0;
}

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

.nav-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2D2D2D;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #E07A5F;
    transition: width 0.25s ease;
}

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

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

.nav-link--phone {
    font-weight: 400;
    color: #E07A5F;
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: 0;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: #2D2D2D;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-line:nth-child(3) { bottom: 0; }

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #2D2D2D;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #E07A5F;
}

.mobile-menu-link--phone {
    font-size: 18px;
    color: #E07A5F;
    font-weight: 400;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    background-color: #FAFAF8;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 72px);
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E07A5F;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #2D2D2D;
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: #E07A5F;
}

.hero-subhead {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: #5A5A5A;
    margin-bottom: 40px;
    max-width: 440px;
}

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

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-meta-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

.hero-meta-value {
    font-size: 14px;
    font-weight: 400;
    color: #2D2D2D;
}

.hero-meta-divider {
    font-size: 14px;
    color: #CCC;
    align-self: center;
    margin-top: 12px;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 600/750;
    object-fit: cover;
    border-radius: 2px;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid #E07A5F;
    border-radius: 2px;
    z-index: -1;
    opacity: 0.4;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(45, 45, 45, 0.1), transparent);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.btn--primary {
    background-color: #E07A5F;
    color: #fff;
    border: 1px solid #E07A5F;
}

.btn--primary:hover {
    background-color: #c9694e;
    border-color: #c9694e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3);
}

.btn--ghost {
    background-color: transparent;
    color: #2D2D2D;
    border: 1px solid rgba(45, 45, 45, 0.2);
}

.btn--ghost:hover {
    border-color: #E07A5F;
    color: #E07A5F;
}

.btn--large {
    padding: 18px 36px;
    font-size: 14px;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E07A5F;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #2D2D2D;
    line-height: 1.2;
}

/* --- Menu Section --- */
.menu {
    padding: 100px 0;
    background-color: #FAFAF8;
}

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

.menu-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(45, 45, 45, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-card:hover {
    box-shadow: 0 8px 40px rgba(45, 45, 45, 0.08);
    transform: translateY(-4px);
}

.menu-card-image {
    overflow: hidden;
    aspect-ratio: 400/300;
}

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

.menu-card-content {
    padding: 28px 28px 32px;
}

.menu-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #2D2D2D;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.menu-card-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: #fff;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 560/640;
    object-fit: cover;
    border-radius: 2px;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(224, 122, 95, 0.3);
    border-radius: 2px;
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #5A5A5A;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(45, 45, 45, 0.08);
}

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

.about-stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #E07A5F;
    line-height: 1;
}

.about-stat-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}

.about-stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(45, 45, 45, 0.1);
    flex-shrink: 0;
}

/* --- Visit Section --- */
.visit {
    padding: 100px 0;
    background-color: #FAFAF8;
}

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

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

.visit-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid rgba(45, 45, 45, 0.06);
    transition: box-shadow 0.25s ease;
}

.visit-card:hover {
    box-shadow: 0 4px 20px rgba(45, 45, 45, 0.06);
}

.visit-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(224, 122, 95, 0.08);
    color: #E07A5F;
    flex-shrink: 0;
}

.visit-card-text {
    flex: 1;
}

.visit-card-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}

.visit-card-value {
    font-size: 16px;
    font-weight: 400;
    color: #2D2D2D;
    line-height: 1.6;
}

.visit-card-link {
    color: #E07A5F;
    transition: color 0.2s ease;
}

.visit-card-link:hover {
    color: #c9694e;
    text-decoration: underline;
}

/* Map */
.visit-map {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.visit-map-image {
    width: 100%;
    height: auto;
    aspect-ratio: 560/400;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.visit-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 45, 45, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

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

.visit-map-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fff;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #2D2D2D;
    transition: background 0.2s ease;
}

.visit-map-cta:hover {
    background: #f5f5f3;
}

/* --- CTA Section --- */
.cta {
    padding: 100px 0;
    background-color: #2D2D2D;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E07A5F;
    margin-bottom: 16px;
}

.cta-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-subhead {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

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

.cta .btn--primary {
    background-color: #E07A5F;
    border-color: #E07A5F;
}

.cta .btn--primary:hover {
    background-color: #c9694e;
    border-color: #c9694e;
}

.cta .btn--ghost {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cta .btn--ghost:hover {
    border-color: #E07A5F;
    color: #E07A5F;
}

/* --- Footer --- */
.footer {
    background-color: #252525;
    padding: 60px 0 32px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E07A5F;
    flex-shrink: 0;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
}

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

.footer-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #E07A5F;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

.footer-address {
    font-size: 13px;
    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);
    }
}

/* Default visible state (no JS) */
.reveal {
    opacity: 1;
    transform: none;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 60px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-image-wrapper img {
        aspect-ratio: 400/500;
    }

    .hero-image-accent {
        width: 80px;
        height: 80px;
        bottom: -12px;
        right: -12px;
    }

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

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

    .about-image {
        max-width: 480px;
    }

    .about-content {
        max-width: 100%;
    }

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

    .footer-top {
        flex-direction: column;
    }

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

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

    .hero-container {
        padding: 50px 20px 40px;
    }

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

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

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hero-meta-divider {
        display: none;
    }

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

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

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .visit-card {
        padding: 20px;
    }
}
