/* رعد پیمان هامون — site styles. Mobile-first, logical properties only (one file for fa RTL and en LTR).
   Colours and font come from tokens.css. No letter-spacing anywhere.
   v2 (2026-11-02): patterns ported by hand from 21st.dev blocks, no React, no build step:
     hero        <- "Hero 12" (felipemenezes098): full-bleed image, copy anchored bottom-start, pill CTA at bottom-end
     points      <- "Monochrome Stats Hero" stat strip (shadcn hero-15): hairline cells with an index
     cards       <- "Feature Grid Spotlight Cards" (mohammadshehadeh feature-08): hairline rails, crosshair marks, icon box, top glow
     supplier    <- "CTA Section" (shadcndesign cta-section-1): solid brand band
     contact     <- "Contact Page" (sshahaider): icon-headed cells on hairlines
     footer      <- "Agency Footer" (shadcnspace footer-01): brand column, sitemap, contact, bottom bar */

:root {
  --line: var(--raad-line);
  --line-strong: var(--raad-line-strong);
  --glow: rgba(31, 58, 95, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--raad-font);
  font-weight: var(--raad-w-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--raad-ink);
  background: var(--raad-paper);
  overflow-wrap: break-word;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--raad-navy); }
/* focus: navy ring on light areas, white ring on navy areas (gold stays the one accent per section) */
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--raad-navy); outline-offset: 2px; }
.hero a:focus-visible, .supplier a:focus-visible, footer a:focus-visible { outline-color: #fff; }
/* contact values that set-contacts.py has not filled yet stay hidden: a visitor never sees a raw token
   (the predeploy gate in check-site.js fails while any data-fill or contact token is left) */
[data-fill] { display: none !important; }
h1, h2, h3 { font-weight: var(--raad-w-head); color: var(--raad-navy); line-height: 1.4; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* directional icons point along the reading direction */
[dir="rtl"] .dir { transform: scaleX(-1); }

/* visually hidden: the clip pattern, never a large negative offset */
.vh, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 10;
  background: var(--raad-paper); padding: 8px 14px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

/* ---------- hero (Hero 12) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 600px;
  background: var(--raad-navy-deep); color: #fff;
}
/* photo layer: assets/hero.jpg (free space on the right = the Persian text side).
   Without the photo the navy base and a faint ring pattern show. English mirrors the layer. */
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background:
    url(hero.jpg) 18% center / cover no-repeat,
    repeating-radial-gradient(circle at 18% 38%, rgba(255,255,255,.055) 0 1px, transparent 1px 56px),
    radial-gradient(70% 90% at 18% 38%, #1F3A5F 0%, #142840 70%);
}
[dir="ltr"] .hero-media { transform: scaleX(-1); }
/* readability: dark from the bottom and from the text side */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(20,40,64,.94) 0%, rgba(20,40,64,.55) 45%, rgba(20,40,64,.25) 100%);
}
@media (min-width: 900px) {
  [dir="rtl"] .hero::after { background:
    linear-gradient(to left, rgba(20,40,64,.88) 0%, rgba(20,40,64,.45) 50%, rgba(20,40,64,0) 75%),
    linear-gradient(to top, rgba(20,40,64,.85) 0%, rgba(20,40,64,.2) 50%, rgba(20,40,64,.15) 100%); }
  [dir="ltr"] .hero::after { background:
    linear-gradient(to right, rgba(20,40,64,.88) 0%, rgba(20,40,64,.45) 50%, rgba(20,40,64,0) 75%),
    linear-gradient(to top, rgba(20,40,64,.85) 0%, rgba(20,40,64,.2) 50%, rgba(20,40,64,.15) 100%); }
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
/* logo-v1 lockups (paths only, clear space baked into the viewBox): fa lockup on fa pages, en lockup on en */
.topbar .brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.topbar .brand img { width: auto; height: 48px; }
html[lang="en"] .topbar .brand img { height: 40px; }
.lang { color: #fff; text-decoration: none; font-size: .9rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 14px; background: rgba(20,40,64,.35); }
.lang:hover { background: rgba(255,255,255,.1); }

.hero-body {
  margin-block-start: auto;
  display: flex; flex-direction: column; gap: 26px;
  padding-block: 40px 40px;
  text-align: start;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 40rem; }
.hero .years {
  display: inline-block; margin: 0 0 14px;
  font-size: .85rem; font-weight: var(--raad-w-strong); line-height: 1.5;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 14px;
  background: rgba(20,40,64,.35);
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 7vw, 3.75rem); line-height: 1.25; margin: 0 0 .25em; }
.hero .sub { font-size: 1.15rem; font-weight: var(--raad-w-strong); color: rgba(255,255,255,.92); margin-bottom: 0; }
.rule { width: 64px; height: 2px; background: var(--raad-gold); border: 0; margin: 20px 0; }
.hero .tagline { font-size: 1.25rem; font-weight: var(--raad-w-head); color: #fff; margin: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 8px;
  font: inherit; font-weight: var(--raad-w-strong); text-decoration: none; line-height: 1.3;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-light { background: #fff; color: var(--raad-navy-deep); }
.btn-light:hover { background: var(--raad-mist); }
.btn-ghost { background: rgba(20,40,64,.25); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--raad-navy); color: #fff; }
.btn-navy:hover { background: var(--raad-navy-deep); }
.btn-outline { background: #fff; color: var(--raad-navy); border-color: var(--raad-navy); }
.btn-outline:hover { background: var(--raad-mist); }
/* the hero CTAs are pills, like the Hero 12 corner button */
.hero .btn { border-radius: 999px; }
.hero .btns .btn { flex: 1 1 100%; }

/* ---------- sections ---------- */
section { padding-block: 56px; }
.mist { background: var(--raad-mist); }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: 1.5rem; position: relative; padding-inline-start: 14px; }
.sec-head h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .25em; width: 4px; border-radius: 2px; background: var(--raad-navy); }
.sec-head p { color: var(--raad-gray); margin: 0; }
.lead { font-size: 1.05rem; max-width: 46em; }

/* key points: hairline stat strip (Monochrome Stats Hero) */
.points {
  display: grid; gap: 1px; margin-top: 30px;
  background: var(--line); border: 1px solid var(--line);
  counter-reset: pt;
}
.points li { position: relative; background: #fff; padding: 22px 20px 20px; padding-inline-end: 48px; counter-increment: pt; }
.points li::after {
  content: counter(pt, decimal-leading-zero);
  position: absolute; inset-block-start: 20px; inset-inline-end: 18px;
  font-size: .8rem; color: var(--raad-gray); line-height: 1.6;
}
[lang="fa"] .points li::after { content: "۰" counter(pt, persian); }
.points b { color: var(--raad-navy); font-weight: var(--raad-w-head); font-size: 1.15rem; display: block; margin-bottom: 4px; line-height: 1.5; }
.points span { color: var(--raad-gray); font-size: .95rem; }

/* specialist lines: Feature Grid Spotlight Cards — hairline rails, crosshairs, icon box, top glow */
.cards { display: grid; gap: 20px; padding-inline: 10px; }
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px 22px 24px;
  background: #fff radial-gradient(50% 80% at 25% 0%, var(--glow), transparent) no-repeat;
}
[dir="rtl"] .card { background-image: radial-gradient(50% 80% at 75% 0%, var(--glow), transparent); }
/* rails run past the card edges and meet the neighbours' rails across the gap */
.card::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset-block: -1px; inset-inline: -10px; border-block: 1px solid var(--line-strong); }
.card::after  { content: ""; position: absolute; z-index: -1; pointer-events: none; inset-inline: -1px; inset-block: -10px; border-inline: 1px solid var(--line-strong); }
.card .x {
  position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none;
  background:
    linear-gradient(var(--raad-gray-light), var(--raad-gray-light)) center / 100% 1px no-repeat,
    linear-gradient(var(--raad-gray-light), var(--raad-gray-light)) center / 1px 100% no-repeat;
}
.card .x-s { inset-block-start: -7px; inset-inline-start: -7px; }
.card .x-e { inset-block-end: -7px; inset-inline-end: -7px; }
.card .ico {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--raad-mist); color: var(--raad-navy);
  transition: border-color .3s ease, background-color .3s ease;
}
.card .ico svg { width: 22px; height: 22px; }
.card:hover .ico { border-color: var(--raad-navy-60); background: #fff; }
.card .num { position: absolute; inset-block-start: 22px; inset-inline-end: 20px; font-size: .8rem; color: var(--raad-gray); line-height: 1.6; }
.card h3 { font-size: 1.15rem; margin-bottom: .35em; }
.card p { color: var(--raad-gray); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1.5px solid var(--raad-navy); color: var(--raad-navy); border-radius: 999px; padding: 6px 18px; font-weight: var(--raad-w-strong); }
.note { margin-top: 18px; font-weight: var(--raad-w-strong); color: var(--raad-navy); }

.two { display: grid; gap: 28px; }
.tick li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; }
.tick li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--raad-navy); }

/* makers and selected projects: hairline cells (one border pattern, works for any count) */
.cells { display: grid; margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line-strong); border-inline-start: 1px solid var(--line-strong); }
.cells li {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  background: #fff; padding: 18px 20px 20px;
  border-block-end: 1px solid var(--line-strong); border-inline-end: 1px solid var(--line-strong);
}
.cells b { color: var(--raad-navy); font-weight: var(--raad-w-head); font-size: 1.05rem; line-height: 1.55; }
.cells .d { color: var(--raad-gray); font-size: .92rem; }
.proj { counter-reset: pj; }
.proj li { counter-increment: pj; padding-inline-start: 58px; }
.proj li::before {
  content: counter(pj, decimal-leading-zero);
  position: absolute; inset-block-start: 19px; inset-inline-start: 20px;
  font-size: .8rem; color: var(--raad-gray); line-height: 1.9;
}
[lang="fa"] .proj li::before { content: counter(pj, persian); }
[lang="fa"] .proj li:nth-child(-n+9)::before { content: "۰" counter(pj, persian); }
.proj b { font-size: 1rem; }
.proj .tag { align-self: flex-start; margin-top: 4px; font-size: .82rem; font-weight: var(--raad-w-strong); color: var(--raad-navy); background: var(--raad-mist); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 12px; line-height: 1.8; }

/* coverage map and footprint: self-contained SVGs (fonts embedded), link opens the full graphic */
.figs { display: grid; gap: 20px; }
.fig { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.fig a { display: block; }
.fig img { width: 100%; height: auto; }

/* suppliers: solid brand band (CTA Section) */
.supplier {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--raad-navy); color: #fff; border-radius: 16px; padding: 32px 20px;
}
.supplier::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 100% 0%, rgba(255,255,255,.05) 0 1px, transparent 1px 44px),
    radial-gradient(80% 120% at 100% 0%, rgba(20,40,64,0), rgba(20,40,64,.55));
}
[dir="rtl"] .supplier::before { background:
    repeating-radial-gradient(circle at 0% 0%, rgba(255,255,255,.05) 0 1px, transparent 1px 44px),
    radial-gradient(80% 120% at 0% 0%, rgba(20,40,64,0), rgba(20,40,64,.55)); }
.supplier h2, .supplier h3 { color: #fff; }
.supplier .sec-head { margin-bottom: 30px; }
.supplier .sec-head h2 { font-size: 1.6rem; padding-inline-start: 0; padding-block-end: 14px; }
.supplier .sec-head h2::before { inset-block: auto 0; inset-inline-start: 0; width: 56px; height: 2px; background: #fff; }
.supplier .sec-head p { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.supplier h3 { font-size: 1.1rem; }
.supplier .tick li::before { background: #fff; }
.supplier .btns { margin-top: 26px; }
.supplier .btn-ghost { background: transparent; }

/* contact: icon-headed cells on hairlines (Contact Page) */
.contact-list { display: grid; border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.contact-list li {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 18px 18px 20px;
  border-block-end: 1px solid var(--line); border-inline-end: 1px solid var(--line);
}
.contact-list .k { display: flex; align-items: center; gap: 10px; color: var(--raad-gray); font-size: .9rem; margin-bottom: 6px; }
.contact-list .k svg { width: 18px; height: 18px; flex: none; color: var(--raad-navy); }
.contact-list .v { font-weight: var(--raad-w-strong); color: var(--raad-ink); font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list .v .ltr { display: inline; }
.contact-list .hl { display: block; }
.contact-list a.v { color: var(--raad-navy); text-decoration: none; }
.contact-list a.v:hover { text-decoration: underline; }
.contact-list .more { font-size: .9rem; margin-top: 4px; align-self: flex-start; }
.contact-list .maps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 4px; }  /* Neshan + Google Maps side by side, wrap on narrow cells */
.contact-list .maps .more { margin-top: 0; }
.contact .btns { margin-top: 22px; }

/* footer (Agency Footer) */
footer { background: var(--raad-navy-deep); color: rgba(255,255,255,.78); font-size: .92rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; padding-block: 44px 32px; }
.foot-brand .name { display: inline-flex; margin: 0 0 12px; margin-inline-start: -4px; }
.foot-brand .name img { width: auto; height: 64px; }
html[lang="en"] .foot-brand .name img { height: 52px; }
.foot-brand p { margin: 0 0 4px; }
footer h2 { color: #fff; font-size: .95rem; font-weight: var(--raad-w-strong); margin: 0 0 10px; }
footer ul li { margin-bottom: 6px; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px 22px; border-block-start: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

/* 404 */
.hero.hero-404 { min-height: 100vh; min-height: 100svh; }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .hero .btns .btn { flex: 0 0 auto; }
  .points { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* odd count: last cell fills the row (6 or 7 items, with or without Instagram) */
  .makers, .proj { grid-template-columns: 1fr 1fr; }
  .makers li:last-child:nth-child(odd) { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hero { min-height: min(720px, 92vh); }
  .hero-body { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 48px 64px; }
  .hero .btns { flex: 0 1 auto; justify-content: flex-end; max-width: 26rem; }
  .topbar .brand img { height: 56px; }
  html[lang="en"] .topbar .brand img { height: 46px; }
  .makers { grid-template-columns: repeat(12, 1fr); }
  .makers li, .makers li:last-child:nth-child(odd) { grid-column: span 3; }
  .makers li:nth-child(-n+3) { grid-column: span 4; }
  .hero .sub { font-size: 1.35rem; }
  .hero .tagline { font-size: 1.5rem; }
  section { padding-block: 80px; }
  .sec-head h2 { font-size: 1.8rem; }
  .points { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .two { grid-template-columns: 1fr 1fr; gap: 48px; }
  #range .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
  #range .sec-head { margin-bottom: 0; }
  #range .lead { margin-top: .35em; }
  .supplier { padding: 52px 52px 48px; }
  .supplier .sec-head h2 { font-size: 2rem; }
  .contact-list { grid-template-columns: repeat(4, 1fr); }
  .contact-list li:last-child:nth-child(odd) { grid-column: auto; }
  .contact-list li:last-child:nth-child(even) { grid-column: span 2; }  /* 6 items (no Instagram): last row = address + office */
  .contact-list .wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card .ico { transition: none; }
}
