/* ===================================== fonts ========================================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%; /* اگه بعد از preload هنوز شیفت داشتید، این عدد رو کم/زیاد کنید تا متریک نزدیک‌تر بشه به Tahoma */
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ===================================== variables ========================================== */

:root {
  --ink: #0f1f2e;
  --paper: #f7f5f0;
  --paper-2: #efebe1;
  --bronze: #f29500;
  --bronze-lt: #b79a63;
  --pine: #2e4a3f;
  --gray-txt: #4a4a4a;
  --line: #dad3c2;
  --white: #ffffff;
  --danger: #8c3b2e;

  /* typography */
  --font-display: "Vazirmatn", "Tahoma", sans-serif;
  --font-body: "Vazirmatn", "Tahoma", sans-serif;

  /* spacing */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 7rem;

  --radius: 10px;
  --container: 1180px;
}
/* ===================================== reset styles  ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* اضافه شد */
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.6em;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
  color: var(--gray-txt);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--bronze);
  display: inline-block;
}

/* ===================================== button styles  ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--bronze);
  color: var(--paper);
}
.btn-primary:hover {
  background: #182f45;
}
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-bronze {
  background: var(--bronze);
  color: var(--white);
}
.btn-bronze:hover {
  background: #6f5730;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
/* ===================================== section  ========================================== */
section {
  padding: var(--gap-lg) 0;
}
.section-alt {
  background: var(--paper-2);
}
.section-head {
  max-width: 62ch;
  margin-bottom: 2.6rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
/* ===================================== grid  ========================================== */

.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===================== services   ===================== */
.services-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--bronze);
}

.services-hero h1 {
  color: var(--paper);
  font-size: 2.2rem;
}

.services-hero .lead {
  color: #c7cfd6;
  max-width: 65ch;
  font-size: 1.05rem;
  text-align: justify;
}

.services-hero .hero-strong {
  color: var(--bronze);
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}
.services-hero p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  text-align: justify;
}

/* ===================== forms ===================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.2rem;
  border-radius: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.field .hint {
  font-size: 0.78rem;
  color: #8a8477;
  margin-top: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  background: var(--white);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--gray-txt);
}
.checkbox-row input {
  margin-top: 0.3rem;
  width: auto;
}
.form-note {
  background: var(--paper-2);
  border-right: 3px solid var(--pine);
  padding: 1rem 1.2rem;
  font-size: 0.86rem;
  margin-bottom: 1.8rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--pine);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}

/* ===================== check-list ===================== */
.check-list li,
.no-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.check-list li:last-child,
.no-list li:last-child {
  border-bottom: none;
}
.check-list .mark {
  color: var(--pine);
  font-weight: 800;
  flex-shrink: 0;
}
.no-list .mark {
  color: var(--danger);
  font-weight: 800;
  flex-shrink: 0;
}

/* ===================================== HEADER ===================================== */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(183, 154, 99, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--paper);
  text-decoration: none;
}

.brand .seal {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--bronze);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bronze);
  font-weight: 700;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: #b9c2cb;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  width: 100%;
  position: relative;
  right: 0;
}

.main-nav a {
  font-size: 0.92rem;
  color: #d9dee3;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--paper);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -4px;
  height: 2px;
  background: var(--bronze);
}

.main-nav .mobile-consult-btn {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta .btn-primary {
  background: var(--bronze);
  color: var(--white);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-cta .btn-primary:hover {
  background: var(--bronze);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 149, 0, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  padding: 4px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle .hamburger-icon {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

.nav-toggle .hamburger-icon line {
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open .hamburger-icon .line-top {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .hamburger-icon .line-middle {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open .hamburger-icon .line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* تنظیم سایز لوگو در هدر */
.brand .custom-logo {
  max-height: 45px; /* حداکثر ارتفاع */
  width: auto; /* عرض به نسبت ارتفاع */
  height: auto; /* حفظ نسبت ابعاد */
  display: block;
}

/* برای نمایشگرهای کوچک */
@media (max-width: 768px) {
  .brand .custom-logo {
    max-height: 35px;
  }
}

/* برای نمایشگرهای بسیار کوچک */
@media (max-width: 480px) {
  .brand .custom-logo {
    max-height: 30px;
  }
}
@media (max-width: 960px) {
  .header-cta .desktop-consult-btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 55px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 1.5rem;
    gap: 0.2rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(183, 154, 99, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    max-height: calc(100vh - 62px);
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu-list {
    flex-direction: column;
  }
  
  .nav-menu-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
  }

  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav a.active {
    color: var(--bronze);
  }

  .main-nav .mobile-consult-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bronze);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .main-nav .mobile-consult-btn:hover {
    background: var(--bronze);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 149, 0, 0.2);
    color: var(--white);
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.6rem 1rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand .seal {
    width: 30px;
    height: 30px;
    font-size: 0.6rem;
  }

  .brand small {
    font-size: 0.6rem;
  }

  .main-nav {
    inset: 54px 0 0 0;
    padding: 1rem 1rem;
    max-height: calc(100vh - 54px);
    /* width: 100%; */
  }

  .main-nav a {
    font-size: 0.88rem;
    padding: 0.5rem 0;
  }

  .main-nav .mobile-consult-btn {
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
  }

  .nav-toggle .hamburger-icon {
    width: 24px;
    height: 24px;
  }
}
/* ===================================== BACK TO TOP ===================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(242, 149, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.back-to-top:hover {
  background: var(--bronze);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(242, 149, 0, 0.4);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}
/* ===================================== footer  ========================================== */
.site-footer {
  background: var(--ink);
  color: #c7cfd6;
  padding: var(--gap-lg) 0 var(--gap-sm);
  margin-top: var(--gap-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid p {
  text-align: justify;
  width: 17rem;
  color: #b9c2cb;
}
.footer-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.footer-grid a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: #b9c2cb;
}
.footer-grid a:hover {
  color: var(--bronze-lt);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: #8592a0;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.small-day {
  display: block;
  padding-top: 0.4rem;
  color: #8592a0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ===================== صفحات داخلی/ صفحه‌بندی عمومی ===================== */
.page-hero{
  background: var(--ink);
  color: var(--paper);
  padding: 3.2rem 0 2.6rem;
}
.breadcrumb{ font-size:.82rem; color:#9FA9B3; margin-bottom:.8rem; }
.breadcrumb a{ color: var(--bronze); }
