@font-face {
  font-family: 'Kalameh';
  src: url('woff/KalamehWeb-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('woff/KalamehWeb-Medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('woff/KalamehWeb-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('woff/KalamehWeb-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-display: swap;
}

@keyframes parallax-move {
  from { transform: translateY(0); }
  to { transform: translateY(-30%); } /* پس‌زمینه کندتر حرکت می‌کند */
}

:root {
  --paper: #f7f5f1;
  --paper-bright: #fcfbf8;
  --ink: #221f20;
  --muted-ink: #6f6865;
  --red: #b94037;
  --mint: #08ffc8;
  --line: rgba(252, 251, 248, 0.2);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Kalameh', sans-serif;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
}

body::before {
  animation-delay: calc(var(--scroll-progress, 0) * -1s);
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-name: parallax-move;
  animation-play-state: paused;
  animation-timing-function: linear;
  background: url('هوم.jpg') center / cover no-repeat;
  content: '';
  filter: blur(4px);
  inset: -100dvh 0;
  position: fixed;
  will-change: transform;
  z-index: -1;
}

@media (max-width: 768px) {
  body::before {
    background-position: left center;
    margin-left: -110vw;
    margin-top: -63vh;
  }
}

a {
  color: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--paper-bright);
  inset-inline-start: var(--space-2);
  padding: 0.75rem 1rem;
  position: fixed;
  text-decoration: none;
  top: 0.75rem;
  transform: translateY(-150%);
  transition: transform 180ms ease;
  z-index: 10;
}

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

.site-header {
  align-items: center;
  display: flex;
  inset-inline: 0;
  justify-content: flex-start;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  position: absolute;
  top: 0;
  z-index: 3;
}

.site-nav__link,
.site-footer a,
.scroll-cue {
  text-decoration: none;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav__link,
.site-footer a {
  color: var(--muted-ink);
  font-size: 0.82rem;
  min-height: 2.75rem;
  padding: 0.75rem 0.25rem;
  transition: color 180ms ease;
}

.site-nav__link--request {
  color: var(--ink);
  font-weight: inherit;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current='page'],
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
}

.logo-section,
.contact-section {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.logo-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vh, 2.5rem);
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  padding: clamp(5rem, 11svh, 7rem) 1.5rem clamp(4rem, 8svh, 6rem);
}


.logo-section__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.section-kicker {
  color: var(--mint);
  direction: ltr;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.logo-section h1 {
  align-items: center;
  direction: ltr;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
  font-weight: 500;
  gap: 0.6rem;
  justify-content: center;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 0;
}

.brand-name__local {
  direction: rtl;
}

.brand-name__separator {
  color: var(--red);
  font-weight: 400;
}

.logo-stage {
  aspect-ratio: 1;
  isolation: isolate;
  margin-top: 0.85rem;
  position: relative;
  width: min(68vw, 31rem);
  width: min(68vw, 31rem, 52svh);
}

.logo-layer {
  display: block;
  height: 100%;
  inset: 0;
  mix-blend-mode: multiply;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  transform-origin: center;
  user-select: none;
  width: 100%;
}

.logo-layer--static {
  z-index: 1;
}

.logo-layer--left {
  animation: rotate-left 18s linear infinite;
  z-index: 2;
}

.logo-layer--right {
  animation: rotate-right 24s linear infinite;
  z-index: 3;
}

.scroll-cue {
  align-items: center;
  bottom: 0;
  color: var(--muted-ink);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 0.75rem;
  left: 50%;
  min-height: 4rem;
  padding: 0.75rem 1rem 0;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.scroll-cue__line {
  background: var(--red);
  height: 2.5rem;
  width: 1px;
}

.contact-section {
  align-items: center;
  background: rgba(34, 31, 32, 0.92);
  color: var(--paper-bright);
  display: flex;
  justify-content: center;
  padding: 6rem 1.5rem;
}


/* .contact-section::after {
  background: var(--red);
  border-radius: 50%;
  content: '';
  height: min(46vw, 36rem);
  opacity: 0.92;
  position: absolute;
  right: -14rem;
  top: -13rem;
  width: min(46vw, 36rem);
} */

.contact-card {
  max-width: 38rem;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.contact-card .section-kicker {
  margin-bottom: 1.25rem;
}

.contact-card h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.25;
  margin: 0;
}

.contact-card__intro {
  color: rgba(252, 251, 248, 0.7);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 2;
  margin: 1.5rem auto 3rem;
  max-width: 29rem;
}

.contact-list {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 30rem;
}

.contact-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0.75rem 0;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  color: var(--red);
  padding-inline: 0.65rem;
}

.contact-item__label {
  color: rgba(252, 251, 248, 0.62);
  font-size: 0.88rem;
}

.contact-item__value {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}

.site-footer {
  align-items: center;
  background: rgba(34, 31, 32, 0.92);
  color: rgba(252, 251, 248, 0.35);
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  letter-spacing: 0.2em;
  padding: 0 1.5rem 2.25rem;
}

.site-footer__links {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.site-footer__copyright {
  direction: ltr;
}

.site-footer a {
  color: rgba(252, 251, 248, 0.58);
  font-size: 0.72rem;
  letter-spacing: normal;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0.35rem;
}

@keyframes rotate-left {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes rotate-right {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .site-nav__link {
    font-size: 0.76rem;
  }

  .logo-section {
    padding-inline: 1rem;
  }

  .logo-stage {
    margin-top: 0.6rem;
    width: min(84vw, 25rem);
    width: min(84vw, 25rem, 44svh);
  }

  .contact-section {
    padding-inline: 1rem;
  }

  .contact-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
  }

  .contact-section::after {
    height: 20rem;
    right: -11rem;
    top: -8rem;
    width: 20rem;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding-inline: 1rem;
  }
}

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

  .logo-layer--left,
  .logo-layer--right {
    animation-play-state: paused;
  }

  .contact-item,
  .site-nav__link,
  .site-footer a,
  .skip-link {
    transition: none;
  }
}

/* Whole-site background image is handled by the global body::before pseudo */

.logo-layer {
  mix-blend-mode: multiply;
}

.request-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(8, 255, 200, 0.35);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08), inset 0 1px rgba(255, 255, 255, 0.4);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: 700 1rem 'Kalameh', sans-serif;
  gap: 1.25rem;
  justify-content: center;
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  min-height: 3.5rem;
  min-width: min(17rem, 90vw);
  padding: 0.75rem 1.5rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.request-button:hover,
.request-button:focus-visible {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(8, 255, 200, 0.6);
  box-shadow: 0 0.75rem 2rem rgba(8, 255, 200, 0.12), 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.request-button__arrow {
  color: var(--mint);
  direction: ltr;
  font: 400 1.25rem/1 sans-serif;
}

.hero-note {
  color: var(--muted-ink);
  font-size: 0.8rem;
  margin: -0.5rem 0 0;
}

.modal-open {
  overflow: hidden;
}

.request-modal {
  background: transparent;
  border: 0;
  color: #f5f7f6;
  max-height: none;
  max-width: none;
  padding: 1rem;
  width: 100%;
}

.request-modal::backdrop {
  animation: request-backdrop-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(0.9rem);
}

.request-modal__backdrop {
  inset: 0;
  position: fixed;
}

.request-modal__panel {
  background: linear-gradient(145deg, rgba(27, 34, 33, 0.88), rgba(10, 13, 13, 0.91));
  border: 1px solid rgba(8, 255, 200, 0.28);
  border-radius: 1.5rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
  margin: auto;
  max-width: 31rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  position: relative;
  width: 100%;
  z-index: 1;
  animation: request-panel-in 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.request-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--muted-ink);
  cursor: pointer;
  display: grid;
  font: 400 1.65rem/1 sans-serif;
  height: 3rem;
  justify-content: center;
  padding: 0;
  place-items: center;
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  transition: color 180ms ease, border-color 180ms ease;
  width: 3rem;
}

.request-modal__close span {
  display: block;
  line-height: 1;
  transform: translateY(-0.08em);
}

.request-modal__close:hover,
.request-modal__close:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.request-modal h2 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0.7rem 0 0;
}

.request-modal__intro {
  color: var(--muted-ink);
  font-size: 0.92rem;
  line-height: 1.9;
  margin: 0.75rem 0 1.75rem;
}

.request-form {
  display: grid;
  gap: 1.15rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: rgba(245, 247, 246, 0.82);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
  color: #f5f7f6;
  font: 400 1rem 'Kalameh', sans-serif;
  min-height: 3.25rem;
  outline: 0;
  padding: 0.7rem 1rem;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.form-field input::placeholder {
  color: rgba(159, 169, 166, 0.58);
}

.form-field input:focus {
  background: rgba(8, 255, 200, 0.07);
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(8, 255, 200, 0.12);
}

.form-field input[aria-invalid='true'] {
  border-color: var(--red);
}

.form-error {
  color: #ff7a82;
  font-size: 0.75rem;
  min-height: 1.1rem;
}

.form-submit {
  align-items: center;
  background: var(--mint);
  border: 0;
  border-radius: 0.8rem;
  color: #04100d;
  cursor: pointer;
  display: inline-flex;
  font: 700 1rem 'Kalameh', sans-serif;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  transition: background 180ms ease, transform 180ms ease;
}

.form-submit:hover:not(:disabled),
.form-submit:focus-visible:not(:disabled) {
  background: #66ffdc;
  transform: translateY(-1px);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-submit__loader {
  border: 2px solid rgba(4, 16, 13, 0.25);
  border-radius: 50%;
  border-top-color: #04100d;
  display: none;
  height: 1.1rem;
  width: 1.1rem;
}

.form-submit.is-loading .form-submit__label {
  display: none;
}

.form-submit.is-loading .form-submit__loader {
  animation: spin 700ms linear infinite;
  display: block;
}

.form-status {
  font-size: 0.86rem;
  line-height: 1.8;
  margin: 0;
  min-height: 1.6rem;
  text-align: center;
}

.form-status.is-success {
  color: var(--mint);
}

.form-status.is-error {
  color: #ff7a82;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes request-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes request-panel-in {
  from {
    filter: blur(4px);
    opacity: 0;
    transform: translateY(1.25rem) scale(0.96);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .logo-section {
    gap: 1rem;
    padding-bottom: 4rem;
  }

  .request-button {
    min-height: 3.25rem;
  }

  .request-modal {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .request-button,
  .form-submit,
  .form-field input,
  .request-modal__close {
    transition: none;
  }

  .request-modal::backdrop,
  .request-modal__panel,
  .form-submit.is-loading .form-submit__loader {
    animation: none;
  }
}
