:root {
  --bg-deep: #071a14;
  --bg-panel: #0d2a20;
  --bg-sand: #f4efe6;
  --bg-sand-deep: #e8dfd0;
  --ink: #14201b;
  --ink-soft: #3d4f46;
  --cream: #faf6ef;
  --gold: #c6a15b;
  --gold-bright: #e2c078;
  --emerald: #1f6b4f;
  --emerald-deep: #0f3d2e;
  --coral: #b85c38;
  --line: rgba(198, 161, 91, 0.28);
  --shadow: 0 24px 60px rgba(7, 26, 20, 0.28);
  --radius: 4px;
  --font-display: "Cinzel", "Vazirmatn", serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(198, 161, 91, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(31, 107, 79, 0.18), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg-sand) 45%, #efe6d8 100%);
  line-height: 1.9;
  font-size: 1.05rem;
  direction: rtl;
  text-align: right;
}

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

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--coral);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 26, 20, 0.88);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 700;
}

.brand span {
  color: var(--cream);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 26, 20, 0.82) 0%, rgba(7, 26, 20, 0.45) 48%, rgba(7, 26, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 26, 20, 0.92) 0%, transparent 48%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin: 0 0 1rem;
  animation: riseIn 0.9s ease both;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--cream);
  animation: riseIn 1s ease 0.12s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: rgba(250, 246, 239, 0.88);
  font-size: 1.08rem;
  animation: riseIn 1s ease 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 1s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--bg-deep);
}

.btn-primary:hover {
  color: var(--bg-deep);
}

.btn-secondary {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-secondary:hover {
  background: rgba(198, 161, 91, 0.12);
  color: var(--gold-bright);
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
  color: var(--emerald-deep);
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--emerald-deep);
  scroll-margin-top: 5rem;
}

.prose h3 {
  margin-top: 1.8rem;
  color: var(--ink);
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-right: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

.figure {
  margin: 2rem 0;
  overflow: hidden;
}

.figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  filter: saturate(1.05);
  animation: softReveal 1.1s ease both;
}

.figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.split-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  background:
    linear-gradient(135deg, var(--bg-deep), var(--emerald-deep));
  color: var(--cream);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.split-cta h2 {
  margin: 0 0 0.7rem;
  color: var(--gold-bright);
}

.split-cta p {
  margin: 0 0 1.2rem;
  color: rgba(250, 246, 239, 0.86);
}

.offer-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
}

.offer-card h3 {
  margin: 0 0 0.5rem;
  color: var(--cream);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.1rem 1rem 1.3rem;
}

.blog-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--emerald-deep);
}

.blog-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.site-footer {
  background: var(--bg-deep);
  color: rgba(250, 246, 239, 0.82);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: var(--gold-bright);
  text-decoration: none;
}

.site-footer h3 {
  color: var(--cream);
  margin-top: 0;
}

.socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.socials a {
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  color: var(--cream);
}

.disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(250, 246, 239, 0.65);
}

.toc {
  background: rgba(31, 107, 79, 0.08);
  border-right: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0 2rem;
}

.toc a {
  display: block;
  margin: 0.25rem 0;
  color: var(--emerald-deep);
  text-decoration: none;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--emerald);
  text-decoration: none;
}

.page-hero {
  padding: 3rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--emerald-deep);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softReveal {
  from {
    opacity: 0.4;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-2%);
  }
}

@media (max-width: 900px) {
  .blog-grid,
  .footer-grid,
  .split-cta {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 0.8rem;
  }

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

  .nav {
    flex-wrap: wrap;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
