/* ==========================================================
   Mooie's Bakery — mooiesbakery.com
   Warm, rustic-modern. Charcoal / cream / amber palette.
   ========================================================== */

:root {
  --ink: #2b2320;          /* near-black warm charcoal */
  --ink-soft: #55483f;
  --cream: #faf6ef;        /* page background */
  --cream-dark: #f0e8da;
  --amber: #c97b2d;        /* primary accent — baked crust */
  --amber-deep: #a35f1c;
  --brand: #363d7b;        /* logo navy — pulled from mooieslogo.png */
  --crust: #8a5a33;
  --line: #e2d7c3;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(43, 35, 32, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

a { color: var(--amber-deep); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
header.site {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* The header div carries BOTH classes (`class="wrap nav"`). Setting `padding` here as
   a shorthand zeroed out .wrap's `padding: 0 24px` — same specificity, and this rule
   comes later — so the nav ran flush to the viewport edge on screens near 1100px.
   Longhand only, so the horizontal padding from .wrap survives. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand .logo-img { height: 58px; width: auto; display: block; }

nav.links { display: flex; gap: 26px; align-items: center; }

/* :not(.btn) matters — this selector's specificity (0,1,2) outranks `.btn` (0,1,0),
   so without the exclusion its `padding: 6px 2px` won the cascade and the header
   "Order Now" button rendered with 2px of side padding, text flush to the edges. */
nav.links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.links a:not(.btn):hover { color: var(--ink); }
nav.links a:not(.btn).active { color: var(--ink); border-bottom-color: var(--amber); }

.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;   /* <button> does not inherit font-family from body on its own */
  padding: 11px 22px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--amber-deep); }

.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}

.btn.ghost:hover { background: var(--ink); color: var(--cream) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(30, 22, 18, 0.55), rgba(30, 22, 18, 0.65)),
    url("../images/cookies-hero.jpg") center 40% / cover no-repeat;
}

.hero .inner { max-width: 640px; padding: 90px 0; }

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ecc891;
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 20px; }

.hero p { font-size: 1.12rem; color: #f2eadf; margin-bottom: 32px; }

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .btn.ghost { color: #fff !important; border-color: #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--ink) !important; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }

.section-head { max-width: 560px; margin-bottom: 44px; }

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--amber-deep);
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }

.section-head p { color: var(--ink-soft); }

/* Featured cards (home) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img { height: 230px; width: 100%; object-fit: cover; }

.card .body { padding: 20px 22px 24px; }

.card h3 { font-size: 1.2rem; margin-bottom: 8px; }

.card p { color: var(--ink-soft); font-size: 0.94rem; }

/* Split banner (home, about) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 420px;
  width: 100%;
  object-fit: cover;
}

.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }

.split p { color: var(--ink-soft); margin-bottom: 14px; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }

.cta-band p { color: #cbbfae; margin-bottom: 26px; }

/* ---------- Order page ---------- */
.order-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
  align-items: start;
}

.menu-group { margin-bottom: 40px; }

.menu-group h3 {
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
}

.item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

.item .info { flex: 1; }

.item .info h4 { font-family: var(--font-display); font-size: 1.05rem; }

.item .info p { font-size: 0.85rem; color: var(--ink-soft); }

.item .price { font-weight: 700; white-space: nowrap; margin-right: 6px; }

.stepper { display: flex; align-items: center; gap: 8px; }

.stepper button {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.stepper button:hover { background: var(--ink); color: var(--cream); }

.stepper .qty { min-width: 22px; text-align: center; font-weight: 600; }

/* Cart / order form panel */
.cart {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.cart h3 { font-size: 1.25rem; margin-bottom: 16px; }

#cart-lines { margin-bottom: 14px; }

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.cart-empty { color: var(--ink-soft); font-size: 0.92rem; font-style: italic; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 0 18px;
}

.cart label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--ink-soft);
}

.cart input, .cart textarea, .cart select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--cream);
}

.cart input:focus, .cart textarea:focus { outline: 2px solid var(--amber); border-color: transparent; }

.cart .btn { width: 100%; margin-top: 18px; }

.cart .fine {
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- About page ---------- */
.about-hero {
  background:
    linear-gradient(rgba(30, 22, 18, 0.5), rgba(30, 22, 18, 0.6)),
    url("../images/bakery-case.jpg") center / cover no-repeat;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}

.about-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

.faq { max-width: 760px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; }

.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #b9ac9b;
  padding: 48px 0 28px;
  font-size: 0.88rem;
}

footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}

footer h4 {
  color: var(--cream);
  font-family: var(--font-display);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

footer a { color: #d8ccb9; text-decoration: none; }
footer a:hover { text-decoration: underline; }

footer ul { list-style: none; }
footer li { margin-bottom: 7px; }

footer .legal {
  border-top: 1px solid #4a3e35;
  padding-top: 22px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #8d8172;
}

/* click-to-expand legal disclosure (IL cottage food statement) */
.disclosure { margin-top: 6px; font-size: 0.78rem; line-height: 1.7; }
.disclosure summary {
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  color: inherit;
}
.disclosure summary:hover { opacity: 0.8; }
.disclosure p { margin-top: 4px; }
.soon .disclosure { color: var(--ink-soft); font-size: 0.74rem; max-width: 62ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split img { height: 300px; }
  .order-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  footer .cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.links { gap: 14px; }
  nav.links a:not(.btn) { font-size: 0.85rem; }
  .brand .logo-img { height: 44px; }
  .hero { min-height: 64vh; }
}
