/* ============================================
   Sweet Crumbs — Stylesheet
   Palette: Flour white, dark rye, warm honey,
            dusty sage, brick crust
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Custom properties ── */
:root {
  --flour:   #FAF7F2;
  --rye:     #1E1A14;
  --honey:   #C8853A;
  --honey-lt:#E8A85A;
  --sage:    #8A9E82;
  --sage-lt: #C6D5C2;
  --crust:   #7A3B1E;
  --cream:   #F0E8D8;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --step-0: clamp(0.9rem,  0.85rem + 0.25vw, 1rem);
  --step-1: clamp(1.1rem,  1rem    + 0.5vw,  1.25rem);
  --step-2: clamp(1.4rem,  1.2rem  + 1vw,    1.8rem);
  --step-3: clamp(2rem,    1.6rem  + 2vw,    3rem);
  --step-4: clamp(2.8rem,  2rem    + 4vw,    4.5rem);

  --radius: 4px;
  --transition: 220ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: var(--step-0);
  font-weight: 300;
  color: var(--rye);
  background: var(--flour);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Skip nav ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--honey);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius);
  transition: top var(--transition);
  z-index: 200;
}
.skip-nav:focus { top: 1rem; }

/* ── Site header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--flour);
  border-bottom: 1px solid var(--cream);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--step-2);
  color: var(--rye);
  letter-spacing: -0.5px;
}
.logo span { color: var(--honey); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--rye);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--honey);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--honey); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  background: var(--honey);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--crust) !important; color: #fff !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--rye);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: var(--step-0);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 120ms;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--honey);
  color: #fff;
  border-color: var(--honey);
}
.btn-primary:hover { background: var(--crust); border-color: var(--crust); }

.btn-outline {
  background: transparent;
  color: var(--rye);
  border-color: var(--rye);
}
.btn-outline:hover { background: var(--rye); color: var(--flour); }

.btn-white {
  background: #fff;
  color: var(--rye);
}
.btn-white:hover { background: var(--cream); }

/* ── Section rhythm ── */
.section { padding: 5rem 1.5rem; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--rye); color: var(--flour); }

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--step-3);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: var(--step-1);
  max-width: 52ch;
  opacity: 0.85;
}

/* ── Hero ── */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  gap: 4rem;
}

.hero-content { max-width: 540px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--sage);
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.05;
  color: var(--rye);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--honey);
}

.hero-desc {
  font-size: var(--step-1);
  color: var(--rye);
  opacity: 0.75;
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-wrap {
  position: relative;
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 2px solid var(--sage-lt);
  border-radius: var(--radius);
  z-index: 0;
}
.hero-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  z-index: 2;
  background: var(--honey);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.hero-badge strong { display: block; font-size: var(--step-2); font-style: normal; }

/* ── Products / bakes ── */
.bakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.bake-card {
  background: var(--flour);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bake-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,26,20,0.1);
}

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

.bake-card-body { padding: 1.5rem; }

.bake-card-body h3 {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.bake-card-body p {
  font-size: var(--step-0);
  opacity: 0.75;
  margin-bottom: 1rem;
}

.bake-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage-lt);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* ── Process strip ── */
.process-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step { text-align: center; }

.process-num {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.section--dark .process-num { color: rgba(255,255,255,0.08); }

.process-step h3 {
  font-family: var(--ff-display);
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}

.process-step p { font-size: var(--step-0); opacity: 0.7; }

/* ── Order / collection form ── */
.order-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.order-info h3 {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  margin-bottom: 1rem;
}

.order-info p { opacity: 0.8; margin-bottom: 0.75rem; }

.order-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-0);
}
.order-detail-icon {
  width: 36px; height: 36px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Forms ── */
.form-card {
  background: var(--flour);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--rye);
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: var(--step-0);
  font-weight: 300;
  color: var(--rye);
  background: var(--flour);
  border: 1px solid #D4C9B8;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(200,133,58,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-notice {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  background: var(--sage-lt);
  color: var(--rye);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  margin-top: 1rem;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial-stars { color: var(--honey); margin-bottom: 0.75rem; }

.testimonial p {
  font-size: var(--step-0);
  line-height: 1.75;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ── Newsletter ── */
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.newsletter-text h2 {
  font-family: var(--ff-display);
  font-size: var(--step-3);
  margin-bottom: 0.5rem;
}
.newsletter-text p { opacity: 0.75; }

.newsletter-form-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.newsletter-form-wrap input[type="email"] {
  font-family: var(--ff-body);
  font-size: var(--step-0);
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--flour);
  width: 240px;
  outline: none;
  transition: background var(--transition);
}
.newsletter-form-wrap input[type="email"]::placeholder { color: rgba(250,247,242,0.4); }
.newsletter-form-wrap input[type="email"]:focus { background: rgba(255,255,255,0.18); }

#newsletter-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--sage-lt);
  display: none;
}

/* ── Footer ── */
.site-footer {
  background: var(--rye);
  color: var(--flour);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { opacity: 0.55; font-size: var(--step-0); max-width: 32ch; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 1rem;
}

.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  opacity: 0.7;
  font-size: var(--step-0);
  transition: opacity var(--transition);
}
.footer-col a:hover { opacity: 1; }

.footer-base {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.45;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }
  .hero h1 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
  .hero-image-wrap { display: none; }

  .order-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }

  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--flour);
    border-bottom: 1px solid var(--cream);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .newsletter-form-wrap { flex-direction: column; width: 100%; }
  .newsletter-form-wrap input[type="email"] { width: 100%; }
  .newsletter-form-wrap .btn { width: 100%; text-align: center; }

  .process-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .process-strip { grid-template-columns: 1fr; }
}
