/* CNC Bakers — Kids Baking Classes landing page
   Brand tokens lifted from main site css/theme-warm.css
   Fonts: Dancing Script (script), Cormorant Garamond (serif), Lato (sans) */

:root {
  --cream:        #f5ede5;
  --cream-soft:   #eddbd2;
  --choc:         #3d1e0f;
  --choc-soft:    #2c1208;
  --rose:         #c4897b;
  --rose-soft:    #f5c6bb;
  --white:        #ffffff;
  --shadow:       0 6px 24px rgba(61, 30, 15, 0.10);
  --shadow-lg:    0 12px 40px rgba(61, 30, 15, 0.18);
  --radius:       14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--cream);
  color: var(--choc);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose); text-decoration: none; }
a:hover { color: var(--choc); }

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

/* ─── Layout ─────────────────────────────────────────────── */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.topbar {
  padding: 18px 0 8px;
  text-align: center;
  border-bottom: 1px solid var(--cream-soft);
  background: var(--cream);
}
.topbar img { height: 64px; width: auto; margin: 0 auto; }
.topbar .tag {
  font-family: 'Dancing Script', cursive;
  color: var(--rose);
  font-size: 22px;
  margin-top: 4px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 36px 0 28px;
  text-align: center;
}
.hero .eyebrow {
  font-family: 'Dancing Script', cursive;
  color: var(--rose);
  font-size: 28px;
  margin-bottom: 6px;
  line-height: 1;
}
.hero h1 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--choc);
}
.hero p.lead {
  max-width: 560px;
  margin: 0 auto 8px;
  font-size: 17px;
  color: #5a3a28;
}
.hero .meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
}
.hero .pill {
  background: var(--cream-soft);
  border: 1px solid #e3cdc1;
  color: var(--choc);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ─── Section heading ─────────────────────────────────────── */
.section { padding: 22px 0; }
.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  margin: 0 0 14px;
  color: var(--choc);
}
.section h2 .script {
  font-family: 'Dancing Script', cursive;
  color: var(--rose);
  font-size: 26px;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 400;
}

/* ─── What kids will bake (chips) ─────────────────────────── */
.bake-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.bake-chip {
  background: var(--white);
  border: 1.5px solid var(--rose-soft);
  color: var(--choc);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.take-home {
  background: var(--cream-soft);
  border-left: 4px solid var(--rose);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--choc);
  font-style: italic;
  margin: 0;
}

/* ─── Upcoming classes ────────────────────────────────────── */
.batches { display: grid; gap: 12px; }
.batch {
  background: var(--white);
  border: 1.5px solid var(--cream-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  position: relative;
}
.batch-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--choc);
  margin-bottom: 6px;
}
.batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: #6b4a37;
}
.batch-meta span { display: inline-flex; align-items: center; gap: 4px; }
.batch--closed { opacity: .55; }
.batch-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: #e3cdc1;
  color: var(--choc);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.batches-empty {
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 15px;
  color: var(--choc);
  text-align: center;
  margin: 0;
}

/* ─── Class card (single, replaces old radio list) ────────── */
.class-card {
  background: var(--white);
  border: 2px solid var(--rose-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.class-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.class-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--choc);
}
.class-card-meta {
  font-size: 14px;
  color: #6b4a37;
  margin-top: 2px;
}
.class-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--rose);
  white-space: nowrap;
}
.class-card-price small {
  font-family: 'Lato', sans-serif;
  color: #8a6a55;
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
  display: block;
  text-align: right;
}

/* ─── Contact card ────────────────────────────────────────── */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--choc);
}
.contact-card p {
  margin: 0 0 16px;
  color: #6b4a37;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.btn-ghost {
  display: inline-block;
  background: var(--cream-soft);
  color: var(--choc) !important;
  border: 1.5px solid var(--cream-soft);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover {
  background: var(--rose-soft);
  border-color: var(--rose);
}

/* ─── Form ────────────────────────────────────────────────── */
form .row { display: grid; gap: 14px; }
form .row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) {
  form .row.two { grid-template-columns: 1fr; }
}

label.field {
  display: block;
  font-size: 13px;
  color: #6b4a37;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
input[type=text], input[type=tel], input[type=email], input[type=number], textarea, select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid #e3cdc1;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--choc);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196, 137, 123, .18);
}
textarea { resize: vertical; min-height: 80px; }

/* ─── Total + CTA ────────────────────────────────────────── */
.total {
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.total .lbl {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--choc);
}
.total .amt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--rose);
}

.btn {
  display: inline-block;
  background: var(--choc);
  color: var(--white) !important;
  border: 2px solid var(--choc);
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  width: 100%;
  margin-top: 14px;
}
.btn:hover { background: var(--rose); border-color: var(--rose); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ─── Status messages ────────────────────────────────────── */
.status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.status.show { display: block; }
.status.error { background: #fdecea; color: #842029; border: 1px solid #f5c2c7; }
.status.info  { background: #fff4ec; color: var(--choc); border: 1px solid var(--rose-soft); }

/* ─── Footer ─────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 32px 20px 40px;
  font-size: 13px;
  color: #8a6a55;
}
.foot .script {
  font-family: 'Dancing Script', cursive;
  color: var(--rose);
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}
.foot a { color: var(--choc); text-decoration: underline; }

/* ─── Responsive breakpoints ─────────────────────────────── */
/* Small phones (≤ 380px) */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .topbar img { height: 52px; }
  .topbar .tag { font-size: 18px; }
  .hero { padding: 24px 0 20px; }
  .hero .eyebrow { font-size: 22px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .section h2 { font-size: 24px; }
  .section h2 .script { font-size: 22px; }
  .option { padding: 16px 14px 16px 50px; }
  .option .radio { left: 14px; top: 18px; width: 20px; height: 20px; }
  .option .opt-title { font-size: 16px; }
  .option .opt-price { font-size: 19px; }
  .total .lbl { font-size: 16px; }
  .total .amt { font-size: 24px; }
  .btn { padding: 13px 22px; font-size: 15px; }
  input, textarea, select { padding: 11px 12px; }
}

/* Phones (≤ 520px) — already partially handled inline; also stack the total nicely */
@media (max-width: 520px) {
  .total {
    flex-direction: row;
    align-items: baseline;
  }
  .hero h1 { font-size: 34px; }
  .hero .meta-pills { gap: 6px; }
  .hero .pill { padding: 5px 12px; font-size: 13px; }
}

/* Tablet (≥ 600px) */
@media (min-width: 600px) {
  .topbar { padding: 22px 0 12px; }
  .topbar img { height: 72px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 46px; }
  .hero p.lead { font-size: 18px; }
  .section { padding: 28px 0; }
  .section h2 { font-size: 32px; }
}

/* Desktop (≥ 900px) — keep the form a comfortable reading width but expand the chrome */
@media (min-width: 900px) {
  .wrap { max-width: 760px; padding: 0 24px; }
  .hero h1 { font-size: 52px; }
  .hero .eyebrow { font-size: 32px; }
  .hero p.lead { font-size: 19px; max-width: 620px; }
  .topbar img { height: 84px; }
  .topbar .tag { font-size: 26px; }
  .section h2 { font-size: 36px; }
  .section h2 .script { font-size: 30px; }
  .option { padding: 22px 22px 22px 64px; }
  .option .radio { left: 22px; top: 26px; width: 24px; height: 24px; }
  .option .opt-title { font-size: 18px; }
  .option .opt-price { font-size: 24px; }
  .btn { font-size: 17px; padding: 16px 32px; }
}

/* Large desktop (≥ 1200px) — everything else stays the same; main aim is breathing room */
@media (min-width: 1200px) {
  .wrap { max-width: 820px; }
}

/* Reduced-motion users — skip transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
