/*!
 * Aunt Kate's Butter Bakes — Main Stylesheet
 * Ported from Mockup A (Storybook Cottage)
 */

/* ===== TOKENS ===== */
:root {
  --choc: #2A170D;
  --choc-soft: #3d2417;
  --caramel: #B06632;
  --caramel-deep: #8e4f23;
  --tan: #D1B99F;
  --tan-soft: #E2C7A4;
  --cream: #FCFBFA;
  --cream-warm: #f7efe4;
  --paper: #f5ead6;
  --taupe: #9D755A;
  --honey: #D5A26D;
  --rose: #c89a8c;
  --border: rgba(42, 23, 13, 0.15);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Caveat', 'Comic Sans MS', cursive;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream-warm);
  color: var(--choc);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(213, 162, 109, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(176, 102, 50, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--choc);
  margin: 0 0 16px;
}

p { margin: 0 0 1em; }

.script {
  font-family: var(--script);
  font-weight: 600;
  color: var(--caramel-deep);
}

a { color: var(--caramel-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--choc); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== STATUS BANNER ===== */
.status-banner {
  background: var(--choc); color: var(--cream-warm);
  padding: 12px 24px; text-align: center; font-size: 14px;
  font-family: var(--serif);
  letter-spacing: 0.02em;
  position: relative;
}
.status-banner strong { color: var(--honey); }
.status-banner a { color: var(--honey); border-bottom: 1px solid var(--honey); }
.status-banner-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--cream-warm); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px 8px; opacity: 0.6;
}
.status-banner-close:hover { opacity: 1; }

/* ===== NAV ===== */
.site-header { position: sticky; top: 0; z-index: 50; }
nav.site-nav {
  background: rgba(247, 239, 228, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 18px; color: var(--choc); }
.nav-brand img { height: 76px; width: 76px; border-radius: 50%; box-shadow: 0 2px 10px rgba(42, 23, 13, 0.12); object-fit: cover; }
.nav-brand .wordmark {
  font-family: var(--serif);
  font-weight: 600; font-size: 32px;
  line-height: 1.05; color: var(--choc);
  letter-spacing: 0.2px;
}
.nav-brand .wordmark small {
  display: block; font-family: var(--script); font-size: 22px;
  color: var(--caramel-deep); margin-top: 2px; font-weight: 500;
  letter-spacing: 0.3px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--choc); font-weight: 500; }
.nav-links a:hover { color: var(--caramel-deep); }
.nav-cta {
  background: var(--caramel); color: var(--cream) !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 500;
  border: 1px solid var(--caramel-deep);
}
.nav-cta:hover { background: var(--caramel-deep); color: var(--cream) !important; }
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  padding: 8px; color: var(--choc); font-size: 22px;
}
@media (max-width: 820px) {
  .nav-brand img { height: 58px; width: 58px; }
  .nav-brand .wordmark { font-size: 24px; }
  .nav-brand .wordmark small { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-warm); flex-direction: column; padding: 16px 24px;
    border-bottom: 1px solid var(--border); gap: 14px;
  }
  .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: clamp(640px, 75vh, 880px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--cream-warm);
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: right 30% center;
  background-repeat: no-repeat;
  z-index: 0;
  background-color: var(--cream-warm);
}
@media (min-width: 1700px) {
  .hero-img {
    background-size: auto 100%;
    background-position: right center;
  }
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(247, 239, 228, 0.97) 0%,
    rgba(247, 239, 228, 0.92) 35%,
    rgba(247, 239, 228, 0.55) 60%,
    rgba(247, 239, 228, 0.18) 85%,
    rgba(247, 239, 228, 0) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 620px; padding: 80px 0;
}
.hero .script-pre {
  font-family: var(--script);
  font-size: 32px; color: var(--caramel-deep);
  margin-bottom: 8px;
  display: block;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 600;
  color: var(--choc);
  margin-bottom: 22px;
  font-style: italic;
  line-height: 1.05;
}
.hero h1 em { font-style: normal; color: var(--caramel-deep); }
.hero .tagline {
  font-size: clamp(20px, 1.5vw, 23px);
  color: var(--choc);
  margin-bottom: 36px; max-width: 540px;
  line-height: 1.55;
  font-weight: 400;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 500; font-size: 15px; transition: all 0.25s;
  border: none; cursor: pointer; font-family: inherit;
  letter-spacing: 0.01em; text-align: center;
}
.btn-primary {
  background: var(--choc); color: var(--cream) !important;
  border: 1.5px solid var(--choc);
}
.btn-primary:hover { background: var(--caramel-deep); border-color: var(--caramel-deep); color: var(--cream) !important; }
.btn-secondary { background: transparent; color: var(--choc) !important; border: 1.5px solid var(--choc); }
.btn-secondary:hover { background: var(--choc); color: var(--cream) !important; }
.btn-caramel {
  background: var(--caramel); color: var(--cream) !important;
  border: 1.5px solid var(--caramel-deep);
}
.btn-caramel:hover { background: var(--caramel-deep); color: var(--cream) !important; }

/* ===== ORNAMENT ===== */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 8px 0; color: var(--caramel);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--caramel), transparent);
  opacity: 0.6;
}
.ornament svg { width: 32px; height: 32px; opacity: 0.7; }

/* ===== SECTIONS ===== */
section { padding: clamp(48px, 6vw, 64px) 0; position: relative; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-label, .eyebrow {
  font-family: var(--script); font-size: 26px;
  color: var(--caramel-deep); margin-bottom: 4px;
  display: block;
}
.section-title {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 16px;
  font-style: italic;
}
.section-intro { color: var(--choc-soft); font-size: 17px; }

/* ===== WELCOME / GREETING ===== */
.welcome-section { text-align: center; padding: 70px 0 40px; }
.welcome-section .welcome-body { max-width: 720px; margin: 0 auto; font-size: 17px; color: var(--choc-soft); }

/* ===== FEATURED TREAT (Cookie of the Week) ===== */
.featured-treat,
.cotw-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cotw {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  align-items: center; max-width: 920px; margin: 0 auto;
}
.cotw-img {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--honey), var(--caramel) 60%, var(--caramel-deep));
  box-shadow: 0 12px 32px rgba(42, 23, 13, 0.18), inset 0 -8px 16px rgba(42, 23, 13, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 96px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cotw-img.cotw-emoji::before,
.cotw-img:not([style*="background-image"])::before {
  content: ""; position: absolute; inset: -16px;
  border: 1.5px dashed var(--caramel);
  border-radius: 50%;
  opacity: 0.4;
}
.cotw-content .script-pre,
.cotw .script-pre {
  font-family: var(--script);
  font-size: 28px; color: var(--caramel-deep); margin-bottom: 6px;
  display: block;
}
.cotw h3 { font-size: 42px; margin-bottom: 14px; font-style: italic; }
.cotw p { color: var(--choc-soft); margin-bottom: 18px; font-size: 17px; }
.cotw .price-line {
  font-family: var(--serif);
  font-style: italic; font-size: 20px; color: var(--choc);
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .cotw { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .cotw-img { max-width: 220px; margin: 0 auto; }
}

/* ===== MENU ===== */
.menu-section { padding: clamp(48px, 6vw, 64px) 0; }
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.menu-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--honey), var(--caramel));
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(42, 23, 13, 0.1);
  border-color: var(--honey);
}
.menu-card.featured-card {
  background: linear-gradient(180deg, #FBF1E1 0%, var(--cream-warm) 100%);
  border: 2px solid var(--caramel);
  box-shadow: 0 4px 18px rgba(176, 102, 50, 0.15);
}
.menu-card.featured-card::after {
  content: "Most popular"; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--caramel); color: var(--cream);
  padding: 4px 14px; border-radius: 999px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  font-family: var(--sans);
}
.menu-card .icon { font-size: 40px; margin-bottom: 12px; line-height: 1; }
.menu-card h3 { font-size: 26px; margin-bottom: 8px; font-style: italic; }
.menu-card .tier {
  display: inline-block;
  font-family: var(--script);
  font-size: 18px; color: var(--caramel-deep);
  margin-bottom: 4px;
}
.menu-card .price {
  font-family: var(--serif);
  font-size: 36px; font-weight: 600; color: var(--choc);
  margin: 14px 0 4px;
}
.menu-card .price small {
  font-size: 16px; color: var(--taupe); font-weight: 400;
  font-style: italic;
}
.menu-card .min { font-size: 13px; color: var(--taupe); margin-bottom: 12px; font-style: italic; }
.menu-card .desc { font-size: 14.5px; color: var(--choc-soft); line-height: 1.65; }
.menu-note {
  text-align: center; margin-top: 48px; color: var(--taupe);
  font-size: 15px; font-style: italic;
  font-family: var(--serif);
}

/* ===== GALLERY ===== */
.gallery-section { background: var(--paper); }
.gallery-grid,
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery-tile,
.gallery-item {
  aspect-ratio: 1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  transition: transform 0.3s;
  box-shadow: 0 4px 12px rgba(42, 23, 13, 0.06);
  overflow: hidden;
  background: linear-gradient(135deg, var(--honey), var(--caramel));
}
.gallery-tile img,
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile:hover,
.gallery-item:hover { transform: scale(1.03) rotate(-1deg); }
.gallery-tile.tall,
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2.06; }
.gallery-tile:nth-child(2),
.gallery-item:nth-child(2) { background: linear-gradient(135deg, var(--tan-soft), var(--honey)); }
.gallery-tile:nth-child(3),
.gallery-item:nth-child(3) { background: linear-gradient(135deg, var(--rose), var(--caramel)); }
.gallery-tile:nth-child(4),
.gallery-item:nth-child(4) { background: linear-gradient(135deg, var(--tan), var(--taupe)); }
.gallery-tile:nth-child(5),
.gallery-item:nth-child(5) { background: linear-gradient(135deg, var(--honey), var(--tan)); }
.gallery-tile:nth-child(6),
.gallery-item:nth-child(6) { background: linear-gradient(135deg, var(--caramel-deep), var(--choc-soft)); }
.gallery-tile:nth-child(7),
.gallery-item:nth-child(7) { background: linear-gradient(135deg, var(--rose), var(--tan-soft)); }
.gallery-note { text-align: center; margin-top: 24px; color: var(--taupe); font-style: italic; }
@media (max-width: 720px) {
  .gallery-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ABOUT ===== */
.about-section { background: var(--cream-warm); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: center; max-width: 1000px; margin: 0 auto;
}
.about-img {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--rose), var(--tan-soft));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px;
  box-shadow: 0 12px 36px rgba(42, 23, 13, 0.12);
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: ""; position: absolute; inset: 12px;
  border: 1.5px solid rgba(252, 251, 250, 0.4);
  border-radius: 10px;
  pointer-events: none;
}
.about-content .script-pre,
.about-content .eyebrow {
  font-family: var(--script); font-size: 30px; color: var(--caramel-deep);
  margin-bottom: 6px;
  display: block;
}
.about-content h2 {
  font-size: 48px; margin-bottom: 20px; font-style: italic;
}
.about-content p {
  font-size: 17px; color: var(--choc-soft); margin-bottom: 16px;
}
.about-content .sign-off,
.about-close {
  font-family: var(--script); font-size: 32px;
  color: var(--caramel-deep); margin-top: 16px;
  display: block;
}
/* Keep the photo column modest; the emoji placeholder becomes a small circle like the featured treat. */
.about-grid { grid-template-columns: 300px 1fr; gap: 56px; max-width: 920px; }
.about-img.about-emoji {
  aspect-ratio: 1; width: 240px; justify-self: center;
  border-radius: 50%; font-size: 96px; overflow: visible;
}
.about-img.about-emoji::after {
  inset: -16px; border: 1.5px dashed var(--caramel);
  border-radius: 50%; opacity: 0.4;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .about-img { width: 100%; max-width: 280px; justify-self: center; }
  .about-img.about-emoji { width: 200px; font-size: 80px; }
}

/* ===== ORDER FORM ===== */
.form-section,
.order-section { background: var(--cream); }
.order-form,
.order-form-wrap {
  background: var(--paper); border-radius: 24px; padding: 52px;
  border: 1px solid var(--border);
  max-width: 760px; margin: 0 auto;
  box-shadow: 0 12px 36px rgba(42, 23, 13, 0.06);
}
.form-notice {
  background: var(--cream); border-left: 4px solid var(--caramel);
  padding: 16px 20px; border-radius: 8px; margin-bottom: 28px;
  font-size: 14.5px; color: var(--choc-soft); line-height: 1.6;
}
/* Fluent Forms styling overrides — applied via .order-form-wrap scope */
.order-form-wrap .ff-el-form-control,
.order-form-wrap .fluentform input[type="text"],
.order-form-wrap .fluentform input[type="email"],
.order-form-wrap .fluentform input[type="tel"],
.order-form-wrap .fluentform input[type="number"],
.order-form-wrap .fluentform input[type="date"],
.order-form-wrap .fluentform select,
.order-form-wrap .fluentform textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit; font-size: 14.5px;
  background: var(--cream);
  color: var(--choc);
  transition: border 0.2s;
}
.order-form-wrap .fluentform input:focus,
.order-form-wrap .fluentform select:focus,
.order-form-wrap .fluentform textarea:focus {
  outline: none; border-color: var(--caramel);
}
.order-form-wrap .fluentform label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--choc);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.order-form-wrap .fluentform .ff-btn-submit,
.order-form-wrap .fluentform button[type="submit"] {
  background: var(--choc); color: var(--cream);
  padding: 14px 28px; border-radius: 999px;
  border: 1.5px solid var(--choc); font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  width: 100%; margin-top: 8px;
}
.order-form-wrap .fluentform .ff-btn-submit:hover {
  background: var(--caramel-deep); border-color: var(--caramel-deep);
}
.honeypot, .ak-hp-field { position: absolute !important; left: -9999px !important; }

@media (max-width: 720px) {
  .order-form, .order-form-wrap { padding: 28px; }
}

/* ===== PAYMENT ===== */
.payment-section { background: var(--cream-warm); }
.payment-grid,
.pay-row {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
}
.payment-card,
.pay-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 32px; border-radius: 14px; font-weight: 600;
  border: 2px solid var(--border); background: var(--cream);
  color: var(--choc); font-size: 15px; transition: all 0.2s;
  min-width: 220px; text-align: center;
}
.payment-card:hover,
.pay-btn:hover { border-color: var(--caramel); transform: translateY(-2px); color: var(--choc); }
.payment-card .payment-icon,
.pay-btn .payment-icon { font-size: 28px; line-height: 1; }
.payment-card .payment-handle,
.payment-card .payment-detail {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--caramel-deep); font-weight: 500;
}
.payment-card .payment-deposit {
  font-size: 13px; color: var(--taupe); font-style: italic;
}
.payment-card.venmo { border-color: rgba(61, 149, 206, 0.3); }
.payment-card.venmo:hover { border-color: #3D95CE; }
.payment-card.paypal { border-color: rgba(0, 112, 186, 0.3); }
.payment-card.paypal:hover { border-color: #0070BA; }

/* ===== FAQ ===== */
.faq-section { background: var(--paper); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-category {
  font-family: var(--script);
  font-size: 24px; color: var(--caramel-deep);
  margin: 32px 0 12px; padding-bottom: 4px;
  border-bottom: 1px dashed var(--border);
}
.faq-item,
details.faq-item {
  border-bottom: 1px solid var(--border); padding: 22px 4px;
}
.faq-item summary,
details.faq-item summary {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600; font-style: italic;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--choc); cursor: pointer;
}
.faq-item summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after,
details.faq-item summary::after {
  content: "+"; font-size: 28px; color: var(--caramel); transition: transform 0.2s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after,
details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer,
.faq-item p,
details.faq-item p { margin-top: 14px; color: var(--choc-soft); font-size: 15.5px; line-height: 1.7; }
.faq-cta { text-align: center; margin-top: 48px; }

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  background: var(--cream);
  padding: 80px 0 40px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(36px, 5vw, 56px);
  font-style: italic; margin-bottom: 12px;
}
.page-content { padding: 60px 0; }

/* ===== FOOTER ===== */
.site-footer,
footer.site-footer {
  background: var(--choc); color: var(--cream-warm);
  padding: 70px 24px 36px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px;
}
.site-footer h4 {
  color: var(--honey); font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.18em; margin-bottom: 18px;
  font-family: var(--sans); font-weight: 500;
}
.site-footer p, .site-footer a {
  font-size: 14.5px; color: var(--cream-warm); line-height: 1.85;
}
.footer-brand,
.site-footer .footer-brand {
  font-family: var(--serif);
  font-size: 26px; font-style: italic; color: var(--cream); margin-bottom: 4px;
}
.footer-tagline,
.site-footer .footer-script {
  font-family: var(--script); font-size: 22px; color: var(--honey);
}
.site-footer a:hover { color: var(--honey); }
.footer-contact, .footer-service { font-size: 14.5px; line-height: 1.85; }
.footer-disclaimer,
.cottage-disclosure {
  background: rgba(213, 162, 109, 0.1); border: 1px solid rgba(213, 162, 109, 0.3);
  border-radius: 8px; padding: 16px 20px; margin-top: 24px;
  font-size: 12.5px; color: var(--cream-warm); line-height: 1.7;
}
.footer-copyright,
.footer-bottom {
  max-width: 1180px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(252, 251, 250, 0.1);
  text-align: center; font-size: 12.5px; color: var(--taupe);
}
.dot { margin: 0 8px; opacity: 0.5; }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .status-banner, .nav-toggle { display: none; }
  body { background: white; color: black; }
}

/* ===== HERO WITHOUT IMAGE ===== */
.hero--plain {
  min-height: 0; padding: 0;
  justify-content: center; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--cream) 0%, var(--cream-warm) 70%);
}
.hero--plain .hero-content { margin: 0 auto; padding: clamp(56px, 8vw, 88px) 0; }
.hero--plain .tagline { margin-left: auto; margin-right: auto; }
.hero--plain .hero-cta-row { justify-content: center; }

/* ===== PAYMENT QR ===== */
.payment-card .payment-qr {
  width: 180px; height: auto; border-radius: 8px;
  background: #fff; padding: 8px;
}

/* ===== GALLERY: real photos — portrait image with the caption underneath ===== */
.gallery-tile {
  aspect-ratio: auto; display: block; margin: 0;
  font-size: inherit; background: none; box-shadow: none; overflow: visible;
}
.gallery-tile img {
  aspect-ratio: 4 / 5; height: auto; border-radius: 14px;
  box-shadow: 0 4px 12px rgba(42, 23, 13, 0.08);
}
.gallery-tile figcaption {
  margin-top: 8px; text-align: center; line-height: 1.3;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--choc);
}
.gallery-tile:hover { transform: translateY(-3px); }
.gallery-grid { gap: 22px 18px; }
.instagram-feed-wrap { margin-top: 36px; }
/* Featured photo: Kate's photos carry text at the top, so frame the circle on the bakes. */
.cotw-img[style*="background-image"] { background-position: center 80%; }
.gallery-grid .gallery-tile { background: none; } /* beats the old per-tile placeholder gradients */

/* ===== ORDER FORM: one quantity row per treat ===== */
.order-form-wrap .ak-qty-intro {
  font-size: 14.5px; color: var(--choc-soft); margin: 8px 0 6px;
}
.order-form-wrap .ff-el-group.ak-qty {
  display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 12px;
  margin-bottom: 0; padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.order-form-wrap .ff-el-group.ak-qty .ff-el-input--label { margin: 0; padding: 0; }
.order-form-wrap .fluentform .ff-el-group.ak-qty label {
  text-transform: none; letter-spacing: 0; margin: 0;
  font-family: var(--serif); font-size: 18px; font-style: italic; font-weight: 600;
}
.order-form-wrap .ff-el-group.ak-qty .ff_input-group { display: flex; }
.order-form-wrap .ff-el-group.ak-qty input[type="number"] {
  text-align: center; border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.order-form-wrap .ff-el-group.ak-qty .ff_input-group-append .ff_input-group-text {
  display: flex; align-items: center; padding: 0 12px; font-size: 13px;
  background: var(--cream-warm); border: 1px solid var(--border); border-left: 0;
  border-radius: 0 10px 10px 0; color: var(--taupe);
}
.order-form-wrap .ff-el-group.ak-qty .error { grid-column: 1 / -1; }
.order-form-wrap .ff-el-group.ak-qty + .ff-el-group:not(.ak-qty) { margin-top: 20px; }
@media (max-width: 520px) {
  .order-form-wrap .ff-el-group.ak-qty { grid-template-columns: 1fr 130px; }
  .order-form-wrap .fluentform .ff-el-group.ak-qty label { font-size: 16px; }
}
.order-form-wrap .ff-el-group.ak-qty > .ff-el-input--label { grid-column: 1; grid-row: 1; width: auto; float: none; text-align: left; }
.order-form-wrap .ff-el-group.ak-qty > .ff-el-input--content { grid-column: 2; grid-row: 1; width: auto; float: none; margin: 0; }
.order-form-wrap .ff-el-group.ak-qty .ff_input-group { flex-wrap: nowrap; }
.order-form-wrap .ff-el-group.ak-qty .ff_input-group input[type="number"] { flex: 1 1 auto; width: 1%; min-width: 0; }
.order-form-wrap .ff-el-group.ak-qty .ff_input-group-append { display: flex; }

/* ===== FOOTER: brand | get in touch | order, then disclaimer + copyright rows ===== */
.site-footer, footer.site-footer { padding: 56px 24px 28px; }
.site-footer .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.site-footer .footer-brand { margin-bottom: 6px; }
.site-footer .footer-tagline { margin-bottom: 10px; line-height: 1.3; }
.site-footer .footer-service { color: var(--tan); }
.site-footer h4 { margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; line-height: 1.4; }
.footer-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: var(--honey); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.footer-icon .fill { fill: var(--honey); stroke: none; }
.site-footer > .footer-disclaimer { max-width: 1180px; margin: 36px auto 0; text-align: center; }
.site-footer > .footer-copyright { margin-top: 28px; }
@media (max-width: 820px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-links { justify-items: center; }
}

/* Payment deposit note sits centred under the cards */
.payment-section .payment-deposit { text-align: center; margin-top: 20px; font-size: 14px; color: var(--taupe); font-style: italic; }
.footer-disclaimer-line { display: block; }
.footer-disclaimer-line + .footer-disclaimer-line { margin-top: 4px; }

/* ===== MENU CARDS: clickable, jump to the treat on the order form ===== */
.menu-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
a.menu-card { display: flex; flex-direction: column; color: var(--choc); cursor: pointer; padding: 28px 22px 22px; }
a.menu-card:hover { color: var(--choc); }
.menu-card h3 { font-size: 23px; line-height: 1.2; }
.menu-card .price { font-size: 30px; margin-top: auto; padding-top: 10px; }
.menu-card-cta {
  margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--caramel-deep);
  letter-spacing: 0.02em;
}
a.menu-card:hover .menu-card-cta { color: var(--choc); }
@media (max-width: 1000px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .menu-grid { grid-template-columns: 1fr; } }

/* Row highlight when arriving from a menu card */
@keyframes ak-row-flash { 0%, 60% { background: rgba(213, 162, 109, 0.35); } 100% { background: transparent; } }
.order-form-wrap .ff-el-group.ak-qty.is-highlight { animation: ak-row-flash 2.4s ease-out; border-radius: 8px; }

/* Yes / No side by side */
.order-form-wrap .ak-inline-radio .ff-el-form-check { display: inline-block; margin-right: 22px; }
.order-form-wrap .ak-field-note { font-size: 13.5px; color: var(--choc-soft); font-style: italic; margin: -8px 0 18px; }

/* Live estimated total under the treat list */
.order-form-wrap .ak-order-total {
  margin: 14px 0 22px; padding: 12px 16px; border-radius: 10px;
  background: var(--cream); border: 1px solid var(--border);
  font-size: 15px; color: var(--choc); text-align: right;
}
.ak-order-total strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.ak-order-total-dozens { color: var(--taupe); font-size: 14px; }
.ak-order-total-note { margin-top: 4px; font-size: 13px; color: var(--caramel-deep); font-style: italic; }

/* ===== OCCASIONS ===== */
.occasions-section { background: var(--cream); border-top: 1px solid var(--border); }
.occasions-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 820px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px;
}
.occasions-list li {
  position: relative; padding-left: 26px;
  font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.35; color: var(--choc);
}
.occasions-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--caramel);
}
@media (max-width: 720px) {
  .occasions-list { grid-template-columns: 1fr; gap: 10px; }
  .occasions-list li { font-size: 18px; }
}

/* Header wordmark: "Butter Bakes" same size as "Aunt Kate's", centred under it */
.nav-brand .wordmark { text-align: center; }
.nav-brand .wordmark small { font-size: 32px; line-height: 1.05; margin-top: 0; }
@media (max-width: 820px) {
  .nav-brand .wordmark small { font-size: 24px; }
}

/* ===== EVERY DAY: photo tiles, 4 per row, hover shows name/price/blurb ===== */
.everyday-section { background: var(--cream-warm); }
.everyday-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.everyday-tile {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 5; box-shadow: 0 4px 12px rgba(42, 23, 13, 0.08); color: var(--cream);
}
.everyday-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.everyday-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 18px 16px; text-align: left;
  background: linear-gradient(180deg, rgba(42, 23, 13, 0) 25%, rgba(42, 23, 13, 0.88) 100%);
  opacity: 0; transition: opacity 0.25s;
}
.everyday-tile:hover .everyday-info,
.everyday-tile:focus-visible .everyday-info { opacity: 1; }
.everyday-tile:hover img { transform: scale(1.04); }
.everyday-name  { font-family: var(--serif); font-size: 21px; font-style: italic; font-weight: 600; line-height: 1.2; color: var(--cream); }
.everyday-price { font-size: 14px; font-weight: 600; color: var(--honey); }
.everyday-blurb { font-size: 13.5px; line-height: 1.45; color: var(--cream-warm); }
.everyday-cta   { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--honey); }
@media (max-width: 1000px) { .everyday-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .everyday-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
/* Touch screens have no hover: keep name + price visible on the photo */
@media (hover: none) {
  .everyday-info { opacity: 1; background: linear-gradient(180deg, rgba(42, 23, 13, 0) 55%, rgba(42, 23, 13, 0.85) 100%); padding: 12px; }
  .everyday-blurb, .everyday-cta { display: none; }
  .everyday-name { font-size: 16px; }
}

/* Gallery photos reuse the Every Day tile style; plain (unlinked) tiles are not clickable */
div.everyday-tile { cursor: default; }

/* Seasonal grid can mix photo tiles and text cards: cards stretch to the tile height */
.menu-grid { align-items: stretch; }
.menu-grid .everyday-tile { height: 100%; }

/* ===== ALBUM TILES (Seasonal / Every Day / Gallery): photo box + name underneath ===== */
.everyday-tile {
  aspect-ratio: auto; overflow: visible; box-shadow: none; border-radius: 0;
  display: flex; flex-direction: column; gap: 10px; color: var(--choc);
}
.everyday-tile:hover { color: var(--choc); }
.tile-media {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 5; box-shadow: 0 4px 12px rgba(42, 23, 13, 0.08);
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.everyday-tile:hover .tile-media img { transform: scale(1.04); }
.everyday-tile:hover img { transform: none; }
.everyday-tile:hover .tile-media img { transform: scale(1.04); }
.tile-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px dashed var(--tan); border-radius: 14px;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--taupe);
}
.tile-name {
  text-align: center; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 18px; line-height: 1.25; color: var(--choc);
}
.everyday-info { justify-content: flex-end; }
.menu-grid.everyday-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .menu-grid.everyday-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .menu-grid.everyday-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tile-name { font-size: 16px; } }
/* Touch screens: price stays visible on the photo; name is already underneath */
@media (hover: none) {
  .everyday-info { background: linear-gradient(180deg, rgba(42, 23, 13, 0) 65%, rgba(42, 23, 13, 0.8) 100%); }
  .everyday-name { display: none; }
}

/* Options tied to a treat (e.g. brownie toppings): indented under its row */
.order-form-wrap .ff-el-group.ak-sub-option { margin: 4px 0 10px 18px; padding-left: 14px; border-left: 2px solid var(--tan); }
.order-form-wrap .ak-sub-option .ff-el-input--label label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.order-form-wrap .ak-sub-option .ak-field-note { margin: 0; }
.order-form-wrap .fluentform .ak-sub-option .ff-el-form-check label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14.5px; }
