/* ============================================================
   ADLIM HOLDING — 2026 rebuild
   Palette taken from the company's own logo (#12169C / #E4332B).
   Written with logical properties so one sheet serves LTR + RTL.
   ============================================================ */

:root {
  --blue:      #12169C;
  --blue-deep: #0A0C55;
  --ink:       #0B0E2E;
  --red:       #E4332B;
  --paper:     #F2F3F8;
  --white:     #FFFFFF;
  --muted:     #5B6183;
  --rule:      rgba(11, 14, 46, 0.14);
  --rule-soft: rgba(11, 14, 46, 0.08);
  --rule-dark: rgba(255, 255, 255, 0.16);

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --sp: clamp(56px, 8vw, 110px);

  --f-display: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --header-h: 115px;   /* top bar + sticky header */
}

html[lang="fa"] {
  /* Google Fonts can be slow or blocked in some regions — fall back to
     faces that are commonly installed on Persian systems. */
  --f-display: 'Vazirmatn', 'IRANSans', 'Sahel', 'Segoe UI', Tahoma, sans-serif;
  --f-body: 'Vazirmatn', 'IRANSans', 'Sahel', 'Segoe UI', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

bdi, .ltr { unicode-bidi: isolate; }
html[dir="rtl"] .topbar-contact a, html[dir="rtl"] .info-list a { unicode-bidi: isolate; }

/* ── shared bits ─────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
html[lang="fa"] .eyebrow { letter-spacing: 0.04em; text-transform: none; font-size: 13px; }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.14; font-weight: 600; }
h1 { font-size: clamp(29px, 4.5vw, 52px); letter-spacing: -0.028em; font-weight: 600; }
h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.022em; }
h3 { font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -0.012em; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }

.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 62ch; }

.section { padding-block: var(--sp); }
.section-head { margin-block-end: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-block: 10px 14px; }

.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 999;
  width: auto; height: auto; clip-path: none;
  background: var(--ink); color: #fff; padding: 12px 20px;
}

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

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 26px; border: 1.5px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background .22s, color .22s, border-color .22s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #C4241D; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: currentColor; }
.btn-ghost:hover span { color: var(--ink); }
.on-ink .btn-ghost:hover span { color: var(--ink); }
.btn .arw { transition: transform .22s; }
html[dir="rtl"] .btn .arw { transform: scaleX(-1); }
.btn:hover .arw { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arw { transform: scaleX(-1) translateX(3px); }

/* ── header ──────────────────────────────────────────────── */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: 12.5px; letter-spacing: .01em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 22px; align-items: center; }
.topbar-contact span[aria-hidden] { color: var(--red); }

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--rule-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  padding-block: 6px; border-block-end: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-block-end-color: var(--red); font-weight: 600; }

.lang { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.lang a {
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  padding: 6px 10px; border-radius: 2px; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang a:hover { background: var(--paper); color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; background: none; border: 1px solid var(--rule);
  border-radius: 2px; cursor: pointer; flex-shrink: 0;
}
.burger span { display: block; width: 19px; height: 1.6px; background: var(--ink); margin-inline: auto; transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mnav {
  display: none; position: absolute; inset-inline: 0; top: 100%;
  background: var(--white); border-block-end: 1px solid var(--rule);
  box-shadow: 0 24px 50px rgba(11,14,46,.14);
  padding: 8px var(--gut) 22px; max-height: 76svh; overflow-y: auto;
}
.mnav.open { display: block; animation: drop .28s cubic-bezier(.22,1,.36,1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mnav a {
  display: block; padding: 15px 0; font-size: 15px; font-weight: 500;
  text-decoration: none; border-block-end: 1px solid var(--rule-soft);
}
.mnav .mnav-cta { margin-block-start: 18px; }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  background: var(--ink); color: #fff;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(30px, 5vh, 54px);
  position: relative; overflow: hidden;
}
.hero .wrap { width: 100%; }
.hero-logo { height: clamp(46px, 4.4vw, 62px); width: auto; margin-block-end: clamp(16px, 2.4vh, 26px); }
.hero::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-end: -12%;
  width: 60%;
  background: radial-gradient(ellipse at 60% 40%, rgba(18,22,156,.55), transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
/* the group mark, oversized and very quiet, fills the empty half */
.hero-mark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  inset-block-start: 50%; inset-inline-end: -4%;
  transform: translateY(-50%);
  width: min(36%, 420px); height: auto; opacity: .07;
}
@media (max-width: 980px) { .hero-mark { display: none; } }
.hero h1 { max-width: 18ch; margin-block: 14px 16px; }
.hero .lede { color: rgba(255,255,255,.7); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: clamp(22px, 3vh, 32px); }
.hero .btn-ghost { color: #fff; }

.hero-rule {
  margin-block-start: clamp(26px, 4vh, 52px);
  padding-block-start: clamp(18px, 2.4vh, 26px);
  border-block-start: 1px solid var(--rule-dark);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px;
}
.hero-rule div { min-width: 0; }
.hero-rule b {
  display: block; font-family: var(--f-display); font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; line-height: 1; color: #fff;
}
.hero-rule small { display: block; margin-block-start: 8px; font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.5; }

/* ── company register ────────────────────────────────────── */
.register { border-block-start: 1px solid var(--rule); }
.reg-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1.15fr) minmax(0, 1fr) 40px;
  align-items: center; gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(20px, 2.4vw, 30px);
  border-block-end: 1px solid var(--rule);
  text-decoration: none; position: relative;
  transition: background .2s;
}
.reg-row:hover { background: var(--paper); }
.reg-num {
  font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px);
  font-weight: 700; color: var(--rule); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.reg-row:hover .reg-num { color: var(--red); }
.reg-name { font-family: var(--f-display); font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
.reg-sector { font-size: 13.5px; color: var(--muted); }
.reg-go { justify-self: end; color: var(--muted); transition: transform .22s, color .22s; }
html[dir="rtl"] .reg-go { transform: scaleX(-1); }
.reg-row:hover .reg-go { color: var(--red); transform: translateX(4px); }
html[dir="rtl"] .reg-row:hover .reg-go { transform: scaleX(-1) translateX(4px); }

/* ── what we do (prose from the holding's own copy) ──────── */
.prose { max-width: 72ch; }
.prose p { margin-block-end: 1.15em; }
.prose h2, .prose h3 { margin-block: 1.8em .55em; }
.prose h3 { color: var(--blue-deep); }
.prose ul, .prose ol { margin-block-end: 1.15em; padding-inline-start: 1.3em; }
.prose li { margin-block-end: .4em; }
.prose strong { font-weight: 600; }
.prose a { color: var(--blue); }
.prose img { margin-block: 1.6em; border-radius: 3px; }
.prose > *:first-child { margin-block-start: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.split-media img { border-radius: 3px; width: 100%; }
@media (min-width: 981px) { .split-media img { aspect-ratio: 4 / 5; object-fit: cover; } }
.sticky-media { position: sticky; top: 110px; }

/* ── figures ─────────────────────────────────────────────── */
.figures { background: var(--paper); }
.fig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.fig-grid > div { background: var(--paper); padding: clamp(24px, 3vw, 38px); }
.fig-grid b { display: block; font-family: var(--f-display); font-size: clamp(34px, 5vw, 58px); font-weight: 700; line-height: 1; color: var(--blue); }
.fig-grid span { display: block; margin-block-start: 10px; font-weight: 600; font-size: 14.5px; }
.fig-grid small { display: block; margin-block-start: 4px; font-size: 12.5px; color: var(--muted); }

/* ── faq ─────────────────────────────────────────────────── */
.faq { border-block-start: 1px solid var(--rule); }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding-block: 22px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: clamp(16px, 1.5vw, 19px); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--f-body); font-size: 22px; font-weight: 400;
  color: var(--red); line-height: 1; flex-shrink: 0; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-block-end: 22px; max-width: 72ch; color: var(--muted); }
.faq .answer p { margin-block-end: .9em; }
.faq .answer p:last-child { margin-block-end: 0; }

/* ── page header (inner pages) ───────────────────────────── */
.page-head { background: var(--ink); color: #fff; padding-block: clamp(46px, 6vw, 82px); }
.page-head h1 { max-width: 20ch; margin-block-start: 14px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.55); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: rgba(255,255,255,.3); margin-inline: 8px; }

/* ── company detail ──────────────────────────────────────── */
.co-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 3px; }
.co-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-block-start: 22px; padding-block-end: 22px; border-block-end: 1px solid var(--rule); font-size: 13.5px; }
.co-meta dt { color: var(--muted); display: inline; }
.co-meta dd { display: inline; font-weight: 600; margin-inline-start: 8px; }
.co-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-block-start: var(--sp); padding-block-start: 26px; border-block-start: 1px solid var(--rule); }
.co-nav a { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--blue); }
.co-nav a:hover { text-decoration: underline; }

/* ── cta band ────────────────────────────────────────────── */
.band { background: var(--blue-deep); color: #fff; padding-block: clamp(48px, 6vw, 84px); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.band h2 { max-width: 18ch; }
.band p { color: rgba(255,255,255,.66); max-width: 46ch; margin-block-start: 10px; }

/* ── contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 68px); align-items: start; }
.info-list { list-style: none; }
.info-list li { padding-block: 18px; border-block-end: 1px solid var(--rule); }
.info-list dt, .info-list .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-block-end: 6px; }
html[lang="fa"] .info-list .k { letter-spacing: 0; text-transform: none; font-size: 13px; }
.info-list a { text-decoration: none; font-weight: 500; }
.info-list a:hover { color: var(--blue); text-decoration: underline; }

.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-block-end: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--blue); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-alert {
  padding: 14px 18px; margin-block-end: 20px; border-radius: 2px; font-size: 14px;
  border-inline-start: 3px solid var(--blue); background: var(--paper);
}
.form-alert[hidden] { display: none; }
.form-alert.is-ok { border-inline-start-color: #1E9E5A; background: #EAF7F0; }
.form-alert.is-bad { border-inline-start-color: var(--red); background: #FDEDEC; }
.map { margin-block-start: var(--sp); }
.map iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 1px solid var(--rule); border-radius: 3px; display: block; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.map iframe:hover { filter: none; }

/* ── footer ──────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding-block: clamp(48px, 6vw, 76px) 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(26px, 4vw, 52px); }
.site-footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-block-end: 16px; font-family: var(--f-body); }
html[lang="fa"] .site-footer h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-block-end: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-logo img { height: 54px; margin-block-end: 18px; }
.foot-about { max-width: 34ch; line-height: 1.7; }
.foot-social { display: flex; gap: 12px; margin-block-start: 16px; }
.foot-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-dark); border-radius: 2px; transition: background .2s, border-color .2s; }
.foot-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.foot-bottom { margin-block-start: clamp(36px, 4vw, 54px); padding-block: 22px; border-block-start: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: 12.5px; }

/* ── whatsapp ────────────────────────────────────────────── */
.wa {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 70;
  display: grid; place-items: center; width: 54px; height: 54px;
  background: #25D366; border-radius: 50%; color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.24);
  transition: transform .22s;
}
.wa:hover { transform: scale(1.06); }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-media { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .site-header .lang { display: none; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  .topbar-contact .hide-sm-a { display: none; }
}

@media (max-width: 700px) {
  .hero-rule { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-rule small { font-size: 11px; }
  .hero-rule .note { display: none; }
  .fig-grid { grid-template-columns: 1fr; }
  .reg-row { grid-template-columns: 44px minmax(0, 1fr) 28px; row-gap: 4px; }
  .reg-sector { grid-column: 2 / 3; }
  .reg-go { grid-row: 1 / 3; grid-column: 3 / 4; align-self: center; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .hero .lede { font-size: 15px; }
  .hero-actions .btn { padding-block: 12px; }
  .topbar-contact { gap: 14px; }
  .topbar .wrap { font-size: 11.5px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
}

@media print {
  .site-header, .topbar, .mnav, .wa, .band, .map { display: none !important; }
  body { color: #000; }
}
