/* ========================================
   SARAWAK LAKSA — STYLESHEET
   ======================================== */

:root {
  --red:      #c0392b;
  --red-dark: #922b21;
  --red-light:#e74c3c;
  --orange:   #e67e22;
  --cream:    #fdf6ec;
  --dark:     #1a1a1a;
  --mid:      #2c2c2c;
  --text:     #333333;
  --muted:    #666666;
  --light-bg: #ffffff;
  --border:   #e8e0d8;
  --card-bg:  #fff9f2;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   TOP NAVIGATION
   ======================================== */

#topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--red);
  text-decoration: none;
}

/* ========================================
   HERO
   ======================================== */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, #8B0000 0%, #c0392b 40%, #e67e22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--red-dark);
  font-weight: 700;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}

.hero-btn:hover {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 5rem 0;
}

.section-light { background: var(--light-bg); }
.section-dark  { background: var(--dark); color: #e8e0d8; }
.section-mid   { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-header.light h2,
.section-dark .section-header h2 {
  color: #fff;
}

.section-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-dark .section-desc { color: rgba(255,255,255,0.6); }

/* ========================================
   WHAT IS IT — TWO COL LAYOUT
   ======================================== */

.content-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.content-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
}

.content-text blockquote {
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--red-dark);
  border-radius: 0 8px 8px 0;
}

.fact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.fact-card h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

.fact-list {
  list-style: none;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 0.5rem;
}

.fact-list li:last-child { border-bottom: none; }

.fact-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  flex-shrink: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th {
  background: var(--red);
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.compare-table tr:nth-child(1) td { background: rgba(192,57,43,0.08); font-weight: 600; }

/* ========================================
   INGREDIENTS
   ======================================== */

.ingredient-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.ingredient-group h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.group-desc {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ingredient-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s;
}

.ingredient-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--red-light);
  transform: translateY(-2px);
}

.ing-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.ingredient-card h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.ingredient-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ========================================
   RECIPE
   ======================================== */

.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.recipe-phase {
  margin-bottom: 2.5rem;
}

.recipe-phase h3 {
  font-size: 1.3rem;
  color: var(--red-dark);
  margin-bottom: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.phase-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--cream);
  border-radius: 6px;
  border-left: 3px solid var(--orange);
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.step-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.step-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.step-body strong {
  color: var(--dark);
  font-weight: 600;
}

.tip-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.tip-card h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

.tip-card ul {
  padding-left: 1.2rem;
}

.tip-card li {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  color: #555;
  line-height: 1.6;
}

.tip-card p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ========================================
   VARIATIONS
   ======================================== */

.variation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.variation-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: all 0.2s;
}

.variation-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.variation-card.featured {
  border-color: var(--red);
  border-width: 2px;
}

.variation-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 0 10px 0 10px;
}

.variation-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.variation-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.variation-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.variation-tags li {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

/* ========================================
   WHERE TO EAT
   ======================================== */

.stall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.stall-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  transition: all 0.2s;
}

.stall-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.stall-card.top-pick {
  border-color: var(--orange);
  border-width: 2px;
}

.stall-rank {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.stall-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.stall-area {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.stall-card p:not(.stall-area) {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.stall-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stall-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.stall-note {
  margin-top: 2rem;
  background: #fff8ed;
  border: 1px solid #f0d9b5;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #5a4a30;
}

/* ========================================
   CULTURE
   ======================================== */

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.culture-item {
  border-top: 2px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.culture-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.culture-item h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.culture-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* ========================================
   PEOPLE
   ======================================== */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.person-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.2s;
}

.person-card:hover {
  box-shadow: 0 6px 25px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.person-avatar {
  width: 52px;
  height: 52px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.person-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.person-role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.person-card p:not(.person-role) {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-left h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-left p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-right p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .content-grid.two-col { grid-template-columns: 1fr; }
  .recipe-layout { grid-template-columns: 1fr; }
  .tip-card { position: static; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .section-header h2 { font-size: 2rem; }
  .footer-inner { flex-direction: column; }
  .stall-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
}

/* ========================================
   SCROLL ANIMATION
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
