/* ==========================================================
   فرخ‌آباد و زیبادشت — استایل اصلی
   پالت رنگی: الهام‌گرفته از طبیعت و کشاورزی (سبز، خاکی، کرم)
   ========================================================== */

:root {
  --green-900: #1f3d2b;   /* سبز تیره جنگلی */
  --green-700: #2f5d3f;   /* سبز اصلی */
  --green-500: #4f8460;   /* سبز روشن‌تر */
  --green-100: #e4efe6;   /* سبز بسیار کم‌رنگ */
  --earth-600: #8a6a4b;   /* خاکی */
  --earth-400: #b99a72;   /* خاکی روشن */
  --cream-100: #faf6ee;   /* کرم زمینه */
  --cream-200: #f3ecdd;   /* کرم تیره‌تر برای بخش‌های یک‌درمیان */
  --ink-900: #26302a;     /* رنگ متن اصلی */
  --ink-600: #55605a;     /* متن فرعی */
  --radius: 14px;
  --shadow: 0 8px 24px rgba(31, 61, 43, 0.10);
  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* جبران ارتفاع منوی چسبان هنگام پرش به لنگرها */
}

body {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background: var(--cream-100);
  color: var(--ink-900);
  line-height: 1.9;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------------- منوی بالای صفحه ---------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--green-100);
  box-shadow: 0 2px 14px rgba(31, 61, 43, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-900);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.nav-links a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-600);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--green-700);
  background: var(--green-100);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--green-100);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- هرو ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  /* عکس منظره روستا اینجا: برای تعویض، فقط مسیر url را عوض کنید */
  background:
    linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-500) 100%);
  background-image: url("images/farrokhabad-8.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 61, 43, 0.75), rgba(31, 61, 43, 0.35) 60%, rgba(31, 61, 43, 0.25));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 7rem 5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 500;
  color: #f0ead9;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 560px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  background: var(--cream-100);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.hero-scroll span {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  position: relative;
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 50%;
  transform: translateX(50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  animation: scroll-hint 1.8s infinite;
}

@keyframes scroll-hint {
  0%   { opacity: 1; transform: translate(50%, 0); }
  70%  { opacity: 0; transform: translate(50%, 12px); }
  100% { opacity: 0; transform: translate(50%, 0); }
}

/* ---------------- بخش‌های عمومی ---------------- */

.section {
  padding-block: 5rem;
}

.section-alt {
  background: var(--cream-200);
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--earth-600);
  background: var(--green-100);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.5;
}

.section-desc {
  margin-top: 0.9rem;
  color: var(--ink-600);
}

.sub-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 0.8rem;
}

/* ---------------- چیدمان دو ستونه (متن + عکس) ---------------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.split:last-child {
  margin-bottom: 0;
}

.split-reverse {
  grid-template-columns: 1fr 1.15fr;
}

.split-reverse .split-text {
  order: 0;
}

.split-text p + p {
  margin-top: 1rem;
}

.split-media img,
.wide-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--green-100);
  min-height: 220px;
  object-fit: cover;
  color: var(--ink-600); /* رنگ متن جایگزین (alt) وقتی عکس هنوز جایگزین نشده */
}

.wide-media {
  margin-top: 3rem;
}

.wide-media img {
  max-height: 420px;
}

/* ---------------- همسایگان ---------------- */

.neighbors {
  margin-top: 3rem;
  text-align: center;
}

.neighbor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin-top: 1.2rem;
}

.neighbor-grid li {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  box-shadow: 0 3px 12px rgba(31, 61, 43, 0.06);
}

.neighbor-dir {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--earth-600);
  margin-bottom: 0.35rem;
}

.neighbor-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-900);
}

/* ---------------- کارت‌ها ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}

.cards:last-child {
  margin-bottom: 0;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  max-width: 860px;
  margin-inline: auto;
}

.card {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 3px 12px rgba(31, 61, 43, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.93rem;
  color: var(--ink-600);
}

.card-zone {
  border-top: 4px solid var(--green-500);
}

.card-zone h3 {
  color: var(--green-700);
}

.zone-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-600);
  background: var(--green-100);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  width: fit-content;
  margin-inline: auto;
}

/* ---------------- نوار ویژگی‌ها (طبیعت) ---------------- */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2.5rem;
}

.feature-strip li {
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--green-900);
  text-align: center;
}

/* ---------------- تایم‌لاین تاریخ ---------------- */

.timeline {
  list-style: none;
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-inline-start: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  right: 7px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--green-500), var(--earth-400));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.8rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  right: -2rem;
  top: 6px;
  width: 17px;
  height: 17px;
  background: var(--cream-100);
  border: 4px solid var(--green-700);
  border-radius: 50%;
}

.timeline-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}

.timeline-body p {
  color: var(--ink-600);
  margin-bottom: 1rem;
}

.timeline-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--green-100);
  min-height: 160px;
  color: var(--ink-600);
}

/* ---------------- فوتر ---------------- */

.site-footer {
  background: var(--green-900);
  color: #dfe9e0;
  padding-block: 3.5rem 2rem;
  margin-top: 2rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
}

.footer-main {
  max-width: 640px;
}

.footer-credit a {
  color: #f0ead9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-credit a:hover {
  color: #fff;
}

.footer-dept {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: #b9cbbd;
}

.footer-contact h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0ead9;
  margin-bottom: 0.6rem;
}

.footer-contact ul {
  list-style: none;
  font-size: 0.92rem;
  color: #b9cbbd;
  display: grid;
  gap: 0.3rem;
}

.footer-note {
  font-size: 0.82rem;
  color: #8fa793;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
}

/* ---------------- انیمیشن fade-in هنگام اسکرول ---------------- */

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

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* احترام به کاربرانی که انیمیشن کمتر می‌خواهند */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll span::after { animation: none; }
}

/* ---------------- ریسپانسیو ---------------- */

@media (max-width: 900px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .neighbor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream-100);
    border-bottom: 1px solid var(--green-100);
    box-shadow: 0 12px 24px rgba(31, 61, 43, 0.12);
    padding: 0.6rem 1rem 1rem;
    display: none;
  }

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

  .nav-links a {
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .neighbor-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-block: 6rem 4rem;
  }
}
