/* =========================
   Apple-style, warm palette
   using your photos
   ========================= */

/* Tokens */
:root {
  --ink: #0a0a0a;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #0b0b0c;
  --surface: #f5f5f7;
  --card: #ffffff;
  --border: #e5e5ea;
  /* Warm gradient tuned to loaf tones */
  --grad: linear-gradient(90deg, #f59e0b, #fb923c, #f97316);
  --ring: rgba(245, 158, 11, .35);

  /* Motion vars (JS updates) */
  --hero-shift: 0px;
  --panel-shift: 0px;
}

/* Base */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.center {
  text-align: center
}

/* Nav */
/* Always-visible header */
.nav {
  position: fixed;
  /* was: sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, #ffffff 72%, transparent);
  border-bottom: 1px solid #f1f1f3;
}

/* Reserve space for the fixed header */
body {
  padding-top: 56px;
  /* match .nav__inner height */
}

/* If you ever change header height on mobile, adjust padding too */
@media (max-width: 480px) {
  .nav__inner {
    height: 56px;
  }

  /* keep consistent */
  body {
    padding-top: 56px;
  }
}

.nav__inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit
}

.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111
}

.brand__name {
  font-weight: 600;
  letter-spacing: .2px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  /* responsive */
  white-space: nowrap;
  /* keep one line */
}

.nav__links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
  /* prevent wrapping */
  overflow-x: auto;
  /* avoid overflow cutoffs on tiny screens */
}

.nav__links a {
  color: #1c1c1f;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  /* responsive */
  white-space: nowrap;
  /* keep one line per link */
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
}

/* Hero uses your oven photo */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.hero__bg {
  position: absolute;
  inset: -8% -8% 0 -8%;
  background-image: var(--img);
  background-size: cover;
  background-position: center 60%;
  transform: translate3d(0, var(--hero-shift), 0) scale(1.05);
  /* warm lift to match loaf tones
  filter: saturate(1.06) contrast(1.06) brightness(.9); */
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 20%, rgba(0, 0, 0, .02), rgba(0, 0, 0, .65)),
    linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .65));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 40px 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: #f5deb3;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.display {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.lead {
  color: #f1f5f9;
  margin: 10px auto 18px;
  max-width: 720px;
  font-size: clamp(16px, 2.2vw, 20px)
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .2s, transform .05s, box-shadow .2s, background .2s, color .2s;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px)
}

.btn--primary {
  background: #fff;
  color: #111
}

.btn--primary:hover {
  filter: brightness(.98)
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #ffffff26
}

.btn--ghost:hover {
  background: #ffffff12
}

.btn--lg {
  padding: 14px 22px;
  font-size: 16px
}

/* Split (dark) */
.split {
  background: var(--bg-alt);
  color: #f5f5f7;
  padding: 70px 0;
  border-top: 1px solid #101012;
  border-bottom: 1px solid #101012;
}

.split__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center
}

.split__copy .headline {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: -.01em;
}

.split__copy .copy {
  margin: 0 0 14px;
  color: #d6d7da;
  max-width: 640px
}

.split__copy .link {
  color: #ff7676;
  text-decoration: none;
  font-weight: 700
}

.split__copy .link:hover {
  text-decoration: underline
}

.split__media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35)
}

/* Products */
.products {
  padding: 70px 0;
  background: #fff
}

.section-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 36px)
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .05);
  transition: transform .2s, box-shadow .2s
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .08)
}

.card__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover
}

.card__body {
  padding: 14px
}

.card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700
}

.card__text {
  margin: 0;
  color: #6e6e73
}

/* Large visual panel — reuses oven image */
.panel {
  position: relative;
  min-height: 54vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.panel__media {
  position: absolute;
  inset: -8% -8% -8% -8%;
  background-image: var(--img);
  background-size: cover;
  background-position: top center;
  transform: translate3d(0, var(--panel-shift), 0) scale(1.06);
  filter: contrast(1.05) brightness(.88) saturate(1.04);
}

.panel__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 50% 30%, transparent, rgba(0, 0, 0, .65))
}

.panel__content {
  position: relative;
  z-index: 1;
  text-align: center
}

.panel .headline {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.6vw, 36px)
}

.panel .copy {
  margin: 0;
  color: #f1f5f9
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid #ececf1;
  padding: 26px 0;
  color: #6e6e73
}

.footer__grid {
  display: flex;
  flex-direction: column;  /* stack items vertically */
  align-items: center;     /* center horizontally */
  gap: 10px;               /* spacing between nav and copy */
  text-align: center;      /* ensure text is centered */
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1c1c1f;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  /* responsive */
  white-space: nowrap;
  /* keep one line */
}

.footer__nav {
  display: flex;
  gap: 16px;               /* spacing between links */
  justify-content: center; /* keep links centered */
}

.footer__nav a {
  color: #3a3a3d;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  /* responsive */
  white-space: nowrap;
  /* keep one line per link */
}

.footer__nav a:hover {
  text-decoration: underline
}

.footer__copy {
  font-size: 0.9rem;
  color: #6e6e73;
}

/* Focus */
:focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px
}

/* Responsive */
@media (max-width: 980px) {
  .split__grid {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .footer__copy {
    text-align: center
  }
}

@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero__bg,
  .panel__media {
    transform: none !important
  }
}

/* Square grid gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  /* keeps squares */
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* crop nicely into square */
  display: block;
}

.products {
  padding: 3rem 1rem;
  text-align: center;
}

.products h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.product-grid figure {
  margin: 0;
}

.product-grid img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.product-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  /* slate-700 */
  font-weight: 500;
  text-align: center;
}