/* ============================================================
   Crumble & Fudge — brand stylesheet
   Palette pulled from the C&F logo: cream + chocolate + gold board
   ============================================================ */

:root {
  --cream:      #f5efe6;   /* logo circle */
  --cream-soft: #fbf8f2;   /* cards */
  --choc-deep:  #2a1a10;   /* darkest brown */
  --choc:       #3a2417;   /* logo lettering */
  --milk:       #8b5e3c;   /* milk chocolate accent */
  --gold:       #c8a04a;   /* cake board */
  --gold-soft:  #d8b878;
  --line:       #e3d8c7;   /* hairline on cream */
  --ink:        #2a1a10;
  --muted:      #7a6a59;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body:    'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 18px 40px -22px rgba(42, 26, 16, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Brand lockup mark ---------- */
.brandmark { font-family: var(--display); color: var(--choc); text-align: center; line-height: 1; }
.brandmark .top { font-size: 1.6rem; font-weight: 600; letter-spacing: 0.14em; }
.brandmark .mid { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0; }
.brandmark .mid::before,
.brandmark .mid::after { content: ""; height: 1px; width: 26px; background: var(--milk); opacity: 0.7; }
.brandmark .amp { font-style: italic; color: var(--milk); font-size: 1.05rem; }
.brandmark .bot { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.22em; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo img { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-soft); padding: 5px; border: 1px solid var(--line); }
.nav__logo .nav__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.12em; color: var(--choc); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); padding: 9px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--choc); background: var(--cream-soft); }
.nav__links a.active { color: var(--choc); }
.nav__links a.cta {
  background: var(--choc); color: var(--cream); padding: 10px 18px;
}
.nav__links a.cta:hover { background: var(--choc-deep); color: var(--cream); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--choc); color: var(--cream); }
.btn--solid:hover { background: var(--choc-deep); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--choc); border-color: var(--choc); }
.btn--ghost:hover { background: var(--choc); color: var(--cream); }
.btn--wa { background: #128c4f; color: #fff; }
.btn--wa:hover { background: #0f7a45; box-shadow: 0 16px 30px -16px rgba(18,140,79,0.7); }

/* ============================================================
   HERO  (about page)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #4a2e1c 0%, var(--choc-deep) 55%, #1c1009 100%);
  color: var(--cream);
  text-align: center;
  padding: 96px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
}
.hero__badge {
  width: 168px; height: 168px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; margin: 0 auto 30px; box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}
.hero__badge img { width: 118px; }
.hero__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 14px; animation: rise 0.8s 0.05s ease both;
}
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02; margin: 0 0 18px; letter-spacing: 0.01em;
  animation: rise 0.8s 0.1s ease both;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__sub {
  max-width: 640px; margin: 0 auto 34px; font-size: 1.1rem; color: #e7d9c8;
  animation: rise 0.8s 0.16s ease both;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: rise 0.8s 0.22s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* stat strip */
.stats {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 30px; position: relative; z-index: 1;
}
.stat { padding: 0 36px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.14); }
.stat__num { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: var(--gold-soft); }
.stat__label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #cdbba6; }

/* ============================================================
   SECTIONS (about)
   ============================================================ */
.section { padding: 84px 0; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-soft); }

.eyebrow {
  font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--milk); margin: 0 0 14px;
}
.section h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08; margin: 0 0 18px; color: var(--choc);
}
.lede { font-size: 1.12rem; color: #4a3a2c; max-width: 60ch; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-card {
  background: linear-gradient(160deg, #3a2417, #241308);
  color: var(--cream); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow);
}
.about-card .brandmark { color: var(--cream); margin-bottom: 22px; }
.about-card .brandmark .top, .about-card .brandmark .bot { color: var(--cream); }
.about-card .brandmark .mid::before, .about-card .brandmark .mid::after { background: var(--gold-soft); }
.about-card .brandmark .amp { color: var(--gold-soft); }
.about-card p { color: #e7d9c8; margin: 0; }

/* what I do — cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.2s, box-shadow 0.2s;
}
.section--cream .card { background: var(--cream-soft); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--choc); color: var(--gold-soft); font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 600; margin: 0 0 8px; color: var(--choc); }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* CTA band */
.band {
  background: radial-gradient(120% 120% at 50% 0%, #4a2e1c, var(--choc-deep));
  color: var(--cream); text-align: center; padding: 76px 0; border-radius: var(--radius);
}
.band h2 { color: var(--cream); }
.band p { color: #e7d9c8; max-width: 52ch; margin: 0 auto 28px; }

/* ============================================================
   SHOP
   ============================================================ */
.shop-hero {
  background: radial-gradient(120% 90% at 50% -20%, #4a2e1c, var(--choc-deep));
  color: var(--cream); text-align: center; padding: 70px 0 56px;
}
.shop-hero .brandmark { color: var(--cream); margin-bottom: 18px; }
.shop-hero .brandmark .top, .shop-hero .brandmark .bot { color: var(--cream); }
.shop-hero .brandmark .mid::before, .shop-hero .brandmark .mid::after { background: var(--gold-soft); }
.shop-hero .brandmark .amp { color: var(--gold-soft); }
.shop-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 12px; }
.shop-hero p { color: #e7d9c8; margin: 0; }

.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding: 64px 0 100px; }

.menu-group { margin-bottom: 44px; }
.menu-group__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.menu-group__head h2 { font-family: var(--display); font-weight: 600; font-size: 1.9rem; color: var(--choc); margin: 0; }
.menu-group__head .rule { flex: 1; height: 1px; background: var(--line); }
.menu-group__head .note { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

.product {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px; transition: box-shadow 0.2s, border-color 0.2s;
}
.product:hover { box-shadow: var(--shadow); border-color: var(--gold-soft); }
.product__info h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 0 0 4px; color: var(--choc); }
.product__info p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.product__price { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--milk); }
.product__price .was { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.product__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.deal-tag {
  display: inline-block; background: var(--gold); color: var(--choc-deep);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}

/* qty stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--cream); }
.stepper button {
  width: 38px; height: 38px; border: none; background: transparent; cursor: pointer;
  font-size: 1.2rem; color: var(--choc); transition: background 0.15s;
}
.stepper button:hover { background: var(--cream); }
.stepper button:hover { background: #efe6d6; }
.stepper .qty { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Order tray ---------- */
.tray {
  position: sticky; top: 96px;
  background: linear-gradient(165deg, #3a2417, #221207);
  color: var(--cream); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow);
}
.tray h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin: 0 0 4px; color: var(--cream); }
.tray__sub { font-size: 0.82rem; color: #c6b29c; margin: 0 0 20px; }
.tray__items { list-style: none; margin: 0 0 18px; padding: 0; min-height: 40px; }
.tray__empty { color: #b6a48f; font-size: 0.92rem; font-style: italic; }
.tray__item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
.tray__item span:first-child { color: #ecdfce; }
.tray__item .ti-price { color: var(--gold-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tray__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px; }
.tray__total .lbl { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #c6b29c; }
.tray__total .amt { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--gold-soft); }
.tray__save { font-size: 0.82rem; color: var(--gold-soft); margin: 0 0 18px; min-height: 1.1em; }
.tray .btn--wa { width: 100%; justify-content: center; }
.tray__hint { font-size: 0.74rem; color: #b6a48f; text-align: center; margin: 12px 0 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--choc-deep); color: #d8c8b6; padding: 56px 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brandmark { color: var(--cream); }
.footer .brandmark .top, .footer .brandmark .bot { color: var(--cream); }
.footer .brandmark .mid::before, .footer .brandmark .mid::after { background: var(--gold-soft); }
.footer .brandmark .amp { color: var(--gold-soft); }
.footer__contact { text-align: right; font-size: 0.95rem; line-height: 1.8; }
.footer__contact a { color: var(--gold-soft); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__bar { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: #9d8c79; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .tray { position: static; }
  .stat { padding: 0 22px; }
}
@media (max-width: 560px) {
  .nav__links a:not(.cta) { display: none; }
  .product { grid-template-columns: 1fr; }
  .product__right { align-items: flex-start; }
  .stat + .stat { border-left: none; }
  .hero { padding: 64px 0 80px; }
}

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* checkout disabled (empty order) */
.btn--wa.is-disabled { opacity: 0.45; pointer-events: none; }

/* badge variant of the brandmark for the hero circle */
.brandmark--badge .top { font-size: 1.5rem; }
.brandmark--badge .bot { font-size: 1.4rem; letter-spacing: 0.2em; }
.brandmark--badge .amp { font-size: 0.95rem; }

/* nav monogram badge (C & F) */
.nav__badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream-soft); border: 1px solid var(--line);
  display: grid; place-items: center; line-height: 1;
  font-family: var(--display); color: var(--choc);
}
.nav__badge .t, .nav__badge .b { font-size: 1.05rem; font-weight: 600; }
.nav__badge .a { font-size: 0.7rem; font-style: italic; color: var(--milk); margin: 0 1px; }
