/* Reset, typography, buttons, pills, form fields, icons, utilities. No page-specific rules here. */

/* The e-namad seal (core/partials/_enamad.html) must keep enamad's code exactly as given, so no site rule may
   reach its <a> or <img>: every element-wide rule below excludes it. The exclusion sits inside :where() so it adds
   NO specificity: a plain :not([attr]) made `a` stronger than `.btn--primary` and hid the button text (2026-11-20). */
*:where(:not([src^="https://trustseal.enamad.ir"], [href^="https://trustseal.enamad.ir"])),
*::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font, Tahoma, sans-serif);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img:where(:not([src^="https://trustseal.enamad.ir"])) { max-width: 100%; height: auto; display: block; }
picture { display: contents; } /* {% picture %} must not change layout: CSS targets the inner img */
a:where(:not([href^="https://trustseal.enamad.ir"])) { color: var(--blue); text-decoration: none; }
:focus-visible:where(:not([href^="https://trustseal.enamad.ir"])) { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pale); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.45; font-weight: 800; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }

.wrap { max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Honeypot: clipped, never moved off-screen (left:-9999px creates horizontal scroll in RTL). */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---- icons ({% icon %}) ---- */
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.i-lg { width: 28px; height: 28px; }
.i-sm { width: 16px; height: 16px; }
/* "arrow" points up-left: forward in RTL */

/* ---- type scale ---- */
.h1 { font-size: clamp(var(--h1-mob), 4.6vw, var(--h1)); font-weight: 900; line-height: 1.38; letter-spacing: -0.01em; }
.h2 { font-size: clamp(var(--h2-mob), 3.3vw, var(--h2)); font-weight: 900; line-height: 1.45; }
.h3 { font-size: var(--h3); font-weight: 800; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; }
.sub { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.hl { color: var(--blue); }
.hl-grad { background: linear-gradient(100deg, var(--sky), #3d7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- pill / eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 var(--s2); padding: 3px 14px;
  border-radius: var(--pill);
  background: var(--tint-sky); color: var(--blue);
  font-size: 0.85rem; font-weight: 700;
}
.eyebrow .i { width: 14px; height: 14px; }
.eyebrow--dark { background: rgb(255 255 255 / 0.08); color: var(--sky); box-shadow: inset 0 0 0 1px var(--line-dark); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 26px;
  border: 0; border-radius: var(--pill);
  font: inherit; font-weight: 700; line-height: 1.4; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -10px rgb(19 81 232 / 0.7); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }
.btn--light:hover { box-shadow: var(--sh); }
.btn--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.28); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--sky); color: var(--sky); }
.btn--sm { min-height: 42px; padding: 6px 18px; font-size: 0.95rem; }
.btn--block { width: 100%; }
/* round icon chip inside a button (ref. design: arrow in a circle) */
.btn-chip {
  display: grid; place-items: center; width: 30px; height: 30px; margin-inline-end: -12px;
  border-radius: 50%; background: rgb(255 255 255 / 0.18);
}
.btn--light .btn-chip, .btn--outline .btn-chip { background: var(--tint-sky); color: var(--blue); }
.btn-chip .i { width: 16px; height: 16px; }
@media (hover: hover) { .btn:hover .btn-chip .i { transform: translate(-2px, -2px); transition: transform 0.25s var(--ease); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow .i { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translate(-3px, -3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }

/* ---- form fields ---- */
input, select, textarea {
  width: 100%; padding: 13px 18px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(19 81 232 / 0.14); }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--error); font-size: 0.9rem; font-weight: 600; }

/* ---- flash messages ---- */
.flashes { position: fixed; inset: auto 16px 16px; z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.flash { margin: 0; padding: 12px 20px; border-radius: var(--r); background: #e6f8f0; color: #0a7a55; font-weight: 700; box-shadow: var(--sh); pointer-events: auto; }
.flash.error { background: #fdecee; color: #b3213a; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.actions--center { justify-content: center; }
