/* ============================================================
   {{COMPANY_NAME}} — official contact portal
   Persian, RTL. Plain CSS, no framework, no build step.
   Edit this file to restyle; edit index.html to change words.
   ============================================================ */

/* ---------- self-hosted Shabnam (SIL OFL) ----------
   served from this VPS, never from a CDN: Google Fonts and jsDelivr are slow or
   unreachable for many visitors inside Iran, and a font that fails to load takes
   the page's whole typography with it.
   Shabnam ships 300/400/500/700 — nothing heavier. Asking for 800 or 900 only
   triggers synthetic bold, which smears Persian letterforms instead of thickening
   them, so every heading here uses 700. */
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/Shabnam.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/Shabnam-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/Shabnam-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/Shabnam-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #101828;
  --panel: #f0f0f0;
  --panel-edge: #e2e2e2;
  --primary: #3065b0;
  --primary-deep: #2d5bb4;
  --navy: #1b3b75;
  --muted: #f1f4f7;
  --muted-foreground: #4e5866;
  --accent: #d3def0;
  --border: #d4dadb;
  --input: #a7adb4;
  --ring: #42b8c9;
  --pale: #c4cedb;
  --destructive: #dc2626;
  --deep: #0b1d3f;
  --nav-h: 4rem;
  /* stacked-layout only: corner radius and the gap between sections */
  --sec-r: 1.15rem;
  --sec-gap: 0.6rem;
  --font: "Shabnam", Tahoma, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--panel);
  color: var(--foreground);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ============ buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.98rem 1.9rem;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.btn__arrow {
  transition: transform 0.2s ease;
}
.btn--primary {
  background: #e7effa;
  color: var(--navy);
}
.btn--primary::before {
  background: var(--primary);
}
.btn--primary:hover {
  background: #d9e6f7;
}
.btn--primary:hover::before {
  width: 7px;
}
.btn--primary:hover .btn__arrow {
  transform: translateX(-3px);
}
.btn--onDark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn--onDark::before {
  background: rgba(255, 255, 255, 0.55);
}
.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* over the photo the accent bar disappears, so the pill shape carries the emphasis */
.hero .btn,
.nav .btn {
  border-radius: 99px;
  padding: 1rem 2.2rem;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.hero .btn::before,
.nav .btn::before {
  display: none;
}
.hero .btn--primary,
.nav .btn--primary {
  background: #fff;
  color: #10294f;
  box-shadow: none;
}
.hero .btn--primary:hover,
.nav .btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.hero .btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}
.hero .btn--onDark:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.nav .btn {
  padding: 0.5rem 1.3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ring);
  flex: none;
}

/* ============ navbar ============
   transparent over the hero, solid once the page scrolls. fixed rather than sticky
   so the photograph reaches the very top of the screen. */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  background: transparent;
  border-block-end: 1px solid transparent;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease;
}
.nav.is-scrolled {
  background: rgba(11, 29, 63, 0.92);
  backdrop-filter: blur(12px);
  border-block-end-color: rgba(255, 255, 255, 0.14);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
.nav__logo {
  width: 30px;
  height: 30px;
  flex: none;
  color: #8fc4ee;
}
.nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav__name b {
  font-weight: 700;
  font-size: 0.98rem;
}
.nav__name em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  color: #9fb2cc;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-inline-start: auto;
  font-size: 0.9rem;
}
.nav__links a {
  position: relative;
  padding-block: 0.35rem;
  color: #c4cedb;
  text-decoration: none;
  font-weight: 700;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--ring);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}
.nav__links a:hover {
  color: #fff;
}
.nav__links a:hover::after {
  transform: scaleX(1);
}
.nav a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.nav__cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
}
/* the fixed bar would otherwise cover whatever an anchor jumps to */
#form,
#articles,
#faq,
#phone {
  scroll-margin-top: calc(var(--nav-h) + 0.5rem);
}

/* ============ hero ============
   a sheet that ends: rounded lower edge and a shadow, so the form card has
   something to sit on top of. */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block-start: var(--nav-h);
  padding-block-end: clamp(5rem, 10vw, 9rem);
  border-end-start-radius: 1.25rem;
  border-end-end-radius: 1.25rem;
  box-shadow: 0 22px 48px -28px rgba(11, 29, 63, 0.6);
  /* background: var(--deep) url("../img/greece-flag.svg") left center/cover
    no-repeat; */
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.webp") center center/cover no-repeat;
  transform: scaleX(-1); /* vertical flip */
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(11, 29, 63, 0.96) 0%,
    rgba(11, 29, 63, 0.88) 38%,
    rgba(11, 29, 63, 0.55) 72%,
    rgba(11, 29, 63, 0.3) 100%
  );
}
/* keeps the transparent navbar legible over bright sky */
.hero__topfade {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: clamp(110px, 18vh, 180px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 63, 0.6) 0%,
    rgba(11, 29, 63, 0.25) 55%,
    rgba(11, 29, 63, 0) 100%
  );
}
/* the lower edge softens so the card lands on blur rather than on detail */
.hero__blur {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(150px, 26vh, 300px);
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 40%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    #000 0%,
    #000 40%,
    rgba(0, 0, 0, 0.45) 72%,
    transparent 100%
  );
}
.hero__wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}
.hero__inner {
  max-width: 780px;
  color: #fff;
  position: relative;
  padding-inline-start: clamp(1.5rem, 2.4vw, 2.2rem);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.35rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: #d8e2f0;
  max-width: 52ch;
  margin-bottom: 2.6rem;
}
.hero__lead strong {
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -0.55em 0 rgba(66, 184, 201, 0.35);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* SIGNATURE — one line runs the length of the content and ends in a dot level with
   the buttons. the site's premise is a single route in, drawn rather than announced. */
.channel {
  position: absolute;
  inset-inline-start: 0;
  top: 0.4rem;
  bottom: 3.6rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(66, 184, 201, 0),
    var(--ring) 22%,
    var(--ring)
  );
}
.channel::after {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ring);
}

/* ============ form: a card that climbs into the hero ============ */
.formsec {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
  margin-block-start: clamp(-9rem, -10vw, -4.5rem);
}
.shell {
  max-width: 1080px;
  margin-inline: auto;
}
.split {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  background: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(11, 29, 63, 0.75);
}
.pane {
  padding: clamp(1.9rem, 4vw, 3.25rem);
}
.pane .eyebrow {
  margin-bottom: 0.85rem;
}
.formsec h2 {
  font-size: clamp(1.45rem, 2.9vw, 1.95rem);
  font-weight: 700;
  line-height: 1.42;
  margin-bottom: 1.6rem;
}

.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.req {
  color: var(--destructive);
  font-weight: 700;
}
.control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--foreground);
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.78rem 1rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.control::placeholder {
  color: #9aa1ab;
}
.control:hover {
  border-color: var(--input);
}
.control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 184, 201, 0.35);
}
.control--ltr {
  direction: ltr;
  text-align: left;
}
textarea.control {
  min-height: 132px;
  resize: vertical;
}
.control[aria-invalid="true"] {
  border-color: var(--destructive);
}
.control[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}
.errmsg {
  display: none;
  font-size: 0.82rem;
  color: var(--destructive);
  margin-top: 0.35rem;
}
.field.is-invalid .errmsg {
  display: block;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.formfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.6rem;
}
.note {
  font-size: 0.83rem;
  color: var(--muted-foreground);
}
.formerror {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.9rem;
}
.formerror.is-shown {
  display: block;
}

/* the confirmation the visitor came for */
.success {
  display: none;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}
.success.is-shown {
  display: block;
}
.success h2 {
  margin-bottom: 0.5rem;
}
.success p {
  color: var(--muted-foreground);
  margin-bottom: 1.4rem;
}
.success .code {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  direction: ltr;
  background: var(--accent);
  color: var(--navy);
  padding: 0.9rem 1.7rem;
  border-radius: 0.5rem;
}
.success .keep {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.aside {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--deep) url("../img/signal.svg") center/cover no-repeat;
}
/* a different photograph from the hero: the same one blurred directly beneath itself
   reads as a mistake rather than as a motif */
.aside .photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/flag-photo.jpg") center center/cover no-repeat;
  filter: blur(10px);
  transform: scale(1.12);
}
.aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    155deg,
    rgba(11, 29, 63, 0.7) 0%,
    rgba(11, 29, 63, 0.82) 55%,
    rgba(11, 29, 63, 0.9) 100%
  );
}
.aside > * {
  position: relative;
  z-index: 2;
}
.aside h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #d8e2f0;
  line-height: 1.75;
}
.steps b {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ============ reading sections ============
   these carry the keyword weight, so they are set for reading rather than for layout */
.reading {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--background);
  border-block-start: 1px solid var(--border);
}
.reading--alt {
  background: #f7f8fa;
}
.wrap {
  max-width: 74ch;
  margin-inline: auto;
}

/* the articles sheet slides UNDER the form card, as the hero does above it */
#articles {
  position: relative;
  z-index: 1;
  background: var(--background);
  margin-block-start: clamp(-11rem, -11vw, -5.5rem);
  border-block-start: 0;
  padding-block-start: clamp(5.5rem, 11vw, 9.5rem);
  border-start-start-radius: 1.25rem;
  border-start-end-radius: 1.25rem;
  box-shadow: 0 -14px 34px -26px rgba(11, 29, 63, 0.4);
}

.wrap--wide {
  max-width: 1180px;
}
.article {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
.article__fig {
  margin: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.article__fig .frame {
  display: block;
  aspect-ratio: 4/5;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--deep) center/cover no-repeat;
}
.article__fig figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
/* first article: figure on the right (the start side in RTL), second on the left */
.article--figStart .article__fig {
  order: -1;
}
.article__body > *:first-child {
  margin-top: 0;
}
.reading .eyebrow {
  margin-bottom: 1.4rem;
}
.reading h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.1rem;
}
.reading p {
  color: var(--muted-foreground);
  margin-bottom: 1.05rem;
}
.reading p strong {
  color: var(--foreground);
  font-weight: 700;
}
.reading h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--foreground);
}
.reading ul {
  margin: 0 1.3rem 1.05rem;
  color: var(--muted-foreground);
}
.reading li {
  margin-bottom: 0.4rem;
}
article + article {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--border);
}

/* every FAQ answer is visible: this page's job is answering, so nothing hides behind a click */
.qa {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.qa:first-of-type {
  border-top: 1px solid var(--border);
}
.qa h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.qa h3::before {
  content: "؟";
  flex: none;
  color: var(--primary);
  font-weight: 700;
}
.qa p {
  margin: 0;
  font-size: 0.95rem;
}
.qa--focus {
  scroll-margin-top: 1rem;
}

.foot {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--panel);
  border-block-start: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted-foreground);
}
.foot .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
}
.foot b {
  color: var(--foreground);
}
.foot a {
  color: var(--primary);
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}

/* ============================================================
   ONE breakpoint for the whole stacked layout.

   Everything that makes the page multi-column, and everything that makes
   sections overlap, switches off together at 900px. Splitting these across
   860 and 900 left a 40px band where the form still climbed into the hero
   while the rest had already stacked.

   The overlaps are a desktop device: the card is 1080px inside a full-width
   hero, so the photo shows around it and the overlap reads as depth. Stacked,
   the card spans the full width — there is nothing beside it, so an overlap
   stops looking like layering and just covers the section above. Each section
   becomes its own block with real space between them.
   ============================================================ */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .aside {
    order: 2;
  }
  .pair {
    grid-template-columns: 1fr;
  }

  /* on one column the picture goes above the text, and stops sticking */
  .article {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .article__fig {
    position: static;
    order: -1;
  }
  .article__fig .frame {
    aspect-ratio: 16/9;
  }

  /* --- each section is its own rounded block ---
     Full width still: nothing is inset from the left or right edge. The corners
     round against the page background, and a thin gap between sections lets that
     rounding read — without the gap the corners of two touching sections would
     meet and look like a rendering fault rather than a decision.
     Section borders come off here; the gap is the separator now. */
  .hero {
    padding-block-end: clamp(2.5rem, 8vw, 4rem);
    border-end-start-radius: var(--sec-r);
    border-end-end-radius: var(--sec-r);
    box-shadow: none;
  }

  .formsec {
    margin-block: var(--sec-gap);
    padding: 0;
  }
  .split {
    border-radius: var(--sec-r);
    box-shadow: none;
  }

  #articles {
    margin-block-start: 0;
    padding-block-start: clamp(2.5rem, 8vw, 3.5rem);
    border-radius: var(--sec-r);
    border-block-start: 0;
    box-shadow: none;
  }

  #faq {
    margin-block-start: var(--sec-gap);
    border-radius: var(--sec-r);
    border-block-start: 0;
  }

  .foot {
    margin-block-start: var(--sec-gap);
    border-start-start-radius: var(--sec-r);
    border-start-end-radius: var(--sec-r);
    border-block-start: 0;
  }
}
@media (max-width: 640px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-inline-start: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
