/* ============================================================
   MON TEX GRASS — Common Styles
   نسخه به‌روزرسانی‌شده با بهبود سئو و دسترس‌پذیری
   ============================================================ */

:root {
  --green: #1e7a3c;
  --green-dark: #125228;
  --green-light: #e9f6ed;
  --green-border: #c9e8d3;
  --green-hover: #2e9e52;
  --text: #1c2b21;
  --muted: #6b7d70;
  --bg: #f4f7f4;
  --white: #fff;
  --accent: #f5a623;
  --warn: #a16207;
  --warn-bg: #fff8ec;
  --warn-border: #e3c9a0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(18, 82, 40, .06);
  --shadow-md: 0 6px 20px rgba(18, 82, 40, .10);
  --shadow-lg: 0 12px 32px rgba(18, 82, 40, .16);
  --header-h: 80px;
  --font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: .2s; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* -------------------- Screen Reader Only -------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------- Focus Visible -------------------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------- Header -------------------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: var(--header-h);
}
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo img { max-height: 60px; width: auto; flex-shrink: 0; }
.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav { min-width: 0; }
.nav-list { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: #41544a;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--green-light);
  color: var(--green-dark);
}
.nav-link.active {
  color: var(--green);
  font-weight: 700;
  background: var(--green-light);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.phone-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.phone-btn:hover { background: var(--green-dark); }
.phone-btn svg { flex-shrink: 0; }

/* -------------------- منوی موبایل -------------------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--green-dark);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(300px, 82vw);
  background: var(--white);
  z-index: 130;
  transform: translateX(105%);
  transition: transform .3s, visibility .3s;
  visibility: hidden;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
}
.mobile-nav.show {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
}
.mobile-nav-close {
  align-self: flex-start;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 10px;
}
.mobile-nav-list { display: grid; gap: 4px; }
.mobile-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #41544a;
  font-size: 15px;
  font-weight: 500;
}
.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
}
.mobile-nav-call {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff;
  padding: 13px;
  border-radius: 11px;
  font-weight: 700;
}

/* -------------------- Overlay -------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 18, .5);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--green-dark);
  color: #c8e2d2;
  padding: 48px 0 24px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-about img { margin-bottom: 14px; max-width: 130px; }
.footer-about p {
  line-height: 1.9;
  margin-bottom: 16px;
  color: #a8c9b5;
}
.footer-links h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 2.5px;
  background: var(--green-hover);
  border-radius: 2px;
}
.footer-links ul,
.footer-contact-list { display: grid; gap: 10px; }
.footer-links a { color: #a8c9b5; font-size: 13.5px; }
.footer-links a:hover { color: var(--white); }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #a8c9b5;
  font-size: 13.5px;
}
.footer-contact-list svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--green-hover);
}
.footer-contact-list a { color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #9dc4ae;
}

/* -------------------- نوار تماس موبایل -------------------- */
.call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--green-border);
  padding: 8px 12px;
  gap: 9px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .09);
}
.call-bar a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13.5px;
}
.call-bar .c1 { background: var(--green); color: var(--white); }
.call-bar .c2 { background: #25d366; color: var(--white); }

/* -------------------- دکمه‌های عمومی -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  transition: .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; }

/* -------------------- ریسپانسیو مشترک -------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .container { padding: 0 14px; }
  .header-wrapper { min-height: var(--header-h); padding: 8px 0; }
  .logo img { max-height: 48px; }
  .logo-text { font-size: 14px; }
  .phone-btn { padding: 8px 12px; font-size: 12.5px; }

  .call-bar { display: flex; }
  body { padding-bottom: 72px; }

  .footer { padding: 36px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}