/* ============================================
   Rabvie Kitchen — Sri Lankan editorial recipe site
   Variant: Kuche (fixed top nav, split hero, card grid)
   ============================================ */

:root {
  --ink: #2c1610;
  --ink-soft: #4a2e22;
  --paper: #faf3e6;
  --paper-alt: #f2e5cc;
  --paper-deep: #ebd9b8;
  --card: #fffdf8;
  --gold: #c1811f;
  --gold-deep: #935e12;
  --rust: #a13a1e;
  --teal: #1f5c52;
  --teal-deep: #143f38;
  --line: #ddc79a;
  --line-soft: #e9dbb9;
  --shadow: 0 24px 50px -28px rgba(44, 22, 16, 0.45);
  --shadow-sm: 0 10px 24px -16px rgba(44, 22, 16, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

em { font-style: italic; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

.kicker.center { display: block; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ink);
}

.section-title.center { text-align: center; }

.section-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.section-lede.center { margin: 0 auto 56px; text-align: center; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(250, 243, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-logo-mark {
  font-size: 1.5rem;
  line-height: 1;
}

.nav-logo-text em {
  color: var(--rust);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a { color: var(--ink-soft); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--rust); }

.nav-cta {
  background: var(--rust);
  color: #fff8ee !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--gold-deep); }

.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);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (split) ---------- */
.hero {
  padding-top: 88px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  overflow: hidden;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 22px;
  color: var(--ink);
}

.hero-text h1 em {
  color: var(--rust);
  font-style: italic;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--rust);
  color: #fff8ee;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); background: #8c3018; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--rust); color: var(--rust); }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.hero-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 2px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 22, 16, 0) 40%, rgba(31, 15, 10, 0.55) 100%),
              linear-gradient(120deg, rgba(161, 58, 30, 0.18) 0%, rgba(31, 92, 82, 0.12) 100%);
}

/* ---------- Principles ---------- */
.principles {
  padding: 64px 0 20px;
}

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

.principle-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.principle-word {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--teal);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.principle-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Recipes ---------- */
.recipes-section {
  padding: 100px 0 100px;
}

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

.recipe-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.recipe-card-trigger {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.recipe-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

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

.recipe-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(44, 22, 16, 0.78);
  color: #fbeed7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.recipe-card-body { padding: 24px 24px 26px; }

.recipe-card-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.recipe-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  min-height: 62px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 16px;
}

.recipe-meta span { position: relative; padding-left: 14px; }
.recipe-meta span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.recipe-meta span:first-child { padding-left: 0; }
.recipe-meta span:first-child::before { display: none; }

.recipe-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rust);
}

.chev { transition: transform 0.3s ease; }
.recipe-card.open .chev { transform: rotate(180deg); }

.recipe-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  border-top: 1px solid var(--line-soft);
}

.recipe-details.open { max-height: 1400px; }

.recipe-details-inner {
  padding: 26px 24px 30px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  background: var(--paper-alt);
}

.recipe-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.recipe-col ul, .recipe-col ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.recipe-col li { margin-bottom: 9px; line-height: 1.55; }
.recipe-col ol li::marker { color: var(--rust); font-weight: 700; }

/* ---------- About ---------- */
.about {
  background: var(--teal-deep);
  color: #f4ecd8;
  padding: 96px 0;
}

.about-container { max-width: 760px; }

.about .kicker { color: var(--gold); }

.about .section-title { color: #fbeed7; }

.about-text {
  font-size: 1.08rem;
  color: #dfd3ba;
  margin: 0 0 22px;
  text-align: center;
}

.about-divider {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 34px auto;
}

.about-note {
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #f4ecd8;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #e6d7bf;
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(230, 215, 191, 0.15);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-brand p {
  color: #b9a586;
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }

.footer-links h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
}

.footer-links a {
  color: #cbb997;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fbeed7; }

.footer-bottom {
  padding: 26px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: #93805f;
}

.footer-company { max-width: 640px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { aspect-ratio: 16 / 10; order: -1; }
  .hero-lede { max-width: 100%; }
  .principles-grid { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.nav-open .nav-links { transform: translateY(0); opacity: 1; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-burger { display: flex; }
  .nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.nav-open { background: var(--paper); border-bottom: 1px solid var(--line-soft); }

  .hero { padding-top: 76px; }
  .hero-grid { padding-top: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }

  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-details-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .hero-grid { padding: 30px 20px 0; }
  .hero-text h1 { font-size: 2.2rem; }
  .principles, .recipes-section, .about { padding-left: 0; padding-right: 0; }
  .principle-card { padding: 26px 22px; }
  .recipe-card-body { padding: 20px 18px 22px; }
  .recipe-details-inner { padding: 20px 18px 24px; }
  .about-text { font-size: 1rem; }
  .footer-bottom { padding: 22px 20px 26px; }
}
