/* ============================================================
   Renirs Madbet, Ethiopian recipes without vegetable oil
   Palette: berbere red, espresso ink, parchment, kibbeh gold,
   gomen green. Type: Fraunces (display) + Karla (body).
   ============================================================ */

:root {
  --berbere: #a03418;
  --berbere-deep: #74210e;
  --espresso: #2e1410;
  --espresso-deep: #1f0c09;
  --ink: #2a1613;
  --ink-soft: #5f443b;
  --ink-faint: #8a6d61;
  --parchment: #faf4e8;
  --teff: #f2e6d0;
  --injera: #e9dabd;
  --kibbeh: #d99a28;
  --kibbeh-bright: #efb84a;
  --kibbeh-pale: #f6e2b0;
  --gomen: #2e6b40;
  --gomen-deep: #1e4a2c;
  --line: rgba(116, 33, 14, 0.18);
  --line-soft: rgba(116, 33, 14, 0.09);
  --shadow-soft: 0 1px 2px rgba(31, 12, 9, 0.06), 0 14px 34px rgba(31, 12, 9, 0.11);
  --shadow-lift: 0 3px 8px rgba(31, 12, 9, 0.1), 0 28px 56px rgba(31, 12, 9, 0.2);
  --display-font: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body-font: 'Karla', 'Avenir Next', 'Segoe UI', sans-serif;
  --radius-card: 16px;
  --radius-btn: 999px;
  --mesob-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect width='28' height='14' fill='%231f0c09'/%3E%3Cpath d='M0 10 L7 4 L14 10 L21 4 L28 10' stroke='%23d99a28' stroke-width='2.2' fill='none'/%3E%3Cpath d='M0 5 L7 11 L14 5 L21 11 L28 5' stroke='%232e6b40' stroke-width='1.4' fill='none' opacity='0.9'/%3E%3Crect y='0' width='28' height='1.4' fill='%23a03418'/%3E%3Crect y='12.6' width='28' height='1.4' fill='%23a03418'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

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

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berbere);
  margin-bottom: 14px;
}

.kicker .am {
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--kibbeh);
}

.mesob-band {
  height: 14px;
  background-image: var(--mesob-band);
  background-repeat: repeat-x;
  background-size: 28px 14px;
}

/* ---------- Reveal on scroll ---------- */

.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;
  }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(31, 12, 9, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 154, 40, 0.22);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(31, 12, 9, 0.97);
  box-shadow: 0 8px 28px rgba(31, 12, 9, 0.4);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--display-font);
  font-size: 23px;
  font-weight: 600;
  color: var(--parchment);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--berbere);
  border: 1px solid rgba(239, 184, 74, 0.55);
  font-size: 18px;
  line-height: 1;
}

.nav-logo .logo-sub {
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--kibbeh-bright);
  align-self: flex-end;
  padding-bottom: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(250, 244, 232, 0.85);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--kibbeh-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(239, 184, 74, 0.5);
  border-radius: 8px;
  color: var(--kibbeh-bright);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(112deg, rgba(31, 12, 9, 0.94) 0%, rgba(46, 20, 16, 0.82) 44%, rgba(116, 33, 14, 0.55) 100%),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600&q=80') center 40% / cover no-repeat;
  padding: 150px 0 90px;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-copy {
  max-width: 640px;
}

.hero .kicker {
  color: var(--kibbeh-bright);
}

.hero .kicker .am {
  color: var(--kibbeh-pale);
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--kibbeh-bright);
}

.hero-lede {
  font-size: clamp(18px, 1.6vw, 20.5px);
  line-height: 1.7;
  color: rgba(250, 244, 232, 0.88);
  margin-bottom: 34px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background: var(--berbere);
  color: #fff;
  font-family: var(--body-font);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(239, 184, 74, 0.55);
  box-shadow: 0 12px 28px rgba(31, 12, 9, 0.45);
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--berbere-deep);
  transform: translateY(-2px);
}

.hero-fats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--display-font);
  font-style: italic;
  font-size: 17px;
  color: var(--kibbeh-pale);
}

.hero-fats .dot {
  font-style: normal;
  font-size: 11px;
  color: var(--kibbeh);
}

/* ---------- Principles ---------- */

.principles {
  background: var(--espresso-deep);
  padding: 84px 0 90px;
  color: var(--parchment);
}

.principles-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}

.principles-header .kicker { color: var(--kibbeh-bright); }
.principles-header .kicker .am { color: var(--kibbeh-pale); }

.principles-header h2 {
  color: var(--parchment);
  font-size: clamp(30px, 3.6vw, 42px);
}

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

.principle {
  background: rgba(250, 244, 232, 0.045);
  border: 1px solid rgba(217, 154, 40, 0.28);
  border-radius: var(--radius-card);
  padding: 34px 30px 36px;
}

.principle-word {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 15px;
  color: var(--kibbeh-bright);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.principle h3 {
  color: var(--parchment);
  font-size: 24px;
  margin-bottom: 12px;
}

.principle p {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(250, 244, 232, 0.78);
}

/* ---------- Recipes ---------- */

.recipes-section {
  padding: 96px 0 90px;
  background: var(--parchment);
}

.recipes-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.recipes-header h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 16px;
}

.recipes-header p {
  color: var(--ink-soft);
  font-size: 18.5px;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.recipe-card {
  background: #fffdf7;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.recipe-figure {
  overflow: hidden;
  height: 250px;
}

.recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-img {
  transform: scale(1.045);
}

.recipe-info {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gomen);
  margin-bottom: 8px;
}

.recipe-info h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.recipe-desc {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 20px;
}

.btn-expand {
  align-self: flex-start;
  margin-top: auto;
  background: none;
  border: 1.5px solid var(--berbere);
  color: var(--berbere);
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-expand:hover,
.btn-expand:focus-visible {
  background: var(--berbere);
  color: #fff;
}

.recipe-details {
  display: none;
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}

.recipe-details.active { display: block; }

.recipe-details h4 {
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--berbere-deep);
  margin-bottom: 10px;
}

.recipe-details ul,
.recipe-details ol {
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

.recipe-details li { margin-bottom: 7px; line-height: 1.6; }

.recipe-details ol li { padding-left: 4px; }

/* ---------- About ---------- */

.about-section {
  background: var(--teff);
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-figure {
  position: relative;
}

.about-figure img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}

.about-figure::after {
  content: '';
  position: absolute;
  inset: 18px auto auto 18px;
  right: -14px;
  bottom: -14px;
  border: 2px solid var(--kibbeh);
  border-radius: var(--radius-card);
  z-index: -1;
}

.about-copy h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 20px;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 17.5px;
  line-height: 1.75;
}

.about-copy p:last-of-type { margin-bottom: 0; }

.about-copy .gursha {
  font-family: var(--display-font);
  font-style: italic;
  color: var(--berbere-deep);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--espresso-deep);
  color: rgba(250, 244, 232, 0.78);
  padding: 70px 0 34px;
}

.footer a {
  color: rgba(250, 244, 232, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--kibbeh-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 48px;
  margin-bottom: 46px;
}

.footer-logo {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 600;
  color: var(--parchment);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 40ch;
}

.footer h4 {
  color: var(--kibbeh-bright);
  font-family: var(--body-font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; font-size: 16px; }

.company-contact-box {
  background: rgba(250, 244, 232, 0.05);
  border: 1px solid rgba(217, 154, 40, 0.3);
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 15.5px;
  line-height: 1.7;
}

.company-contact-box strong {
  color: var(--parchment);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 244, 232, 0.14);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: rgba(250, 244, 232, 0.6);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: linear-gradient(120deg, var(--espresso-deep) 0%, var(--espresso) 55%, var(--berbere-deep) 100%);
  padding: 150px 0 64px;
  text-align: center;
}

.legal-hero .kicker { color: var(--kibbeh-bright); }

.legal-hero h1 {
  color: var(--parchment);
  font-size: clamp(34px, 4.4vw, 52px);
}

.legal-hero .legal-updated {
  color: rgba(250, 244, 232, 0.65);
  font-size: 15.5px;
  margin-top: 14px;
}

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}

.legal-main h2 {
  font-size: 27px;
  color: var(--berbere-deep);
  margin: 38px 0 14px;
}

.legal-main h2:first-child { margin-top: 0; }

.legal-main h3 {
  font-size: 20px;
  margin: 26px 0 10px;
}

.legal-main p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.legal-main ul {
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.legal-main li { margin-bottom: 8px; }

.legal-main a {
  color: var(--berbere);
  font-weight: 600;
}

.legal-main .company-contact-box {
  background: var(--teff);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  margin-top: 40px;
}

.legal-main .company-contact-box strong { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .recipes-grid { gap: 26px; }
  .about-inner { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(31, 12, 9, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 18px;
    display: none;
    border-bottom: 1px solid rgba(217, 154, 40, 0.25);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
  }

  .hero { min-height: 0; padding: 130px 0 70px; }

  .principles-grid { grid-template-columns: 1fr; }

  .recipes-grid { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; }

  .about-figure { order: -1; max-width: 520px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 480px) {
  body { font-size: 17.5px; }

  .container { padding: 0 18px; }

  .hero h1 { font-size: 38px; }

  .hero-lede { font-size: 17.5px; }

  .btn-primary { padding: 14px 28px; font-size: 15.5px; }

  .recipe-figure { height: 210px; }

  .recipe-info { padding: 22px 20px 26px; }

  .principles, .recipes-section, .about-section { padding-top: 70px; padding-bottom: 70px; }
}
