/* ==========================================================================
   Sweet Shenanigans — sweetshenanigansbakes.com
   Webster, NY from-scratch bakery. Palette drawn from the client's own
   cookie logo: warm cream, cookie tan, chocolate brown, golden caramel,
   with a dusty-rose accent that echoes the shop's wall + packaging.
   Cozy and playful, the way "shenanigans" should feel.
   ========================================================================== */

:root {
  --cocoa: #5b3a24;        /* chocolate brown — primary buttons / ink accents */
  --cocoa-deep: #402718;   /* darkest chocolate */
  --caramel: #bd7d33;      /* golden caramel — hover / highlights */
  --cookie: #cd9d6a;       /* cookie tan (the logo) */
  --rose: #d99a90;         /* dusty rose — the shop wall + labels */
  --rose-soft: #f0d7d1;    /* pale rose */
  --white: #ffffff;

  --ink: #2e2018;
  --ink-2: #5a4636;
  --ink-soft: #94806c;
  --cream: #faf3e9;        /* warm page background */
  --cream-2: #f3e7d4;      /* light tan band */
  --cream-3: #e6d4b9;      /* tan hairline / border */

  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --shadow-sm: 0 2px 12px rgba(91, 58, 36, .08);
  --shadow-md: 0 18px 46px -14px rgba(91, 58, 36, .28);
  --font-script: "Caveat", "Brush Script MT", cursive;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink-2); background: var(--cream); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.13; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
p { margin: 0 0 1em; }
a { color: var(--cocoa); text-underline-offset: 3px; }
a:hover { color: var(--caramel); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--caramel); margin-bottom: .9rem; }
.script { font-family: var(--font-script); font-weight: 700; color: var(--caramel); letter-spacing: 0; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Chocolate-chip divider (a little shenanigans) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 1rem; }
.chips.left { justify-content: flex-start; }
.chips i { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; background: var(--cookie); }
.chips i:nth-child(3n+1) { background: var(--cocoa); }
.chips i:nth-child(3n+2) { background: var(--caramel); }
.chips i:nth-child(4n+3) { background: var(--rose); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.7rem; border-radius: 999px; background: var(--cocoa); color: var(--white); font-family: var(--font-body); font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid var(--cocoa); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: var(--shadow-sm); cursor: pointer; }
.btn:hover { background: var(--caramel); border-color: var(--caramel); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: var(--cream-3); box-shadow: none; }
.btn-ghost:hover { background: var(--white); color: var(--cocoa); border-color: var(--cocoa); }
.btn-small { padding: .55rem 1.2rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 243, 233, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(91, 58, 36, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; }
.brand-logo { width: 4rem; height: 4rem; object-fit: cover; border-radius: 50%; flex: none; box-shadow: var(--shadow-sm); }
.brand .brand-name { font-family: var(--font-script); font-weight: 700; font-size: 1.95rem; color: var(--cocoa); line-height: 1; }
.brand .brand-sub { font-family: var(--font-body); font-size: .58rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 40rem) {
  .header-inner { min-height: 4.6rem; }
  .brand-logo { width: 3.1rem; height: 3.1rem; }
  .brand .brand-name { font-size: 1.55rem; }
}
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav > a { font-size: .95rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.site-nav > a:hover, .site-nav > a[aria-current=page] { color: var(--cocoa); }
.site-nav > a.btn { color: var(--white); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: .6rem; background: var(--white); border: 1px solid var(--cream-3); border-radius: .7rem; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--cocoa); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
@media (max-width: 58rem) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.25rem; background: var(--cream); border-bottom: 1px solid rgba(91, 58, 36, .12); box-shadow: var(--shadow-md); display: none; }
  .nav-open .site-nav { display: flex; }
  .site-nav > a { padding: .8rem .25rem; border-bottom: 1px solid rgba(91, 58, 36, .08); font-size: 1.05rem; }
  .site-nav > a.btn { margin-top: .9rem; justify-content: center; border-bottom: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Split hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); background: radial-gradient(130% 90% at 88% 0%, var(--cream-2), var(--cream) 62%); }
.hero .split { align-items: center; }
.badge-est { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); color: var(--cocoa); font-family: var(--font-body); font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: .4rem .95rem; border-radius: 999px; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-3); }
.hero h1 { max-width: 15ch; }
.hero h1 .script { display: block; font-size: 1.28em; line-height: .9; margin-bottom: .04em; }
.hero .tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink); margin: 0 0 .8rem; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid var(--white); rotate: 1.5deg; }
.hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Stat row */
.stat-row { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin-top: 1.6rem; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; color: var(--cocoa); line-height: 1; }
.stat span { font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-soft); text-transform: uppercase; }

/* Sections & cards */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band { background: var(--white); }
.band-warm { background: var(--cream-2); }
.band-rose { background: linear-gradient(160deg, var(--cream-2), var(--rose-soft)); }
.section-head { max-width: 48rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 58, 36, .08); display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-body p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; }
.card-link { display: inline-block; margin-top: .8rem; font-family: var(--font-body); font-weight: 800; font-size: .9rem; color: var(--cocoa); }
.card:hover .card-link { color: var(--caramel); }
.tag { font-family: var(--font-body); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa); background: var(--cream-2); padding: .2rem .55rem; border-radius: 999px; }
.tag.rose { color: #a85a4f; background: var(--rose-soft); }

/* Split */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.flip > .split-media { order: 2; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 5px solid var(--white); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 4 / 3; }

.panel { background: var(--white); border: 1px solid rgba(91, 58, 36, .08); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.25rem); box-shadow: var(--shadow-sm); }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .22s ease; }
.gallery img:hover { transform: scale(1.03); }

/* Testimonials */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { background: var(--white); border: 1px solid rgba(91, 58, 36, .09); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.quote .stars { color: #e0a338; letter-spacing: .12em; font-size: .95rem; }
.quote blockquote { margin: .6rem 0 .9rem; font-size: 1.05rem; color: var(--ink); line-height: 1.5; }
.quote cite { font-style: normal; font-family: var(--font-display); font-weight: 600; color: var(--cocoa); font-size: .95rem; }

/* Contact form */
.form { display: grid; gap: 1.05rem; }
.form-row { display: grid; gap: 1.05rem; }
@media (min-width: 34rem) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field > label { font-family: var(--font-body); font-weight: 800; font-size: .85rem; color: var(--ink); }
.field .req { color: var(--caramel); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%; padding: .7rem .85rem; border-radius: .7rem; border: 1px solid var(--cream-3); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 3px rgba(189, 125, 51, .2); }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-fine { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.form-confirm { display: none; background: #edf7ee; border: 1px solid #bfe3c2; color: #2f7a44; border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.form-confirm.show { display: block; }
.form-confirm:focus { outline: none; }
.form-confirm:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.form-confirm h3 { color: #2f7a44; margin-bottom: .3em; }
.form-confirm p { margin: 0; color: #3d6b49; }

/* CTA banner */
.cta-banner { background: linear-gradient(120deg, var(--caramel) 0%, var(--cocoa) 100%); border-radius: var(--radius-lg); color: var(--white); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-md); }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255, 255, 255, .94); max-width: 52ch; margin-inline: auto; font-size: 1.12rem; line-height: 1.6; }
.cta-banner .btn { background: var(--white); color: var(--cocoa); border-color: var(--white); }
.cta-banner .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--cocoa); }

/* Footer */
.site-footer { background: var(--cocoa-deep); color: #e9dccf; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; } }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #e9dccf; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { font-family: var(--font-script); font-weight: 700; font-size: 1.95rem; color: #fff; }
.footer-tagline { color: var(--cookie); font-family: var(--font-display); font-weight: 600; margin: .2rem 0 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .28rem 0; font-size: .95rem; }
.footer-meta { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.social-row { display: flex; gap: .9rem; margin-top: .6rem; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, .12); text-decoration: none; font-size: .8rem; font-weight: 800; }
.social-row a:hover { background: var(--caramel); color: var(--white); text-decoration: none; }

.footer-visit { display: grid; gap: 1.5rem; padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 48rem) { .footer-visit { grid-template-columns: 1fr 1.4fr; align-items: stretch; } }
.footer-hours { list-style: none; margin: 0; padding: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .35rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-size: .92rem; }
.footer-hours li:last-child { border-bottom: none; }
.footer-hours .day { color: #fff; font-weight: 700; }
.footer-hours .time { color: var(--cookie); font-weight: 700; white-space: nowrap; }
.footer-hours li.closed .time { color: #e9dccf; }
.fv-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 14rem; }
.fv-map iframe { display: block; width: 100%; height: 100%; min-height: 14rem; border: 0; }

/* Subpage hero */
.page-hero { padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(1.75rem, 4vw, 3rem); background: radial-gradient(130% 120% at 85% 0%, var(--cream-2), var(--cream) 65%); }
.page-hero .lede { margin-top: .4rem; }

/* Menu groups + lists */
.menu-cols { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .menu-cols.two { grid-template-columns: 1fr 1fr; align-items: start; } }
.menu-group { margin-bottom: 1.6rem; }
.menu-group:last-child { margin-bottom: 0; }
.menu-group h3 { display: flex; align-items: center; gap: .6rem; color: var(--cocoa); font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: .5rem; }
.menu-group h3::before { content: ""; width: .85rem; height: .85rem; border-radius: 50%; background: var(--cookie); flex: none; }
.menu-group.choc h3::before { background: var(--cocoa); }
.menu-group.caramel h3::before { background: var(--caramel); }
.menu-group.rose h3::before { background: var(--rose); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 1.2rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px dashed var(--cream-3); }
.menu-list li:last-child { border-bottom: none; }
.menu-list .item { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.12rem; line-height: 1.3; }
.menu-list .item small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-2); font-size: .95rem; line-height: 1.5; margin-top: .2rem; }

/* Feature cards */
.features { display: grid; gap: 1.1rem; }
@media (min-width: 44rem) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--white); border: 1px solid rgba(91, 58, 36, .09); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); text-align: center; }
.feature .ic { font-size: 1.9rem; line-height: 1; display: block; margin-bottom: .6rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Allergy / info callout */
.note { background: var(--rose-soft); border: 1px solid #e7c4bc; border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--ink-2); }
.note h3 { color: #a85a4f; margin-bottom: .4em; }
.note p:last-child { margin-bottom: 0; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
@media (min-width: 40rem) { .checklist { grid-template-columns: 1fr 1fr; gap: .7rem 2rem; } }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--cocoa); }
.checklist li::after { content: ""; position: absolute; left: .42rem; top: .44rem; width: .42rem; height: .22rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Contact list + map */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px dashed var(--cream-3); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .k { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; margin-bottom: .1rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-3); }
.map-embed iframe { display: block; width: 100%; height: 22rem; border: 0; }

/* Utilities */
.reveal { opacity: 1; transform: none; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.small-print { font-size: .85rem; color: var(--ink-soft); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--cocoa); color: var(--white); padding: .6rem 1rem; border-radius: 0 0 .5rem 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* Contact form: honeypot, error message, and the parking line in the CTA banner */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; margin: .9rem 0 0; padding: .8rem 1rem; border-radius: var(--radius); background: #fdecea; border: 1px solid #f5c6c0; color: #a03027; font-size: .92rem; }
.form-error.show { display: block; }
.cta-banner .cta-fine { font-size: .95rem; color: rgba(255, 255, 255, .88); margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .22); }
