/* ═══════════════════════════════════════════════════════════
   BLUE JAY CAFE — Classic & Elegant
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6E8)
   Fonts: Cormorant Garamond (serif) + Nunito Sans (sans)
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --color-burgundy: #7B2D3B;
    --color-burgundy-deep: #5C1F2B;
    --color-burgundy-light: #9A3D4E;
    --color-blush: #F5E6E8;
    --color-blush-light: #FBF3F4;
    --color-blush-mid: #E8CFCF;
    --color-cream: #FDF8F7;
    --color-warm-white: #FEFAF9;
    --color-charcoal: #2A2224;
    --color-text: #3D2C30;
    --color-text-muted: #7A6569;
    --color-text-light: #A0888C;
    --color-border: #E8D5D7;
    --color-overlay: rgba(42, 34, 36, 0.65);

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-burgundy);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: var(--space-sm);
}

/* ── Typography ── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.section-heading em {
    font-style: italic;
    color: var(--color-burgundy);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--accent {
    background: var(--color-burgundy);
    color: #fff;
    border-color: var(--color-burgundy);
}
.btn--accent:hover {
    background: var(--color-burgundy-deep);
    border-color: var(--color-burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.3);
}

.btn--light {
    background: #fff;
    color: var(--color-burgundy);
    border-color: #fff;
}
.btn--light:hover {
    background: var(--color-blush);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.btn--full {
    width: 100%;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    transition: all var(--transition-med);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(253, 248, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--color-border);
    padding: var(--space-xs) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-charcoal);
    transition: color var(--transition-fast);
}

.logo--light {
    color: #fff;
}

.logo-icon {
    color: var(--color-burgundy);
    flex-shrink: 0;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.primary-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text);
    position: relative;
    transition: color var(--transition-fast);
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-burgundy);
    transition: width var(--transition-fast);
}

.primary-nav a:hover {
    color: var(--color-burgundy);
}
.primary-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--color-charcoal);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all var(--transition-fast);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all var(--transition-fast);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--color-charcoal);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(123, 45, 59, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(154, 61, 78, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-blush-mid);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    color: #fff;
    margin-bottom: var(--space-md);
}

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

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 7 / 9;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

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

.hero-accent {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blush-mid);
    opacity: 0.5;
}

/* ── About ── */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6 / 7.5;
    box-shadow: 0 24px 48px rgba(42, 34, 36, 0.12);
}

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

.about-image-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(42, 34, 36, 0.15);
    border: 4px solid var(--color-cream);
}

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

.about-text-col {
    padding: var(--space-lg) 0 var(--space-lg) var(--space-lg);
}

.about-text-col p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.about-signature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    color: var(--color-text-muted);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
}

.about-signature .signature-line {
    color: var(--color-burgundy);
}

/* ── Features ── */
.features {
    padding: var(--space-3xl) 0;
    background: var(--color-blush-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-med);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(123, 45, 59, 0.1);
    border-color: var(--color-blush-mid);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-blush);
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xs);
}

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

/* ── Menu ── */
.menu-section {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.menu-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.menu-intro {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.menu-category {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
}

.menu-category h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-blush);
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-item-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.menu-item-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: right;
    flex-shrink: 0;
}

.menu-note {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1rem;
}

/* ── Gallery ── */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-blush-light);
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

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

.gallery-item:nth-child(1) { grid-column: 1 / 6; aspect-ratio: 500/625; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; aspect-ratio: 500/400; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; aspect-ratio: 500/400; }
.gallery-item:nth-child(4) { grid-column: 1 / 5; aspect-ratio: 500/625; }
.gallery-item:nth-child(5) { grid-column: 5 / 8; aspect-ratio: 500/400; }
.gallery-item:nth-child(6) { grid-column: 8 / 13; aspect-ratio: 500/400; }

/* ── Visit ── */
.visit {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
    color: #fff;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit-content {
    padding-right: var(--space-lg);
}

.visit .section-heading {
    color: #fff;
}

.visit .section-heading em {
    color: var(--color-blush);
}

.visit .section-eyebrow {
    color: var(--color-blush-mid);
}

.visit-info {
    margin: var(--space-lg) 0;
    font-size: 1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
}

.visit-info strong {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.125rem;
}

.visit-info a {
    color: var(--color-blush);
    transition: color var(--transition-fast);
}
.visit-info a:hover {
    color: #fff;
}

.visit-hours h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.visit-hours ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.visit-hours li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visit-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6 / 8;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

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

/* ── Contact ── */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-text {
    padding-right: var(--space-lg);
}

.contact-text p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-burgundy);
    transition: color var(--transition-fast);
}
.contact-link:hover {
    color: var(--color-burgundy-deep);
}
.contact-link svg {
    flex-shrink: 0;
    color: var(--color-burgundy-light);
}

.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 16px 48px rgba(42, 34, 36, 0.06);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-blush-light);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-burgundy);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

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

.form-success {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--color-blush);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--color-burgundy-deep);
    text-align: center;
}

/* ── Footer ── */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}
.footer-nav a:hover {
    color: var(--color-blush);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    font-size: 0.8125rem;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        order: 2;
    }
    .hero-image-wrap {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text-col {
        padding: var(--space-lg) 0 0;
    }
    .about-image-secondary {
        right: 0;
    }

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

    .visit-layout {
        grid-template-columns: 1fr;
    }
    .visit-content {
        padding-right: 0;
    }
    .visit-image {
        max-width: 500px;
        aspect-ratio: 4/5;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 110;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--color-cream);
        padding: var(--space-3xl) var(--space-lg) var(--space-lg);
        transform: translateX(100%);
        transition: transform var(--transition-med);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
        z-index: 100;
    }

    .primary-nav.open {
        transform: translateX(0);
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .primary-nav a {
        font-size: 1.125rem;
    }

    .primary-nav .btn {
        margin-top: var(--space-sm);
    }

    .bg-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-med);
    }
    .bg-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        padding: var(--space-2xl) 0;
        min-height: auto;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: auto;
        aspect-ratio: 4/3;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-image-secondary {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: var(--space-sm);
    }
}
