/* ============================================================
   Fasren Cucina, Calabrian recipe journal
   Palette: chili red, terracotta ember, olive, warm cream
   Type: Newsreader (display serif) + Hanken Grotesk (sans)
   ============================================================ */

:root {
  --chili: #9e2b1f;
  --chili-deep: #6d180f;
  --ember: #c4562e;
  --gold: #c9953f;
  --olive: #77803f;
  --olive-deep: #565d2c;
  --cream: #faf4e8;
  --parchment: #f2e7d3;
  --sand: #e7d8bd;
  --ink: #2b1e15;
  --ink-soft: #5c4c3e;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(43, 30, 21, 0.14);
  --shadow-soft: 0 8px 24px rgba(43, 30, 21, 0.08);
  --radius: 14px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.9rem;
}

/* ============ Reveal ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.navbar.solid {
  background: rgba(250, 244, 232, 0.96);
  box-shadow: 0 2px 18px rgba(43, 30, 21, 0.1);
  padding: 0.65rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.brand-mark { font-size: 1.5rem; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand-accent { color: var(--chili); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--chili); }
.nav-links .nav-cta {
  background: var(--chili);
  color: var(--white);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-links .nav-cta:hover {
  background: var(--chili-deep);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero (split) ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 94vh;
  align-items: stretch;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 4rem 5rem 4rem;
  max-width: 720px;
  margin-left: auto;
  width: 100%;
}
.hero-text h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--chili);
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary,
.btn-ghost {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--chili), var(--ember));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(158, 43, 31, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(158, 43, 31, 0.34);
}
.btn-ghost {
  color: var(--chili);
  border: 1.5px solid rgba(158, 43, 31, 0.4);
}
.btn-ghost:hover {
  background: rgba(158, 43, 31, 0.07);
  border-color: var(--chili);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(250, 244, 232, 0.9) 0%, rgba(250, 244, 232, 0) 32%),
    linear-gradient(to top, rgba(43, 30, 21, 0.55) 0%, rgba(43, 30, 21, 0) 45%);
}
.hero-caption {
  position: absolute;
  left: 2.2rem;
  bottom: 1.8rem;
  right: 2rem;
  color: rgba(255, 253, 248, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: var(--font-display);
}

/* ============ Sections shared ============ */
.section-head {
  max-width: 760px;
  margin: 0 auto 3.2rem auto;
  text-align: center;
  padding: 0 2rem;
}
.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}
.section-sub {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ============ Principles ============ */
.principles {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
  padding: 5.5rem 0 5rem 0;
  border-top: 1px solid rgba(43, 30, 21, 0.06);
}
.principle-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.principle-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem 2rem;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--chili);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.principle-card:nth-child(2) { border-top-color: var(--gold); }
.principle-card:nth-child(3) { border-top-color: var(--olive); }
.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.principle-word {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ember);
  margin-bottom: 0.7rem;
}
.principle-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}
.principle-card p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* ============ Recipes ============ */
.recipes {
  padding: 6rem 0 5.5rem 0;
}
.recipe-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.recipe-card.expanded {
  grid-column: 1 / -1;
  transform: none;
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.recipe-card.expanded .card-media { aspect-ratio: 21 / 8; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.recipe-card:hover .card-media img { transform: scale(1.045); }
.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(43, 30, 21, 0.78);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.card-body {
  padding: 1.7rem 1.7rem 1.9rem 1.7rem;
}
.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}
.card-desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}
.card-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
}
.card-meta li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--olive-deep);
  background: rgba(119, 128, 63, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.card-toggle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--chili);
  background: none;
  border: 1.5px solid rgba(158, 43, 31, 0.35);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.card-toggle:hover {
  background: var(--chili);
  border-color: var(--chili);
  color: var(--white);
}
.chev {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.2rem;
}
.recipe-card.expanded .chev { transform: rotate(180deg); }

.recipe-details {
  display: none;
  border-top: 1px dashed var(--sand);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}
.recipe-details.open { display: block; }
.details-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.2rem;
}
.recipe-details h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--chili-deep);
  margin-bottom: 0.9rem;
}
.details-ingredients ul {
  list-style: none;
}
.details-ingredients li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(43, 30, 21, 0.07);
}
.details-ingredients li::before {
  content: "· ";
  color: var(--ember);
  font-weight: 700;
}
.details-steps ol {
  list-style: none;
  counter-reset: step;
}
.details-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1rem 2.6rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.details-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--parchment);
  color: var(--chili-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ About ============ */
.about {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(196, 86, 46, 0.1) 0%, rgba(196, 86, 46, 0) 55%),
    linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
  padding: 6rem 2rem;
  border-top: 1px solid rgba(43, 30, 21, 0.06);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-inner h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin-bottom: 1.6rem;
}
.about-inner p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-bottom: 1.3rem;
}
.about-sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--chili);
  margin-top: 0.6rem;
}

/* ============ Footer ============ */
.footer {
  background: linear-gradient(160deg, #34231a 0%, var(--ink) 70%);
  color: rgba(250, 244, 232, 0.85);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.7rem;
}
.footer-logo span { margin-right: 0.3rem; }
.footer-tag {
  font-size: 0.92rem;
  color: rgba(250, 244, 232, 0.6);
  max-width: 18rem;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(250, 244, 232, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-company p {
  font-size: 0.88rem;
  color: rgba(250, 244, 232, 0.66);
  margin-bottom: 0.3rem;
}
.footer-base {
  border-top: 1px solid rgba(250, 244, 232, 0.12);
  padding: 1.4rem 2rem;
  text-align: center;
}
.footer-base p {
  font-size: 0.85rem;
  color: rgba(250, 244, 232, 0.5);
}

/* ============ Legal pages ============ */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 9rem 2rem 4rem 2rem;
}
.legal-page h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  margin-bottom: 0.6rem;
}
.legal-updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 2.6rem;
}
.legal-page h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 0.9rem 0;
  color: var(--chili-deep);
}
.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.legal-page ul {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.legal-page a {
  color: var(--chili);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page a:hover { color: var(--chili-deep); }

.company-contact-box {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-left: 5px solid var(--chili);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-soft);
}
.company-contact-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.company-contact-box p {
  margin-bottom: 0.35rem;
  font-size: 0.96rem;
}

/* ============ Breakpoints: 1024 / 768 / 480 ============ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-text {
    order: 2;
    padding: 3.5rem 2.5rem 4rem 2.5rem;
    max-width: 100%;
    margin: 0;
  }
  .hero-visual {
    order: 1;
    min-height: 52vh;
  }
  .hero-overlay {
    background:
      linear-gradient(to top, rgba(43, 30, 21, 0.55) 0%, rgba(43, 30, 21, 0) 45%);
  }
  .principle-row { grid-template-columns: 1fr 1fr 1fr; gap: 1.1rem; }
  .principle-card { padding: 1.9rem 1.4rem; }
  .recipe-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -290px;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 6rem 2.2rem 2rem 2.2rem;
    box-shadow: -12px 0 34px rgba(43, 30, 21, 0.18);
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-burger { display: flex; position: relative; z-index: 110; }
  .principle-row { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: 1fr; }
  .details-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .recipe-card.expanded .card-media { aspect-ratio: 16 / 9; }
  .recipes { padding: 4.5rem 0 4rem 0; }
  .principles { padding: 4rem 0 3.5rem 0; }
  .about { padding: 4.5rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero-text { padding: 2.6rem 1.4rem 3.2rem 1.4rem; }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-visual { min-height: 44vh; }
  .hero-caption { left: 1.2rem; bottom: 1.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; }
  .nav-inner { padding: 0 1.2rem; }
  .brand-name { font-size: 1.2rem; }
  .section-head { padding: 0 1.2rem; margin-bottom: 2.2rem; }
  .recipe-grid, .principle-row { padding: 0 1.2rem; }
  .card-body { padding: 1.3rem 1.2rem 1.5rem 1.2rem; }
  .legal-page { padding: 7.5rem 1.3rem 3rem 1.3rem; }
  .company-contact-box { padding: 1.4rem 1.3rem; }
}
