/* ============================================================
   Adu&Adu — Playful & Saucy site styles
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  --cream: #fff7e3;
  --cream-2: #ffeec4;
  --paper: #faecc8;
  --ink: #181410;
  --ink-soft: #3a312a;
  --green: #1f8a3b;
  --green-deep: #14622b;
  --green-soft: #4eb267;
  --red: #d83a2f;
  --red-soft: #ee5a4a;
  --yellow: #f3b522;
  --yellow-light: #ffd76b;
  --pink: #ffc8b8;
  --orange: #f08a44;

  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.display { font-family: 'Caprasimo', serif; font-weight: 400; }
.hand { font-family: 'Caveat', cursive; font-weight: 600; }
.mono { font-family: 'DM Mono', monospace; }

a { color: inherit; }
button { font: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }
svg { max-width: 100%; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 960px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  position: relative;
  width: 118px;
  height: 88px;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
  line-height: 1;
  display: flex; flex-direction: column;
}
.logo-text .name {
  font-family: 'Caprasimo', serif;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-text .name .red { color: var(--red); }
.logo-text .name .n { color: var(--green); font-family: 'Caveat', cursive; font-weight: 700; padding: 0 1px; }
.logo-text .sub {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--green);
  margin-top: 2px;
}

/* Larger lockup for hero/footer use */
.logo--lg .logo-mark { width: 176px; height: 130px; }
.logo--lg .logo-text .name { font-size: 44px; }
.logo--lg .logo-text .sub { font-size: 24px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  max-width: 1440px; margin: 0 auto;
  position: relative;
  gap: 24px;
}
.nav-pill {
  display: inline-flex;
  background: var(--ink);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.nav-pill a {
  padding: 10px 18px;
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-pill a.active {
  background: var(--yellow);
  color: var(--ink);
}
.nav-pill a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
}

.nav-cart {
  background: var(--green);
  color: var(--cream);
  border: 3px solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cart:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-cart .count {
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--red);
  color: var(--cream);
  border: 3px solid var(--ink);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex; gap: 10px; align-items: center;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }
.btn--green { background: var(--green); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--cream-2); transform: none; box-shadow: none; }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--sm { padding: 8px 16px; font-size: 12px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--ink);
}
.tag--green { background: var(--green); color: var(--cream); }
.tag--red { background: var(--red); color: var(--cream); }
.tag--cream { background: var(--cream); }

/* ---------- Placeholder striped image ---------- */
.ph {
  background-image: repeating-linear-gradient(135deg, var(--ph-a, rgba(255,247,227,0.16)) 0 12px, var(--ph-b, rgba(255,247,227,0.04)) 12px 24px);
  background-color: var(--ph-bg, var(--green-deep));
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.ph__label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,247,227,0.85);
}
.ph__label::before { content: '// '; opacity: 0.55; }

/* ---------- Form ---------- */
.field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field textarea,
.field select {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.04);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216,58,47,0.18);
}
.field textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.field--inline { flex-direction: row; align-items: center; gap: 12px; }
.field__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.help {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* radio cards */
.radio-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.radio-card:hover { transform: translateY(-1px); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .dot {
  width: 22px; height: 22px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cream);
  position: relative;
}
.radio-card input:checked + .dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--red);
  border-radius: 50%;
}
.radio-card.is-active { background: var(--yellow-light); box-shadow: 4px 4px 0 var(--ink); }
.radio-card .lbl {
  flex: 1;
}
.radio-card .lbl b { display: block; font-family: 'Caprasimo', serif; font-size: 18px; }
.radio-card .lbl span { font-size: 13px; color: var(--ink-soft); }
.radio-card .price { font-family: 'Caprasimo', serif; color: var(--red); font-size: 18px; }

/* ---------- Page footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
}
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 80px 40px 24px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer h4 {
  font-family: 'Caprasimo', serif;
  font-size: 16px;
  color: var(--yellow);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; font-size: 14px; }
.footer a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.footer a:hover { opacity: 1; color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,247,227,0.18);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: rgba(255,247,227,0.6);
  flex-wrap: wrap;
  gap: 10px;
}
.footer .lockup-mark { color: var(--cream); }
.footer .lockup-tagline {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--yellow);
  margin-top: 6px;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--red);
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-1deg);
  margin: 30px -20px;
}
.marquee-track {
  display: inline-flex;
  gap: 32px;
  animation: scroll 28s linear infinite;
  font-family: 'Caprasimo', serif;
  font-size: 28px;
}
.marquee-track .y { color: var(--yellow); }
.marquee-track .sep { color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section common ---------- */
.section {
  padding: 90px 40px;
  max-width: 1320px;
  margin: 0 auto;
}
.section--narrow { max-width: 960px; }
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .hand {
  color: var(--red);
  font-size: 30px;
  display: inline-block;
  transform: rotate(-2deg);
}
.section-head h1,
.section-head h2 {
  font-family: 'Caprasimo', serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  margin: 8px 0 16px;
}
.section-head .green { color: var(--green); }
.section-head .red { color: var(--red); }
.section-head p { max-width: 560px; margin: 0 auto; font-size: 16px; line-height: 1.55; }

/* ---------- Cards (food etc) ---------- */
.card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--hover:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.card-photo {
  --ph-bg: var(--green-deep);
  --ph-a: rgba(255,247,227,0.14);
  --ph-b: rgba(255,247,227,0.03);
  height: 170px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  margin-bottom: 14px;
}
.card-photo .ph__label { color: rgba(255,247,227,0.85); }
.card h3 {
  font-family: 'Caprasimo', serif;
  font-size: 22px;
  margin: 0 0 4px;
  line-height: 1.05;
}
.card .desc { font-size: 13px; line-height: 1.45; margin: 0 0 12px; color: var(--ink-soft); }
.card .row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.card .price {
  font-family: 'Caprasimo', serif;
  font-size: 22px;
  color: var(--red);
}
.card .add,
.card .build-link {
  background: var(--ink);
  color: var(--cream);
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}
.card .add:hover { background: var(--red); }
.card .build-link {
  background: var(--yellow);
  color: var(--ink);
}
.card .build-link:hover { background: var(--green); color: var(--cream); }
.card .badge {
  position: absolute;
  top: -10px; right: 10px;
  background: var(--red);
  color: var(--cream);
  font-family: 'Caprasimo', serif;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transform: rotate(8deg);
  z-index: 2;
}

/* tinted card variants */
.card--yellow { background: var(--yellow-light); }
.card--pink { background: var(--pink); }
.card--cream-2 { background: var(--cream-2); }
.card--green { background: var(--green); color: var(--cream); }
.card--green h3 { color: var(--cream); }
.card--green .desc { color: rgba(255,247,227,0.85); }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  background: rgba(24,20,16,0.55);
  display: none;
  z-index: 200;
}
.cart-drawer.is-open { display: block; }
.cart-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: 440px; max-width: 100%;
  height: 100%;
  background: var(--cream);
  border-left: 3px solid var(--ink);
  box-shadow: -8px 0 0 var(--ink);
  display: flex; flex-direction: column;
}
.cart-drawer__head {
  padding: 24px 28px;
  border-bottom: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer__head h3 {
  font-family: 'Caprasimo', serif; font-size: 28px; margin: 0;
}
.cart-drawer__close {
  width: 36px; height: 36px;
  border: 3px solid var(--ink);
  background: var(--cream);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 28px; }
.cart-drawer__foot {
  padding: 20px 28px;
  border-top: 3px solid var(--ink);
  background: var(--cream-2);
}
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--ink);
  align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__photo {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  --ph-bg: var(--green-deep);
}
.cart-line__name {
  font-family: 'Caprasimo', serif;
  font-size: 16px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.cart-line__meta {
  font-size: 12px;
  color: var(--ink-soft);
}
.cart-line__qty {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
}
.cart-line__qty button {
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  background: var(--cream);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cart-line__qty span {
  font-weight: 800; font-size: 13px;
  min-width: 18px; text-align: center;
}
.cart-line__price {
  font-family: 'Caprasimo', serif;
  font-size: 18px;
  color: var(--red);
  text-align: right;
}
.cart-line__remove {
  display: block; margin-top: 4px;
  font-size: 11px; color: var(--ink-soft);
  background: none; border: 0; padding: 0;
  text-decoration: underline;
}

/* totals */
.totals {
  display: flex; flex-direction: column; gap: 6px;
  margin: 16px 0;
  font-size: 14px;
}
.totals .row { display: flex; justify-content: space-between; }
.totals .row--big {
  font-family: 'Caprasimo', serif;
  font-size: 24px;
  border-top: 2px dashed var(--ink);
  padding-top: 12px;
  margin-top: 6px;
}
.totals .row--big .val { color: var(--red); }

/* ---------- Sticker / star helpers ---------- */
.sticker {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 8px 14px;
  font-family: 'Caprasimo', serif;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  text-align: center;
  line-height: 1.15;
}
.sticker--red { background: var(--red); color: var(--cream); }
.sticker--green { background: var(--green); color: var(--cream); }

.star {
  width: 110px; height: 110px;
  background: var(--green);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Caprasimo', serif;
  font-size: 13px;
  line-height: 1.1;
  border: 3px solid var(--ink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { flex-wrap: wrap; }
  .nav-pill { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .container, .nav, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .nav {
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .logo-mark {
    width: 92px;
    height: 68px;
  }
  .nav-cart {
    flex-shrink: 0;
    padding: 9px 15px;
  }
  .nav-pill {
    gap: 3px;
    overflow: hidden;
  }
  .nav-pill a {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding-top: 56px; }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .section { padding: 60px 20px; }
  .section-head { margin-bottom: 32px; }
  .section-head h1,
  .section-head h2 {
    font-size: clamp(42px, 14vw, 58px);
  }
  .btn,
  .btn--lg {
    justify-content: center;
    max-width: 100%;
    text-align: center;
  }
  .card {
    border-radius: 20px;
    padding: 14px;
  }
  .card .row {
    align-items: flex-start;
    flex-direction: column;
  }
  .card-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .cart-drawer__panel {
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
  .cart-drawer__head,
  .cart-drawer__items,
  .cart-drawer__foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cart-line {
    grid-template-columns: 56px 1fr;
  }
  .cart-line__price {
    grid-column: 2;
    text-align: left;
  }
  .cart-line__photo {
    width: 56px;
    height: 56px;
  }
}
