/* ============================================================
   WinnieBagel Bakery — Shared Styles (v2)
   Design concept: "bakery ticket" — kraft-tag pricing, a hand-
   stitched dashed seam as the recurring divider motif, and a
   single-row pill nav that replaces the old 3-bar header.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,500;1,9..144,600&family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --teal-deep:    #0B5C66;
  --teal:         #0E8C9C;
  --teal-bright:  #14B8C4;
  --coral:        #FF8B5E;
  --coral-deep:   #E8754A;
  --cream:        #FBF8F2;
  --cream-warm:   #F4ECE0;
  --kraft:        #F1E4C8;
  --kraft-line:   #D9C49B;
  --ink:          #14302F;
  --ink-soft:     #4A6361;
  --white:        #FFFFFF;
  --line:         #E2D9C8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-tag: 14px;
  --shadow-soft: 0 4px 20px rgba(11, 92, 102, 0.08);
  --shadow-card: 0 10px 32px rgba(11, 92, 102, 0.11);
  --shadow-pop:  0 14px 40px rgba(11, 92, 102, 0.16);
  --max-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  color: var(--teal-deep);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 300;
}
.skip-link:focus { left: 0; }

/* ---------- Promo strip ---------- */
.promo-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 16px;
}

/* ============================================================
   HEADER — single sticky row: mark + pill nav + CTA
   ============================================================ */
header.site-header {
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 150;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  background: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { height: 84%; width: 84%; object-fit: contain; filter: brightness(0) invert(1); }
.brand-word {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--teal-deep);
  line-height: 1.05;
}
.brand-word span { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); margin-top: 2px; }

.pill-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--cream-warm);
  border-radius: 50px;
  padding: 5px;
  flex-shrink: 0;
}
.pill-nav a {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 50px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  display: block;
}
.pill-nav a:hover { color: var(--teal-deep); }
.pill-nav a.active { background: var(--teal-deep); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: var(--cream-warm);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s, top 0.22s;
}
.nav-toggle::before { top: 16px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 26px; }
.nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

/* Mobile full-screen overlay nav (inset:0, not height:100vh — avoids iOS Safari address-bar jump) */
nav.main-nav {
  position: fixed;
  inset: 0;
  background: var(--teal-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
  padding: 32px;
}
nav.main-nav.open { opacity: 1; visibility: visible; transform: scale(1); }
nav.main-nav a {
  color: rgba(255,255,255,0.88);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 12px 20px;
  border-radius: 12px;
}
nav.main-nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
nav.main-nav .nav-cta { margin-top: 14px; }
.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.14);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pill-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .nav-cta.desktop-only { display: none; }
  .brand-word { font-size: 1.1rem; }
  .brand-mark { height: 44px; width: 44px; }
  .nav-row { padding: 10px 20px; }
}
@media (min-width: 901px) {
  .nav-close, .nav-toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px rgba(255,139,94,0.35); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--teal-deep); border: 2px solid var(--teal-deep); }
.btn-secondary:hover { background: var(--teal-deep); color: #fff; }
.btn-block { width: 100%; }
.btn-ghost-light { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.28); }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal));
  color: #fff;
  padding: 44px 32px 42px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }
.page-hero .eyebrow { color: #FFD9C2; background: rgba(255,255,255,0.14); }

/* ---------- Sections ---------- */
section { padding: 76px 32px; }
.section-narrow { max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,139,94,0.12);
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 620px; }

/* ---------- Stitch divider (signature motif) ---------- */
.stitch {
  position: relative;
  height: 1px;
  border-top: 2px dashed var(--kraft-line);
  max-width: var(--max-width);
  margin: 0 auto;
}
.stitch span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: inherit;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px dashed var(--kraft-line);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- Kraft price tag (signature motif) ---------- */
.kraft-tag {
  background: var(--kraft);
  border: 1.5px dashed var(--kraft-line);
  border-radius: var(--radius-tag);
  padding: 14px 18px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kraft-tag::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--cream);
  border: 1.5px dashed var(--kraft-line);
  border-radius: 50%;
}
.kraft-tag .price { font-family: 'Fraunces', serif; font-weight: 800; color: var(--teal-deep); font-size: 1.3rem; }
.kraft-tag .unit { font-size: 0.72rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Product / feature cards ---------- */
.treat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.treat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.treat-card .treat-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-warm);
}
.treat-card .treat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.treat-card .treat-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }

/* ---------- Steps (real sequence — order flow) ---------- */
.step-trail { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 18px; position: relative; padding-bottom: 34px; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(var(--kraft-line) 60%, transparent 0%);
  background-size: 2px 10px;
  background-repeat: repeat-y;
}
.step-item:last-child::before { display: none; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 1;
}
.step-text h4 { font-size: 1rem; margin-bottom: 4px; }
.step-text p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 0; }

.footer-newsletter { background: var(--teal-deep); padding: 52px 32px; text-align: center; }
.footer-newsletter h3 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.footer-newsletter p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 22px; }

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 32px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer-main h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-family: 'Nunito', sans-serif; }
.footer-main a { display: block; color: rgba(255,255,255,0.72); font-size: 0.9rem; padding: 4px 0; transition: color 0.15s; }
.footer-main a:hover { color: var(--coral); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: 10px; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.12); }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.65); font-style: italic; font-family: 'Fraunces', serif; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  padding: 18px 32px 28px;
}

@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer-brand { justify-content: center; }
}

/* ---------- Newsletter form (MailerLite) shared box ---------- */
.ml-embed-wrap input[type=email] { padding: 12px 16px !important; border-radius: 10px !important; border: none !important; font-size: 0.95rem !important; }
.ml-embed-wrap button { background: var(--coral) !important; border-radius: 10px !important; font-weight: 800 !important; }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------- Responsive grids ---------- */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.grid-hero { display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center; }
.grid-3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:26px; }
.grid-4 { display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }
.grid-sidebar { display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:flex-start; }

@media (max-width: 900px) {
  .grid-2, .grid-hero, .grid-3, .grid-sidebar { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-sidebar > div:last-child { position:static !important; }
  section { padding: 58px 24px; }
  .page-hero { padding: 36px 24px 34px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr !important; }
}
