/* ============================================
   The Barefoot Baker — Styles
   Burgundy + Blush | Minimalist | Clean
   ============================================ */

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

:root {
    --color-burgundy: #7B2D3B;
    --color-burgundy-dark: #5C1F2C;
    --color-burgundy-light: #A04050;
    --color-blush: #F5E6E0;
    --color-blush-light: #FBF4F1;
    --color-blush-mid: #EDD5CC;
    --color-cream: #FDF8F5;
    --color-white: #FFFFFF;
    --color-text: #2A1F22;
    --color-text-light: #6B5558;
    --color-text-muted: #9A8588;
    --color-line: #E8D5CE;
    --color-line-light: #F0E0DA;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, 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-sans);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    -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;
}

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

ul, ol {
    list-style: none;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    font-size: 0.875rem;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--color-text);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    max-width: 520px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 64px;
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-burgundy);
    color: var(--color-white);
    border: 1px solid var(--color-burgundy);
}

.btn-primary:hover {
    background-color: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
    transform: translateY(-1px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-line);
}

.btn-ghost:hover {
    border-color: var(--color-burgundy);
    color: var(--color-burgundy);
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line-light);
    transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-burgundy);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    transition: color 0.2s;
    position: relative;
}

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

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

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

.nav-cta {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: var(--color-burgundy) !important;
    border: 1px solid var(--color-burgundy);
    padding: 8px 18px;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--color-burgundy) !important;
    color: var(--color-white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 110;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text);
    transition: all 0.3s var(--ease-out);
    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;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-blush) 0%, var(--color-blush-mid) 100%);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero-content {
    padding-right: 24px;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    width: 32px;
    height: 1px;
    background-color: var(--color-burgundy);
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 28px;
}

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

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

.hero-image {
    position: relative;
    height: 75vh;
    min-height: 500px;
}

.hero-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 85%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(123, 45, 59, 0.12);
}

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

.hero-img-accent {
    position: absolute;
    bottom: 5%;
    left: -5%;
    width: 50%;
    height: 45%;
    border-radius: 4px;
    overflow: hidden;
    border: 6px solid var(--color-cream);
    box-shadow: 0 16px 48px rgba(123, 45, 59, 0.1);
}

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

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-burgundy), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- About --- */
.about {
    padding: 120px 0;
    background-color: var(--color-white);
}

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

.about-image-wrap {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(123, 45, 59, 0.08);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.about-content .section-title {
    margin-bottom: 28px;
}

.about-content > p {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-line);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background-color: var(--color-line);
    flex-shrink: 0;
}

/* --- Menu --- */
.menu {
    padding: 120px 0;
    background-color: var(--color-cream);
}

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

.menu-card {
    background-color: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    border: 1px solid var(--color-line-light);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(123, 45, 59, 0.08);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 5/3.5;
}

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

.menu-card:hover .menu-card-img img {
    transform: scale(1.04);
}

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

.menu-card-title {
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-text);
}

.menu-card-desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background-color: var(--color-white);
}

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

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

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

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

.gallery-item--tall {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

.gallery-item--wide {
    grid-column: 8 / 13;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background-color: var(--color-blush);
}

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

.visit-info .section-title {
    margin-bottom: 48px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-line);
}

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

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

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

.visit-detail-link {
    font-size: 1rem;
    color: var(--color-burgundy);
    border-bottom: 1px solid var(--color-burgundy-light);
    display: inline-block;
    width: fit-content;
    transition: color 0.2s, border-color 0.2s;
}

.visit-detail-link:hover {
    color: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
}

.map-placeholder {
    background-color: var(--color-white);
    border-radius: 4px;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--color-line);
}

.map-icon {
    width: 48px;
    height: 48px;
    color: var(--color-burgundy);
    margin: 0 auto 20px;
}

.map-placeholder p {
    font-size: 1.0625rem;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.map-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    border: 1px solid var(--color-burgundy);
    padding: 10px 24px;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.map-directions:hover {
    background-color: var(--color-burgundy);
    color: var(--color-white);
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background-color: var(--color-cream);
}

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

.contact-content .section-title {
    margin-bottom: 24px;
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 440px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-text);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line-light);
    transition: color 0.2s;
}

.contact-info-item:hover {
    color: var(--color-burgundy);
}

.contact-info-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-burgundy);
}

/* Form */
.contact-form-wrap {
    background-color: var(--color-white);
    border-radius: 4px;
    padding: 40px;
    border: 1px solid var(--color-line-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-line);
    outline: none;
    transition: border-color 0.3s;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    border-bottom-color: var(--color-burgundy);
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}

.form-success svg {
    width: 48px;
    height: 48px;
    color: var(--color-burgundy);
}

.form-success p {
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-burgundy);
    color: var(--color-blush-light);
    padding: 80px 0 40px;
}

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

.footer-brand .logo-mark {
    background-color: var(--color-white);
    color: var(--color-burgundy);
}

.footer-brand .logo-text {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: var(--color-blush);
    line-height: 1.7;
    max-width: 280px;
}

.footer-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blush-mid);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-blush);
    transition: color 0.2s;
}

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

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

.footer-info a {
    font-size: 0.9375rem;
    color: var(--color-blush);
    transition: color 0.2s;
}

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

.footer-info p {
    font-size: 0.9375rem;
    color: var(--color-blush);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(245, 230, 224, 0.15);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-blush-mid);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 32px;
    }

    .about-grid,
    .visit-grid,
    .contact-grid {
        gap: 48px;
    }

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

    .gallery-grid {
        grid-template-rows: repeat(2, 180px);
    }

    .gallery-item--tall {
        grid-column: 1 / 7;
        grid-row: 1;
    }

    .gallery-item--wide {
        grid-column: 7 / 13;
    }

    .footer-grid {
        gap: 40px;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0 48px;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -8px 0 32px rgba(0,0,0,0.08);
        z-index: 100;
    }

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

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

    .hero {
        padding-top: 72px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-bg {
        width: 100%;
        clip-path: none;
        opacity: 0.4;
    }

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

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

    .hero-image {
        height: 400px;
        order: 1;
    }

    .hero-img-main {
        width: 100%;
        height: 100%;
    }

    .hero-img-accent {
        display: none;
    }

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

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

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

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

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

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 160px);
    }

    .gallery-item--tall {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .gallery-item--wide {
        grid-column: 1 / 3;
        grid-row: 3;
    }

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

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

    .hero-scroll-hint {
        display: none;
    }
}

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

    .hero-headline {
        font-size: 2.25rem;
    }

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

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

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

    .gallery-item--tall,
    .gallery-item--wide {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}
