/* ============================================
   J&J Bucha — Classic & Elegant Bakery Site
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6E0)
   Fonts: Playfair Display (headings), Lora (body), Montserrat (ui)
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FBF3F0;
    --blush-mid: #EFD8CF;
    --cream: #FDF8F6;
    --charcoal: #2A2121;
    --warm-gray: #5C4F4F;
    --light-gray: #9A8E8E;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Times New Roman', serif;
    --font-ui: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--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;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}

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

/* ---------- TYPOGRAPHY ---------- */
.section-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
}

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

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.35s var(--ease-smooth);
    white-space: nowrap;
}

.btn--accent {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn--accent:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.25);
}

.btn--light {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn--light:hover {
    background: var(--blush);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(42, 33, 33, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: -0.02em;
}

.logo-wordmark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

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

.primary-nav a {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray);
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

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

.primary-nav a:hover {
    color: var(--burgundy);
}

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

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--burgundy-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(92, 31, 43, 0.92) 0%,
        rgba(123, 45, 59, 0.75) 40%,
        rgba(42, 33, 33, 0.6) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

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

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blush-mid);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.2s forwards;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.4s forwards;
}

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

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(245, 230, 224, 0.85);
    margin-bottom: 36px;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.6s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-smooth) 0.8s forwards;
}

/* Hero asymmetric right column */
.hero-asymmetric {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
}

.hero-card {
    background: rgba(253, 248, 246, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 28px 32px;
    max-width: 320px;
    text-align: right;
}

.hero-card-label {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush-mid);
    display: block;
    margin-bottom: 8px;
}

.hero-card-text {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(245, 230, 224, 0.9);
}

.hero-card--offset {
    align-self: flex-start;
    margin-left: 40px;
    background: var(--burgundy);
    border-color: var(--burgundy-light);
}

.hero-float-img {
    width: 280px;
    height: 360px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    align-self: flex-end;
    margin-bottom: 24px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 230, 224, 0.6);
    z-index: 1;
}

.hero-scroll svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

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

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

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

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(42, 33, 33, 0.12);
    min-height: 500px;
}

.about-image-col::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--blush-mid);
    border-radius: 4px;
    z-index: -1;
}

.about-text-col {
    padding: 16px 0;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--blush-mid);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--light-gray);
    line-height: 1.4;
}

/* ---------- PRODUCTS ---------- */
.products {
    padding: 120px 0;
    background: var(--blush-light);
}

.products-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

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

.product-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(42, 33, 33, 0.06);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(42, 33, 33, 0.12);
}

.product-card-img {
    overflow: hidden;
    aspect-ratio: 5/4;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

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

.product-card-body {
    padding: 28px 32px 32px;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.product-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
}

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

.gallery-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

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

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

.gallery-item--large {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 33, 33, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 120px 0;
    background: var(--burgundy);
    color: var(--white);
}

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

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

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

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

.visit-address {
    font-style: normal;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(245, 230, 224, 0.9);
    margin: 32px 0 24px;
}

.visit-address strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visit-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: rgba(245, 230, 224, 0.85);
}

.visit-detail svg {
    flex-shrink: 0;
    color: var(--blush-mid);
}

.visit-detail a {
    transition: color 0.3s var(--ease-smooth);
}

.visit-detail a:hover {
    color: var(--blush);
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 120px 0;
    background: var(--blush-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-text > p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 28px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--burgundy);
    transition: color 0.3s var(--ease-smooth);
}

.contact-phone:hover {
    color: var(--burgundy-deep);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(42, 33, 33, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--blush-light);
    border: 1.5px solid var(--blush-mid);
    border-radius: 2px;
    padding: 12px 16px;
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
    outline: none;
    width: 100%;
}

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

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--burgundy);
    padding: 16px;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 2px;
    margin-top: 8px;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--charcoal);
    color: rgba(245, 230, 224, 0.7);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand .logo-mark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-brand .logo-wordmark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--blush);
}

.footer-brand p {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-top: 4px;
}

.footer-info,
.footer-hours {
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-info a,
.footer-hours a {
    color: var(--blush-mid);
    transition: color 0.3s var(--ease-smooth);
}

.footer-info a:hover,
.footer-hours a:hover {
    color: var(--white);
}

.footer-info p,
.footer-hours p {
    margin-bottom: 4px;
}

.footer-hours p:first-child {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 224, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--light-gray);
    letter-spacing: 0.05em;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
    }

    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-asymmetric {
        display: none;
    }

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

    .about-layout,
    .visit-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-col {
        order: -1;
        max-width: 560px;
        margin: 0 auto;
    }

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

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

    .gallery-item--large {
        grid-column: span 1;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }

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

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

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        padding: 100px 32px 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-smooth);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

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

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

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

    .primary-nav .btn--accent {
        margin-top: 16px;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(42, 33, 33, 0.4);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-smooth);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    .about,
    .products,
    .gallery,
    .visit,
    .contact {
        padding: 80px 0;
    }

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

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

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .about-image-col::before {
        display: none;
    }

    .contact-form-wrap {
        padding: 24px;
    }

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

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

    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .product-card-body {
        padding: 20px 24px 24px;
    }
}
