:root {
  --red: #c80000;
  --red-dark: #a90000;
  --ink: #141414;
  --charcoal: #343434;
  --paper: #f6f5f2;
  --white: #fff;
  --muted: #727272;
  --line: rgba(20, 20, 20, 0.15);
  --line-dark: rgba(255, 255, 255, 0.16);
  --container: min(1240px, calc(100% - 48px));
  --header-h: 86px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="fa"] body {
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  line-height: 1.85;
}
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] .eyebrow,
html[lang="fa"] .service-number { letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ff4d4d; outline-offset: 4px; }
.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--red);
}
.skip-link:focus { transform: translateY(0); }
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: clamp(84px, 10vw, 144px); }
.section-dark { color: var(--white); background: var(--ink); }
.section-white { background: var(--white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: #ff6464; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.03;
  text-wrap: balance;
}
h1 { font-size: clamp(2.55rem, 6vw, 5rem); letter-spacing: -.052em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.025em; }
.lede { max-width: 700px; margin: 26px 0 0; color: #555; font-size: clamp(1.04rem, 1.35vw, 1.22rem); }
.section-dark .lede { color: rgba(255,255,255,.67); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: end;
  gap: 48px;
  margin-block-end: clamp(48px, 7vw, 88px);
}
.section-heading .lede { margin: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  color: var(--white);
  border-block-end: 1px solid rgba(255,255,255,.15);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  height: 76px;
  background: rgba(20,20,20,.94);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; width: 150px; height: 70px; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.nav-shell { order: 1; display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.site-nav a { position: relative; padding-block: 12px; color: rgba(255,255,255,.82); font-size: .83rem; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 5px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
[dir="rtl"] .site-nav a::after { transform-origin: right; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.language-switcher { order: 2; flex: 0 0 auto; display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.28); }
.language-switcher a { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 7px 9px; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 750; line-height: 1; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.language-switcher a:hover, .language-switcher a:focus-visible { color: var(--white); background: rgba(255,255,255,.1); }
.language-switcher a[aria-current="page"] { color: var(--white); background: var(--red); }
.menu-toggle { order: 3; display: none; width: 48px; height: 48px; padding: 0; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.35); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-items: end;
  color: var(--white);
  background: #111;
  isolation: isolate;
}
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -3; }
.hero-media img { object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.7) 38%, rgba(8,8,8,.18) 72%, rgba(8,8,8,.08) 100%); }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.7) 38%, rgba(8,8,8,.18) 72%, rgba(8,8,8,.08) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 32%; background: linear-gradient(0deg, rgba(8,8,8,.6), transparent); }
.hero-inner { padding-block: calc(var(--header-h) + 96px) clamp(72px, 9vw, 120px); }
.hero-copy { max-width: 840px; }
.hero .eyebrow { color: #ff6b6b; }
.hero h1 { max-width: 790px; }
.hero-description { max-width: 690px; margin: 30px 0 36px; color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; font-size: .91rem; font-weight: 800; line-height: 1.2; transition: transform .22s var(--ease), background .22s ease, border-color .22s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { color: var(--white); background: rgba(20,20,20,.1); border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-dark { color: var(--white); background: var(--ink); }
.hero-index { position: absolute; inset-inline-end: max(24px, calc((100% - 1240px) / 2)); inset-block-end: 48px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.66); font-size: .75rem; letter-spacing: .14em; }
.hero-index::before { content: ""; width: 76px; height: 1px; background: var(--red); }

.service-strip { color: var(--white); background: var(--red); }
.service-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 25px 20px; text-align: center; font-size: .77rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-inline-start: 1px solid rgba(255,255,255,.22); }
.strip-item:last-child { border-inline-end: 1px solid rgba(255,255,255,.22); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.about-media { position: relative; min-height: 590px; overflow: hidden; }
.about-media img { width: 100%; height: 100%; min-height: 590px; object-fit: cover; transition: transform .65s var(--ease); }
.about-media:hover img { transform: scale(1.025); }
.about-media::after { content: ""; position: absolute; inset: auto 0 0 auto; width: 44%; height: 10px; background: var(--red); }
.about-copy p { color: #555; }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-block-start: 18px; color: var(--red); font-weight: 800; }
.text-link::after { content: "→"; transition: transform .2s ease; }
[dir="rtl"] .text-link::after { content: "←"; }
.text-link:hover::after { transform: translateX(4px); }
[dir="rtl"] .text-link:hover::after { transform: translateX(-4px); }

.services-list { border-block-start: 1px solid var(--line-dark); }
.service-row { display: grid; grid-template-columns: 90px minmax(220px, .7fr) minmax(0, 1.3fr); gap: 42px; align-items: start; padding-block: 36px; border-block-end: 1px solid var(--line-dark); }
.service-number { color: #ff6464; font-size: .8rem; font-weight: 800; letter-spacing: .15em; }
.service-row p { max-width: 670px; margin: 0; color: rgba(255,255,255,.65); }

.approach-wrap { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(48px, 8vw, 120px); }
.approach-intro { position: sticky; inset-block-start: 120px; align-self: start; }
.approach-steps { counter-reset: approach; }
.approach-step { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 28px; padding-block: 28px 36px; border-block-start: 1px solid var(--line); counter-increment: approach; }
.approach-step::before { content: "0" counter(approach); color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.approach-step p { margin: 12px 0 0; color: #5c5c5c; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); margin-block-start: clamp(60px, 9vw, 120px); border-block: 1px solid var(--line); }
.principle { min-height: 245px; padding: 30px; border-inline-start: 1px solid var(--line); }
.principle:last-child { border-inline-end: 1px solid var(--line); }
.principle-mark { display: inline-block; width: 12px; height: 12px; margin-block-end: 48px; background: var(--red); }
.principle p { margin: 16px 0 0; color: #666; font-size: .93rem; }

.supply-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--charcoal); }
.supply-image { overflow: hidden; }
.supply-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.supply-image:hover img { transform: scale(1.025); }
.supply-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 7vw, 110px); color: var(--white); }
.supply-copy p { max-width: 590px; color: rgba(255,255,255,.66); }

.cta-photo { position: relative; min-height: 620px; display: grid; align-items: center; color: var(--white); overflow: hidden; isolation: isolate; }
.cta-photo img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(12,12,12,.35), rgba(12,12,12,.42) 45%, rgba(12,12,12,.92) 100%); }
[dir="rtl"] .cta-photo::before { background: linear-gradient(270deg, rgba(12,12,12,.35), rgba(12,12,12,.42) 45%, rgba(12,12,12,.92) 100%); }
.cta-copy { width: min(560px, 48%); margin-inline-start: auto; }
[dir="rtl"] .cta-copy { margin-inline-start: 0; margin-left: auto; }
.cta-copy p { color: rgba(255,255,255,.74); }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); }
.contact-details { display: grid; gap: 0; margin-block-start: 36px; border-block-start: 1px solid var(--line); }
.contact-item { padding-block: 22px; border-block-end: 1px solid var(--line); }
.contact-label { display: block; margin-block-end: 5px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-item a:hover { color: var(--red); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.contact-form { padding: clamp(28px, 5vw, 60px); background: var(--white); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-block-end: 8px; font-size: .84rem; font-weight: 750; }
input, textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #faf9f7; border: 1px solid #c7c4bf; border-radius: 0; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--red); outline: 3px solid rgba(200,0,0,.13); }
.form-note { margin: 17px 0 20px; color: #666; font-size: .86rem; }
.form-error { min-height: 1.5em; margin: 8px 0 0; color: #a00000; font-size: .86rem; font-weight: 650; }
.map-shell { margin-block-start: 62px; min-height: 300px; display: grid; place-items: center; text-align: center; background: #e9e7e2; border: 1px solid var(--line); }
.map-load { max-width: 470px; padding: 42px 24px; }
.map-shell iframe { width: 100%; height: 430px; border: 0; }

.site-footer { padding-block: 76px 26px; color: var(--white); background: #0b0b0b; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .7fr 1fr; gap: 70px; padding-block-end: 54px; }
.footer-brand { display: block; width: 220px; height: 130px; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.footer-summary { max-width: 450px; margin: 24px 0 0; color: rgba(255,255,255,.58); }
.footer-heading { display: block; margin-block-end: 18px; color: rgba(255,255,255,.45); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.76); }
.footer-links a:hover { color: #ff5e5e; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block-start: 24px; border-block-start: 1px solid var(--line-dark); color: rgba(255,255,255,.46); font-size: .8rem; }
.erv-signature { color: rgba(255,255,255,.72); font-weight: 800; letter-spacing: .08em; }
.erv-signature:hover { color: #ff5e5e; }
.whatsapp-float { position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: 900; display: inline-flex; min-width: 56px; min-height: 56px; align-items: center; justify-content: center; gap: 9px; padding: 14px 17px; color: #fff; background: #1d8f52; box-shadow: 0 12px 28px rgba(0,0,0,.24); font-weight: 800; }
.whatsapp-float svg { width: 24px; height: 24px; fill: currentColor; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  :root { --header-h: 76px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .76rem; }
  .brand { width: 142px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { border-block-start: 1px solid var(--line); }
  .principle:nth-child(4) { border-block-start: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --container: min(100% - 34px, 1240px); }
  .menu-toggle { display: block; }
  .nav-shell {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    align-items: stretch;
    padding: 18px;
    background: rgba(20,20,20,.985);
    border-block-start: 1px solid rgba(255,255,255,.12);
  }
  .nav-shell.is-open { display: grid; }
  .site-nav { display: grid; gap: 0; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; padding-inline: 12px; border-block-end: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
  .header-inner { gap: 9px; }
  .language-switcher { margin-inline-start: auto; }
  .language-switcher a { min-height: 34px; padding: 6px 7px; font-size: .68rem; }
  .hero { min-height: 760px; }
  .hero::before { background: linear-gradient(90deg, rgba(8,8,8,.9), rgba(8,8,8,.64) 72%, rgba(8,8,8,.24)); }
  [dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(8,8,8,.9), rgba(8,8,8,.64) 72%, rgba(8,8,8,.24)); }
  .hero-index { display: none; }
  .service-strip .container { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3), .strip-item:nth-child(4) { border-block-start: 1px solid rgba(255,255,255,.22); }
  .section-heading, .about-grid, .approach-wrap, .contact-layout { grid-template-columns: 1fr; }
  .about-media, .about-media img { min-height: 470px; }
  .service-row { grid-template-columns: 60px 1fr; gap: 22px; }
  .service-row p { grid-column: 2; }
  .approach-intro { position: static; }
  .supply-band { grid-template-columns: 1fr; }
  .supply-image { min-height: 470px; }
  .cta-copy { width: min(100%, 560px); margin-inline-start: 0; }
  [dir="rtl"] .cta-copy { margin-left: 0; }
  .cta-photo::before, [dir="rtl"] .cta-photo::before { background: linear-gradient(90deg, rgba(12,12,12,.82), rgba(12,12,12,.56)); }
  .footer-grid { gap: 46px; }
}

@media (max-width: 560px) {
  :root { --container: min(100% - 28px, 1240px); }
  .brand { width: 92px; height: 60px; }
  .menu-toggle { width: 44px; height: 44px; }
  .language-switcher { gap: 1px; padding: 2px; }
  .language-switcher a { min-height: 32px; padding: 5px; font-size: .62rem; }
  .hero { min-height: 720px; }
  .hero-inner { padding-block-end: 62px; }
  .hero-media img { object-position: 62% center; }
  .button-row .btn { width: 100%; }
  .service-strip .container { width: 100%; }
  .strip-item { padding: 20px 8px; font-size: .65rem; letter-spacing: .065em; }
  .about-media, .about-media img, .supply-image { min-height: 360px; }
  .service-row { grid-template-columns: 42px 1fr; gap: 12px; padding-block: 28px; }
  .approach-step { grid-template-columns: 48px 1fr; gap: 12px; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: auto; border-inline-end: 1px solid var(--line); border-block-start: 1px solid var(--line); }
  .principle:first-child { border-block-start: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .contact-form { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .whatsapp-float { inset-inline-end: 14px; inset-block-end: 14px; min-width: 52px; min-height: 52px; padding: 13px; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
