/* YekBet — luxury emerald editorial design */
:root {
  --bg: #f2f6f4;
  --bg-deep: #e4eeea;
  --ink: #14241c;
  --ink-soft: #3d5348;
  --muted: #5f7468;
  --line: rgba(20, 36, 28, 0.12);
  --emerald: #0a6b4a;
  --emerald-deep: #064832;
  --gold: #b8893a;
  --gold-soft: #d4a85a;
  --sand: #dfe9e3;
  --white: #fbfff8;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(6, 72, 50, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 137, 58, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(10, 107, 74, 0.16), transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--bg) 40%, #e8f0eb 100%);
  line-height: 1.85;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(242, 246, 244, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--emerald-deep); text-decoration: none;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--emerald); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; text-decoration: none !important;
  padding: .9rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-family: var(--font-body);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: #f7fff9 !important;
  box-shadow: 0 10px 30px rgba(10, 107, 74, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(10, 107, 74, 0.35); color: #fff !important; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1408 !important;
  box-shadow: 0 10px 28px rgba(184, 137, 58, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); color: #1a1408 !important; }

.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 820px);
  display: grid; align-items: end;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 28, 20, 0.15) 0%, rgba(8, 28, 20, 0.55) 55%, rgba(8, 28, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 28, 20, 0.55), transparent 55%);
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem; color: #f4faf7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 0.95; margin: 0 0 .75rem; font-weight: 700;
  letter-spacing: 0.01em;
}
.hero-brand em { font-style: normal; color: var(--gold-soft); }
.hero p {
  max-width: 34rem; font-size: 1.12rem; color: rgba(244, 250, 247, 0.9); margin: 0 0 1.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.section {
  max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.25rem;
}
.section-kicker {
  color: var(--gold); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: .4rem;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2; color: var(--emerald-deep);
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-top: 2.4rem; }
h3 { font-size: 1.35rem; margin-top: 1.6rem; }

.lead {
  font-size: 1.18rem; color: var(--ink-soft); max-width: 46rem;
}

.prose p { margin: 0 0 1.15rem; color: var(--ink-soft); }
.prose ul, .prose ol { color: var(--ink-soft); padding-right: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }

.figure {
  margin: 2rem 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}
.figure img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  animation: fadeRise .8s ease both;
}
.figure figcaption {
  padding: .75rem 1rem; font-size: .9rem; color: var(--muted);
  background: rgba(255,255,255,.65);
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0;
}
.feature {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.8), rgba(228,238,234,.55));
  transition: transform .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(10,107,74,.35); }
.feature h3 { margin-top: 0; }

.cta-banner {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(120deg, rgba(10,107,74,.95), rgba(6,72,50,.92)),
    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.05'%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");
  color: #f4faf7;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.cta-banner h2 { color: #f7fff9; margin: 0 0 .35rem; font-size: 1.9rem; }
.cta-banner p { margin: 0; color: rgba(247,255,249,.88); max-width: 36rem; }

.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.7);
  text-decoration: none; color: inherit;
  transition: transform .28s ease, box-shadow .28s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card .body { padding: 1rem 1.1rem 1.25rem; }
.post-card h3 { margin: 0 0 .4rem; font-size: 1.25rem; color: var(--emerald-deep); }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  color: var(--muted); font-size: .9rem; margin: .75rem 0 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(6,72,50,.06));
  padding: 2.5rem 1.25rem 2rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem;
}
.site-footer h3 {
  font-family: var(--font-display); margin: 0 0 .75rem; font-size: 1.35rem;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; display: block; margin-bottom: .35rem; }
.site-footer a:hover { color: var(--emerald); }
.socials { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.65); font-weight: 700; font-size: .85rem;
}
.disclaimer {
  max-width: var(--max); margin: 1.5rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}

.toc {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 2rem;
}
.toc h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.toc a { display: block; margin: .25rem 0; text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--emerald); }

.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--emerald); }

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .feature-grid, .footer-inner { grid-template-columns: 1fr; }
  .site-header { position: sticky; }
  .nav-wrap { position: relative; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: calc(100% + 2px); left: 0; right: 0;
    background: rgba(242,246,244,.98); flex-direction: column; padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 60;
  }
  .menu-toggle { display: inline-flex; }
  .hero { min-height: min(88vh, 720px); }
  .hero-content { padding: 4rem 1.1rem 2.75rem; }
  .hero-brand { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}
.menu-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: .45rem .7rem; font-weight: 700; color: var(--ink);
}

[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-right: 1.2rem; padding-left: 0; }


.link-panel {
  margin: 2.25rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(228,238,234,.6));
}
.link-panel h2 { margin-top: 0; font-size: 1.35rem; }
.link-panel p { color: var(--ink-soft); }
.anchor-jump { display:block; height:0; }


/* SEO/perf helpers */
img, picture { max-width: 100%; height: auto; }
.hero-brand { font-family: var(--font-display); font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: .95; margin: 0 0 .75rem; font-weight: 700; color: inherit; }
article.prose, .link-panel, .post-card { content-visibility: auto; contain-intrinsic-size: 1px 640px; }
