@font-face {
  font-family: "Vazirmatn";
  src: url("assets/Vazirmatn-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #fe2e00;
  --black: #000002;
  --metal: #383a37;
  --swan: #e4e3de;
  --white: #ffffff;
  --pad: clamp(24px, 5vw, 84px);
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Vazirmatn", Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

.scroll-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  direction: ltr;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: clamp(150px, 14vw, 220px);
}

.header-service {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.01em;
}

.hero {
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 14vh, 170px) var(--pad) clamp(62px, 9vh, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow span {
  width: 28px;
  height: 3px;
  background: var(--orange);
}

.eyebrow.dark {
  color: rgba(0, 0, 2, 0.54);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 30px;
  font-size: clamp(48px, 6.7vw, 104px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero-copy > p {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.85;
}

.licensed {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.license-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  direction: ltr;
}

.hero-frame {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto 0;
  aspect-ratio: 0.69;
  overflow: hidden;
  background: var(--metal);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 79% 100%, 0 100%);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 2, 0.82));
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.07);
  transform: scale(1.07) translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.frame-number {
  position: absolute;
  z-index: 2;
  inset: 22px 22px auto auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.frame-slash {
  position: absolute;
  z-index: 3;
  inset: 24% auto auto -24px;
  width: 86px;
  height: 15px;
  background: var(--orange);
  transform: rotate(-48deg);
  animation: accent-float 4.8s ease-in-out infinite;
}

.frame-caption {
  position: absolute;
  z-index: 2;
  inset: auto auto 38px 34px;
  color: var(--white);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.25;
}

.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
}

.trust-strip div {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: color 240ms ease, background 240ms ease;
}

.trust-strip div::after {
  content: "";
  position: absolute;
  inset: auto 20% 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 260ms ease;
}

.trust-strip div:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
}

.trust-strip div:hover::after {
  transform: scaleX(1);
}

.trust-strip div + div {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(82px, 10vw, 154px) var(--pad);
}

.approach {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(50px, 9vw, 142px);
  align-items: center;
  background: var(--swan);
  color: var(--black);
}

.approach::before,
.form-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 50% 0 0;
  background: var(--swan);
}

.approach,
.form-section {
  position: relative;
  z-index: 1;
}

.approach-visual {
  position: relative;
}

.image-window {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--metal);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%, 0 82%);
}

.image-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(0.2, 0.72, 0.25, 1);
}

.approach-visual.is-visible .image-window img {
  transform: scale(1);
}

.image-index {
  margin-top: 15px;
  direction: ltr;
  text-align: left;
  color: rgba(0, 0, 2, 0.45);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.approach-copy h2,
.form-intro h2 {
  margin-bottom: 30px;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.approach-copy p,
.form-intro > p {
  max-width: 660px;
  color: rgba(0, 0, 2, 0.67);
  font-size: clamp(16px, 1.35vw, 20px);
}

.approach-copy .lead {
  color: var(--black);
  font-weight: 650;
}

.experience-line {
  max-width: 660px;
  margin-top: 38px;
  padding-top: 23px;
  border-top: 1px solid rgba(0, 0, 2, 0.24);
  display: flex;
  align-items: center;
  gap: 16px;
}

.experience-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 65% 100%, 0 100%);
  transition: transform 300ms ease;
}

.experience-line:hover .experience-mark {
  transform: rotate(45deg);
}

.transition {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px var(--pad);
  background: var(--metal);
}

.transition-label {
  direction: ltr;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(42px, 8vw, 124px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
  animation: soft-drift 8s ease-in-out infinite alternate;
}

.transition p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.5vw, 21px);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(470px, 1.15fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
  background: var(--white);
  color: var(--black);
}

.form-intro {
  position: sticky;
  top: 36px;
}

.privacy-note {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(0, 0, 2, 0.55);
  font-size: 13px;
}

.privacy-note span {
  color: var(--orange);
  font-size: 8px;
}

.form-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 2, 0.14);
  background: #f7f7f4;
  box-shadow: 18px 18px 0 var(--swan);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.form-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 23px 23px 0 var(--swan);
}

.form-card-top {
  min-height: 56px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 2, 0.14);
  font-size: 12px;
  font-weight: 650;
}

.site-footer {
  min-height: 180px;
  padding: 46px var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  background: var(--black);
}

.footer-main img {
  width: 190px;
}

.footer-main p,
.site-footer > a {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.site-footer > a {
  direction: ltr;
}

.mobile-cta {
  position: fixed;
  z-index: 50;
  inset: auto auto 24px 24px;
  min-height: 54px;
  min-width: 290px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--orange);
  color: var(--black);
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes accent-float {
  0%,
  100% {
    transform: rotate(-48deg) translateX(0);
  }
  50% {
    transform: rotate(-48deg) translateX(9px);
  }
}

@keyframes soft-drift {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(18px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-frame {
    width: min(100%, 680px);
    aspect-ratio: 1.25;
    margin: 0;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip div:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .trust-strip div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .approach,
  .form-section {
    grid-template-columns: 1fr;
  }

  .approach-visual {
    max-width: 620px;
  }

  .form-intro {
    position: static;
  }

  .form-card {
    box-shadow: 12px 12px 0 var(--swan);
  }

  .transition-label {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    padding-top: 19px;
  }

  .brand img {
    width: 142px;
  }

  .header-service {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    gap: 48px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-copy > p {
    font-size: 16px;
    line-height: 1.8;
  }

  .hero-frame {
    aspect-ratio: 0.92;
  }

  .trust-strip div {
    min-height: 72px;
    font-size: 13px;
  }

  .section-shell {
    padding-block: 78px;
  }

  .approach-copy h2,
  .form-intro h2 {
    font-size: 42px;
  }

  .approach-visual {
    order: 2;
  }

  .transition {
    min-height: 150px;
  }

  .form-section {
    gap: 42px;
  }

  .form-card {
    margin-inline-end: 8px;
  }

  .site-footer {
    min-height: 220px;
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-cta {
    min-width: 0;
    position: fixed;
    z-index: 50;
    inset: auto 12px 12px;
    min-height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--orange);
    color: var(--black);
    font-weight: 800;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .frame-slash,
  .transition-label {
    animation: none;
  }

  .hero-frame img,
  .image-window img {
    transform: none;
    transition: none;
  }
}

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 20px;
}

.contact-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-field label {
  font-size: 16px;
  font-weight: 650;
}

.contact-field input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(0, 0, 2, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 16px;
  scroll-margin-block: 36px 100px;
}

.contact-field input::placeholder {
  color: #747570;
  opacity: 1;
}

.contact-field input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.contact-button {
  direction: ltr;
  width: 100%;
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 2, 0.07);
  transition: background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 750;
}

.contact-submit {
  background: var(--orange);
  color: var(--black);
}

.contact-call {
  background: var(--metal);
  color: var(--white);
}

.contact-whatsapp {
  background: #128c4a;
  color: var(--white);
}

.contact-button span {
  direction: rtl;
}

.contact-button svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.contact-button:hover {
  filter: brightness(0.93);
}

.contact-button:focus-visible,
.mobile-cta:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}

.contact-error {
  margin: 0;
  color: #a51b00;
  font-size: 14px;
}

.contact-fallback {
  padding: 0 24px 24px;
}

#property-form {
  scroll-margin-top: 24px;
}

.contact-error.is-success {
  color: #137044;
}

.contact-button:disabled {
  cursor: default;
  opacity: 0.75;
}

.contact-honeypot {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: var(--orange);
}

.language-switch:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

html[lang="en"] h1 {
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: 1.08;
}

html[lang="en"] .approach-copy h2,
html[lang="en"] .form-intro h2 {
  font-size: clamp(36px, 4.3vw, 64px);
  line-height: 1.12;
}

html[lang="en"] .contact-button span {
  direction: ltr;
}

html[lang="en"] .contact-button {
  text-align: center;
}

@media (max-width: 640px) {
  html[lang="en"] h1 {
    font-size: clamp(42px, 11vw, 64px);
  }
  html[lang="en"] .mobile-cta {
    font-size: 15px;
  }
}

.mobile-cta { border-radius: 16px; }
.contact-error:not([hidden]) { padding: 14px 16px; border-radius: 12px; background: #fff1ec; line-height: 1.7; }
.contact-error.is-success:not([hidden]) { background: #e9f5ee; }
.contact-button:hover { box-shadow: 0 6px 16px rgba(0, 0, 2, 0.12); }
.contact-submit[aria-busy="true"] svg { animation: send-pulse 1s ease-in-out infinite alternate; }
@keyframes send-pulse { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .contact-submit[aria-busy="true"] svg { animation: none; } }
