@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f7f1e8;
  --bg-deep: #ebe2d4;
  --ink: #1a2e28;
  --ink-soft: #3d524a;
  --muted: #6b7f76;
  --cream: #fffaf3;
  --gold: #b8860b;
  --gold-bright: #d4a017;
  --emerald: #0f5c4c;
  --emerald-deep: #0a3d34;
  --copper: #c46b3a;
  --line: rgba(26, 46, 40, 0.12);
  --shadow: 0 24px 60px rgba(26, 46, 40, 0.12);
  --radius: 4px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', 'Vazirmatn', sans-serif;
  --font-fa: 'Vazirmatn', 'Outfit', sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 134, 11, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(15, 92, 76, 0.14), transparent 50%),
    linear-gradient(180deg, #f9f4ec 0%, var(--bg) 40%, #f3ebe0 100%);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--emerald);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 232, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--emerald-deep);
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--emerald); outline: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald);
  color: #fff !important;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--emerald-deep); transform: translateY(-1px); }

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

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 61, 52, 0.25) 0%, rgba(10, 61, 52, 0.55) 45%, rgba(10, 61, 52, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 61, 52, 0.55), transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  animation: riseIn 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.hero-brand em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--copper));
  color: #1a1208;
  box-shadow: 0 10px 28px rgba(184, 134, 11, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.65);
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-solid {
  background: var(--emerald);
  color: #fff;
}
.btn-solid:hover { background: var(--emerald-deep); }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--emerald-deep);
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  color: var(--emerald-deep);
  margin: 2.75rem 0 1rem;
  line-height: 1.2;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1.15rem; }

.prose ul {
  margin: 0 0 1.25rem 1.2rem;
  list-style: disc;
}
.prose li { margin-bottom: 0.45rem; }

.prose a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }

.figure {
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.figure:hover img { transform: scale(1.03); }

.figure figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.75rem 0.25rem 0;
}

.fa {
  font-family: var(--font-fa);
  direction: rtl;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

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

.feature {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--emerald-deep);
}

.feature p { color: var(--muted); font-size: 0.98rem; }

.band {
  background:
    linear-gradient(135deg, rgba(15, 92, 76, 0.94), rgba(10, 61, 52, 0.96)),
    url('../images/home-neon-duo.jpg') center/cover;
  color: #fff;
  padding: 4rem 1.25rem;
  margin: 2rem 0;
}

.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.band p { max-width: 36rem; color: rgba(255,255,255,0.88); }

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

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); }

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--emerald-deep);
}

.post-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }

.post-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.article-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--emerald-deep);
  margin: 0.75rem 0 1rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--emerald); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 3rem 1.25rem 2rem;
  background: rgba(255, 250, 243, 0.7);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--emerald-deep);
}

.footer-grid a,
.footer-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.45rem;
}

.footer-grid a:hover { color: var(--emerald); }

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-row a {
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  color: var(--ink-soft) !important;
  transition: border-color 0.25s, color 0.25s;
}
.social-row a:hover {
  border-color: var(--emerald);
  color: var(--emerald) !important;
}

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

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

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

@media (max-width: 900px) {
  .split,
  .feature-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-block; }
}

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