/* =====================================================================
   New Era Chefs — Luxury recipe lead-form landing
   ===================================================================== */
:root {
  --espresso: #12100d;
  --espresso-2: #1b1813;
  --charcoal: #0c0a08;
  --cream: #f5efe4;
  --cream-dim: #d9d1c2;
  --muted: #a79c88;
  --gold: #d4af6a;
  --gold-soft: #e7cd97;
  --gold-deep: #b8914b;
  --line: rgba(212, 175, 106, 0.18);
  --card: #17140f;

  --serif: "Playfair Display", Georgia, serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--espresso);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* ---------- Shared typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow-line {
  width: clamp(1.6rem, 5vw, 2.75rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.4rem, 6vw, 4rem);
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #221c10;
  box-shadow: 0 12px 30px -12px rgba(212, 175, 106, 0.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(212, 175, 106, 0.7);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(245, 239, 228, 0.02);
  padding: 0.6rem 1.2rem;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
}
.btn-inline {
  margin-top: 1.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 175, 106, 0.06);
}
.logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-text em {
  font-style: italic;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--cream-dim);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover {
  color: var(--cream);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 3rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  to {
    transform: scale(1.16) translateY(-1.5%);
  }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.94) 0%, rgba(12, 10, 8, 0.72) 42%, rgba(12, 10, 8, 0.45) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.55), rgba(12, 10, 8, 0.9));
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}
.hero-copy {
  max-width: 560px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--cream-dim);
  max-width: 30rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.6rem;
  list-style: none;
  margin-top: 1.8rem;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
}
.hero-badges span {
  color: var(--gold);
}

/* ---------- Lead card ---------- */
.lead-card {
  background: linear-gradient(180deg, rgba(27, 24, 19, 0.92), rgba(17, 20, 15, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.lead-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
}
.lead-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}
.lead-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(12, 10, 8, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a79c88' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field input::placeholder {
  color: #6f6656;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(12, 10, 8, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.15);
}
.field.invalid input {
  border-color: #d97a5a;
  box-shadow: 0 0 0 3px rgba(217, 122, 90, 0.15);
}

/* honeypot hidden off-screen */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submitBtn {
  width: 100%;
  margin-top: 0.3rem;
  position: relative;
}
#submitBtn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}
.spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(34, 28, 16, 0.35);
  border-top-color: #221c10;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#submitBtn[aria-busy="true"] .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form-note {
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
  transition: color 0.3s var(--ease);
}
.form-note.ok {
  color: var(--gold-soft);
}
.form-note.err {
  color: #e89477;
}
.fine-print {
  font-size: 0.72rem;
  color: #6f6656;
  text-align: center;
  line-height: 1.5;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll span {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--espresso-2);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
}
.stat strong em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.7em;
}
.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections base ---------- */
.recipes,
.why,
.story,
.quote-section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Recipe grid ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
}
.recipe-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.recipe-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 106, 0.4);
  box-shadow: 0 30px 55px -30px rgba(0, 0, 0, 0.85);
}
.recipe-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.recipe-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.recipe-card:hover .recipe-media img {
  transform: scale(1.07);
}
.recipe-time {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(12, 10, 8, 0.7);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  backdrop-filter: blur(6px);
}
.recipe-body {
  padding: 1.25rem 1.25rem 1.5rem;
}
.recipe-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.recipe-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
}
.recipe-body p {
  font-size: 0.9rem;
  color: var(--cream-dim);
}

/* ---------- Why ---------- */
.why {
  background: var(--espresso-2);
  border-block: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.why-item {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.25rem;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.5rem;
  color: var(--gold);
  background: rgba(212, 175, 106, 0.05);
}
.why-item h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.why-item p {
  color: var(--cream-dim);
  font-size: 0.95rem;
  max-width: 22rem;
  margin-inline: auto;
}

/* ---------- Story ---------- */
.story-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.9);
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-copy p {
  color: var(--cream-dim);
  margin-top: 1.1rem;
}

/* ---------- Quote ---------- */
.quote-section {
  border-top: 1px solid var(--line);
  background: var(--espresso-2);
}
.quote {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.quote p {
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.35;
  color: var(--cream);
}
.quote cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  text-align: center;
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.9), rgba(12, 10, 8, 0.82));
}
.final-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 20ch;
  margin-inline: auto;
}
.final-inner p {
  color: var(--cream-dim);
  margin: 1rem auto 2rem;
  max-width: 34rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}
.footer-inner {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.footer-tag {
  color: var(--muted);
  font-family: var(--script);
  font-style: italic;
  font-size: 1.15rem;
}
.footer-legal {
  font-size: 0.82rem;
  color: #6f6656;
}
.footer-legal a {
  color: var(--gold);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-copy {
    max-width: 640px;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }
  .story-inner {
    grid-template-columns: 1fr;
  }
  .story-media {
    max-width: 26rem;
  }
}

@media (max-width: 620px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 5.5rem;
    text-align: left;
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(12, 10, 8, 0.78) 0%, rgba(12, 10, 8, 0.9) 60%, var(--espresso) 100%);
  }
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }
  .hero-scroll {
    display: none;
  }
  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .nav-cta {
    display: none;
  }
}

/* ---------- Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
