/* =====================================================================
   SOURCE INC. — styles
   ---------------------------------------------------------------------
   1. Colours & fonts (change the brand here)
   2. Basics
   3. Buttons
   4. Header
   5. Hero
   6. Sections
   7. Product cards
   8. Info cards & steps
   9. Order form
   10. Footer
   11. Small screens (phones)
   ===================================================================== */

/* ---------- 1. Colours & fonts ----------
   These are "variables". Change a colour here and it updates everywhere. */
:root {
  --charcoal: #2a2826;      /* dark background, like the rub labels */
  --charcoal-2: #353230;    /* slightly lighter dark, for cards */
  --cream: #f6f0e6;         /* light background, like a bread crust inside */
  --cream-2: #ece3d4;       /* slightly darker cream, for cards */
  --ink: #26221f;           /* main text on light backgrounds */
  --muted: #6d6359;         /* softer text on light backgrounds */
  --ember: #d4642a;         /* accent colour: chilli / fire orange */
  --ember-dark: #b04f1d;
  --white: #fffaf3;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --max: 1120px;            /* widest the content gets */
}

/* ---------- 2. Basics ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

a { color: inherit; }

/* Centres the content and stops it getting too wide on big screens */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { max-width: 760px; }

.hidden { display: none; }

/* Offsets anchor jumps so the sticky header doesn't cover headings */
section[id] { scroll-margin-top: 70px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--ember);
  border-radius: 999px;
  background: var(--ember);
  color: var(--white);
  font: 700 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Outline version of the button */
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: currentColor; }
.section-light .btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }

.btn-small { padding: 8px 18px; font-size: 0.95rem; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(42, 40, 38, 0.95);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand img { width: 48px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--ember); }

/* ---------- 5. Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 100, 42, 0.18), transparent 60%),
    var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 56px 0 88px;
}
.hero-logo { width: min(420px, 80%); margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 16px;
}
.hero h1 span { color: var(--ember); }
.lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
  color: #e6ddd0;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 6. Sections ---------- */
.section { padding: 80px 0; }
.section-light { background: var(--cream); color: var(--ink); }
.section-dark { background: var(--charcoal); color: var(--white); }

.eyebrow {
  margin: 0 0 6px;
  color: var(--ember);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.section-intro { max-width: 620px; margin: 0 0 40px; font-size: 1.15rem; }
.section-light .section-intro { color: var(--muted); }
.section-dark .section-intro { color: #d9cfc2; }

.coming-soon { margin-top: 36px; color: #d9cfc2; }

/* ---------- 7. Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--cream-2);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .photo {
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
/* "multiply" makes white photo backgrounds blend into the card colour */
.product-card .photo img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.product-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin-bottom: 4px; }
.product-card .desc { margin: 0 0 12px; color: var(--muted); font-size: 0.98rem; flex: 1; }
.product-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.product-card .price { font-weight: 700; font-size: 1.15rem; }
.product-card .size { color: var(--muted); font-size: 0.9rem; }

/* Bread cards have no photo yet, so give them a warm text-only look */
.bread-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 420px)); }
.bread-grid .product-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-left: 5px solid var(--ember);
}
.bread-grid .product-card .body { padding: 26px 28px; }
.bread-grid .product-card h3 { font-size: 1.5rem; }

/* ---------- 8. Info cards & steps ---------- */
.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.info-card {
  border-top: 3px solid var(--ember);
  padding-top: 16px;
}
.info-card p { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.steps p { margin: 0; color: var(--muted); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font: 700 1.2rem var(--font-head);
}

/* ---------- 9. Order form ---------- */
.order-form fieldset {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 22px 8px;
  margin: 0 0 22px;
}
.order-form legend {
  padding: 0 8px;
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.order-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
}
.order-form .optional { font-weight: 400; color: #bfb4a6; }
.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="email"],
.order-form select,
.order-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: var(--charcoal-2);
  color: var(--white);
  font: 400 1rem var(--font-body);
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}
/* Red outline on boxes the customer still needs to fill in */
.order-form .invalid { border-color: #ff7b6b; }

/* Each product line in the form: name on the left, quantity on the right */
.order-group-title {
  margin: 8px 0 6px;
  color: var(--ember);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}
.order-form .order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 !important;
}
.order-item .item-name { font-weight: 600; }
.order-item .item-price { display: block; font-weight: 400; color: #bfb4a6; font-size: 0.92rem; }
.order-item input[type="number"] {
  width: 76px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: var(--charcoal-2);
  color: var(--white);
  font: 600 1rem var(--font-body);
  text-align: center;
}
.order-total { margin: 14px 0; text-align: right; }
.order-total strong { font-size: 1.2rem; color: var(--ember); }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.form-status { min-height: 1.6em; margin-top: 16px; font-weight: 600; }
.form-status.ok { color: #9ee6a8; }
.form-status.error { color: #ff9b8f; }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: #1f1d1c;
  color: #cfc5b8;
  text-align: center;
  padding: 48px 0;
}
.footer-inner img { margin: 0 auto 16px; width: 160px; }
.footer-inner p { margin: 4px 0; }
.footer-inner .small { font-size: 0.85rem; opacity: 0.7; margin-top: 12px; }

/* ---------- 11. Small screens (phones) ---------- */
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }   /* hide text links, keep the Order button */
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 64px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card .body { padding: 12px 14px 16px; }
  .product-card h3 { font-size: 1.05rem; }
  .product-card .desc { font-size: 0.9rem; }
  .bread-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; text-align: center; }
}
