/* ===========================================================
   HolaFresh — editorial landing
   palette: cream + ink + deep gold
   =========================================================== */

:root {
  --bg: #f4efe6;
  --bg-soft: #ece5d6;
  --ink: #161513;
  --ink-soft: #3b3833;
  --muted: #8a8074;
  --rule: #d8cfbd;
  --gold: #c8932a;
  --gold-deep: #a8761b;
  --cream: #faf6ec;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}
.wordmark-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-primary {
  display: flex;
  gap: 28px;
}
.nav-primary a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-primary a:hover { color: var(--ink); }
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-primary a:hover::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.lang-switch button {
  background: none;
  border: none;
  font: inherit;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 4px 2px;
  cursor: pointer;
}
.lang-switch button.is-active {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(60px, 9vw, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 24px;
}
.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 8.5vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.display em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 28px 0 36px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-meta {
  align-self: end;
  padding-bottom: 8px;
}
.stat-strip {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.stat-strip > div { display: flex; flex-direction: column; }
.stat-strip dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.stat-strip dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-rule {
  height: 1px;
  background: var(--rule);
  margin-top: clamp(48px, 8vw, 90px);
}

/* ---------- SECTION HEAD ---------- */
section { scroll-margin-top: 90px; }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 36px;
  align-items: baseline;
  margin: 0 0 56px;
}
.section-head .numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin: 0;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  grid-column: 2 / -1;
}
.section-head .section-sub {
  grid-column: 2 / -1;
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 44em;
  margin: 18px 0 0;
}

/* ---------- WORK ---------- */
.work {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--bg);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-img {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  position: relative;
}
.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-img img { transform: scale(1.03); }
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.work-industry {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-place {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- PROCESS ---------- */
.process {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--bg-soft);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.steps li {
  padding: 40px clamp(20px, 2.5vw, 36px) 40px 0;
  border-right: 1px solid var(--rule);
}
.steps li:last-child { border-right: none; padding-right: 0; }
.steps li:not(:first-child) { padding-left: clamp(20px, 2.5vw, 36px); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin: 0 0 16px;
}
.steps h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- WHY ---------- */
.why {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--ink);
  color: var(--cream);
}
.why .section-head h2 { color: var(--cream); }
.why .section-head .numeral { color: var(--gold); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 64px);
}
.why-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--cream);
}
.why-item h3::before {
  content: '— ';
  color: var(--gold);
}
.why-item p {
  margin: 0;
  font-size: 16px;
  color: rgba(250, 246, 236, 0.78);
  max-width: 32em;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy .numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin: 0 0 18px;
}
.contact-copy h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.contact-copy .lede {
  margin: 0 0 32px;
}
.contact-direct {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.contact-direct li { margin: 0 0 6px; color: var(--ink-soft); }
.contact-direct a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-direct a:hover { color: var(--ink); border-color: var(--ink); }

.contact-form {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  font-weight: 400;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { margin-top: 6px; justify-self: start; }
.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-soft);
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}
.footer-brand .wordmark-mark { font-size: 20px; }
.footer-tag { margin: 0; color: var(--muted); }
.footer-mail a {
  text-decoration: none;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--rule);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { padding-bottom: 0; }
  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 24px 0 0;
    gap: 12px;
  }
  .stat-strip dd { font-size: 24px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps li {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 28px 0;
  }
  .steps li:last-child { border-bottom: none; }
  .steps li:not(:first-child) { padding-left: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-head h2,
  .section-head .section-sub { grid-column: 1; }
}

@media (max-width: 640px) {
  .nav-primary { display: none; }
  .header-row { height: 60px; }
  .work-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
