/* ============================================================
   Goarau Bếp — Vietnamese home cooking without vegetable oil
   Rice paper, vermillion lacquer, indigo night.
   ============================================================ */

:root {
  --paper: #fcf9f2;
  --rice: #f4edde;
  --rice-deep: #ece2cc;
  --ink: #241f2c;
  --ink-soft: #55495c;
  --ink-faint: #837a89;
  --vermillion: #b5341f;
  --vermillion-bright: #d4482e;
  --vermillion-deep: #8c2113;
  --indigo-night: #181a2b;
  --indigo-dusk: #232649;
  --indigo-line: #34386b;
  --lotus: #f0d9c4;
  --line: rgba(36, 31, 44, 0.16);
  --line-soft: rgba(36, 31, 44, 0.08);
  --shadow-soft: 0 1px 2px rgba(24, 26, 43, 0.06), 0 14px 34px rgba(24, 26, 43, 0.1);
  --shadow-lift: 0 2px 6px rgba(24, 26, 43, 0.1), 0 28px 56px rgba(24, 26, 43, 0.18);
  --display-font: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body-font: 'Be Vietnam Pro', 'Avenir Next', 'Segoe UI', sans-serif;
  --radius-card: 16px;
  --radius-btn: 999px;
}

* { 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(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Kickers & seals ---------- */

.kicker {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 1.1rem;
}

.logo-seal,
.cap-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 6px;
  background: var(--vermillion);
  color: var(--paper);
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 2px rgba(252, 249, 242, 0.35);
  transform: rotate(-3deg);
}

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

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(252, 249, 242, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px rgba(24, 26, 43, 0.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink);
  cursor: pointer;
}

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

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--vermillion); }

.nav-links a:focus-visible,
.btn-primary:focus-visible,
.btn-expand:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--vermillion);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.hero {
  position: relative;
  padding: 9.5rem 2rem 6rem;
  background:
    radial-gradient(80rem 40rem at 110% -10%, rgba(212, 72, 46, 0.07), transparent 60%),
    linear-gradient(180deg, var(--rice) 0%, var(--paper) 78%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--vermillion) 0 26px,
    var(--indigo-night) 26px 30px,
    var(--lotus) 30px 42px,
    var(--indigo-night) 42px 46px
  );
  opacity: 0.85;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

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

.hero-lede {
  font-size: 1.11rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2.1rem;
}

.hero-actions { margin-bottom: 2.4rem; }

.btn-primary {
  display: inline-block;
  padding: 0.95rem 2.3rem;
  border-radius: var(--radius-btn);
  background: var(--vermillion);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(181, 52, 31, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--vermillion-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(181, 52, 31, 0.32);
}

.hero-fats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--display-font);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.hero-fats .dot {
  color: var(--vermillion);
  font-style: normal;
  font-size: 0.7rem;
}

/* Circular "bowl" figure */

.hero-figure {
  position: relative;
  justify-self: center;
  margin: 0;
}

.hero-bowl {
  width: min(30rem, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--paper);
  outline: 1px solid var(--line);
}

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

.hero-ring {
  position: absolute;
  inset: -1.6rem;
  border-radius: 50%;
  border: 1.5px solid rgba(181, 52, 31, 0.4);
  pointer-events: none;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border-radius: 50%;
  border: 1px dashed rgba(36, 31, 44, 0.25);
}

.hero-caption {
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1.1rem 0.6rem 0.7rem;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.cap-title {
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 0.98rem;
}

.cap-sub {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

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

.principles {
  background: var(--indigo-night);
  padding: 4.6rem 2rem;
}

.principles-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

.principle {
  border-top: 1px solid var(--indigo-line);
  padding-top: 1.6rem;
}

.p-word {
  display: inline-block;
  font-family: var(--display-font);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--lotus);
  margin-bottom: 0.7rem;
}

.principle h3 {
  color: #f6f2e8;
  font-size: 1.32rem;
  margin-bottom: 0.7rem;
}

.principle p {
  color: #b9b4c9;
  font-size: 0.99rem;
  line-height: 1.7;
}

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

.recipes-section {
  padding: 6.5rem 2rem 5.5rem;
  background: var(--paper);
}

.container { max-width: 1200px; margin: 0 auto; }

.recipes-header {
  max-width: 44em;
  margin-bottom: 3.6rem;
}

.recipes-header h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-bottom: 1rem;
}

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

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

.recipe-card {
  background: #fffdf8;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  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-lift);
}

.recipe-img-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.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: 1.7rem 1.9rem 2rem; }

.recipe-info h3 {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.recipe-desc {
  color: var(--ink-soft);
  font-size: 0.99rem;
  margin-bottom: 1.3rem;
}

.btn-expand {
  font-family: var(--body-font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--vermillion);
  background: none;
  border: 1.5px solid rgba(181, 52, 31, 0.45);
  border-radius: var(--radius-btn);
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-expand:hover {
  background: var(--vermillion);
  border-color: var(--vermillion);
  color: var(--paper);
}

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

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

.recipe-details h4 {
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin: 1.2rem 0 0.7rem;
}

.recipe-details h4:first-child { margin-top: 0; }

.recipe-details ul,
.recipe-details ol {
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.recipe-details li { margin-bottom: 0.45rem; }

.recipe-details ol li { margin-bottom: 0.7rem; }

.recipe-details li::marker { color: var(--vermillion); font-weight: 600; }

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

.about-section {
  background: var(--rice);
  padding: 6rem 2rem;
  border-top: 1px solid var(--line-soft);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.about-bowl {
  width: min(24rem, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--paper);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  margin: 0 auto;
}

.about-bowl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  margin-bottom: 1.2rem;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 38em;
}

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

.footer {
  background: var(--indigo-night);
  color: #b9b4c9;
  padding: 4.2rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display-font);
  font-size: 1.3rem;
  font-weight: 600;
  color: #f6f2e8;
  margin-bottom: 0.9rem;
}

.footer-tag {
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 22em;
}

.footer h4 {
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lotus);
  margin-bottom: 1rem;
}

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

.footer-links li { margin-bottom: 0.55rem; }

.footer a {
  color: #b9b4c9;
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer a:hover { color: #f6f2e8; }

.company-contact-box {
  border: 1px solid var(--indigo-line);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  background: rgba(35, 38, 73, 0.35);
}

.company-contact-box p {
  font-size: 0.88rem;
  line-height: 1.75;
}

.footer-bottom {
  border-top: 1px solid var(--indigo-line);
  padding: 1.4rem 0 1.6rem;
  text-align: center;
}

.footer-bottom p { font-size: 0.85rem; color: #8b86a0; }

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

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 9rem 2rem 5rem;
}

.legal-page h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 2.6rem;
}

.legal-page h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.legal-page ul { padding-left: 1.3rem; margin-bottom: 1rem; }

.legal-page a { color: var(--vermillion); }

.legal-page .company-contact-box {
  margin-top: 3rem;
  background: var(--rice);
  border: 1px solid var(--line);
}

.legal-page .company-contact-box h4 {
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 1rem;
}

.legal-page .company-contact-box p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

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

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .recipe-card, .recipe-img, .btn-primary { transition: none; }
}

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

@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; }
  .hero-bowl { width: min(24rem, 42vw); }
  .recipes-grid { gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(252, 249, 242, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 2rem 1.2rem;
    box-shadow: 0 18px 30px rgba(24, 26, 43, 0.12);
  }

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

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

  .nav-links a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.02rem;
  }

  .hero { padding: 7.5rem 1.4rem 5rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: left;
  }

  .hero-figure { justify-self: center; }

  .hero-bowl { width: min(20rem, 74vw); }

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

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

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

  .about-bowl { width: min(18rem, 78vw); }
}

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

  .hero { padding: 6.5rem 1.1rem 4.5rem; }

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

  .hero-caption { position: static; transform: none; margin: 1.4rem auto 0; width: fit-content; }

  .hero-ring { inset: -1rem; }

  .recipes-section { padding: 4.5rem 1.1rem 4rem; }

  .about-section { padding: 4.5rem 1.1rem; }

  .recipe-info { padding: 1.4rem 1.3rem 1.6rem; }

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

  .legal-page { padding: 7.5rem 1.1rem 4rem; }
}
