/* Fonts are self-hosted (no Google Fonts), so they load reliably in Iran */
/* Noto Nastaliq Urdu arabic */
@font-face { font-family: "Noto Nastaliq Urdu"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/notonastaliqurdu-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
/* Noto Nastaliq Urdu latin-ext */
@font-face { font-family: "Noto Nastaliq Urdu"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/notonastaliqurdu-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Noto Nastaliq Urdu latin */
@font-face { font-family: "Noto Nastaliq Urdu"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/notonastaliqurdu-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Playfair Display latin-ext */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/playfairdisplay-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Playfair Display latin */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/playfairdisplay-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Vazirmatn arabic */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/vazirmatn-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
/* Vazirmatn latin-ext */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/vazirmatn-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Vazirmatn latin */
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/vazirmatn-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --ink: #16181a;
  --graphite: #2b2f33;
  --steel: #6e7378;
  --mist: #c9ccce;
  --paper: #f4f4f2;
  --gold: #e6b34a; /* crane-yellow gold, picked from the footage */
  --veil: rgba(22, 24, 26, 0.84);
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.skip {
  position: fixed; top: 0.5rem; inset-inline-start: 0.5rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.5rem 1rem;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Background ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #4a4e52 0%, #2b2f33 55%, #1c1e21 100%);
}
.backdrop__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Dark wash keeps white text readable over the footage */
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,26,0.55), rgba(22,24,26,0.35) 50%, rgba(22,24,26,0.6));
}

/* ---------- Language switch ---------- */
/* Each text exists in both languages; show only the active one */
html[data-lang="fa"] [lang="en"],
html[data-lang="en"] [lang="fa"] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--pad);
  background: linear-gradient(180deg, rgba(22,24,26,0.75), rgba(22,24,26,0));
}
.topbar__name { font-weight: 900; font-size: 1.15rem; text-decoration: none; }
.topbar__nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: 0.95rem; font-weight: 600; }
.topbar__nav a { text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.topbar__nav a:hover { border-bottom-color: var(--paper); }

.lang {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0 0.9rem;
  font: inherit; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--paper); background: rgba(22, 24, 26, 0.45);
  border: 1px solid rgba(244, 244, 242, 0.55); border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lang:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lang__icon { flex: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 4rem;
}
.hero__title {
  font-family: "Noto Nastaliq Urdu", "Vazirmatn", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 7.4vw, 7.5rem);
  line-height: 2;
  white-space: nowrap;
  color: var(--gold);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--mist);
}

/* ---------- Content bands ---------- */
.band { background: var(--veil); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* Contact: no veil, so the video shows through behind the details */
.band.band--last {
  background: linear-gradient(180deg, rgba(22,24,26,0.15), rgba(22,24,26,0.3));
  backdrop-filter: none; -webkit-backdrop-filter: none;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.band__inner {
  max-width: 1180px; margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad);
  display: grid; gap: 2rem clamp(2rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}
.band__title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.3;
}
@media (min-width: 900px) {
  .band__inner { grid-template-columns: minmax(180px, 1fr) 2.4fr; }
  .band__title { position: sticky; top: 6rem; align-self: start; }
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.25rem; }

/* Open windows: background visible, with a single line of text */
.open {
  min-height: 80vh; min-height: 80svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 4rem var(--pad);
}
.open__sub {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.open__quote {
  max-width: 18ch;
  font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.35;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

/* Services: rows divided by thin lines */
.rows li { padding: 1.5rem 0; border-top: 1px solid var(--steel); }
.rows li:last-child { border-bottom: 1px solid var(--steel); }
.rows h3 { font-size: 1.35rem; font-weight: 800; }
.rows p { margin-top: 0.4rem; color: var(--mist); max-width: 58ch; }


/* Values */
.values li {
  display: grid; gap: 0.25rem; padding: 1.5rem 0; border-top: 1px solid var(--steel);
}
.values li:last-child { border-bottom: 1px solid var(--steel); }
.values strong { font-size: 1.35rem; font-weight: 800; }
.values p { color: var(--mist); max-width: 58ch; }

/* Contact */
.contact { display: grid; gap: 0; }
.contact > div {
  display: grid; grid-template-columns: 8rem 1fr; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--steel);
}
.contact > div:last-child { border-bottom: 1px solid var(--steel); }
.contact dt { color: var(--mist); font-weight: 600; }
.contact dd { font-weight: 800; font-size: 1.15rem; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--steel); }
/* Latin digits and addresses stay left-to-right inside the RTL page */
.contact a[href^="tel"], .contact a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.contact__phones { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.contact a:hover { border-bottom-color: var(--paper); }

.footer {
  padding: 1.5rem var(--pad) 2rem; text-align: center;
  color: var(--mist); font-size: 0.9rem; border-top: 1px solid rgba(201, 204, 206, 0.25);
}

/* ---------- English version (left-to-right) ---------- */
html[data-lang="en"] body { line-height: 1.7; }
html[data-lang="en"] .hero__title [lang="en"] {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
}
html[data-lang="en"] .hero__title {
  font-size: clamp(1.7rem, 5.2vw, 5.8rem);
  line-height: 1.25;
  text-wrap: balance;
}
html[data-lang="en"] .open__quote {
  max-width: 22ch;
  font-size: clamp(1.8rem, 5vw, 3.75rem);
  line-height: 1.25;
}
html[data-lang="en"] .band__title { line-height: 1.2; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .topbar__nav a:not(.topbar__contact) { display: none; }
  .hero { padding-top: 5rem; }
  html[data-lang="en"] .hero__title { white-space: normal; }
  .contact > div { grid-template-columns: 1fr; gap: 0; }
}

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