@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;900&display=swap');

:root {
  --color-cream: #FFF8E7;
  --color-green: #013D25;
  --color-green-light: #0B5A3B;
  --color-peach: #FFD8C2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Tahoma, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 216, 194, 0.35), transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(255, 216, 194, 0.25), transparent 45%),
    var(--color-cream);
  background-attachment: fixed;
  color: var(--color-green);
  line-height: 1.85;
}

h1, h2, h3, .btn, .tagline {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: 900;
}

/* ===== هدر ===== */
.site-header {
  background: var(--color-green);
  color: var(--color-cream);
  padding: 36px 24px 0;
  text-align: center;
  position: relative;
}

.logo {
  max-width: 200px;
  width: 55%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tagline {
  color: var(--color-peach);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 6px;
}

.site-header nav {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.site-header nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.site-header nav a:hover,
.site-header nav a.active {
  border-color: var(--color-peach);
  opacity: 1;
}

/* قوس زیر هدر، الهام‌گرفته از لوگو */
.header-arch {
  display: block;
  width: 100%;
  height: 28px;
}

/* ===== صفحه‌ی اصلی / هیرو ===== */
.hero {
  text-align: center;
  max-width: 640px;
}

.hero h2 {
  font-size: 2.1rem;
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero-emphasis {
  display: inline-block;
  font-size: 1.35em;
  font-weight: 900;
  margin-top: 6px;
}

.hero > p {
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(1, 61, 37, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(1, 61, 37, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-green);
  border: 2px solid var(--color-green);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-green);
  color: var(--color-cream);
}

.value-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 56px;
  max-width: 720px;
}

.value-item {
  flex: 1 1 180px;
  text-align: center;
}

.value-item .value-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
}

.value-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.value-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-green-light);
}

/* ===== بخش‌های اصلی ===== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section, .page-section {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--color-peach);
  border-radius: 999px;
  margin: 10px auto 0;
}

.hero h2::after {
  margin: 10px auto 0;
}

h3 {
  font-size: 1.1rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--color-green);
}

/* ===== درباره ما ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.value-card {
  background: var(--color-peach);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 18px rgba(1, 61, 37, 0.1);
}

.value-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.team-card {
  border: 2px solid var(--color-peach);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--color-cream);
  box-shadow: 0 6px 14px rgba(1, 61, 37, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(1, 61, 37, 0.15);
}

.team-card h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.team-card .role {
  color: var(--color-green-light);
  font-size: 0.88rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.team-card p.bio {
  margin: 0;
  font-size: 0.88rem;
}

/* ===== خدمات ===== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.service-card {
  flex: 1 1 260px;
  background: var(--color-peach);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 22px rgba(1, 61, 37, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(1, 61, 37, 0.18);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.92rem;
}

.price-table th, .price-table td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(1, 61, 37, 0.2);
}

.price-table th {
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: 700;
}

.fine-print {
  font-size: 0.82rem;
  color: var(--color-green-light);
  margin-top: 10px;
}

.differentiator {
  margin-top: 40px;
  background: var(--color-green);
  color: var(--color-cream);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 24px rgba(1, 61, 37, 0.2);
}

.differentiator h3 {
  margin-top: 0;
  color: var(--color-peach);
}

/* ===== فرصت‌های شغلی ===== */
.jobs-placeholder {
  border: 2px dashed var(--color-peach);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

/* ===== تماس با ما ===== */
.contact-card {
  background: var(--color-peach);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(1, 61, 37, 0.12);
}

.contact-card a {
  color: var(--color-green);
  font-weight: 700;
  text-decoration: none;
}

.footer-arch {
  display: block;
  width: 100%;
  height: 20px;
}

/* ===== فوتر ===== */
footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-green-light);
  padding-top: 20px;
}

footer a {
  color: var(--color-green);
}

/* ===== موشن ===== */
@media (prefers-reduced-motion: no-preference) {

  .site-header .logo {
    animation: logo-in 0.7s ease both;
  }

  .site-header .tagline {
    animation: tagline-in 0.7s ease 0.15s both;
  }

  .site-header nav {
    animation: tagline-in 0.7s ease 0.3s both;
  }

  @keyframes logo-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes tagline-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-pop {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal-pop.is-visible {
    opacity: 1;
    transform: scale(1);
  }

  .value-item:nth-child(1), .value-card:nth-child(1), .service-card:nth-child(1), .team-card:nth-child(1) { transition-delay: 0s; }
  .value-item:nth-child(2), .value-card:nth-child(2), .service-card:nth-child(2), .team-card:nth-child(2) { transition-delay: 0.1s; }
  .value-item:nth-child(3), .value-card:nth-child(3) { transition-delay: 0.2s; }
  .value-card:nth-child(4) { transition-delay: 0.3s; }
  .value-card:nth-child(5) { transition-delay: 0.4s; }
  .value-card:nth-child(6) { transition-delay: 0.5s; }

  .header-arch {
    animation: arch-in 0.6s ease 0.4s both;
    transform-origin: center top;
  }
}

@keyframes arch-in {
  from { opacity: 0; transform: scaleX(0.7); }
  to { opacity: 1; transform: scaleX(1); }
}

/* ===== مسکات پرنده‌ی کارتوپیا ===== */
.mascot-wrap {
  position: fixed;
  bottom: 18px;
  left: 56px;
  z-index: 60;
  pointer-events: none;
  transition: transform 0.15s linear;
}

.mascot-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--color-cream);
  color: var(--color-green);
  border: 2px solid var(--color-green);
  border-radius: 14px;
  padding: 6px 12px;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mascot-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-green);
}

.mascot-bubble.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mascot-figure {
  width: 108px;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .mascot-figure { width: 56px; }
  .mascot-wrap { left: 10px; bottom: 10px; }
  .mascot-bubble { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .mascot-figure {
    animation: mascot-bob 2.6s ease-in-out infinite;
  }

  .mascot-cape {
    animation: cape-flap 1.4s ease-in-out infinite;
    transform-origin: 70% 30%;
  }

  @keyframes mascot-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-3deg); }
  }

  @keyframes cape-flap {
    0%, 100% { transform: skewY(0deg) scaleX(1); }
    50% { transform: skewY(6deg) scaleX(1.06); }
  }
}
