/*
Theme Name: Swirld
Theme URI: https://eatswirld.com
Author: Swirld
Description: Custom WordPress theme for Swirld protein soft serve. Built from the approved UI mockups.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swirld
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  --cream:      #F7EFE5;
  --cream-2:    #FDF8F1;
  --brown:      #4B2E20;
  --brown-2:    #573C2E;
  --brown-line: #6B4A38;
  --ink:        #4B2E20;
  --ink-soft:   #7A6154;
  --pink:       #F27CA3;
  --pink-deep:  #E15C89;
  --pink-light: #F38CAC;
  --pink-soft:  #F7C1C8;
  --pink-card:  #EBACC1;
  --pink-pale:  #F7DFDB;
  --white:      #FFFFFF;

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --pill:  999px;

  --shadow-card:  0 10px 30px rgba(75, 46, 32, .07);
  --shadow-raise: 0 18px 44px rgba(75, 46, 32, .13);
  --shadow-photo: 0 18px 40px rgba(75, 46, 32, .18);

  --wrap: 1160px;
  --gap:  24px;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

img, svg { max-width: 100%; height: auto; }

ul { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  width: auto; height: auto; clip: auto;
  background: var(--brown); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: var(--pill);
}

/* =========================================================
   3. Layout primitives
   ========================================================= */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(60px, 7.5vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(44px, 5vw, 72px) 0; }
.section--cream { background: var(--cream); }
.section--brown { background: var(--brown); color: var(--cream); }
.section--pinksoft { background: var(--pink-soft); }
.section--pink { background: var(--pink); color: var(--white); }

.section--brown h1, .section--brown h2, .section--brown h3 { color: var(--cream); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Decorative pale blobs behind hero content */
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--pink-pale);
  z-index: 0;
  pointer-events: none;
}
.blob--tr { width: 380px; height: 380px; top: -90px; right: -110px; }
.blob--bl { width: 300px; height: 300px; bottom: -120px; left: -140px; }

/* =========================================================
   4. Type accents
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--pink-soft);
  color: var(--brown);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  padding: .5rem 1.1rem; border-radius: var(--pill);
  margin-bottom: 1.4rem;
}

.label {
  display: block;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .9rem;
}
.section--brown .label { color: var(--pink-soft); }

.hl { color: var(--pink); }

/* =========================================================
   5. Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; line-height: 1;
  padding: .95rem 1.9rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--dark    { background: var(--brown); color: var(--cream); }
.btn--dark:hover { background: #3C2419; box-shadow: var(--shadow-raise); }

.btn--pink    { background: var(--pink); color: var(--white); }
.btn--pink:hover { background: var(--pink-deep); box-shadow: var(--shadow-raise); }

.btn--outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--outline:hover { background: var(--brown); color: var(--cream); }

.btn--light   { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn--light:hover { background: var(--white); color: var(--pink-deep); border-color: var(--white); }

.btn--sm { padding: .7rem 1.4rem; font-size: .98rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* =========================================================
   6. Photo frames
   ========================================================= */
.frame {
  background: var(--white);
  padding: 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-photo);
  transition: transform .3s ease;
}
.frame img { display: block; width: 100%; border-radius: 12px; object-fit: cover; }

.badge-float {
  position: absolute; z-index: 3;
  background: var(--pink); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .55rem 1.15rem; border-radius: var(--pill);
  box-shadow: var(--shadow-raise);
  white-space: nowrap;
}

/* =========================================================
   7. Site header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: rgba(75,46,32,.09);
  box-shadow: 0 6px 24px rgba(75,46,32,.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}

/* Logo lockup */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--brown); }
.brand__mark { width: 26px; flex: none; color: currentColor; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -.02em;
}
.brand__tag {
  font-size: .43rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; opacity: .75; margin-top: 2px;
}
.site-footer .brand { color: var(--cream); }

/* Primary nav */
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-weight: 600; font-size: 1rem; color: var(--ink-soft);
  padding: .35rem 0; position: relative; transition: color .18s ease;
}
.nav a:hover { color: var(--brown); }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--brown); font-weight: 700; }
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px; background: var(--pink);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--brown);
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: currentColor; position: relative;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2.5px;
  border-radius: 2px; background: currentColor;
  transition: transform .22s ease;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(-90deg) translateX(8px); }
.nav-toggle[aria-expanded="true"] span::after  { opacity: 0; }

/* =========================================================
   8. Hero (home)
   ========================================================= */
.hero { position: relative; padding: clamp(48px, 6vw, 76px) 0 clamp(60px, 7vw, 96px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lead { margin-bottom: 2.2rem; }

.hero-photos {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
  gap: 6px; margin-top: clamp(40px, 5vw, 60px);
}
.hero-photos .frame { width: min(30%, 230px); }
.hero-photos .frame img { aspect-ratio: 1 / 1; }
.hero-photos .frame:nth-of-type(1) { transform: rotate(-6deg); }
.hero-photos .frame:nth-of-type(2) { transform: rotate(1.5deg) translateY(-14px); z-index: 2; }
.hero-photos .frame:nth-of-type(2) img { aspect-ratio: 4 / 5; }
.hero-photos .frame:nth-of-type(3) { transform: rotate(5deg); }
.hero-photos .frame:hover { transform: rotate(0) translateY(-8px) scale(1.02); }
.hero-photos .badge-float { top: -14px; left: 50%; transform: translateX(-50%); }

/* =========================================================
   9. Macros band
   ========================================================= */
.macros { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.macros__copy p { color: #D8C6BB; max-width: 42ch; }
.macros__copy .btn { margin-top: 1.6rem; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.stat-card {
  background: var(--brown-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.6rem;
  transition: transform .22s ease, border-color .22s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(247,193,200,.35); }
.stat-card__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1;
  color: var(--pink); margin-bottom: .55rem;
}
.stat-card__label {
  font-size: .74rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: #D8C6BB;
}

/* =========================================================
   10. Flavors
   ========================================================= */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(28px, 3.5vw, 44px); flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }

.flavor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.flavor-card {
  background: var(--pink-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.flavor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-raise); }
.flavor-card__art {
  display: grid; place-items: center;
  padding: 2.4rem 1rem 1.9rem;
  min-height: 250px;
}
/* Photographic cup art ships at an unknown aspect ratio — constrain both axes
   and let it letterbox rather than distort or blow out the card. */
.flavor-card__art img {
  width: auto; height: auto;
  max-width: min(72%, 200px);
  max-height: 210px;
  object-fit: contain;
}
.flavor-card:hover .flavor-card__art img { animation: nudge .5s ease; }
.flavor-card__body { background: var(--cream); padding: 1.2rem 1.4rem 1.4rem; margin-top: auto; }
.flavor-card__body h3 { margin-bottom: .25rem; }
.flavor-card__body p { font-size: .95rem; color: var(--ink-soft); }

@keyframes nudge {
  0%, 100% { transform: translateY(0) rotate(0); }
  35%      { transform: translateY(-6px) rotate(-3deg); }
  70%      { transform: translateY(-2px) rotate(2deg); }
}

.carousel-dots { display: none; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--pill);
  background: rgba(75,46,32,.25); cursor: pointer; transition: width .2s ease, background .2s ease;
}
.carousel-dots button[aria-current="true"] { width: 22px; background: var(--brown); }

/* =========================================================
   11. Social grid
   ========================================================= */
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.social-grid a { display: block; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.social-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.social-grid a:hover img { transform: scale(1.05); }

/* =========================================================
   12. Split CTA
   ========================================================= */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cta-card {
  background: var(--pink-light);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.5rem);
}
.cta-card h3 { color: var(--white); font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.cta-card p { color: rgba(255,255,255,.92); max-width: 38ch; margin-bottom: 1.6rem; }

/* =========================================================
   13. Our Story
   ========================================================= */
.story-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.story-split .frame { transform: rotate(-2deg); }
.story-split .frame:hover { transform: rotate(0); }

.stat-row {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 36px);
  margin-top: 2rem;
}
.stat-row > div { padding-left: clamp(20px, 3vw, 36px); border-left: 2px solid var(--pink-soft); }
.stat-row > div:first-child { padding-left: 0; border-left: 0; }
.stat-row strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--pink); line-height: 1.1;
}
.stat-row span {
  font-size: .74rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-soft);
}

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.value-card {
  background: var(--brown-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem;
}
.value-card__icon { font-size: 1.6rem; display: block; margin-bottom: .9rem; }
.value-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.value-card p { color: #D8C6BB; font-size: .98rem; margin: 0; }

.wordmark-cta h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--white); margin-bottom: 1.6rem;
}

/* =========================================================
   14. Book Us
   ========================================================= */
.booking-split {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 4vw, 60px); align-items: start;
}
.booking-intro .frame { transform: rotate(-1.5deg); margin: 2.2rem 0 1.8rem; }
.booking-intro .frame:hover { transform: rotate(0); }

.check-list li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .35rem 0; font-weight: 600;
}
.check-list li::before {
  content: "✓"; color: var(--pink); font-weight: 800; flex: none; line-height: 1.5;
}

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-card);
}
.form-card > h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: 1.6rem; }

.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field label,
.fieldset-legend {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--brown); margin-bottom: .45rem;
}
.field .opt { font-family: var(--font-body); font-weight: 400; font-size: .92rem; color: #A79589; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem; color: var(--brown);
  background: var(--white);
  border: 1.5px solid #D9CBBF;
  border-radius: var(--pill);
  padding: .85rem 1.2rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea {
  border-radius: var(--r-md); min-height: 130px; resize: vertical; line-height: 1.6;
}
.field input:hover, .field textarea:hover { border-color: #C3B0A2; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(242,124,163,.16);
}
.field ::placeholder { color: #B7A79B; }

/* Attendee choice — radios styled as the squares in the comp */
.choice-row { display: flex; flex-wrap: wrap; gap: 1.1rem 1.5rem; margin-top: .2rem; }
.choice { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 600; }
.choice input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid #C3B0A2; border-radius: 6px; background: var(--white);
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.choice input:checked {
  background-color: var(--pink);
  border-color: var(--pink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}

.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; text-align: center; }

.form-alert {
  border-radius: var(--r-md); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-alert--ok   { background: #E8F5E9; color: #2E5B33; }
.form-alert--err  { background: #FCE8EC; color: #9B2C48; }
.form-alert ul { margin: .5rem 0 0; padding-left: 1.1rem; list-style: disc; font-weight: 400; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* =========================================================
   15. Contact + FAQ
   ========================================================= */
.contact-split {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 3vw, 40px); align-items: start;
}
.contact-cards { display: grid; gap: var(--gap); }

.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-raise); }
.contact-card__icon { font-size: 1.5rem; display: block; margin-bottom: .8rem; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.contact-card a { color: var(--pink); font-weight: 700; }
.contact-card a:hover { color: var(--pink-deep); text-decoration: underline; }
.contact-card--dark { background: var(--brown); color: var(--cream); }
.contact-card--dark h3 { color: var(--cream); }
.contact-card--dark p { color: #D8C6BB; font-size: .98rem; margin-bottom: .2rem; }

/* FAQ accordion — native <details>, works with JS disabled */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 1.6rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-size: 1.5rem; line-height: 1; color: var(--pink);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { padding-bottom: .5rem; }
.faq__answer { padding: 0 1.6rem 1.5rem; color: var(--ink-soft); max-width: 58ch; }

.faq-note {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--pink-soft); border-radius: var(--r-lg);
  padding: 1.35rem 1.6rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  transition: transform .22s ease, background .22s ease;
}
.faq-note:hover { transform: translateY(-3px); background: #F5B4BE; }

/* =========================================================
   16. Footer
   ========================================================= */
.site-footer { background: var(--brown); color: var(--cream); padding: 2.6rem 0; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-nav,
.footer-list { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { font-weight: 600; opacity: .88; transition: opacity .18s ease, color .18s ease; }
.footer-nav a:hover { opacity: 1; color: var(--pink-soft); }
.site-footer .copyright { font-size: .92rem; opacity: .62; }

/* =========================================================
   17. Editor / fallback content
   ========================================================= */
.entry-content { max-width: 72ch; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content a { color: var(--pink-deep); text-decoration: underline; }
.entry-content ul, .entry-content ol { list-style: revert; padding-left: 1.4em; margin-bottom: 1.2em; }
.alignwide  { width: min(100vw - 40px, 1280px); margin-inline: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .9rem; color: var(--ink-soft); }

/* =========================================================
   18. Motion
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   19. Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .macros,
  .story-split,
  .booking-split,
  .contact-split { grid-template-columns: 1fr; }

  .story-split .frame { max-width: 520px; }
  .value-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav {
    position: fixed; inset: 78px 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    padding: 1rem 20px 1.6rem;
    border-bottom: 1px solid rgba(75,46,32,.1);
    box-shadow: 0 18px 34px rgba(75,46,32,.1);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav a { display: block; padding: .8rem 0; font-size: 1.15rem; font-family: var(--font-display); }
  .nav .current-menu-item > a::after,
  .nav .current_page_item > a::after { display: none; }

  .cta-split { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .hero-photos { gap: 4px; }
  .hero-photos .frame { width: 32%; padding: 7px; }
  .hero-photos .badge-float { font-size: .82rem; padding: .45rem .9rem; }

  .section-head { align-items: flex-start; }

  /* Flavors become a swipeable rail */
  .flavor-grid {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin-inline: -20px; padding-inline: 20px;
    scrollbar-width: none;
  }
  .flavor-grid::-webkit-scrollbar { display: none; }
  .flavor-card { flex: 0 0 66%; scroll-snap-align: center; }
  .carousel-dots { display: flex; }

  .site-footer .wrap { flex-direction: column; text-align: center; }
  .footer-nav, .footer-list { justify-content: center; gap: 20px; }
}

@media (max-width: 560px) {
  .stat-grid { gap: 14px; }
  .stat-card { padding: 1.3rem 1.2rem; }
  .btn-row .btn { width: 100%; }
  .hero .btn-row { flex-direction: column; }
  .blob--tr { width: 260px; height: 260px; right: -90px; }
  .faq-note { flex-direction: row; }
}
