/* ============================================
   Kj's Kafe — Stylesheet
   Palette: Burgundy + Blush
   ============================================ */

:root {
    --burgundy: #722F37;
    --burgundy-dark: #5A242B;
    --burgundy-light: #8B3A42;
    --blush: #F5E6D3;
    --blush-light: #FDF3EB;
    --blush-dark: #E8D1BC;
    --cream: #FFFAF6;
    --text-dark: #2D1F24;
    --text-mid: #5C4045;
    --text-light: #8A6B70;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(114, 47, 55, 0.06);
    --shadow-md: 0 4px 20px rgba(114, 47, 55, 0.10);
    --shadow-lg: 0 8px 40px rgba(114, 47, 55, 0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--burgundy-dark);
}

ul {
    list-style: none;
}

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

/* ========== TYPOGRAPHY ========== */
.section-eyebrow {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

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

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(114, 47, 55, 0.08);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
}

.logo-text-light {
    color: var(--white);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--burgundy);
    background: rgba(114, 47, 55, 0.06);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    transition: all var(--transition);
}

.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 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--burgundy) 0%,
        var(--burgundy-light) 35%,
        #A84350 60%,
        var(--blush-dark) 85%,
        var(--blush) 100%
    );
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 600px at 20% 80%, rgba(245, 230, 211, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 20%, rgba(114, 47, 55, 0.3) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-block;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 250, 246, 0.75);
    background: rgba(255, 250, 246, 0.12);
    border: 1px solid rgba(255, 250, 246, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

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

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 250, 246, 0.85);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 250, 246, 0.15);
    border: 1px solid rgba(255, 250, 246, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

/* ========== ABOUT ========== */
.about {
    background: var(--blush-light);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--blush-light);
}

.about-img-secondary img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: 2;
}

.about-text p {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.check-icon {
    flex-shrink: 0;
}

/* ========== BAKERY ========== */
.bakery {
    background: var(--cream);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    overflow: hidden;
    height: 220px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 28px;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== GROCERIES ========== */
.groceries {
    background: var(--blush-light);
}

.grocery-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grocery-images {
    position: relative;
}

.grocery-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.grocery-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.grocery-img-float {
    position: absolute;
    bottom: -24px;
    left: -16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--blush-light);
}

.grocery-img-float img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grocery-text p {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.grocery-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 32px 0;
}

.grocery-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: all var(--transition);
}

.grocery-cat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.grocery-cat-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ========== WHY US ========== */
.why-us {
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(114, 47, 55, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(114, 47, 55, 0.12);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
}

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

/* ========== VISIT / CONTACT ========== */
.visit {
    background: linear-gradient(
        135deg,
        var(--burgundy) 0%,
        var(--burgundy-light) 50%,
        #A84350 100%
    );
    color: var(--white);
}

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

.visit .section-eyebrow {
    color: rgba(255, 250, 246, 0.7);
}

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

.visit-intro {
    color: rgba(255, 250, 246, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 250, 246, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 250, 246, 0.65);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--blush);
}

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

.visit .btn-primary:hover {
    background: var(--blush);
    border-color: var(--blush);
    color: var(--burgundy);
}

/* Form */
.visit-form-wrapper {
    padding-top: 8px;
}

.visit-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.visit-form-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.visit-form-card > p {
    color: var(--text-mid);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--blush-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--blush-light);
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(114, 47, 55, 0.1);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(114, 47, 55, 0.06);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 250, 246, 0.7);
    padding: 64px 0 0;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 250, 246, 0.65);
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

.footer-contact ul {
    display: grid;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact a {
    color: rgba(255, 250, 246, 0.65);
}

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

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

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 250, 246, 0.4);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--burgundy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--burgundy-dark);
    transform: translateY(-3px);
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-grid,
    .grocery-split,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images,
    .grocery-images {
        max-width: 500px;
    }

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

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

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

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 250, 246, 0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid rgba(114, 47, 55, 0.08);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

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

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

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

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

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

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

    .section {
        padding: 72px 0;
    }

    .visit-form-card {
        padding: 28px;
    }
}

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

    .hero {
        padding: 100px 16px 60px;
    }

    .grocery-categories {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        right: -8px;
        bottom: -16px;
    }

    .grocery-img-float {
        left: -8px;
        bottom: -16px;
    }
}
