/* ============================================
   Bakery — Hickory Hills, IL
   Warm & Friendly | Charcoal + Coral
   ============================================ */

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

:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #3D3D3D;
    --coral: #E87250;
    --coral-dark: #D4603F;
    --coral-light: #F5A08A;
    --cream: #FFF8F0;
    --cream-dark: #F5EDE3;
    --warm-white: #FFFDF9;
    --sand: #E8DDD0;
    --sand-light: #F2EAE0;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #6B6B6B;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 20px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 44, 44, 0.12);
    --shadow-coral: 0 4px 20px rgba(232, 114, 80, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.2;
    color: var(--charcoal);
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--charcoal);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 700;
}
.skip-link:focus {
    top: 16px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.06);
    transition: box-shadow var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--charcoal);
    font-weight: 400;
}

.logo-light {
    color: #fff;
}

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

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

.nav-links a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--coral);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -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 {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-coral {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
    box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 114, 80, 0.4);
}

.btn-charcoal-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-charcoal-outline:hover {
    background: var(--charcoal);
    color: #fff;
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--charcoal);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 114, 80, 0.2);
    color: var(--coral-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(232, 114, 80, 0.3);
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: #fff;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.08;
}

.hero-title em {
    color: var(--coral-light);
    font-style: italic;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-actions .btn-charcoal-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.hero-actions .btn-charcoal-outline:hover {
    background: #fff;
    color: var(--charcoal);
    border-color: #fff;
}

/* Hero Image Stack */
.hero-image-stack {
    position: relative;
    height: 620px;
}

.hero-img {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.hero-img-main {
    width: 340px;
    height: 480px;
    top: 0;
    right: 0;
    z-index: 2;
}

.hero-img-secondary {
    width: 220px;
    height: 220px;
    bottom: 80px;
    left: 0;
    z-index: 3;
    border: 5px solid var(--charcoal);
}

.hero-stat {
    position: absolute;
    bottom: 0;
    right: 40px;
    z-index: 4;
    background: var(--coral);
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-coral);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

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

/* ---- FEATURES STRIP ---- */
.features-strip {
    background: var(--cream);
    padding: 0 0 60px;
    position: relative;
    z-index: 2;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(232, 114, 80, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.feature-item span {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--charcoal);
}

/* ---- SECTION HEADERS ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(232, 114, 80, 0.12);
    color: var(--coral);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---- MENU SECTION ---- */
.menu-section {
    background: var(--cream);
    padding: 100px 0;
}

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

.menu-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

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

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

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

.menu-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

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

.menu-note {
    text-align: center;
    margin-top: 48px;
    padding: 24px 32px;
    background: var(--sand-light);
    border-radius: var(--radius-md);
    color: var(--text-mid);
    font-weight: 600;
}

/* ---- ABOUT SECTION ---- */
.about-section {
    background: #fff;
    padding: 100px 0;
}

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

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 75%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid #fff;
}

.about-img-main img,
.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--charcoal);
}

.value-item svg {
    flex-shrink: 0;
}

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5) {
    aspect-ratio: 4/3;
    grid-column: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0);
    transition: background var(--transition);
    border-radius: var(--radius-md);
}

.gallery-item:hover::after {
    background: rgba(44, 44, 44, 0.1);
}

/* ---- VISIT SECTION ---- */
.visit-section {
    background: #fff;
    padding: 100px 0 80px;
}

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

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

.visit-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
    font-size: 1.02rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(232, 114, 80, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.contact-row strong {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--coral);
    margin-bottom: 4px;
    font-weight: 800;
}

.contact-row p {
    color: var(--text-mid);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-row a {
    color: var(--charcoal);
    font-weight: 700;
    transition: color var(--transition);
}

.contact-row a:hover {
    color: var(--coral);
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
}

/* ---- CONTACT FORM ---- */
.contact-form-section {
    margin-top: 20px;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 56px;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-form-header p {
    color: var(--text-light);
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--charcoal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--sand);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(232, 114, 80, 0.1);
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-sm);
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.95rem;
}

.form-success svg {
    flex-shrink: 0;
    color: #4caf50;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.footer-contact a {
    color: var(--coral-light);
    font-weight: 700;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

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

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-stack {
        order: 0;
        height: 400px;
        margin-bottom: 20px;
    }

    .hero-img-main {
        width: 260px;
        height: 360px;
        right: 10%;
    }

    .hero-img-secondary {
        width: 160px;
        height: 160px;
        left: 5%;
        bottom: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-grid {
        gap: 48px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 248, 240, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(44, 44, 44, 0.06);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-image-stack {
        height: 320px;
    }

    .hero-img-main {
        width: 200px;
        height: 280px;
    }

    .hero-img-secondary {
        width: 130px;
        height: 130px;
    }

    .hero-stat {
        right: 10px;
        padding: 14px 18px;
    }

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

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

    .about-images {
        height: 400px;
        order: -1;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(5) {
        aspect-ratio: 1;
    }

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

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .section-title {
        font-size: 1.8rem;
    }
}
