/* =========================================================
   دیدبان افزار — ProMax Corporate UI
   Brand: Orange #F97316 | Charcoal | Warm stone atmosphere
   ========================================================= */

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --ink: #14110f;
  --ink-soft: #3d342c;
  --muted: #6b5e52;
  --line: rgba(20, 17, 15, 0.08);
  --surface: #faf6f1;
  --surface-2: #f3ebe2;
  --white: #ffffff;
  --dark: #1c1714;
  --dark-2: #2a221c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(28, 23, 20, 0.12);
  --header-h: 76px;
  --topbar-h: 40px;
  --font: "Vazirmatn", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h));
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(249, 115, 22, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(234, 88, 12, 0.08), transparent 50%),
    var(--surface);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
}

/* Topbar */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  height: var(--topbar-h);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s var(--ease);
}

.topbar__links a:hover {
  color: var(--orange-400);
}

.topbar__tag {
  color: var(--orange-400);
  font-weight: 600;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 241, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(28, 23, 20, 0.06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(249, 115, 22, 0.25));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--orange-700);
  background: var(--orange-50);
}

.nav__cta {
  background: var(--orange-500) !important;
  color: var(--white) !important;
  margin-inline-start: 0.35rem;
}

.nav__cta:hover {
  background: var(--orange-600) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.25s var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.36);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  border-color: rgba(234, 88, 12, 0.45);
  color: var(--orange-700);
}

.btn--outline:hover {
  background: var(--orange-50);
  border-color: var(--orange-500);
}

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  overflow: hidden;
  color: var(--white);
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero__slide.is-active .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 12, 8, 0.88) 0%, rgba(20, 12, 8, 0.55) 48%, rgba(20, 12, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(20, 12, 8, 0.25) 0%, rgba(20, 12, 8, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem 7rem;
  max-width: 720px;
  margin-inline: auto 0;
  margin-inline-start: max(calc((100% - 1180px) / 2), 1.25rem);
  opacity: 0;
  transform: translateY(24px);
}

.hero__slide.is-active .hero__content {
  animation: heroIn 0.9s var(--ease) 0.15s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: var(--orange-200);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__controls {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 1.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease);
}

.hero__btn:hover {
  background: rgba(249, 115, 22, 0.85);
  border-color: transparent;
}

.hero__dots {
  display: flex;
  gap: 0.45rem;
}

.hero__dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.hero__dots button.is-active {
  width: 28px;
  background: var(--orange-500);
}

/* Trust */
.trust {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.trust__item {
  text-align: center;
  padding: 1rem 0.5rem;
}

.trust__item strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--orange-600);
  line-height: 1.1;
}

.trust__item strong::after {
  content: "+";
  margin-inline-start: 0.1rem;
}

.trust__item span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--muted {
  background:
    linear-gradient(180deg, rgba(243, 235, 226, 0.7), rgba(250, 246, 241, 0.2));
}

.section--dark {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(249, 115, 22, 0.18), transparent 50%),
    var(--dark);
  color: var(--white);
}

.section--cta {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), transparent 40%),
    var(--surface-2);
}

.section__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--orange-600);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.section--dark .section__eyebrow {
  color: var(--orange-400);
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__head h2,
.about__copy h2,
.contact__intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section__desc {
  margin: 0;
  color: var(--muted);
}

.section__head--light .section__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  inset-inline-start: 1.25rem;
  inset-block-end: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about__badge strong {
  display: block;
  font-size: 0.95rem;
}

.about__badge span {
  color: var(--muted);
  font-size: 0.8rem;
}

.about__copy p {
  color: var(--ink-soft);
}

.check-list {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.6rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: inset 0 0 0 3px var(--orange-100);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.35);
}

.service__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--orange-50), var(--orange-100));
  color: var(--orange-600);
}

.service__icon svg {
  width: 24px;
  height: 24px;
}

.service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Solutions */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.solution {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.solution:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.solution img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.solution__body {
  padding: 1.35rem;
}

.solution__body h3 {
  margin: 0 0 0.55rem;
}

.solution__body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.solution__body a {
  color: var(--orange-600);
  font-weight: 700;
}

/* Projects */
.projects-table {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.project-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s var(--ease);
}

.project-row:hover {
  background: rgba(249, 115, 22, 0.1);
}

.project-row__name {
  font-weight: 700;
}

.project-row span:not(.project-row__name) {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.clients span {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Advantages */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.advantage {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.advantage::after {
  content: "";
  position: absolute;
  inset-inline-end: -20px;
  inset-block-start: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 70%);
}

.advantage__num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--orange-500);
  font-weight: 800;
  font-size: 1.1rem;
}

.advantage h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.advantage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__meta {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
}

.contact__meta li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact__meta strong {
  font-size: 0.8rem;
  color: var(--orange-600);
}

.contact-form {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  background: var(--white);
}

.form-note {
  margin: 0;
  text-align: center;
  color: var(--orange-700);
  font-weight: 700;
  background: var(--orange-50);
  padding: 0.75rem;
  border-radius: 12px;
}

/* Footer */
.footer {
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer .brand__text strong {
  color: var(--white);
}

.footer .brand__text small,
.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 1rem;
}

.footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer a:hover {
  color: var(--orange-400);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Float CTA */
.float-cta {
  position: fixed;
  inset-inline-end: 1.25rem;
  inset-block-end: 1.25rem;
  z-index: 90;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--orange-500), var(--orange-700));
  color: var(--white);
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.4);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions,
  .advantages,
  .about__grid,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset-inline: 1rem;
    top: calc(var(--topbar-h) + var(--header-h) + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    border-radius: 12px;
  }

  .nav__cta {
    text-align: center;
    margin-inline-start: 0;
    margin-top: 0.35rem;
  }

  .hero {
    min-height: 78vh;
  }

  .hero__content {
    margin-inline: 1.25rem;
    max-width: none;
  }

  .about__grid,
  .solutions,
  .advantages,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .about__frame img {
    height: 320px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .topbar__tag {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .trust__grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .brand__text small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__slide,
  .hero__bg,
  .float-cta {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
