/* =====================================================================
   Mir Financial Services Inc. — Site Stylesheet
   Design thesis: the double-rule frame from the MIR logo is the
   recurring UI motif — framed sections, bordered cards, ruled dividers.
   Palette: brand navy + warm gold accent. Type: Lora (display) / Inter (body).
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand navy (sampled from logo) */
  --navy-900: #101f42;
  --navy-800: #16294f;
  --navy-700: #1c3467;
  --navy-600: #233f87;   /* PRIMARY BRAND NAVY */
  --navy-500: #2f4fa2;
  --navy-400: #4a68bd;
  --navy-100: #e7ecf8;

  /* Warm gold accent */
  --gold-600: #a8842f;   /* gold text on light backgrounds (AA) */
  --gold-500: #c8a24a;   /* primary accent */
  --gold-400: #ddbd77;
  --gold-100: #f6edd9;

  /* Neutrals */
  --ink:    #1a1c20;
  --slate:  #55606f;
  --slate-400: #8b95a3;
  --paper:  #ffffff;
  --mist:   #f4f6fb;      /* cool light section background */
  --mist-2: #eef2f9;
  --line:   #e0e6f1;
  --line-strong: #c7d0e2;

  /* Semantic */
  --bg: var(--paper);
  --bg-alt: var(--mist);
  --text: var(--ink);
  --text-muted: var(--slate);
  --heading: var(--navy-700);
  --accent: var(--gold-500);
  --accent-ink: var(--gold-600);
  --border: var(--line);
  --focus: var(--gold-500);

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.72vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.2vw, 2.7rem);
  --step-4:  clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --step-5:  clamp(2.15rem, 1.4rem + 3.4vw, 4.6rem);

  /* Spacing scale (8px base) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --container: 1180px;
  --radius: 4px;      /* restrained; the brand reads rectilinear */
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 66, 0.06), 0 2px 8px rgba(16, 31, 66, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 31, 66, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 31, 66, 0.16);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-500); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-weight: 600; }
p { text-wrap: pretty; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, var(--s-8)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--s-6)); }
.section--flush-top { padding-top: clamp(2rem, 4vw, 3rem); }
.section--mist { background: var(--bg-alt); }
.section--navy {
  background: var(--navy-700);
  color: #dbe3f5;
  --heading: #ffffff;
  --text-muted: #aab8dc;
  --border: rgba(255,255,255,0.16);
}
.section--navy a { color: #fff; }
.stack > * + * { margin-top: var(--s-3); }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--accent);
}
.section--navy .eyebrow { color: var(--gold-400); }
.h1 { font-size: var(--step-5); }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-2); }
.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 60ch;
}
.measure { max-width: 65ch; }
:where(h1, h2, h3) + .lead { margin-top: var(--s-3); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lead { margin-top: var(--s-2); }
.text-center { text-align: center; }
.text-center .eyebrow,
.text-center.section-head { margin-inline: auto; }
.num { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); border-color: var(--gold-500); }
.btn--gold:hover { --btn-bg: var(--gold-400); border-color: var(--gold-400); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-700);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-fg: var(--navy-700); background: var(--navy-100); border-color: var(--navy-400); }
.section--navy .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost,
.page-hero .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,0.45); }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.page-hero .btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn--lg { padding: 1.1rem 2rem; min-height: 56px; font-size: var(--step-1); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-weight: 600;
  text-decoration: none; color: var(--navy-600);
}
.link-arrow svg { transition: transform 0.18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--navy-900);
  color: #eef2fb;
  font-size: var(--step--1);
  text-align: center;
  padding: 0.6rem 1rem;
}
.announce a { color: var(--gold-400); font-weight: 600; text-underline-offset: 3px; }
.announce strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.98); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
@media (max-width: 480px) { .brand img { height: 44px; } }
.brand__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--navy-700);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__wordmark b {
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-right: 0.15em;
}
.brand:hover .brand__wordmark { color: var(--navy-500); }
.brand__fallback {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--navy-600);
  border: 2px solid var(--navy-600);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy-600);
  padding: 0.2rem 0.55rem;
  font-size: 1.15rem;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}
.nav__links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-800);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a[aria-current="page"] { color: var(--gold-600); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.nav__phone {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy-700);
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--gold-600); }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--navy-700); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav { position: relative; }
  .nav__toggle { display: inline-flex; }
  .nav__inner {
    position: absolute;
    top: calc(100% + 1px);
    left: calc(-1 * clamp(1.15rem, 4vw, 2.5rem));
    right: calc(-1 * clamp(1.15rem, 4vw, 2.5rem));
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: var(--s-3);
    padding: var(--s-4) clamp(1.15rem, 4vw, 2.5rem) var(--s-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
  }
  .nav__inner.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .nav__phone { padding: 0.5rem 0; text-align: center; }
}
@media (min-width: 961px) {
  .nav__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-800);
  color: #e8eefc;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 620px at 82% 20%, rgba(200,162,74,0.20), transparent 62%),
    linear-gradient(175deg, var(--navy-700), var(--navy-900));
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 80% 10%, #000 20%, transparent 75%);
}
.hero__watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58%, 620px);
  z-index: -1;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
@media (max-width: 760px) { .hero__watermark { display: none; } }
.hero__inner {
  position: relative;
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1120px;
  margin-inline: auto;
}
/* Let the hero's own container run wider than the site's usual 1180px cap on
   big screens, so the logo has real room instead of sitting in a narrow
   column with unused navy on either side. */
.hero .container { max-width: 1400px; }
.hero__copy { max-width: 46rem; }
.hero__copy .eyebrow {
  display: flex;
  width: 100%;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__logo {
  filter: brightness(0) invert(1);
  width: 100%;
  max-width: clamp(220px, 28vw, 380px);
  justify-self: end;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(220px, 28vw, 380px)); max-width: 1360px; }
}
@media (max-width: 899px) {
  .hero__logo { display: none; }
  .hero__copy { max-width: none; }
}
.hero h1 {
  color: #fff;
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero h1 .accent { color: var(--gold-400); }
.hero__sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--gold-400);
  margin-top: var(--s-2);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.hero__text { margin-top: var(--s-2); font-size: var(--step-0); color: #c3cfec; max-width: 46ch; }
.hero .btn-row { margin-top: var(--s-3); }
.hero__trust {
  margin-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem var(--s-3);
  align-items: center;
  font-size: var(--step--1);
  color: #aebbdd;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }

/* Framed image treatment — the logo motif */
.framed {
  position: relative;
  border: 2px solid currentColor;
  padding: 10px;
}
.framed::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  pointer-events: none;
}
.framed > img { display: block; width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  height: 100%;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: inherit; }
.card--link h3, .card--link p { text-decoration: none; }
.card--link:hover h3 { color: var(--navy-500); }
.section--navy .card { background: var(--navy-800); border-color: rgba(255,255,255,0.14); }
.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--navy-600);
  background: var(--navy-100);
  border-radius: var(--radius);
  margin-bottom: var(--s-3);
}
.section--navy .card__icon { background: rgba(200,162,74,0.16); color: var(--gold-400); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: var(--step-0); }
.card__list { margin-top: var(--s-2); display: grid; gap: 0.4rem; }
.card__list li {
  position: relative; padding-left: 1.5rem;
  font-size: var(--step--1); color: var(--text-muted);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1rem; height: 1rem;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card .link-arrow { margin-top: var(--s-3); }

/* Numbered service card variant */
.card__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--slate-400);
  letter-spacing: 0.1em;
}

/* ---------- Stat row ---------- */
.stats { display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid var(--gold-500); padding-left: var(--s-3); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-4);
  color: var(--heading);
  line-height: 1;
  font-feature-settings: "tnum";
}
.stat__label { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.5rem; }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first .split__media { order: -1; }
}
.split__media { color: var(--navy-600); }
.split__media.on-navy { color: var(--gold-400); }
.checklist { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.checklist li {
  position: relative; padding-left: 2rem;
  color: var(--text-muted);
}
.checklist li strong { color: var(--heading); font-family: var(--font-display); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 1.25rem; height: 1.25rem;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--border); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--accent-ink);
  font-weight: 500;
  position: absolute;
  top: -0.9em;
  background: var(--bg);
  padding-right: 0.6rem;
}
.section--mist .step::before { background: var(--bg-alt); }
.section--navy .step::before { background: var(--navy-700); color: var(--gold-400); }
.step h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: var(--step-0); }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: var(--s-4);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.quote blockquote { font-size: var(--step-1); color: var(--heading); font-family: var(--font-display); font-weight: 500; line-height: 1.4; }
.quote figcaption { margin-top: auto; font-size: var(--step--1); color: var(--text-muted); }
.quote figcaption strong { display: block; color: var(--heading); font-family: var(--font-display); font-size: var(--step-0); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--border); max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s-3) 2.5rem var(--s-3) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--heading);
  cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 0.25rem; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background: var(--navy-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease);
}
.faq__a-inner { padding-bottom: var(--s-3); color: var(--text-muted); max-width: 60ch; }

/* ---------- Reviews carousel ---------- */
.reviews { position: relative; }
.reviews__track { position: relative; }
.reviews__set {
  display: grid;
  gap: var(--s-4);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s var(--ease);
}
.reviews__set.is-active { opacity: 1; visibility: visible; position: relative; }
.reviews__set { align-items: stretch; grid-auto-rows: 1fr; }
@media (min-width: 640px) { .reviews__set { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reviews__set { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  height: 100%;
}
.section--mist .review { background: #fff; }
.review__stars { display: flex; gap: 2px; color: var(--gold-500); }
.review__stars svg { width: 18px; height: 18px; }
.review__body { color: var(--text); font-size: var(--step-0); }
.review__name { margin-top: auto; font-family: var(--font-body); font-weight: 600; color: var(--heading); font-size: var(--step--1); }
.review__source { color: var(--text-muted); font-weight: 400; }
.reviews__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: var(--s-4); }
.reviews__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; background: var(--line-strong); cursor: pointer; padding: 0;
}
.reviews__dot.is-active { background: var(--gold-500); }
.reviews__gmeta {
  display: flex; align-items: center; gap: 0.75rem; justify-content: center;
  margin-bottom: var(--s-4); flex-wrap: wrap;
  font-size: var(--step--1); color: var(--text-muted);
}
.reviews__gmeta strong { color: var(--heading); font-size: var(--step-1); font-family: var(--font-display); }
.reviews__gstars { color: var(--gold-500); display: inline-flex; gap: 1px; }
.reviews__gstars svg { width: 16px; height: 16px; }

/* ---------- Industry grid ---------- */
.industry-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 560px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
.industry {
  background: #fff;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  font-size: 1.04rem;
  line-height: 1.25;
}
.industry svg { width: 24px; height: 24px; color: var(--gold-600); flex-shrink: 0; }

/* ---------- Logo wall (clients) ---------- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 34s linear infinite;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.logo-slot {
  flex: 0 0 clamp(190px, 42vw, 240px);
  margin-right: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.5rem 1rem;
  text-align: center;
}
.logo-slot img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.logo-slot span {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--text-muted);
  font-weight: 500;
}
.logo-slot:hover img { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .logo-track .logo-slot { margin-right: 0; }
  .logo-track .logo-slot[aria-hidden="true"] { display: none; }
  .logo-marquee { -webkit-mask: none; mask: none; }
}

/* ---------- Guarantee ---------- */
.guarantee {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.guarantee .eyebrow { justify-content: center; margin-bottom: 0.5rem; }
.guarantee__seal {
  width: clamp(96px, 16vw, 168px);
  height: clamp(96px, 16vw, 168px);
  color: var(--gold-400);
  margin-bottom: var(--s-3);
}
.guarantee .lead { margin-inline: auto; margin-top: var(--s-2); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-700);
  color: #dce4f6;
  text-align: center;
  border-block: 3px solid var(--gold-500);
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band .lead { color: #b9c6e6; margin-inline: auto; margin-bottom: var(--s-4); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--heading);
}
.field .req { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px var(--navy-100);
}
.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: var(--step--1); color: var(--text-muted); }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: var(--step--1); color: var(--text-muted); }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius); font-size: var(--step--1); display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #eaf6ee; color: #1c6b38; border: 1px solid #b9e0c6; }
.form-status--err { background: #fdecec; color: #a12626; border: 1px solid #f2c4c4; }

/* ---------- Contact info blocks ---------- */
.info-list { display: grid; gap: var(--s-3); }
.info-list li { display: flex; gap: var(--s-2); align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--gold-600); flex-shrink: 0; margin-top: 3px; }
.info-list a { text-decoration: none; font-weight: 600; color: var(--heading); }
.info-list a:hover { color: var(--gold-600); }
.info-list span { display: block; font-size: var(--step--1); color: var(--text-muted); font-weight: 400; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--navy-700);
  color: #dce4f6;
  border-bottom: 3px solid var(--gold-500);
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.page-hero h1 { color: #fff; font-size: var(--step-4); }
.page-hero .lead { color: #b9c6e6; margin-top: var(--s-2); }
.breadcrumb { font-family: var(--font-mono); font-size: var(--step--1); color: #93a3cc; margin-bottom: var(--s-2); }
.breadcrumb a { color: #93a3cc; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Article / prose ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-5); }
.prose h3 { font-size: var(--step-1); margin-top: var(--s-4); }
.prose ul { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: disc; }
.prose ol { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: decimal; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.prose th, .prose td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); color: var(--heading); background: var(--mist); }

/* Deadline table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.data-table caption { text-align: left; padding: var(--s-2); font-size: var(--step--1); color: var(--text-muted); }
.data-table th, .data-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th { background: var(--navy-700); color: #fff; font-family: var(--font-display); font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.date { font-family: var(--font-mono); color: var(--navy-700); white-space: nowrap; }

/* Post list */
.post-list { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: flex; flex-direction: column; gap: var(--s-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4); background: #fff; height: 100%;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post, .post:hover { text-decoration: none; color: inherit; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post:hover h3 { color: var(--navy-500); }
.post h3, .post p, .post__meta { text-decoration: none; }
.post__meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--slate-400); letter-spacing: 0.06em; }
.post h3 { font-size: var(--step-1); }
.post p { color: var(--text-muted); font-size: var(--step-0); }
.post .link-arrow { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #a9b6d6;
  padding-block: var(--s-6) var(--s-4);
  font-size: var(--step--1);
}
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.site-footer a { color: #c2cde8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 0.55rem; }
.footer-brand p { max-width: 34ch; margin-top: var(--s-2); }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand .brand__fallback { color: #fff; border-color: #fff; box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 4px #fff; }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  color: #8090b5;
}
.footer-bottom a { color: #8090b5; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute;
  left: 0; top: -100%;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; color: #fff; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0 !important; }

/* ---------- Course / video lessons ---------- */
.hero-fa {
  margin-top: var(--s-2);
  max-width: 60ch;
  font-size: var(--step-1);
  line-height: 1.95;
  color: var(--gold-400);
  text-align: left;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}
/* Mobile (default): stacks in DOM order — video, then the full lesson list,
   then the opt-in. On desktop it becomes list-left / video-right. */
.course { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); align-items: start; }
@media (min-width: 940px) {
  .course {
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas:
      "aside main"
      "aside optin";
  }
  .course__main  { grid-area: main; }
  .course__aside {
    grid-area: aside;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
  }
  #course-optin  { grid-area: optin; }
}

.course__aside-head { margin-bottom: 0.75rem; }
.course__aside-title { font-size: var(--step-1); }
.course__progress {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.course__bar { height: 4px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: var(--s-3); }
.course__bar > i { display: block; height: 100%; background: var(--gold-500); width: 0; transition: width 0.4s var(--ease); }

.lesson-list { display: grid; gap: 0.4rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; background: #fff; }
.lesson {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.lesson:hover { background: var(--mist); }
.lesson[aria-current="true"] { background: var(--navy-100); }
.lesson__n {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy-600);
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.lesson[aria-current="true"] .lesson__n { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }
.lesson.is-done .lesson__n { background: var(--gold-100); border-color: var(--gold-400); color: var(--gold-600); }
.lesson__title { font-weight: 500; line-height: 1.3; font-size: var(--step-0); }
.lesson__meta { font-size: var(--step--1); color: var(--slate-400); font-family: var(--font-mono); white-space: nowrap; }

/* Player */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.player > iframe, .player > #course-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.speed-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-2);
}
.speed-bar__label { font-size: var(--step--1); color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; margin-right: 0.25rem; }
.speed-btn {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy-700);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.speed-btn:hover { background: var(--mist); }
.speed-btn[aria-pressed="true"] { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }

.lesson-body { margin-top: var(--s-3); }
.lesson-body h2 { font-size: var(--step-2); }
.lesson-body p { color: var(--text-muted); margin-top: var(--s-1); }

/* "Coming soon" panel inside the player frame */
.player__msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  text-align: center;
}
.player__msg h3 { color: #fff; font-size: var(--step-1); }
.player__msg p { color: #b9c6e6; font-size: var(--step--1); margin-top: 0.5rem; }

/* Optional opt-in card (never blocks anything) */
.optin {
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border-radius: var(--radius);
  background: var(--navy-100);
  display: grid;
  gap: var(--s-3);
}
.optin__title { font-size: var(--step-1); }
.optin__text p { color: var(--text-muted); font-size: var(--step--1); margin-top: 0.4rem; }
.optin__form { display: grid; gap: 0.7rem; }
@media (min-width: 620px) {
  .optin__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
  .optin__form .form-status,
  .optin__form .optin__fine { grid-column: 1 / -1; }
}
.optin__form input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}
.optin__form .btn { white-space: nowrap; }
.optin__fine { font-size: 0.75rem; color: var(--slate); margin: 0; }
.optin__done { font-weight: 500; color: var(--navy-700); margin: 0; }

/* One-time opt-in popup */
.optin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(16, 31, 66, 0.55);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.optin-modal.is-in { opacity: 1; }
.optin-modal__card {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s var(--ease);
}
.optin-modal.is-in .optin-modal__card { transform: none; }
.optin-modal__card h3 { font-size: var(--step-1); padding-inline-end: 1.5rem; }
.optin-modal__card > p { color: var(--text-muted); font-size: var(--step--1); margin-top: 0.5rem; }
.optin-modal form { display: grid; gap: 0.7rem; margin-top: var(--s-3); }
.optin-modal input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}
.optin-modal .btn { justify-content: center; }
.optin-modal__close {
  position: absolute;
  top: 0.6rem; inset-inline-end: 0.6rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; background: transparent;
  color: var(--slate);
  cursor: pointer;
  border-radius: var(--radius);
}
.optin-modal__close:hover { background: var(--mist); color: var(--ink); }
.optin-modal__later {
  border: 0; background: transparent;
  color: var(--text-muted);
  font-size: var(--step--1);
  cursor: pointer;
  padding: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.optin-modal__later:hover { color: var(--ink); }

.divider-rule {
  border: 0;
  border-top: 2px solid var(--border);
  position: relative;
}
.divider-rule::after {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 64px; height: 2px;
  background: var(--gold-500);
}
