/* ═══════════════════════════════════════════════════════════════════════════
   Persian Kitchen — Main Stylesheet
   Colors: #8B1A1A (crimson), #C5A028 (gold), #2C1810 (dark brown), #FFF8E7 (cream)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Vazirmatn:wght@300;400;600&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --crimson:    #8B1A1A;
  --crimson-dk: #6a1313;
  --crimson-lt: #a52020;
  --gold:       #C5A028;
  --gold-lt:    #d4b040;
  --brown:      #2C1810;
  --brown-lt:   #4a2a1a;
  --cream:      #FFF8E7;
  --cream-dk:   #f5edda;
  --text-main:  #2C1810;
  --text-muted: #7a6050;
  --border:     #e0d0b0;
  --shadow:     rgba(44, 24, 16, 0.12);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-main);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: var(--crimson);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--crimson-lt); }

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

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown);
  line-height: 1.25;
}

.fa-text, [dir="rtl"] {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial Unicode MS', sans-serif;
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--brown);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.site-branding { flex: 1; }

.site-title {
  font-size: 1.4rem;
  color: var(--cream) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.title-en { font-family: 'Playfair Display', Georgia, serif; }

.title-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold);
}

.title-divider {
  color: var(--gold);
  opacity: 0.5;
}

.site-tagline {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
  margin-top: 0.1rem;
  font-style: italic;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--cream) !important;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Playfair Display', serif;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brown) 0%, var(--crimson) 60%, #5a1010 100%);
  color: var(--cream);
  padding: 5rem 0;
  position: relative;
  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='%23C5A028' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content { max-width: 600px; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 248, 231, 0.85);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.hero-subtitle-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 0.95rem;
  color: rgba(197, 160, 40, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--brown) !important;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(197, 160, 40, 0.35);
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  color: var(--crimson) !important;
  border: 1.5px solid var(--crimson);
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--crimson);
  color: var(--cream) !important;
}

/* Ornament */
.hero-ornament {
  flex-shrink: 0;
}

.ornament-circle {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(197, 160, 40, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 160, 40, 0.05);
  box-shadow: 0 0 60px rgba(197, 160, 40, 0.08), inset 0 0 40px rgba(197, 160, 40, 0.04);
}

.ornament-text {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  color: var(--gold);
  opacity: 0.6;
  font-size: 0.85rem;
  text-align: center;
  direction: rtl;
  line-height: 1.5;
}

/* ─── Intro Section ─────────────────────────────────────────────────────────── */
.intro-section {
  padding: 5rem 0;
  background: var(--cream-dk);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.intro-text h2 {
  font-size: 1.7rem;
  color: var(--crimson);
  margin-bottom: 1.25rem;
}

.intro-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.intro-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  text-align: right;
}

.intro-fa h2 {
  font-size: 1.5rem;
}

/* ─── Recipes Section ───────────────────────────────────────────────────────── */
.recipes-section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-title-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 1.2rem;
  color: var(--text-muted);
}

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

.recipe-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.18);
}

.recipe-card-header {
  background: linear-gradient(135deg, var(--crimson), var(--brown));
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.recipe-icon {
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.recipe-card-body {
  padding: 1.5rem;
}

.recipe-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.recipe-title a {
  color: var(--brown);
}

.recipe-title a:hover {
  color: var(--crimson);
}

.recipe-title-fa {
  display: block;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 0.95rem;
  color: var(--gold);
  margin-top: 0.2rem;
}

.recipe-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.recipe-desc-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 0.82rem;
  color: #999;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  text-align: right;
}

.recipe-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.recipe-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recipe-link:hover {
  color: var(--gold);
}

/* ─── Quote Section ─────────────────────────────────────────────────────────── */
.quote-section {
  background: var(--brown);
  padding: 4rem 0;
}

.persian-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.persian-quote p {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.quote-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.85;
  display: block;
  line-height: 1.7;
}

/* ─── Recipe Full Page ──────────────────────────────────────────────────────── */
.recipe-page {
  padding: 3rem 0 5rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.breadcrumb a {
  color: var(--crimson);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.recipe-full { max-width: 780px; }

.recipe-header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.recipe-full-title {
  font-size: 2.4rem;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

.recipe-full-title-fa {
  display: block;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: 0.25rem;
}

.recipe-full-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-badge {
  background: var(--cream-dk);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 2px;
}

.recipe-full-desc {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.recipe-full-desc-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: right;
}

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

.recipe-section h2 {
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.fa-label {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.ingredient-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.ingredient-list li {
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.ingredient-list li::before {
  content: '— ';
  color: var(--gold);
}

.step-list {
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-main);
}

.step-list li::before {
  content: counter(steps);
  background: var(--crimson);
  color: #fff;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-family: sans-serif;
}

.recipe-notes {
  background: var(--cream-dk);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 3px 3px 0;
}

.recipe-notes h2 { color: var(--gold); }

.recipe-navigation { margin-top: 3rem; }

/* ─── About Page ────────────────────────────────────────────────────────────── */
.about-page {
  padding: 3rem 0 5rem;
}

.about-content { max-width: 780px; }

.about-header {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.5rem;
}

.about-header h1 {
  font-size: 2.4rem;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-size: 1.3rem;
  color: var(--gold);
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.about-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.8;
}

.about-fa {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  text-align: right;
  background: var(--cream-dk);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin-top: -0.5rem;
}

.contact-detail {
  background: var(--cream-dk);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem !important;
  line-height: 1.9 !important;
}

/* ─── Error Page ────────────────────────────────────────────────────────────── */
.error-page {
  padding: 5rem 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--crimson);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: 1.8rem;
  color: var(--brown);
  margin-bottom: 0.75rem;
}

.error-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brown);
  color: rgba(255, 248, 231, 0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--gold);
  opacity: 0.7;
  font-style: italic;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  color: rgba(255, 248, 231, 0.6) !important;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--gold) !important;
}

.footer-hidden-link {
  opacity: 0.3;
  font-size: 0.8rem !important;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 248, 231, 0.1);
  padding-top: 1.25rem;
}

.concept-warning {
  font-size: 0.78rem;
  color: rgba(197, 160, 40, 0.7);
  line-height: 1.5;
  font-family: 'Courier New', Courier, monospace;
}

.concept-warning strong {
  color: rgba(197, 160, 40, 0.95);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero { padding: 3rem 0; }

  .hero .container {
    flex-direction: column;
  }

  .ornament-circle {
    width: 140px;
    height: 140px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .ingredient-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .recipe-full-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero-title { font-size: 1.7rem; }

  .site-title { font-size: 1.1rem; }

  .section-title { font-size: 1.5rem; }
}

/* ─── Recipe Card Images ────────────────────────────────────────────────────── */
.recipe-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
}

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

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

/* ─── Recipe Hero Image ─────────────────────────────────────────────────────── */
.recipe-hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

/* ─── RTL Utility ───────────────────────────────────────────────────────────── */
.rtl-block {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}
