/* ==========================================================================
   The Mindful Loaf — stylesheet
   Plain, hand-written CSS (no build step, no framework) so this is easy to
   edit directly. Colors, type, and spacing values are carried over exactly
   from the original site's design tokens.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-hero-bg: #1a1209;
  --color-hero-fg: #f5efe6;
  --color-hero-fg-muted: #c9bfaf;
  --color-products-bg: #faf6f0;
  --color-about-bg: #f0ebe2;
  --color-contact-bg: #faf6f0;
  --color-card: #ffffff;
  --color-section-fg: #1a1209;
  --color-product-name-fg: #1a1209;
  --color-product-desc-fg: #3d2e1a;
  --color-product-price-fg: #6b4c1e;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-sans: "Lato", sans-serif;

  --spacing-hero-pad: 1.5rem;
  --spacing-logo-gap: 2rem;
  --spacing-hero-sub-gap: 1rem;
  --spacing-hero-body-width: 560px;
  --spacing-section-y: 5rem;
  --spacing-section-x: 1.5rem;
  --spacing-about-heading-gap: 1.5rem;
  --spacing-about-width: 700px;

  --text-hero-heading: clamp(2.2rem, 5vw, 3.8rem);
  --text-hero-body: 1.125rem;
  --text-section-heading: clamp(1.8rem, 3vw, 2.8rem);
  --text-about-body: 1.1rem;

  --hero-logo-size: 220px;
}

/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-section-fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--color-hero-bg);
  overflow: hidden;
  text-align: center;
  padding: var(--spacing-hero-pad);
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-logo {
  width: var(--hero-logo-size);
  height: auto;
  margin-bottom: var(--spacing-logo-gap);
}
.hero-heading {
  font-family: var(--font-heading);
  font-size: var(--text-hero-heading);
  color: var(--color-hero-fg);
  line-height: 1.2;
  margin-bottom: var(--spacing-hero-sub-gap);
}
.hero-body {
  font-family: var(--font-sans);
  font-size: var(--text-hero-body);
  color: var(--color-hero-fg-muted);
  max-width: var(--spacing-hero-body-width);
  margin-bottom: 2.5rem;
}
.hero-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-hero-fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  border-bottom: 1px solid rgba(245, 239, 230, 0.3);
  padding-bottom: 2px;
  transition: opacity 0.15s, border-color 0.15s;
}
.hero-nav a:hover {
  opacity: 1;
  border-color: var(--color-hero-fg);
}

/* ── Order CTA button ─────────────────────────────────────────────────── */
.btn-order {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-order--light { background-color: var(--color-hero-fg); color: var(--color-hero-bg); }
.btn-order--light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.btn-order--dark { background-color: var(--color-hero-bg); color: var(--color-hero-fg); }
.btn-order--dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,30,0,0.22); }

.hero-cta { margin-bottom: 2.5rem; }

.order-online-block {
  background-color: var(--color-hero-bg);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.order-online-block h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-hero-fg);
  margin-bottom: 0.5rem;
}
.order-online-block p {
  font-family: var(--font-sans);
  color: var(--color-hero-fg-muted);
  margin-bottom: 1.25rem;
}
.order-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-product-desc-fg);
  opacity: 0.6;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.order-divider::before, .order-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: currentColor;
  opacity: 0.3;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Section shared ───────────────────────────────────────────────────── */
section { padding: var(--spacing-section-y) var(--spacing-section-x); }
.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-section-heading);
  color: var(--color-section-fg);
  text-align: center;
}

/* ── About ────────────────────────────────────────────────────────────── */
.about-section { background-color: var(--color-about-bg); }
.about-inner {
  max-width: var(--spacing-about-width);
  margin: 0 auto;
  text-align: center;
}
.about-inner .section-heading { margin-bottom: var(--spacing-about-heading-gap); }
.about-body {
  font-family: var(--font-sans);
  font-size: var(--text-about-body);
  color: var(--color-product-desc-fg);
  line-height: 1.625;
}

/* ── Products ─────────────────────────────────────────────────────────── */
.products-section { background-color: var(--color-products-bg); }
.products-inner { max-width: 64rem; margin: 0 auto; }
.products-inner .section-heading { margin-bottom: 1rem; }
.products-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--color-section-fg);
  opacity: 0.75;
  text-align: center;
  margin-bottom: 3.5rem;
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}
.product-card { display: flex; flex-direction: column; }
.product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-product-name-fg);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-product-price-fg);
  margin-bottom: 0.75rem;
}
.product-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-product-desc-fg);
  line-height: 1.625;
  opacity: 0.8;
}
@media (min-width: 768px) {
  .product-name { font-size: 1.875rem; }
  .product-desc { font-size: 1.125rem; }
}

/* ── Contact / How to order ──────────────────────────────────────────── */
.contact-section { background-color: var(--color-contact-bg); }
.contact-inner {
  max-width: var(--spacing-about-width);
  margin: 0 auto;
  text-align: center;
}
.contact-inner > .section-heading { margin-bottom: var(--spacing-about-heading-gap); }
.contact-intro { font-family: var(--font-sans); font-size: var(--text-about-body); color: var(--color-product-desc-fg); margin-bottom: 1.5rem; line-height: 1.625; }
.contact-schedule { font-family: var(--font-sans); font-size: var(--text-about-body); color: var(--color-product-desc-fg); margin-bottom: 2rem; line-height: 1.625; }
.contact-details {
  text-align: left;
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-block h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-product-name-fg);
  margin-bottom: 0.5rem;
}
.contact-block p {
  font-family: var(--font-sans);
  font-size: var(--text-about-body);
  color: var(--color-product-desc-fg);
  margin-top: 0.5rem;
}
.contact-block a { text-decoration: underline; }
.pickup-block { margin-bottom: 1rem; }
.pickup-block h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-product-name-fg);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { background-color: var(--color-hero-bg); color: var(--color-hero-fg); }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 4rem 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: span 2; }
  .footer-inner { padding: 5rem 3rem; }
}
.footer-brand-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.footer-brand-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-hero-fg); }
.footer-tagline { color: var(--color-hero-fg-muted); max-width: 28rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--color-hero-fg-muted); transition: opacity 0.15s; opacity: 0.85; }
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 1.5rem; height: 1.5rem; }
.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-hero-fg-muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; color: var(--color-hero-fg-muted); }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 191, 175, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.875rem; color: var(--color-hero-fg-muted); text-align: center; }
.footer-bottom a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-hero-fg-muted); transition: opacity 0.15s; }
.footer-bottom a:hover { opacity: 1; }
