/* =========================================
   BASE RESET
========================================= */
* {
    text-decoration: none;
    font-family: arial;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Clear fix hack */
.clearfix:after {
     content: ".";
     display: block;
     clear: both;
     visibility: hidden;
     line-height: 0;
     height: 0;
}

.clear {
	clear: both;
}

/* =========================================
   VARIABLES
========================================= */
:root {
    --clr-dark: #3a2214;
    --clr-light: #fcf8f3;
    --clr-accent: #e85d75;
    --clr-white: #ffffff;

    --font-heading: 'Georgia', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --radius: 12px;
    --transition: 0.3s ease-in-out;
}

/******************************************
/* BASE STYLES
/*******************************************/
body {
    font-family: var(--font-body); /* Overrides the universal Arial for better typography */
    color: var(--clr-dark);
    background-color: var(--clr-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h1 span { color: var(--clr-accent); font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }

.tagline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btnSolid {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    border: 2px solid var(--clr-dark);
}
.btnSolid:hover { background-color: transparent; color: var(--clr-dark); }

.btnPink {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    border: 2px solid var(--clr-accent);
}
.btnPink:hover { background-color: transparent; color: var(--clr-accent); }

.btnOutline {
    background-color: transparent;
    color: var(--clr-dark);
    border: 2px solid var(--clr-dark);
}
.btnOutline:hover { background-color: var(--clr-dark); color: var(--clr-white); }

.btnWhite {
    background-color: var(--clr-white);
    color: var(--clr-dark);
    border: 2px solid var(--clr-white);
}
.btnWhite:hover { background-color: transparent; color: var(--clr-white); }

.btnOutlineWhite {
    background-color: transparent;
    color: var(--clr-white);
    border: 2px solid var(--clr-white);
}
.btnOutlineWhite:hover { background-color: var(--clr-white); color: var(--clr-dark); }

/******************************************
/* LAYOUT
/*******************************************/
header {
    background-color: var(--clr-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a:hover {
    color: var(--clr-accent);
}

footer {
    background-color: var(--clr-light);
    padding: 4rem 0 2rem;
}

.footerGrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footerLogo {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hours h4, .footerSocial h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.hours p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.closed { color: var(--clr-accent); font-weight: bold; }

.socialLinks { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.socialLinks a:hover { color: var(--clr-accent); }

.copyright { font-size: 0.8rem; color: #777; }

/******************************************
/* ADDITIONAL STYLES
/*******************************************/
/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 0;
    align-items: center;
}

.heroContent p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.heroButtons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.heroStats {
    display: flex;
    gap: 2rem;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.stat span {
    font-size: 0.85rem;
    color: #666;
}

.heroImages {
    position: relative;
}

.imgMain {
    width: 90%;
    border-radius: var(--radius);
    margin-left: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.imgSub {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 45%;
    border-radius: none;
    border: 2px solid black;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.sticker {
    position: absolute;
    top: -20px;
    right: 0;
    background-color: var(--clr-accent);
    color: var(--clr-white);
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    border: 1px solid black;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(232, 93, 117, 0.4);
}

/* Marquee */
.marquee {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marqueeContent p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Menus & Grid Cards */
.menuSection, .bagelsSection {
    padding: 5rem 0;
}

.bagelsSection {
    background-color: var(--clr-light);
}

.menuHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.sectionDesc {
    max-width: 500px;
}

.menuGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--clr-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.cardImg {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cardTitleRow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cardTitleRow span:first-child { font-family: var(--font-heading); }
.price { color: var(--clr-accent); }
.card p { font-size: 0.9rem; color: #555; flex-grow: 1; }

.badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Promo Banner */
.promoBanner {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 4rem;
}
.promoBanner h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.promoBanner p { margin-bottom: 1.5rem; }

/* Our Story */
.storySection {
    padding: 5rem 0;
}

.storyWrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.storyImgCol { position: relative; }

.storyImgCol .mainImg {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 1/1;
}

.storyBadge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--clr-light);
    padding: 2rem;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.storyBadge h4 { font-size: 2.5rem; margin: 0; color: var(--clr-accent); }
.storyBadge p { font-size: 0.8rem; font-weight: bold; line-height: 1.2; }

/* CTA Section */
.ctaSection {
    background-color: var(--clr-dark);
    color: var(--clr-white);
    padding: 6rem 0;
    text-align: center;
}

.ctaWrapper {
    max-width: 600px;
    margin: 0 auto;
}

.ctaWrapper .tagline { color: var(--clr-light); }
.ctaButtons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* Media Queries */
@media (max-width: 900px) {
    .hero, .storyWrapper, .footerGrid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .menuHeader {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .heroStats { flex-wrap: wrap; }

    /* Mobile Navigation Setup */
    .mobileMenuToggle {
        display: block; /* Show the button on mobile */
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 200;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--clr-dark);
        position: relative;
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--clr-dark);
        transition: var(--transition);
    }

    .hamburger::before { top: -8px; left: 0; }
    .hamburger::after { bottom: -8px; left: 0; }

    /* Hide the default nav and order button on mobile */
    .navWrapper nav,
    .navWrapper > .btn {
        display: none;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .navWrapper {
        flex-wrap: wrap; /* Allows nav to drop below logo/button */
    }

    /* When JS adds the .is-active class, display the nav */
    .navWrapper nav.is-active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .navWrapper nav.is-active ul {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Add a simple animation for the menu appearing */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide the hamburger button on desktop */
@media (min-width: 901px) {
    .mobileMenuToggle {
        display: none;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .heroButtons, .ctaButtons { flex-direction: column; width: 100%; }
    .imgSub { width: 60%; }
}