/* ==========================================================================
   Tungro Bhansa — Himalayan hill kitchen journal
   Variant: Cocina (fixed sidebar nav, full-bleed hero, vertical timeline,
   accordion recipes, two-column about)
   ========================================================================== */

:root {
  --cream: #FBF3E6;
  --cream-soft: #F4E7D3;
  --charcoal: #2A2019;
  --charcoal-soft: #55483C;
  --saffron: #C1811C;
  --saffron-deep: #9C6613;
  --rust: #A13D1F;
  --forest: #43593A;
  --espresso: #241A13;
  --espresso-soft: #35271C;
  --border-soft: rgba(42, 32, 25, 0.12);
  --shadow-soft: 0 18px 40px rgba(36, 26, 19, 0.14);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --sidebar-width: 268px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

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

.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 0.9em;
}

.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: #FBF3E6;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.95em 2.1em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-primary:hover {
  background: var(--saffron-deep);
  transform: translateY(-2px);
}

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  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;
  }
}

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(185deg, var(--espresso) 0%, var(--espresso-soft) 100%);
  color: var(--cream-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem 1.9rem 2rem;
  z-index: 40;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
}

.brand-mark {
  font-size: 1.8rem;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: #FBF3E6;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-top: 0.15rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.62rem 0.7rem;
  border-radius: 8px;
  color: var(--cream-soft);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: rgba(251, 243, 230, 0.08);
  color: var(--saffron);
  padding-left: 1rem;
}

.sidebar-foot {
  border-top: 1px solid rgba(251, 243, 230, 0.14);
  padding-top: 1.3rem;
  margin-top: 2rem;
}

.sidebar-foot p {
  font-size: 0.8rem;
  color: rgba(251, 243, 230, 0.55);
  line-height: 1.6;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--espresso);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.sidebar-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.5);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- main layout ---------- */
main {
  margin-left: var(--sidebar-width);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.55) 0%, rgba(36, 26, 19, 0.78) 60%, rgba(36, 26, 19, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  color: #FBF3E6;
}

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

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  color: #FDF7EC;
}

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

.hero-lede {
  font-size: 1.16rem;
  line-height: 1.7;
  color: rgba(251, 243, 230, 0.88);
  margin: 1.3em auto 1.7em;
  max-width: 560px;
}

/* ---------- principles / timeline ---------- */
.principles {
  padding: 7rem 3rem;
  max-width: 880px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3.6rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-lede {
  max-width: 560px;
  margin: 1em auto 0;
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--saffron) 0%, var(--border-soft) 100%);
}

.timeline-item {
  display: flex;
  gap: 1.8rem;
  padding: 0 0 3rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--rust);
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}

.timeline-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 0.4em;
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}

.timeline-content p {
  color: var(--charcoal-soft);
  font-size: 1rem;
}

/* ---------- recipes / accordion ---------- */
.recipes {
  background: var(--cream-soft);
  padding: 6rem 3rem 7rem;
}

.recipe-accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.recipe-item {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(36, 26, 19, 0.05);
}

.recipe-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 1.4rem 0.9rem 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.recipe-header img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.recipe-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.22em;
}

.recipe-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}

.recipe-title {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--espresso);
}

.recipe-meta {
  font-size: 0.86rem;
  color: var(--charcoal-soft);
}

.recipe-arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--rust);
  transition: transform 0.25s ease, background 0.25s ease;
}

.recipe-item.is-open .recipe-arrow {
  background: var(--rust);
  color: #FBF3E6;
  border-color: var(--rust);
}

.recipe-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.recipe-item.is-open .recipe-details {
  max-height: 2400px;
}

.recipe-desc {
  padding: 0 1.6rem;
  margin-top: 0.2rem;
  color: var(--charcoal-soft);
  font-style: italic;
  font-size: 0.98rem;
}

.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  padding: 1.4rem 1.6rem 2rem;
}

.recipe-body h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 0.8em;
}

.recipe-ingredients ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.94rem;
  color: var(--charcoal-soft);
}

.recipe-ingredients li { margin-bottom: 0.4em; }

.recipe-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
  color: var(--charcoal-soft);
}

.recipe-steps li { margin-bottom: 0.65em; }

/* ---------- about ---------- */
.about {
  padding: 7rem 3rem;
  max-width: 1080px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: stretch;
}

.about-text p {
  color: var(--charcoal-soft);
  font-size: 1.03rem;
}

.about-text h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 0.7em;
}

.about-quote {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.about-quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 26, 19, 0.15) 0%, rgba(36, 26, 19, 0.88) 100%);
}

.about-quote blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 2.2rem;
  color: #FBF3E6;
}

.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  margin-bottom: 0.6em;
}

.about-quote cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--saffron);
}

/* ---------- closing cta ---------- */
.closing {
  background: linear-gradient(135deg, var(--rust) 0%, var(--saffron-deep) 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.closing-inner {
  max-width: 560px;
  margin: 0 auto;
}

.closing h2 {
  color: #FBF3E6;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 0.5em;
}

.closing p {
  color: rgba(251, 243, 230, 0.9);
  margin-bottom: 1.6em;
  font-size: 1.05rem;
}

.closing .btn-primary {
  background: var(--espresso);
}

.closing .btn-primary:hover {
  background: #100a06;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--espresso);
  color: rgba(251, 243, 230, 0.78);
  padding: 4.5rem 3rem 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(251, 243, 230, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #FBF3E6;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(251, 243, 230, 0.6);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(251, 243, 230, 0.75);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--saffron); }

.company-contact-box {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(251, 243, 230, 0.65);
}

.company-contact-box strong {
  color: rgba(251, 243, 230, 0.92);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(251, 243, 230, 0.45);
}

/* ==========================================================================
   Legal pages (privacy / terms / disclaimer)
   ========================================================================== */

.legal-header {
  margin-left: var(--sidebar-width);
  padding: 4.5rem 3rem 1rem;
  max-width: 860px;
}

.legal-header a.back-link {
  font-size: 0.86rem;
  color: var(--saffron-deep);
  font-weight: 600;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0.6em 0 0.3em;
}

.legal-header .updated {
  font-size: 0.86rem;
  color: var(--charcoal-soft);
}

.legal-content {
  margin-left: var(--sidebar-width);
  padding: 1rem 3rem 5rem;
  max-width: 860px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  margin-bottom: 0.5em;
}

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

.legal-content p, .legal-content li {
  color: var(--charcoal-soft);
  font-size: 1rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.3rem;
}

.legal-content li { margin-bottom: 0.5em; }

.legal-content a {
  color: var(--saffron-deep);
  text-decoration: underline;
}

/* ==========================================================================
   Breakpoints: 1100 / 760 / 440
   ========================================================================== */

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-quote { min-height: 220px; }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: 260px; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-soft);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-toggle { display: flex; }
  .sidebar-overlay { display: block; }

  main, .legal-header, .legal-content {
    margin-left: 0;
  }

  .hero { padding: 5.5rem 1.5rem; min-height: 82vh; }

  .principles, .about, .recipes {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .recipe-body { grid-template-columns: 1fr; gap: 1.4rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

@media (max-width: 440px) {
  body { font-size: 17px; }

  .hero h1 { font-size: 2.1rem; }

  .hero-lede { font-size: 1.02rem; }

  .recipe-header {
    flex-wrap: wrap;
  }

  .recipe-header img {
    width: 64px;
    height: 64px;
  }

  .timeline::before { left: 23px; }

  .timeline-marker {
    width: 46px;
    height: 46px;
    font-size: 0.9rem;
  }

  .timeline-item { gap: 1.2rem; }

  .legal-header, .legal-content {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
  }
}
