/* ============================================================
   Al Sanam Islamic Bank (SIB) — design system inspired by idb.iq structure
   Petrol/navy blue + gold from brand palette, bilingual (RTL/LTR via [dir])
   ============================================================ */

:root {
  --green: #085373;
  --green-strong: #0a6a94;
  --green-soft: rgba(8, 83, 115, 0.08);
  --dark: #032440;
  --dark-2: #003c67;
  --gold: #cdb52a;
  --gold-light: #e6d24d;
  --ink: #0b1220;
  --muted: #5b6672;
  --line: #e2e8f0;
  --bg: #f7f9fb;
  --card: #ffffff;
  --radius: 20px;
  --shadow-xs: 0 1px 2px rgba(2, 36, 64, 0.05), 0 2px 8px rgba(2, 36, 64, 0.04);
  --shadow: 0 10px 30px rgba(2, 36, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 36, 64, 0.18);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Gumela Arabic (header display font, same family the IDB site uses).
   Drop the licensed font file at assets/fonts/GumelaArabic.woff2 (or .ttf)
   and it activates automatically; until then Almarai is the fallback. */
@font-face {
  font-family: "Gumela Arabic";
  src: url("../fonts/GumelaArabic.woff2") format("woff2"),
       url("../fonts/GumelaArabic.ttf") format("truetype");
  font-display: swap;
}

body {
  font-family: "Tajawal", "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- reveal-on-scroll (subtle: small offset reads as fade) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.reveal.visible { opacity: 1; transform: none; }

/* kicker accent line draws in when its section reveals */
.section-kicker::before { transform: scaleX(0); transform-origin: inline-start; transition: transform 0.6s ease 0.25s; }
.reveal.visible .section-kicker::before,
.visible .section-kicker::before { transform: scaleX(1); }

/* gentle float for the showcase card photo */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.cards-visual > img { animation: floaty 7s ease-in-out infinite; }

/* gold sheen sweep across primary CTAs on hover */
.btn { position: relative; overflow: hidden; }
.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
}
.btn-gold:hover::before { inset-inline-start: 120%; transition: inset-inline-start 0.6s ease; }

/* scroll cue at hero bottom */
.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.scroll-cue:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.scroll-cue svg { animation: cueBounce 2s ease-in-out infinite; }
@keyframes cueBounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

/* icon micro-motion inside dark cards */
.info-card .ic svg { transition: transform 0.3s ease; }
.info-card:hover .ic svg { transform: scale(1.12); }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* English pages use Lexend for Latin text, falling back to Tajawal */
html[lang="en"] body { font-family: "Lexend", "Tajawal", "Segoe UI", Arial, sans-serif; }

/* Display type: Almarai gives Arabic headlines a distinct voice vs. Tajawal body */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .num { font-family: "Almarai", "Tajawal", sans-serif; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }

/* header uses Gumela when its file is present (falls back to Almarai) */
html[lang="ar"] .site-header .brand-name,
html[lang="ar"] .main-nav > li > a { font-family: "Gumela Arabic", "Almarai", "Tajawal", sans-serif; }

/* Arabic script must not be letter-spaced (fixes WebKit/iPhone rendering) */
html[lang="ar"] .slide-kicker,
html[lang="ar"] .section-kicker { letter-spacing: 0.5px; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] p, html[lang="ar"] a, html[lang="ar"] button { letter-spacing: normal; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
  transition: height var(--transition);
}
/* logo dead-center of the header */
.header-inner > .brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
@media (min-width: 1081px) {
  .site-header.scrolled .header-inner { height: 62px; }
  .site-header.scrolled .main-nav > li > a { padding-top: 19px; padding-bottom: 19px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.brand-lockup {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
/* on narrower screens the centered logo would collide with the nav — let it flow inline */
@media (max-width: 1280px) {
  .header-inner > .brand { position: static; transform: none; }
}
.footer-brand .brand-lockup { height: 58px; }
@media (max-width: 560px) {
  .brand-lockup { height: 40px; }
}
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 19px; letter-spacing: 0.5px; }
.brand-name span { font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 26px 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}
.main-nav > li > a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 16px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.main-nav > li > a:hover::after,
.main-nav > li.open > a::after { transform: scaleX(1); }

.dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 250px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0.35s;
  border-top: 3px solid var(--gold);
}
/* invisible hover bridge so the menu doesn't flicker between link and panel */
.main-nav > li::after { content: ""; position: absolute; inset-inline: 0; height: 18px; top: 100%; }
/* desktop: clicking opens the full-page mega menu instead of hover dropdowns */
.main-nav li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14.5px;
  color: var(--ink);
  transition: all 0.25s ease;
}
.dropdown a:hover {
  background: var(--green-soft);
  color: var(--green);
  padding-inline-start: 26px;
}

/* ---------- full-page mega menu ---------- */
/* fills the page below the header — the header stays visible and usable */
.mega {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 90;
  background: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  visibility: hidden;
  transform: translateY(-104%);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.55s;
}
.mega.open { visibility: visible; transform: none; }
/* while the menu is open the header goes solid so its links stay readable */
body.mega-open .site-header {
  background: var(--dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.mega-media {
  background: url("../img/hero-day.webp") center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.mega-panel {
  position: relative;
  padding: clamp(40px, 10vh, 100px) clamp(28px, 5vw, 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mega-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.mega-list { display: flex; flex-direction: column; }
.mega-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--ink);
  transition: color 0.25s ease, padding-inline-start 0.25s ease;
}
.mega-list a:hover { color: var(--green); padding-inline-start: 10px; }
.mega-list a svg { color: var(--ink); flex-shrink: 0; opacity: 0.85; }
.mega-list a:hover svg { color: var(--green); }
.mega-close {
  position: absolute;
  top: 26px;
  inset-inline-end: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  transition: all 0.25s ease;
  z-index: 2;
}
.mega-close:hover { background: var(--green); color: #fff; border-color: var(--green); }
.mega.open .mega-list a { opacity: 0; transform: translateY(14px); animation: megaIn 0.45s ease forwards; }
.mega.open .mega-list a:nth-child(1) { animation-delay: 0.08s; }
.mega.open .mega-list a:nth-child(2) { animation-delay: 0.14s; }
.mega.open .mega-list a:nth-child(3) { animation-delay: 0.2s; }
.mega.open .mega-list a:nth-child(4) { animation-delay: 0.26s; }
.mega.open .mega-list a:nth-child(5) { animation-delay: 0.32s; }
.mega.open .mega-list a:nth-child(6) { animation-delay: 0.38s; }
.mega.open .mega-list a:nth-child(7) { animation-delay: 0.44s; }
@keyframes megaIn { to { opacity: 1; transform: none; } }
@media (max-width: 1080px) {
  .mega { grid-template-columns: 1fr; }
  .mega-media { display: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background var(--transition);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }

.lang-switch {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: all var(--transition);
}
.lang-switch:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--gold);
  color: var(--dark);
  font-weight: 800;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background var(--transition);
}
.btn-portal:hover { background: var(--gold-light); }

.nav-toggle { display: none; color: #fff; width: 44px; height: 44px; }
.nav-toggle svg { margin: auto; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; background: var(--dark); }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 36, 64, 0.92) 0%, rgba(2, 36, 64, 0.45) 55%, rgba(2, 36, 64, 0.65) 100%);
}
.slide-bg.photo { overflow: hidden; }
.slide-bg.photo .bg-blur {
  position: absolute;
  inset: -48px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.55) saturate(0.95);
}
.slide-bg.photo .bg-fit {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.slide-bg.photo::after {
  background: linear-gradient(to top, rgba(2, 36, 64, 0.88) 0%, rgba(2, 36, 64, 0.35) 55%, rgba(2, 36, 64, 0.45) 100%);
}
/* hero images are fixed (no zoom); cover slide gets viewport-fixed parallax on desktop */
@media (min-width: 1081px) {
  .slide-bg.photo-cover { background-attachment: fixed; }
}
.bg-1 { background: radial-gradient(1100px 600px at 80% 20%, #0f6b99 0%, transparent 60%), linear-gradient(135deg, #06456b, #032440); }
.bg-2 { background: radial-gradient(1100px 600px at 20% 80%, #a8961f 0%, transparent 55%), linear-gradient(135deg, #0b3a5e, #021a30); }
.bg-3 { background: radial-gradient(900px 700px at 55% 45%, #0a5c85 0%, transparent 55%), linear-gradient(160deg, #043352, #02101d); }
.slide-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e6d24d' stroke-width='1'%3E%3Cpath d='M48 8 L88 48 L48 88 L8 48 Z'/%3E%3Ccircle cx='48' cy='48' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.slide-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 640px;
}
.slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.slide-kicker::before { content: ""; width: 36px; height: 2px; background: var(--gold); }
.slide h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.slide p { font-size: 18px; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; max-width: 520px; }
.slide-content > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide.active .slide-content > * { opacity: 1; transform: none; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: 0.15s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: 0.3s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: 0.45s; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: 999px;
  transition: all var(--transition);
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-strong); }
.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--green); }

/* ---------- 3D wireframe globe ---------- */
.globe-stage {
  --gsize: min(520px, 40vw, 62vh);
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.globe-stage::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 107, 153, 0.45), transparent 70%);
  filter: blur(10px);
}
.globe {
  width: var(--gsize);
  aspect-ratio: 1;
  position: relative;
  transform-style: preserve-3d;
  animation: globeSpin 20s linear infinite;
}
@keyframes globeSpin {
  from { transform: rotateX(16deg) rotateY(0deg); }
  to { transform: rotateX(16deg) rotateY(360deg); }
}
.globe .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 210, 77, 0.32);
}
.globe .ring:nth-child(1) { transform: rotateY(0deg); }
.globe .ring:nth-child(2) { transform: rotateY(30deg); }
.globe .ring:nth-child(3) { transform: rotateY(60deg); }
.globe .ring:nth-child(4) { transform: rotateY(90deg); border-color: rgba(230, 210, 77, 0.5); }
.globe .ring:nth-child(5) { transform: rotateY(120deg); }
.globe .ring:nth-child(6) { transform: rotateY(150deg); }
.globe .lat {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}
.globe .lat.eq { width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(90deg); border-color: rgba(255, 255, 255, 0.35); }
.globe .lat.n1 { width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--gsize) * 0.26)); }
.globe .lat.s1 { width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--gsize) * -0.26)); }
/* spinning 3D card at the globe's heart */
.globe-card {
  position: absolute;
  z-index: 2;
  width: calc(var(--gsize) * 0.46);
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  animation: globeCardSpin 9s linear infinite;
}
.globe-card .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
}
.globe-card .back { transform: rotateY(180deg); }
@keyframes globeCardSpin {
  from { transform: rotateX(8deg) rotateY(0deg); }
  to { transform: rotateX(8deg) rotateY(360deg); }
}
@media (max-width: 1080px) {
  .globe-stage { --gsize: min(320px, 70vw); }
}

/* globe slide: globe dead-center, text orbits it */
.slide-bg.photo-cover {
  background-size: cover;
  background-position: center;
}
.slide-globe .slide-bg::after {
  background: linear-gradient(to top, rgba(2, 27, 48, 0.9) 0%, rgba(2, 27, 48, 0.68) 50%, rgba(2, 27, 48, 0.72) 100%);
}
.slide-globe .globe-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.slide-globe .globe-stage { --gsize: min(640px, 64vh, 86vw); }
.slide-globe .slide-content {
  position: absolute;
  top: 104px;
  inset-inline: 24px;
  z-index: 3;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide-globe h1 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 10px; }
.slide-globe p { font-size: 15.5px; max-width: 540px; margin-bottom: 0; color: rgba(255, 255, 255, 0.8); }
.globe-cta {
  position: absolute;
  z-index: 3;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}
.slide.active .globe-cta { opacity: 1; }
@media (max-width: 860px) {
  .slide-globe .globe-stage { --gsize: min(400px, 78vw, 52vh); }
  .slide-globe .slide-content { top: 92px; }
  .globe-cta { bottom: 96px; }
}

/* 3D card inside the cards showcase */
.cards-show .card3d-stage { min-height: 340px; }
.cards-show .card3d-hint { color: rgba(255, 255, 255, 0.55); }

/* ---------- POS + card tap scene ---------- */
.pos-stage { perspective: 1300px; display: grid; place-items: center; }
.pos-scene {
  position: relative;
  width: min(430px, 78vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: sceneSway 11s ease-in-out infinite;
}
@keyframes sceneSway {
  0%, 100% { transform: rotateY(-16deg) rotateX(6deg); }
  50% { transform: rotateY(16deg) rotateX(6deg); }
}
.pos-terminal {
  position: absolute;
  inset-inline-start: 10%;
  bottom: 4%;
  width: 44%;
  aspect-ratio: 10 / 15;
  background: linear-gradient(165deg, #123a58, #081d31);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  padding: 7%;
  display: flex;
  flex-direction: column;
  gap: 9%;
  animation: posNudge 4s ease-in-out infinite;
}
@keyframes posNudge {
  0%, 40%, 70%, 100% { transform: scale(1); }
  52% { transform: scale(0.975); }
}
.pos-screen {
  height: 30%;
  border-radius: 12px;
  background: linear-gradient(160deg, #0f6b99, #085373);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(11px, 1.2vw, 15px);
  overflow: hidden;
}
.pos-screen .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: okFlash 4s infinite;
}
@keyframes okFlash {
  0%, 44% { opacity: 0; transform: scale(0.7); }
  54%, 78% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; }
}
.pos-keys { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9%; }
.pos-keys span { background: rgba(255, 255, 255, 0.1); border-radius: 20%; }
.pos-slot { height: 5%; border-radius: 99px; background: rgba(255, 255, 255, 0.14); }
.pos-card {
  position: absolute;
  inset-inline-end: 2%;
  top: 6%;
  width: 56%;
  aspect-ratio: 1.586;
  animation: cardTap 4s ease-in-out infinite;
  z-index: 2;
}
.pos-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.5);
}
@keyframes cardTap {
  0%, 10% { transform: translate(0, 0) rotate(-10deg); }
  42%, 58% { transform: translate(-38%, 34%) rotate(8deg) scale(0.96); }
  100% { transform: translate(0, 0) rotate(-10deg); }
}
[dir="rtl"] .pos-card { animation-name: cardTapRtl; }
@keyframes cardTapRtl {
  0%, 10% { transform: translate(0, 0) rotate(10deg); }
  42%, 58% { transform: translate(38%, 34%) rotate(-8deg) scale(0.96); }
  100% { transform: translate(0, 0) rotate(10deg); }
}
.tap-wave {
  position: absolute;
  inset-inline-start: 30%;
  top: 40%;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: waveOut 4s ease-out infinite;
  z-index: 3;
}
.tap-wave.w2 { animation-delay: 0.25s; }
@keyframes waveOut {
  0%, 46% { opacity: 0; transform: scale(0.4); }
  54% { opacity: 1; }
  78%, 100% { opacity: 0; transform: scale(3.2); }
}

/* per-slide entrance variety */
.slide.anim-scale .slide-content > * { transform: scale(0.93); }
.slide.anim-scale.active .slide-content > * { transform: none; }

/* ---------- 3D card slide ---------- */
.slide-content.slide-split {
  max-width: var(--container);
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.card3d-stage {
  perspective: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  touch-action: pan-y;
}
.card3d {
  width: min(430px, 100%);
  aspect-ratio: 1.586 / 1;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(6deg);
  will-change: transform;
}
.card3d .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55);
}
.card3d .back { transform: rotateY(180deg); }
.card3d-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  bottom: 42px;
  inset-inline-start: 0;
  width: 100%;
}
.hero-controls .container { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  transition: all var(--transition);
}
.hero-dots button.active { background: var(--gold); width: 52px; }
.hero-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.hero-arrows button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.hero-arrows button:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
[dir="rtl"] .arrow-flip { transform: scaleX(-1); }

/* ============================================================
   TRUST BAR + PATH SELECTION
   ============================================================ */
.trust-bar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.trust-item .tic {
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.path-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.path-card:hover .go svg { transform: translateX(-4px); }
[dir="ltr"] .path-card:hover .go svg { transform: translateX(4px); }
.path-card .go svg { transition: transform var(--transition); }
.path-card .pic {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.path-card .pc-text strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.path-card .pc-text span { color: var(--muted); font-size: 14.5px; }
.path-card .go { margin-inline-start: auto; color: var(--green); flex-shrink: 0; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .trust-items { justify-content: flex-start; }
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section { padding: 90px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.25; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* ============================================================
   ABOUT + STATS
   ============================================================ */
.about { background: var(--card); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.stat-card .num {
  font-size: 54px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat-card .num small { font-size: 18px; font-weight: 700; color: var(--muted); }
.stat-card .bar { width: 34px; height: 3px; background: var(--gold); margin: 18px 0 14px; border-radius: 3px; }
.stat-card p { color: var(--muted); font-size: 15px; }
.stat-card.featured { border-top: 3px solid var(--gold); }
.stat-card.featured .num { color: var(--green); }
.stat-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); }

.stats-grid.four { grid-template-columns: repeat(4, 1fr); }
.stats-grid.four .num { font-size: 44px; }
.stats-grid.four .num small { font-size: 15px; }
@media (max-width: 1080px) {
  .stats-grid.four { grid-template-columns: 1fr 1fr; }
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #fff;
  isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform 0.6s ease; }
.tile:hover::before { transform: scale(1.06); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(2, 36, 64, 0.88), rgba(2, 36, 64, 0.15));
}
.tile-1::before { background: url("../img/hero-bank.jpeg") center 30% / cover no-repeat; }
.tile-2::before { background: url("../img/card-desk.jpeg") center / cover no-repeat; }
.tile-3::before { background: linear-gradient(160deg, #06456b, #032440); }
.tile-label { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.tile-label strong { font-size: 21px; font-weight: 800; }
.tile-label .go {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.tile:hover .go { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ============================================================
   SERVICES — editorial numbered list
   ============================================================ */
.services { background: var(--card); border-top: 1px solid var(--line); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-num {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #8a7a14;
  background: rgba(205, 181, 42, 0.14);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.svc h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.text-link {
  color: var(--green);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap var(--transition);
}
.text-link:hover { gap: 12px; }
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(2, 36, 64, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-visual {
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--gold-light);
}
.sv-1 { background: linear-gradient(135deg, #064468, #085373); }
.sv-2 { background: linear-gradient(135deg, #0b3a5e, #0a6a94); }
.sv-3 { background: linear-gradient(135deg, #043352, #064468); }
.service-visual img,
.news-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-visual.photo::before, .news-visual.photo::after { display: none; }
.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M36 6 L66 36 L36 66 L6 36 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}
.service-visual svg { position: relative; }
.service-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.service-body p { color: var(--muted); font-size: 15.5px; flex: 1; margin-bottom: 22px; }
.service-body .btn { align-self: flex-start; padding: 11px 24px; font-size: 14.5px; }

/* ---------- logo-ornament watermark (selected dark sections only) ---------- */
.cards-show, .info-dark, .site-footer { position: relative; overflow: hidden; }
.cards-show::before, .info-dark::before, .site-footer::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  background: url("../img/ornament.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at center, #000 38%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 38%, transparent 70%);
}
.cards-show::before { top: -140px; inset-inline-start: -140px; transform: rotate(14deg); }
.info-dark::before { bottom: -160px; inset-inline-end: -150px; transform: rotate(-10deg); }
.site-footer::before { top: -120px; inset-inline-start: -100px; transform: rotate(6deg); }

/* ============================================================
   CARDS SHOWCASE
   ============================================================ */
.cards-show {
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(15, 107, 153, 0.55), transparent 60%),
    linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #fff;
  overflow: hidden;
}
.cards-show .section-kicker { color: var(--gold-light); }
.cards-show .section-head p { color: rgba(255, 255, 255, 0.75); }
.cards-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.cards-visual { position: relative; }
.cards-visual img {
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  width: 100%;
  object-fit: cover;
}
.cards-visual::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 181, 42, 0.35), transparent 70%);
  pointer-events: none;
}
.card-features { display: flex; flex-direction: column; gap: 16px; margin: 26px 0 30px; }
.card-features li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; color: rgba(255, 255, 255, 0.88); }
.card-features .chk {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(205, 181, 42, 0.18);
  border: 1px solid rgba(205, 181, 42, 0.5);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* ============================================================
   CALCULATOR / FINANCING
   ============================================================ */
.financing { background: var(--card); }
.fin-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.fin-copy .rate {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  border-radius: 12px;
  padding: 10px 18px;
  margin: 18px 0 8px;
}
.fin-copy .rate b { font-size: 30px; }
.fin-copy .disclaimer { color: var(--muted); font-size: 13.5px; }
.loan-links { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.loan-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15.5px;
  transition: all var(--transition);
}
.loan-links a:hover { border-color: var(--green); background: var(--green-soft); transform: translateX(-4px); }
[dir="ltr"] .loan-links a:hover { transform: translateX(4px); }
.loan-links .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--green);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.loan-links .chev { margin-inline-start: auto; color: var(--muted); }

.calculator {
  background: linear-gradient(150deg, var(--dark-2), var(--dark));
  border-radius: 20px;
  padding: 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.calculator h3 { font-size: 22px; font-weight: 800; margin-bottom: 24px; position: relative; }
.calc-field { margin-bottom: 22px; position: relative; }
.calc-field label { display: flex; justify-content: space-between; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; }
.calc-field output { color: var(--gold-light); font-weight: 800; }
input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  cursor: pointer;
}
.calc-result {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  position: relative;
}
.calc-result span { color: rgba(255, 255, 255, 0.75); font-size: 14.5px; }
.calc-result strong { font-size: 27px; color: var(--gold-light); font-weight: 800; white-space: nowrap; }
.calc-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 14px; position: relative; }

/* ============================================================
   NEWS
   ============================================================ */
.news { background: var(--bg); }
.news .section-head { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.news-visual { height: 180px; position: relative; }
.nv-1 { background: linear-gradient(120deg, #064468 0%, #0f6b99 100%); }
.nv-2 { background: linear-gradient(120deg, #0b3a5e 0%, #b09a1e 130%); }
.nv-3 { background: linear-gradient(120deg, #043352 0%, #0a5c85 100%); }
.news-date {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 16px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 800;
  font-size: 13px;
  border-radius: 8px;
  padding: 5px 12px;
}
.news-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 18.5px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.news-body p { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 16px; }
.news-body .more { color: var(--green); font-weight: 800; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   DARK INFO CARDS
   ============================================================ */
.info-dark {
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(15, 107, 71, 0.5), transparent 60%),
    linear-gradient(160deg, #003c67, #02101d);
  color: #fff;
}
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(230, 210, 77, 0.45);
}
.info-card .ic { color: var(--gold-light); margin-bottom: 6px; }
.info-card .bar { width: 100%; height: 2px; background: linear-gradient(to left, var(--gold), transparent); margin: 16px 0 18px; }
[dir="ltr"] .info-card .bar { background: linear-gradient(to right, var(--gold), transparent); }
.info-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.info-card p { color: rgba(255, 255, 255, 0.75); font-size: 15px; flex: 1; }
.info-card .go {
  margin-top: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.info-card:hover .go { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: #fff; padding-top: 80px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .brand-name span { color: rgba(255, 255, 255, 0.6); }
.footer-brand p { color: rgba(255, 255, 255, 0.65); font-size: 14.5px; margin: 18px 0 22px; max-width: 300px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: translateY(-3px); }
.footer-col h4 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold-light);
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; transition: all 0.25s ease; }
.footer-col a:hover { color: var(--gold-light); padding-inline-start: 6px; }
.newsletter p { color: rgba(255, 255, 255, 0.65); font-size: 14.5px; margin-bottom: 16px; }
.newsletter-form { display: flex; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.newsletter-form input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  padding: 13px 20px;
  font-size: 14.5px;
  min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-form button { background: var(--gold); color: var(--dark); font-weight: 800; padding: 0 22px; font-size: 14.5px; transition: background var(--transition); }
.newsletter-form button:hover { background: var(--gold-light); }
.apps { display: flex; gap: 10px; margin-top: 20px; }
.apps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}
.apps a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 16px 42px;
  flex-wrap: wrap;
}
.footer-trust .label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.footer-trust .tbadge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}
.footer-trust .tbadge svg { color: var(--gold-light); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--transition);
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--dark); }

/* ---------- cookie bar ---------- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 95;
  background: rgba(2, 36, 64, 0.97);
  color: #fff;
  padding: 18px 0;
  transform: translateY(110%);
  transition: transform 0.5s ease;
}
.cookie-bar.show { transform: none; }
.cookie-bar .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-bar p { flex: 1; font-size: 14px; color: rgba(255, 255, 255, 0.85); min-width: 260px; }
.cookie-bar .btn { padding: 10px 26px; font-size: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .site-header.menu-open { background: var(--dark); }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 76px;
    inset-inline: 0;
    height: calc(100vh - 76px);
    background: var(--dark);
    padding: 20px 24px;
    gap: 0;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.mobile-open > li > a { padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .main-nav.mobile-open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border-top: 0;
    display: none;
    padding: 0 0 8px;
  }
  .main-nav.mobile-open li.open .dropdown { display: block; }
  .main-nav.mobile-open .dropdown a { color: rgba(255, 255, 255, 0.7); padding: 9px 18px; }
  .fin-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .slide-content.slide-split { grid-template-columns: 1fr; gap: 26px; }
  .card3d { width: min(300px, 74vw); }
  .card3d-hint { display: none; }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .stats-grid, .tiles, .services-grid, .news-grid, .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 560px; }
  .btn-portal span { display: none; }
  .btn-portal { padding: 11px 14px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
  .icon-btn { display: none; }
  .lang-switch { padding: 7px 11px; }
  .brand-name span { display: none; }
  .brand-name strong { font-size: 17px; }
  .brand-mark { width: 38px; height: 38px; }
  .btn-portal { padding: 9px 12px; font-size: 14px; }
}
