/* =========================================================
   Ioffe & Partners — Trust & Authority design system
   Navy #1E3A8A + Magenta accent #C026D3 · EB Garamond / Lato
   Custom CSS, no framework runtime (optimised for CWV)
   ========================================================= */

:root {
  /* Brand deep purple (sampled from Ioffe brand imagery ~#424167) */
  --navy-900: #221E45;
  --navy-800: #2C2758;
  --navy-700: #453C82;
  --navy-600: #574BA0;
  --navy-500: #7A66CE;
  /* Brand accent — violet glow from the Ioffe brand imagery (~#AE6EE0) */
  --gold-700: #6B2FB5;
  --gold-600: #8B3FD6;
  --gold-500: #A55FE0;
  --gold-400: #C08AEE;
  --bg: #F8FAFC;
  --bg-soft: #EEF2F7;
  --white: #FFFFFF;
  --text: #0F172A;
  --text-soft: #475569;
  --text-mute: #64748B;
  --border: #E2E8F0;
  --ring: rgba(30, 58, 138, .35);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --font-head: "EB Garamond", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--navy-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--gold-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--gold-700); color: #fff; box-shadow: var(--shadow-lg); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-700); background: #fff; }
.btn-wa { background: #25D366; color: #0B2E13; }
.btn-wa:hover { background: #1EB456; color: #0B2E13; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400); display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-inline-start: auto; }
.nav-links a { color: var(--navy-800); font-weight: 600; font-size: .97rem; }
.nav-links a:hover { color: var(--gold-600); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .5rem .8rem; font-weight: 700; font-size: .9rem; color: var(--navy-800);
}
.lang-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: .4rem; min-width: 172px; display: none; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; color: var(--navy-800); font-weight: 600; font-size: .95rem; }
.lang-menu a:hover { background: var(--bg-soft); color: var(--navy-900); }
.lang-menu a[aria-current="true"] { color: var(--gold-600); }
.lang-menu .flag { font-size: 1.1rem; line-height: 1; }

.nav-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--navy-800); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(48px, 7vw, 80px); background:
  radial-gradient(1100px 520px at 80% -10%, rgba(37, 99, 235, .12), transparent 60%),
  radial-gradient(760px 460px at 0% 10%, rgba(192, 38, 211, .10), transparent 55%),
  var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .85rem; font-size: .82rem; font-weight: 700; color: var(--navy-800); box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--gold-600); }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--gold-600); position: relative; }
.hero p.lead { max-width: 44ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.7rem; }
.hero-note { display: flex; align-items: center; gap: .5rem; color: var(--text-mute); font-size: .92rem; }
.hero-note svg { width: 18px; height: 18px; color: #16A34A; }

.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 3vw, 2rem);
}
.hero-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--navy-900); }
.hero-card .sub { color: var(--text-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy-800); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .8rem .95rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px var(--ring); }
.form-alt { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--text-mute); }
.form-alt a { font-weight: 700; }
.form-success { display: none; padding: 1rem 1.1rem; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 12px; color: #065F46; font-weight: 600; margin-top: .5rem; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2.2rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy-700); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--text-soft); margin-top: .4rem; font-weight: 600; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; transform: translateY(-3px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #EFF3FB, #E3EAF7); color: var(--navy-700); margin-bottom: 1rem; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; margin-bottom: .45rem; }
.card p { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.step .n { counter-increment: step; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: var(--gold-400); margin-bottom: 1rem; }
.step .n::before { content: counter(step); }
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* ---------- Why us / feature list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px dashed var(--border); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ECFDF5; color: #16A34A; }
.feature-list .tick svg { width: 18px; height: 18px; }
.feature-list b { color: var(--navy-900); }
.feature-list span { color: var(--text-soft); font-size: .96rem; }
.panel { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); }
.panel h3 { color: #fff; font-family: var(--font-body); font-weight: 800; }
.panel p { color: #CBD5E1; }
.panel .kv { display: flex; gap: 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.panel .kv:first-of-type { border-top: 0; }
.panel .kv b { color: var(--gold-400); font-family: var(--font-head); font-size: 1.5rem; min-width: 90px; }

/* ---------- Cases ---------- */
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.case .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); background: #F1E9FC; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .9rem; }
.case h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; }
.case p { color: var(--text-soft); font-size: .95rem; }
.case .metric { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; gap: 1.2rem; }
.case .metric div b { display: block; font-family: var(--font-head); color: var(--navy-700); font-size: 1.4rem; }
.case .metric div span { font-size: .82rem; color: var(--text-mute); }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold-500); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
[dir="rtl"] .quote { border-left: 1px solid var(--border); border-right: 4px solid var(--gold-500); }
.quote p { font-family: var(--font-head); font-size: 1.12rem; color: var(--navy-900); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, var(--navy-700), var(--navy-900)); color: var(--gold-400); display: grid; place-items: center; font-weight: 700; }
.quote .who b { display: block; color: var(--navy-900); font-family: var(--font-body); }
.quote .who span { font-size: .86rem; color: var(--text-mute); }
.stars { color: var(--gold-500); letter-spacing: .1em; margin-bottom: .6rem; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .2rem 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-body); font-weight: 800; color: var(--navy-900); padding: 1.05rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.03rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 22px; height: 22px; color: var(--gold-600); transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { color: var(--text-soft); padding-bottom: 1.1rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 3.6rem); text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 80% 0%, rgba(245,158,11,.18), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #CBD5E1; max-width: 620px; margin-inline: auto; position: relative; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.office { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.office:last-child { border-bottom: 0; }
.office .pin { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #EFF3FB; color: var(--navy-700); display: grid; place-items: center; }
.office .pin svg { width: 22px; height: 22px; }
.office b { color: var(--navy-900); font-size: 1.05rem; }
.office p { color: var(--text-soft); margin: .2rem 0 0; font-size: .96rem; }
.contact-methods { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #CBD5E1; padding: clamp(2.6rem, 6vw, 4rem) 0 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand small { color: #94A3B8; }
.footer-links li { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: #94A3B8; }

/* floating WhatsApp */
.fab { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s ease; }
.fab:hover { transform: scale(1.06); color: #fff; }
.fab svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-navy { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile { display: none; }
  .nav-mobile.open { display: block; }
  .nav-mobile { position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 1.2rem 20px 1.6rem; z-index: 49; }
  .nav-mobile a { display: block; padding: .8rem 0; font-weight: 700; color: var(--navy-800); border-bottom: 1px solid var(--border); }
  .nav-mobile .btn { width: 100%; margin-top: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .case .metric { gap: 1.6rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- RTL ---------- */
[dir="rtl"] body { font-family: "Noto Kufi Arabic", "Lato", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: "Noto Kufi Arabic", var(--font-head); }
[dir="rtl"] .eyebrow::before { }
[dir="rtl"] .nav-links { margin-inline-start: auto; }

/* CJK font tuning */
[lang="zh"] body, [lang="zh-Hans"] body { font-family: "Noto Sans SC", var(--font-body); }
[lang="zh"] h1, [lang="zh-Hans"] h1, [lang="zh"] h2, [lang="zh-Hans"] h2, [lang="zh"] h3 { font-family: "Noto Serif SC", var(--font-head); }

/* ---------- Brand logo ---------- */
.brand-logo { height: 24px; width: auto; display: block; }
.site-header .brand { color: var(--navy-900); gap: .55rem; }
.site-footer .brand-logo { height: 26px; filter: brightness(0) invert(1); }
.brand small { margin-top: 3px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 900px; margin-inline: auto; }
.member { display: flex; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.member:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #CBD5E1; }
.member-photo { flex: none; width: 118px; height: 118px; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); box-shadow: var(--shadow-sm); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.member-info h3 { margin: 0 0 .2rem; font-size: 1.18rem; }
.member-info .role { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .5rem; }
.member-info p { margin: 0; color: var(--text-soft); font-size: .93rem; line-height: 1.55; }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .member { flex-direction: column; text-align: center; }
  .member-info .role { margin-inline: auto; }
}

/* ---------- Article / guide page ---------- */
.article { padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 7vw, 88px); }
.article-wrap { max-width: 820px; }
.breadcrumb { font-size: .85rem; color: var(--text-mute); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--navy-600); font-weight: 600; }
.breadcrumb span[aria-hidden] { margin: 0 .4rem; color: var(--border); }
.article-head { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1.6rem; }
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: .5rem 0 .8rem; }
.article-head .lead { color: var(--text-soft); }
.article-meta { font-size: .9rem; color: var(--text-mute); margin-top: 1rem; }
.article-meta strong { color: var(--navy-800); }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--text-soft); }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); color: var(--navy-900); margin: 2.4rem 0 .9rem; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--navy-900); }
.prose em { font-style: italic; }
.prose a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-inline-start: 1.3rem; }
.prose li { margin-bottom: .6rem; }
.prose li::marker { color: var(--gold-600); font-weight: 700; }
.prose details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: .7rem; box-shadow: var(--shadow-sm); }
.prose summary { cursor: pointer; font-weight: 700; color: var(--navy-900); padding: 1rem 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1rem; }
.prose summary::-webkit-details-marker { display: none; }
.prose details[open] summary { border-bottom: 1px solid var(--border); }
.prose details .chev { width: 20px; height: 20px; flex: none; transition: transform .2s ease; color: var(--gold-600); }
.prose details[open] .chev { transform: rotate(180deg); }
.prose details p { margin: 0; padding: .9rem 1.1rem 1.1rem; color: var(--text-soft); }

.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; margin-bottom: 2.2rem; }
.toc h2 { font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 .7rem !important; }
.toc ul { columns: 2; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: .45rem; break-inside: avoid; }
.toc a { color: var(--navy-700); font-weight: 600; font-size: .95rem; text-decoration: none; }
.toc a:hover { color: var(--gold-600); }

.callout { background: #F5EEFC; border: 1px solid #E4D3F7; border-left: 4px solid var(--gold-600); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .96rem; color: var(--navy-800); }

.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.prose thead th { background: var(--bg-soft); color: var(--navy-900); font-weight: 800; text-align: start; padding: .8rem .9rem; border-bottom: 2px solid var(--border); white-space: nowrap; }
.prose tbody td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody td:first-child { color: var(--navy-900); font-weight: 700; }
.prose .win { color: var(--gold-700); font-weight: 700; }
.related { margin-top: 2.4rem; border-top: 1px solid var(--border); padding-top: 1.4rem; }
.related h2 { font-size: 1.1rem !important; color: var(--navy-900); margin: 0 0 .8rem !important; }
.related a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }

.article-cta { margin-top: 2.8rem; background: linear-gradient(158deg, #2B2656, #221E45 60%, #1B1836); color: #EDEAF7; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.article-cta h2 { color: #fff; margin-bottom: .6rem; }
.article-cta p { color: #CFC9E6; max-width: 46ch; margin: 0 auto 1.4rem; }
.article-cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) { .toc ul { columns: 1; } }

/* ---------- Brand hero (deep purple + team image) ---------- */
.hero {
  padding: clamp(52px, 6vw, 90px) 0 0;
  color: #EDEAF7;
  background:
    radial-gradient(760px 560px at 80% 92%, rgba(174, 110, 224, .42), transparent 62%),
    radial-gradient(680px 520px at 4% -6%, rgba(122, 102, 206, .30), transparent 58%),
    linear-gradient(158deg, #2B2656 0%, #221E45 55%, #1B1836 100%);
}
.hero-grid { align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 7vw, 84px); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-400); }
.hero p.lead { color: #CFC9E6; }
.hero .chip { background: rgba(255, 255, 255, .08); color: #F1EEFB; border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.hero .chip svg { color: var(--gold-400); }
.hero-note { color: #B8B1D6; }
.hero-note svg { color: var(--gold-400); }

.hero-visual { position: relative; align-self: end; justify-self: center; width: 100%; max-width: 520px; }
.hero-visual > picture, .hero-visual img { display: block; width: 100%; height: auto; }
.hero-visual img { filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .34)); }
.hero-stats { position: absolute; left: 0; right: 0; bottom: clamp(6px, 3vw, 34px); display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: clamp(88px, 8.4vw, 116px); height: clamp(88px, 8.4vw, 116px); border-radius: 50%; padding: .35rem; font-size: .7rem; line-height: 1.16; font-weight: 600; box-shadow: 0 12px 30px rgba(20, 12, 40, .32); }
.hstat b { font-family: var(--font-head); font-size: 1.15rem; line-height: 1; margin-bottom: .18rem; }
.hstat span { opacity: .92; }
.hstat-a { background: #fff; color: var(--navy-900); }
.hstat-b { background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.hstat-c { background: linear-gradient(150deg, var(--gold-500), var(--gold-600)); color: #fff; }

@media (max-width: 960px) {
  .hero-visual { max-width: 420px; margin-top: .5rem; }
  .hero-copy { padding-bottom: 1.5rem; }
}
@media (max-width: 560px) {
  .hero-visual { max-width: 320px; }
  .hstat { width: 84px; height: 84px; font-size: .66rem; }
  .hstat b { font-size: 1rem; }
}

/* ---------- Header fit: logo only, tighter nav ---------- */
.site-header .brand > span { display: none; }
.nav-links { gap: 1.1rem; }
.nav-links a { white-space: nowrap; font-size: .95rem; }
.nav-guides { position: relative; }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 236px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; display: none; z-index: 60; }
.nav-guides:hover .nav-dropdown, .nav-guides:focus-within .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--navy-800); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--gold-600); }
[dir="rtl"] .nav-dropdown { left: auto; right: 0; }
.nav-mobile .m-guides { margin-top: .4rem; padding-top: .8rem; border-top: 1px dashed var(--border); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.case .card-link { display: inline-block; margin-top: .8rem; font-weight: 800; font-size: .92rem; color: var(--gold-600); }
.case .card-link:hover { color: var(--gold-700); }

/* ---------- Request a call ---------- */
.callback { background:
  radial-gradient(680px 420px at 88% -10%, rgba(174, 110, 224, .12), transparent 60%),
  var(--white); }
.callback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.callback-copy .lead { margin-bottom: 0; }
.check-row { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; color: var(--text-soft); margin: .1rem 0 1.1rem; line-height: 1.45; }
.check-row input { margin-top: .18rem; accent-color: var(--gold-600); flex: none; }
.check-row b { color: var(--navy-800); }
@media (max-width: 820px) { .callback-grid { grid-template-columns: 1fr; } }

/* ---------- Quiz modal ---------- */
.quiz-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(18, 12, 38, .64); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.quiz-overlay[hidden] { display: none; }
.quiz-dialog { position: relative; display: grid; grid-template-columns: 290px 1fr; width: min(880px, 100%); max-height: 92vh; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.quiz-close { position: absolute; top: 12px; inset-inline-end: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.quiz-close:hover { background: rgba(255, 255, 255, .28); }
.quiz-aside { background: linear-gradient(165deg, #2B2656, #221E45 72%, #1B1836); color: #EDEAF7; padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.quiz-aside img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow-md); }
.quiz-aside b { font-family: var(--font-head); font-size: 1.25rem; display: block; }
.quiz-aside .role { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-400); margin: .25rem 0 .55rem; }
.quiz-aside p { color: #CFC9E6; font-size: .92rem; line-height: 1.55; margin: 0; }
.quiz-form { padding: clamp(1.4rem, 3vw, 2.1rem); display: flex; flex-direction: column; overflow: auto; }
.quiz-head h3 { font-size: 1.28rem; margin-bottom: .85rem; }
.quiz-progress { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 16.6%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); transition: width .3s ease; }
.quiz-count { font-size: .78rem; color: var(--text-mute); font-weight: 700; margin-top: .5rem; }
.quiz-steps { margin: 1.25rem 0; flex: 1; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: quizin .25s ease; }
@keyframes quizin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz-step .q { font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; color: var(--navy-900); margin-bottom: 1rem; }
.qopts { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.qopt { display: flex; align-items: center; gap: .55rem; padding: .68rem .8rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--navy-800); transition: border-color .15s ease, background .15s ease; }
.qopt:hover { border-color: var(--gold-500); }
.qopt input { accent-color: var(--gold-600); flex: none; }
.qopt:has(input:checked) { border-color: var(--gold-600); background: #F5EEFC; }
.quiz-step textarea, .quiz-step input[type=text] { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: .7rem .8rem; font: inherit; color: var(--text); background: #fff; }
.quiz-step textarea:focus, .quiz-step input:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--ring); }
.quiz-step .field { margin-bottom: .8rem; }
.quiz-step .field label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy-800); margin-bottom: .35rem; }
.quiz-step.invalid .q, .quiz-step.invalid .field label { color: #B4232A; }
.quiz-nav { display: flex; gap: .7rem; margin-top: .4rem; }
.quiz-nav .btn[hidden] { display: none; }
.quiz-nav .quiz-next, .quiz-nav .quiz-submit { margin-inline-start: auto; }
@media (max-width: 680px) {
  .quiz-dialog { grid-template-columns: 1fr; max-height: 94vh; }
  .quiz-aside { flex-direction: row; align-items: center; padding: 1.1rem 1.2rem; }
  .quiz-aside p { display: none; }
  .quiz-aside img { width: 60px; height: 60px; }
  .qopts { grid-template-columns: 1fr; }
}
