/* ===============================
   IRANSans X (فایل‌ها در public/assets/site/fonts/iransans)
   =============================== */

@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/iransans/IRANSansXNoEn-Regular.woff2") format("woff2"),
    url("../fonts/iransans/IRANSansXNoEn-Regular.woff") format("woff"),
    url("../fonts/iransans/IRANSansX-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("../fonts/iransans/IRANSansXNoEn-Bold.woff2") format("woff2"),
    url("../fonts/iransans/IRANSansXNoEn-Bold.woff") format("woff"),
    url("../fonts/iransans/IRANSansX-Bold.ttf") format("truetype");
}

/* ===============================
   Otoemdad — Global (site-wide)
   ناوبار، پاورقی، تم، و اجزای واقعاً مشترک بین چند صفحه
   =============================== */

:root {
  --oto-font-sans: "IRANSans";
  --oto-primary: #f7931e;
  --oto-secondary: #0b3c5d;
  --oto-text: #4a4a4a;
  --oto-border: rgba(11, 60, 93, 0.1);
  /* هالهٔ فوکوس فیلدهای فرم (جایگزین آبی بوت‌استرپ) */
  --oto-focus-ring: rgba(247, 147, 30, 0.28);
  /* هم‌تراز با بدنهٔ سایت؛ کامپوننت‌های Bootstrap از همین خانواده استفاده کنند */
  --bs-font-sans-serif: var(--oto-font-sans);
}

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

body {
  position: relative;
  margin: 0;
  font-family: var(--oto-font-sans);
  color: var(--oto-text);
  background: #fafafa;
}

.hero-container {
  width: 100%;
  max-width: 1364px;
}

@media (min-width: 1400px) {
  .hero-container {
    max-width: 80%;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .hero-container {
    max-width: 86%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-container {
    max-width: 92%;
  }
}


/* ----- Navbar (shared across pages) ----- */

.hero-navbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding: 2.5rem 0 1.25rem;
}

.hero-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--oto-primary);
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-brand span {
  color: var(--oto-secondary);
}

.hero-link {
  color: var(--oto-text);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.hero-link:hover,
.hero-link:focus {
  color: var(--oto-primary);
}

.hero-link--active {
  color: var(--oto-primary);
  font-weight: 700;
}

.hero-actions {
  align-items: flex-start;
}

.hero-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 39px;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  border: 1px solid rgba(247, 147, 30, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--oto-primary);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.hero-action-link--plain {
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--oto-primary);
}

/* دکمه‌های CTA فنی‌کار — چند صفحه (خانه، لیست فنی‌کاران، …) */
.btn-tech-outline,
.btn-tech-fill {
  display: inline-block;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-tech-outline {
  border: 1px solid var(--oto-primary);
  color: var(--oto-primary);
  background: #fff;
}

.btn-tech-fill {
  border: 0;
  color: #fff;
  background: var(--oto-primary);
}

/* ----- فیلدهای فرم: فوکوس / focus-visible با تم نارنجی ----- */
.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible {
  border-color: var(--oto-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--oto-focus-ring);
}

textarea:not(.form-control):focus,
textarea:not(.form-control):focus-visible {
  outline: 0;
  border-color: var(--oto-primary);
  box-shadow: 0 0 0 3px var(--oto-focus-ring);
}

select:not(.form-select):focus,
select:not(.form-select):focus-visible {
  outline: 0;
  border-color: var(--oto-primary);
  box-shadow: 0 0 0 0.25rem var(--oto-focus-ring);
}

.was-validated .form-control:valid:focus,
.form-control.is-valid:focus,
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus,
.was-validated .form-select:valid:focus,
.form-select.is-valid:focus,
.was-validated .form-select:invalid:focus,
.form-select.is-invalid:focus {
  border-color: var(--oto-primary);
  box-shadow: 0 0 0 0.25rem var(--oto-focus-ring);
}


/* ===============================
   Footer
   =============================== */

.site-footer {
  padding: 2rem 0 0;
}

/* نوار LTR: ماشین سمت چپ، تیتر و فرم سمت راست (هماهنگ با row بوت‌استرپ) */
.enamads a {
  display: flex;
  border: 1px solid #ededed;
  border-radius: 14px;
}

.footer-newsletter {
  min-height: 124px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(233, 236, 239, 0.95), rgba(253, 242, 233, 0.98));
  padding: 1.25rem clamp(1.25rem, 3vw, 1rem);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 60, 93, 0.06);
}

.footer-newsletter>.row {
  min-height: 88px;
}

.footer-newsletter__form {
  box-sizing: border-box;
  width: 100%;
  max-width: 353px;
  min-width: 0;
  height: 60px;
  border: 1px solid #eee;
  border-radius: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 4px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-newsletter__form:focus-within {
  border-color: var(--oto-primary);
  box-shadow:
    0 0 0 3px var(--oto-focus-ring),
    0 4px 18px rgba(11, 60, 93, 0.08);
}

.footer-newsletter__form button {
  flex: 0 0 auto;
  height: 50px;
  border: 0;
  border-radius: 100px;
  background: #f7931e;
  color: #fff;
  font-size: 1.05rem;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.footer-newsletter__form input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  border: 0;
  background: transparent;
  outline: none;
  text-align: right;
  color: #8a8a8a;
  font-size: 1rem;
  padding: 0 0.9rem;
}

.footer-main>.row {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

.footer-phone {
  margin: 0.25rem 0 1.1rem;
  color: #8a8a8a;
  font-size: 1rem;
}

.footer-links-col h3 {
  margin: 0 0 0.9rem;
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-col li {
  margin-bottom: 0.55rem;
}

.footer-links-col a {
  color: #8a8a8a;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom {
  border-top: 1px solid #d7d7d7;
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  color: #8a8a8a;
  font-size: 1.05rem;
}

.footer-bottom strong {
  color: #f7931e;
}

.footer-bottom a {
  color: #f7931e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a strong {
  color: inherit;
  font-weight: 700;
}


/* ===============================
   حالت hover / focus-visible (global)
   =============================== */

@media (hover: hover) and (pointer: fine) {
  .hero-brand:hover {
    color: #e6861a;
  }

  .hero-brand:hover span {
    color: #0a4a72;
  }

  .hero-action-link:hover {
    border-color: var(--oto-primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: #fffaf5;
  }

  .hero-action-link--plain:hover {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  .footer-links-col a:hover {
    color: var(--oto-primary);
  }

  .footer-bottom a:hover {
    color: #e6861a;
  }

  .footer-newsletter__form button:hover {
    background: #e6861a;
  }

  .hero-navbar .navbar-toggler:hover {
    opacity: 0.88;
  }

  .btn-tech-outline:hover {
    background: rgba(247, 147, 30, 0.09);
    border-color: #e6861a;
    color: #e6861a;
  }

  .btn-tech-fill:hover {
    background: #e6861a;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.35);
  }
}

.hero-brand:focus-visible,
.hero-link:focus-visible,
.hero-action-link:focus-visible,
.footer-links-col a:focus-visible,
.footer-bottom a:focus-visible,
.footer-newsletter__form button:focus-visible,
.hero-navbar .navbar-toggler:focus-visible,
.btn-tech-outline:focus-visible,
.btn-tech-fill:focus-visible {
  outline: 2px solid var(--oto-secondary);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {

  .hero-brand,
  .hero-link,
  .hero-action-link,
  .footer-links-col a,
  .footer-bottom a,
  .footer-newsletter__form button,
  .btn-tech-outline,
  .btn-tech-fill {
    transition-duration: 0.01ms !important;
  }
}
