/* ============================================================
   עמנואל — פיננסים, פנסיה וביטוח
   Dark Premium Theme · IBM Plex Sans Hebrew · RTL
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-Thin.ttf') format('truetype');
  font-weight: 100; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-ExtraLight.ttf') format('truetype');
  font-weight: 200; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-Light.ttf') format('truetype');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  src: url('../assets/fonts/IBMPlexSansHebrew-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg-deep:    #161659;
  --bg:         #161659;
  --bg-raise:   #161659;
  --dark-gradient: linear-gradient(110deg, #161659 0%, #161659 100%);
  --line:       rgba(232, 244, 252, .18);

  --green:      #c3f84a;
  --green-soft: rgba(195, 248, 74, .15);
  --green-ink:  #161659;
  --blue:       #136cfc;
  --mint:       #e8f4fc;
  --cream:      #e8f4fc;
  --muted:      #e8f4fc;
  --ink:        #161659;
  --ink-muted:  #161659;
  --accent-gold:  #136cfc;
  --accent-olive: #c3f84a;
  --accent-blush: #e8f4fc;
  --accent-rose:  #136cfc;
  --accent-clay:  #161659;

  --radius:     18px;
  --shadow:     0 24px 60px -24px rgba(22, 22, 89, .38);
  --container:  1160px;
  --header-h:   164px;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans Hebrew', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream);
  background: var(--dark-gradient);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-align: right;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.accent { color: var(--green); }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--bg-deep);
  box-shadow: 0 14px 34px -14px rgba(195, 248, 74, .42);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--cream);
  box-shadow: 0 20px 40px -14px rgba(19, 108, 252, .45);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--mint);
  background: rgba(232, 244, 252, .04);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-lg { padding: 1em 2.2em; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Icon tiles (בהשראת סט האייקונים) ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  border-radius: 20px;
  box-shadow: 0 12px 26px -12px rgba(22, 22, 89, .3),
              inset 0 1px 0 rgba(232, 244, 252, .25);
}

.tile-green {
  background: var(--green);
  color: var(--bg-deep);
}
.tile-blue {
  background: var(--blue);
  color: var(--cream);
}
.tile-mint {
  background: var(--mint);
  color: var(--ink);
}
.tile-cream {
  background: var(--cream);
  color: var(--bg-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(22, 22, 89, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* בדסקטופ התפריט נשאר בתחום פנוי לצד הלוגו */
@media (min-width: 1201px) {
  .main-nav {
    position: absolute;
    inset-inline-start: 286px;
    inset-inline-end: 0;
    justify-content: space-between;
    gap: clamp(10px, 1.5vw, 22px);
    white-space: nowrap;
  }
}

.brand-logo { height: 120px; width: auto; }

/* הלוגו בבר מופיע רק אחרי שגוללים מעבר ללוגו שב-Hero */
.site-header .brand {
  opacity: 0;
  transform: translateY(-12px) scale(.92);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.site-header.show-brand .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 400;
  font-size: .98rem;
}
.main-nav > a:not(.btn) {
  position: relative;
  padding-block: 4px;
  color: var(--mint);
  opacity: .85;
  transition: opacity .2s, color .2s;
}
.main-nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.main-nav > a:not(.btn):hover { opacity: 1; color: #fff; font-weight: 500; }
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta { margin-inline-start: 8px; }

.nav-cta.btn-primary {
  background: var(--green);
  color: var(--bg-deep);
  box-shadow: 0 14px 34px -14px rgba(195, 248, 74, .42);
}
.nav-cta.btn-primary:hover {
  background: var(--blue);
  color: var(--cream);
  box-shadow: 0 20px 40px -14px rgba(19, 108, 252, .45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  background: url("../%D7%AA%D7%9E%D7%95%D7%A0%D7%95%D7%AA%20%D7%A0%D7%95%D7%A9%D7%90/01-hero.png") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 28, .45);
  z-index: 1;
}
.hero-glow { display: none; }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { text-align: center; }
.hero .hero-logo-link { margin-inline: auto; }

.hero-kicker {
  display: inline-block;
  padding: .45em 1.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 244, 252, .04);
  color: var(--green);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .14em;
  margin-bottom: 28px;
}

.hero-sub {
  max-width: 640px;
  margin: 20px auto 36px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 300;
}

.h1-top { display: block; font-weight: 200; }

.hero-logo {
  display: block;
  margin: 4px auto 0;
  height: clamp(170px, 28vw, 250px);
  width: auto;
}
.hero-logo-link {
  display: block;
  width: fit-content;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 46px;
  color: var(--muted);
  font-size: .92rem;
  letter-spacing: .06em;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  z-index: 2;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 38px; height: 38px;
  color: var(--muted);
  animation: floatY 2.4s ease-in-out infinite;
}
[dir="rtl"] .scroll-hint { translate: 50% 0; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }

.section-kicker {
  color: var(--green);
  font-weight: 500;
  letter-spacing: .18em;
  font-size: .85rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ---------- Light sections (הפרדה ויזואלית) ---------- */
.section-light {
  background: var(--mint);
  color: var(--ink);
}
.section-light h2,
.section-light h3 { color: var(--ink); }
.section-light .accent { color: var(--green-ink); }
.section-light .section-kicker { color: var(--green-ink); }
.section-light .section-sub { color: var(--ink-muted); }

.section-light .about-text p { color: var(--ink-muted); }
.section-light .about-text strong { color: var(--ink); }

.section-light .why-item {
  background: var(--mint);
  border-inline-color: rgba(22, 22, 89, .12);
  border-bottom-color: rgba(22, 22, 89, .12);
  box-shadow: 0 16px 36px -24px rgba(22, 22, 89, .2);
}
.section-light .why-item:hover {
  border-inline-color: var(--green);
  border-bottom-color: var(--green);
  background: var(--mint);
  transform: translateY(-4px);
}
.section-light .why-item h3 { color: var(--ink); }
.section-light .why-item p { color: var(--ink-muted); }

.section-light .contact-details li { color: var(--ink); }
.section-light .contact-details svg { color: var(--green-ink); }
.section-light .contact-details a:hover { color: var(--green-ink); }

.section-heading {
  margin: 0 auto 40px;
  text-align: right;
}
.section-heading h2 {
  max-width: 900px;
  margin: 0;
  text-align: right;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  margin-top: 0;
  align-items: start;
}

.about-aside {
  display: grid;
  gap: 24px;
}

.about-text p { color: var(--muted); }
.about-text strong { color: var(--cream); font-weight: 600; }

.about-quote {
  margin: 0;
  padding: 40px 36px;
  background: var(--dark-gradient);
  border: 1px solid rgba(232, 244, 252, .2);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px -28px rgba(22, 22, 89, .48);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.about-quote .quote-mark {
  width: 40px; height: 40px;
  color: var(--blue);
  margin-bottom: 14px;
}
.about-quote p {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--mint);
}
.about-quote footer {
  margin-top: 18px;
  color: var(--green);
  font-weight: 500;
  font-size: .95rem;
}

/* ---------- Services ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.card {
  padding: 40px 32px;
  background: var(--dark-gradient);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(195, 248, 74, .65);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 64px; height: 64px;
  margin-bottom: 24px;
}
.card-icon svg { width: 34px; height: 34px; }

.card h3 { margin-bottom: 2px; }
.card-en {
  color: var(--green);
  font-size: .82rem;
  letter-spacing: .1em;
  font-weight: 500;
  margin-bottom: 14px;
}
.card p:last-child { color: var(--muted); margin-bottom: 0; }

/* ---------- Complementary Services ---------- */
.complementary {
  background: var(--mint);
  color: var(--ink);
}
.complementary h2 { color: var(--ink); }
.complementary .accent,
.complementary .section-kicker { color: var(--green-ink); }
.complementary .section-sub { color: var(--ink-muted); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.support-card {
  padding: 32px;
  border: 1px solid rgba(22, 22, 89, .1);
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: 0 16px 36px -24px rgba(22, 22, 89, .2);
}
.info-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--green);
  color: var(--bg-deep);
}
.info-icon svg { width: 30px; height: 30px; }
.support-card h3,
.knowledge-card h3 { color: var(--ink); }
.support-card p,
.knowledge-card p { color: var(--ink-muted); margin: 0; }

/* ---------- Why Us ---------- */
.why.section-light {
  position: relative;
  isolation: isolate;
  background: url("../%D7%AA%D7%9E%D7%95%D7%A0%D7%95%D7%AA%20%D7%A0%D7%95%D7%A9%D7%90/12-why-emmanuel.png") center / cover no-repeat;
}
.why .section-heading {
  margin-bottom: 24px;
  text-align: center;
}
.why .section-heading h2 {
  margin-inline: auto;
  text-align: center;
}
.why .section-sub {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}
.why-grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
  padding: 76px 0 28px;
}
.why-item {
  display: flex;
  position: relative;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 0 18px 22px;
  border: 0;
  border-top: 6px solid var(--blue);
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 28px -22px rgba(22, 22, 89, .38);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why .why-item {
  background: rgba(255, 255, 255, .86);
}
.why .why-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 32px -22px rgba(22, 22, 89, .46);
}
.why .why-item.reveal {
  transition: opacity .7s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-item:nth-child(2) { border-top-color: var(--green); }
.why-item:nth-child(3) { border-top-color: var(--blue); }
.why-icon {
  width: 68px;
  height: 68px;
  flex: none;
  margin: -52px 0 20px;
  border-radius: 50%;
  z-index: 1;
}
.why-icon svg { width: 30px; height: 30px; }
.why-item:nth-child(3) .why-icon {
  background: var(--bg-deep);
  color: var(--cream);
}
.why-item:nth-child(4) .why-icon {
  background: var(--blue);
  color: var(--cream);
}
.why-item h3 { margin-bottom: 8px; color: var(--ink); font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--ink-muted); font-size: .92rem; line-height: 1.75; }

/* ---------- Process ---------- */
.process { text-align: center; }
.process .section-sub { margin-inline: auto; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}
.process-step {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 244, 252, .07);
}
.process-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.process-number {
  display: block;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.process-icon {
  width: 46px;
  height: 46px;
  padding: 9px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--muted); margin: 0; font-size: .95rem; }
.process-cta { margin: 40px auto 0; }

/* ---------- Numbers ---------- */
.numbers {
  background: var(--dark-gradient);
  border-block: 1px solid var(--line);
  text-align: center;
}
.numbers .section-sub { margin-inline: auto; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.number-item {
  padding: 36px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(232, 244, 252, .07);
}

.number-value {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.number-label {
  display: block;
  margin-top: 10px;
  color: var(--mint);
  font-weight: 300;
}
.number-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 18px;
  color: var(--green);
}

/* ---------- Financial Basics ---------- */
.knowledge {
  background: var(--mint);
  color: var(--ink);
}
.knowledge .section-kicker { color: var(--blue); }
.knowledge-hero {
  margin-bottom: 40px;
}
.knowledge-intro {
  max-width: 800px;
  margin: 0;
  color: var(--mint);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.75;
}
.knowledge-body { padding-block: 0 100px; }
.section-body-intro { margin-bottom: 34px; }
.knowledge-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.knowledge-filter {
  padding: .65em 1.35em;
  border: 1px solid rgba(22, 22, 89, .2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.knowledge-filter:hover {
  transform: translateY(-2px);
  border-color: var(--green-ink);
  color: var(--green-ink);
}
.knowledge-filter.is-active {
  border-color: transparent;
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(195, 248, 74, .45);
}
.knowledge-filter:focus-visible {
  outline: 3px solid rgba(19, 108, 252, .5);
  outline-offset: 3px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.knowledge-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(22, 22, 89, .1);
  border-radius: var(--radius);
  background: rgba(232, 244, 252, .92);
  box-shadow: 0 16px 36px -24px rgba(22, 22, 89, .2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.knowledge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(22, 22, 89, .28);
}
.knowledge-card[hidden] { display: none; }
.knowledge-card:focus-within {
  outline: 3px solid rgba(19, 108, 252, .5);
  outline-offset: 3px;
}
.knowledge-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.knowledge-card-image {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.knowledge-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 30px 30px;
}
.knowledge-card-body .info-icon { margin-bottom: 18px; }
.knowledge-category {
  color: var(--green-ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.knowledge-card h3 {
  margin: 8px 0 12px;
  font-size: 1.15rem;
}
.knowledge-card p { line-height: 1.7; }
.knowledge-read-more {
  margin-top: auto;
  padding-top: 20px;
  color: var(--green-ink);
  font-size: .9rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .knowledge-body { padding-block: 34px 72px; }
  .knowledge-filters { gap: 8px; margin-bottom: 32px; }
  .knowledge-filter { padding: .55em 1em; }
  .knowledge-grid { grid-template-columns: 1fr; }
}

/* ---------- Glossary ---------- */
.glossary-section {
  background: var(--mint);
  color: var(--ink);
}
.glossary-section .section-kicker { color: var(--blue); }
.glossary-hero {
  margin-bottom: 40px;
}
.glossary-intro {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.75;
}
.glossary-intro.section-body-intro { margin-bottom: 34px; }
.glossary-body { padding-block: 0 80px; }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.glossary-card {
  padding: 28px 30px;
  border: 1px solid rgba(22, 22, 89, .1);
  border-radius: var(--radius);
  background: rgba(232, 244, 252, .92);
  box-shadow: 0 16px 36px -24px rgba(22, 22, 89, .2);
}
.glossary-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
}
.glossary-card p {
  margin: 0;
  color: var(--ink-muted);
}
.glossary-note {
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: .9rem;
}
@media (max-width: 520px) {
  .glossary-body { padding-block: 32px 64px; }
  .glossary-grid { grid-template-columns: 1fr; }
}

/* ---------- Articles ---------- */
.article-page {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
}
.article-header {
  padding: 22px 0;
  background: var(--dark-gradient);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-weight: 500;
}
.article-back:hover { color: var(--blue); }
.article-back svg { width: 20px; height: 20px; }
.article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 15vw, 180px) 0 clamp(56px, 8vw, 92px);
  background: var(--mint);
  border-bottom: 1px solid rgba(22, 22, 89, .12);
}
.article-hero-bg {
  position: absolute;
  inset: -8% -5%;
  background: var(--mint) center / cover no-repeat;
  animation: articlePan 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes articlePan {
  from { transform: scale(1.02) translateX(0); }
  to   { transform: scale(1.14) translateX(-2.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .article-hero-bg { animation: none; }
}
.article-hero-inner { position: relative; z-index: 2; }
.article-category {
  display: inline-block;
  margin-bottom: 18px;
  padding: .35em 1.1em;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .95rem;
}
.article-category:empty { display: none; }
.article-title {
  max-width: 1000px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.5;
}
.article-title .title-highlight {
  display: inline;
  padding: .1em .4em;
  background: var(--blue);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.article-excerpt {
  max-width: 780px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 2;
}
.article-excerpt .excerpt-highlight {
  display: inline;
  padding: .2em .55em;
  background: rgba(22, 22, 89, .88);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.article-reading { padding: 64px 0 96px; }
.article-content {
  max-width: 840px;
  margin-inline: auto;
}
.article-content section + section { margin-top: 40px; }
.article-image {
  margin: 40px 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.article-image img {
  display: block;
  width: 100%;
  height: auto;
}
.article-content h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
}
.article-content p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  line-height: 1.9;
}
.article-disclaimer {
  max-width: 840px;
  margin: 38px auto 0;
  color: var(--ink-muted);
  font-size: .88rem;
  line-height: 1.7;
}
.article-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 840px;
  margin: 48px auto 0;
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--dark-gradient);
  color: var(--cream);
}
.article-contact h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.article-contact p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .article-reading { padding: 44px 0 72px; }
  .article-contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mint);
  font-weight: 400;
}
.contact-details svg {
  width: 22px; height: 22px;
  color: var(--green);
  flex-shrink: 0;
}
.contact-details a:hover { color: var(--green); }

.contact-form {
  padding: 44px 40px;
  background: var(--dark-gradient);
  border: 1px solid rgba(232, 244, 252, .16);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 28px 60px -28px rgba(22, 22, 89, .48);
  display: grid;
  gap: 22px;
}

.form-field { display: grid; gap: 8px; }
.form-field label {
  font-weight: 500;
  font-size: .95rem;
  color: var(--mint);
}
.form-field input {
  font: inherit;
  color: var(--cream);
  background: rgba(232, 244, 252, .1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85em 1.1em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 108, 252, .24);
}
.form-field input.invalid { border-color: var(--accent-rose); }

.form-status {
  margin: 0;
  min-height: 1.4em;
  text-align: center;
  font-weight: 500;
  color: var(--green);
}
.form-status.error { color: var(--accent-rose); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--dark-gradient);
}

.footer-inner {
  text-align: right;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo { height: 92px; width: auto; opacity: .95; }
.footer-description {
  max-width: 340px;
  margin: 14px 0 0;
  color: var(--muted);
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  font-size: .95rem;
}
.footer-heading {
  margin: 0 0 4px;
  color: var(--cream);
  font-size: 1.02rem;
}
.footer-column > a { color: var(--muted); transition: color .2s; }
.footer-column > a:hover,
.footer-contact a:hover { color: var(--green); }
.footer-contact {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.footer-contact svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--green);
}
.footer-contact a {
  color: var(--muted);
  direction: ltr;
  unicode-bidi: isolate;
  transition: color .2s;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-note {
  color: var(--muted);
  font-size: .85rem;
  margin: 0;
}
.footer-domain {
  display: inline-block;
  color: var(--green);
  direction: ltr;
}
.footer-disclaimer {
  max-width: 960px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.7;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg-deep);
  box-shadow: 0 16px 36px -10px rgba(195, 248, 74, .4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 22px 44px -10px rgba(195, 248, 74, .5);
}
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .why .why-item.reveal { transition: none; }
  .scroll-hint { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; }
  .why-icon { margin-top: 0; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-quote { position: static; }
}

@media (max-width: 1200px) {
  :root { --header-h: 126px; }

  .brand-logo { height: 92px; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 6px;
    padding: 18px 24px 28px;
    background: rgba(22, 22, 89, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .main-nav > a:not(.btn) { padding-block: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }


  .cards-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { padding: 34px 26px; }
}

@media (max-width: 520px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .number-item { padding: 26px 10px; }
  .section-heading h2 { font-size: clamp(1.85rem, 8vw, 2.45rem); }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .why-grid { grid-template-columns: 1fr; padding: 18px; }
  .footer-logo { height: 88px; }
}

