/* ALSAADITRADE: division chooser (gateway), Trade/Consulting switch, and the framed Trade homepage mockup */

/* ---------- Switch pill (used on both homepages) ---------- */
.divswitch { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 12.5px; font-weight: 600; line-height: 1; }
.divswitch a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: #b9c7d3; transition: background .25s, color .25s; white-space: nowrap; }
.divswitch a:hover { color: var(--white); }
.divswitch a.is-on { background: var(--teal); color: var(--navy); }
.divswitch .i { width: 14px; height: 14px; }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.nav-switch { display: none; }
@media (max-width: 960px) {
  .nav-switch { display: flex; justify-content: center; padding: 16px 0 6px; border-bottom: 1px solid var(--line-dark); }
  .nav-switch .divswitch { width: 100%; }
  .nav-switch .divswitch a { flex: 1; justify-content: center; padding: 11px 14px; font-size: 13.5px; }
}

/* ---------- Gateway (choose.html) ---------- */
.gw-page { background: var(--navy); color: var(--white); min-height: 100vh; overflow-x: hidden; }
.gw-top { position: absolute; z-index: 5; left: 0; right: 0; top: 33px; padding: 26px 0; text-align: center; pointer-events: none; }
.gw-top .brand { justify-content: center; pointer-events: auto; }
.gw-top p { margin: 14px 0 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #b9c7d3; }
.gw { display: flex; height: calc(100vh - 33px); height: calc(100svh - 33px); min-height: 640px; }
.gw__panel { position: relative; flex: 1 1 0; overflow: hidden; display: flex; align-items: flex-end; color: var(--white); transition: flex-grow .8s var(--ease); isolation: isolate; }
.gw__panel + .gw__panel { border-left: 1px solid rgba(255,255,255,.12); }
.gw__bg { position: absolute; inset: 0; z-index: -1; }
.gw__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease), filter .8s; }
.gw__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,26,44,.97) 0%, rgba(7,26,44,.78) 38%, rgba(7,26,44,.35) 70%, rgba(7,26,44,.55) 100%); transition: background .8s; }
.gw__panel--trade .gw__bg img { object-position: 68% center; }
.gw__panel--adv .gw__bg img { object-position: 72% center; }
.gw__body { position: relative; width: 100%; max-width: 620px; padding: 0 64px 120px; }
.gw__n { display: block; font-family: "Noto Serif", serif; font-style: italic; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(73,197,182,.6); margin-bottom: 18px; }
.gw__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.gw__eyebrow b { background: var(--teal); color: var(--navy); font-size: 10px; letter-spacing: .12em; padding: 4px 8px; border-radius: 999px; }
.gw__panel h2 { color: var(--white); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin-bottom: 16px; }
.gw__panel h2 .serif { display: block; }
.gw__panel p { color: #c3d0db; font-size: 15.5px; max-width: 470px; margin-bottom: 22px; font-weight: 300; }
.gw__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.gw__tags li { font-size: 12.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #dbe5ec; background: rgba(7,26,44,.35); backdrop-filter: blur(6px); }
.gw__panel .btn { pointer-events: none; }
.gw__panel:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

/* hover: chosen side grows, the other steps back */
@media (hover: hover) and (min-width: 961px) {
  .gw:hover .gw__panel { flex-grow: .8; }
  .gw:hover .gw__panel:hover { flex-grow: 1.35; }
  .gw__panel:hover .gw__bg img { transform: scale(1); }
  .gw__panel:hover .gw__bg::after { background: linear-gradient(0deg, rgba(7,26,44,.95) 0%, rgba(7,26,44,.6) 40%, rgba(7,26,44,.1) 75%, rgba(7,26,44,.4) 100%); }
  .gw:hover .gw__panel:not(:hover) .gw__bg img { filter: grayscale(.6) brightness(.7); }
  .gw__panel:hover .btn { background: var(--teal-2); box-shadow: 0 10px 30px -8px rgba(73,197,182,.6); }
  .gw__panel:hover .btn .i { transform: translateX(4px); }
}

.gw__or { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--navy); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-family: "Noto Serif", serif; font-style: italic; color: var(--teal); font-size: 18px; pointer-events: none; transition: opacity .4s; }
.gw:hover ~ .gw__or { opacity: 0; }
.gw-foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; }
.gw-foot label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #c3d0db; background: rgba(7,26,44,.7); border: 1px solid rgba(255,255,255,.12); padding: 10px 18px; border-radius: 999px; backdrop-filter: blur(8px); cursor: pointer; }
.gw-foot input { accent-color: var(--teal); width: 16px; height: 16px; margin: 0; }
.gw-wrap { position: relative; }

/* entrance */
.js .gw__panel--trade { animation: gwInL 1.1s var(--ease) both; }
.js .gw__panel--adv { animation: gwInR 1.1s var(--ease) both; }
.js .gw__body > * { animation: gwUp .9s var(--ease) both; }
.js .gw__body > *:nth-child(2) { animation-delay: .5s; } .js .gw__body > *:nth-child(3) { animation-delay: .6s; }
.js .gw__body > *:nth-child(4) { animation-delay: .7s; } .js .gw__body > *:nth-child(5) { animation-delay: .8s; }
.js .gw__body > *:nth-child(6) { animation-delay: .9s; } .js .gw__body > *:first-child { animation-delay: .4s; }
@keyframes gwInL { from { transform: translateX(-6%); opacity: 0; } }
@keyframes gwInR { from { transform: translateX(6%); opacity: 0; } }
@keyframes gwUp { from { transform: translateY(24px); opacity: 0; } }

@media (max-width: 960px) {
  .gw { flex-direction: column; height: auto; min-height: 0; }
  .gw-top { position: relative; top: 0; padding: 22px 0 20px; background: var(--navy); }
  .gw__panel { min-height: 62svh; }
  .gw__panel + .gw__panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .gw__body { padding: 56px 28px 56px; }
  .gw__n { font-size: 46px; margin-bottom: 10px; }
  .gw__or { top: auto; bottom: auto; display: none; }
  .gw-foot { position: static; padding: 26px 16px 36px; background: var(--navy); }
  .js .gw__panel--trade, .js .gw__panel--adv { animation-name: gwUp; }
}
@media (max-width: 600px) {
  .gw-top { padding: 18px 0 16px; }
  .gw-top p { font-size: 11px; letter-spacing: .16em; }
  .gw__body { padding: 44px 20px 44px; }
  .gw__panel p { font-size: 14.5px; }
  .gw__panel .btn { width: 100%; }
}

/* ---------- Framed Trade homepage (trade.html, mockup only) ---------- */
.tf-page { margin: 0; height: 100vh; display: flex; flex-direction: column; background: var(--navy); }
.tf-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: var(--navy); color: #b9c7d3; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tf-bar .brand img { width: 34px; height: 34px; }
.tf-bar .brand b { font-size: 14px; }
.tf-bar__mid { display: flex; align-items: center; gap: 14px; }
.tf-bar__mid > span { opacity: .8; }
.tf-bar a.tf-change { color: var(--teal); font-weight: 600; }
.tf-frame { flex: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 760px) {
  .tf-bar { flex-wrap: wrap; justify-content: center; padding: 10px 14px; }
  .tf-bar .brand, .tf-bar__mid > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .gw__panel--trade, .js .gw__panel--adv, .js .gw__body > * { animation: none; }
}

/* ---------- Website chooser popup (over the new homepage) ---------- */
.chooser { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.show-chooser .chooser { display: flex; }
.show-chooser body { overflow: hidden; }
.chooser__backdrop { position: absolute; inset: 0; background: rgba(4,17,30,.72); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); animation: chFade .5s ease both; }
.chooser__box { position: relative; width: 100%; max-width: 1000px; max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); overflow-y: auto; border-radius: 26px; padding: 40px 40px 30px; color: var(--white);
  background: radial-gradient(80% 60% at 100% 0%, rgba(73,197,182,.16), transparent 60%), linear-gradient(160deg, #0d2740, #071a2c 60%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); animation: chPop .7s var(--ease) both .05s; }
.chooser__x { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: .3s var(--ease); }
.chooser__x:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); transform: rotate(90deg); }
.chooser__head { text-align: center; margin-bottom: 30px; }
.chooser__head img { width: 52px; height: 52px; margin: 0 auto 14px; }
.chooser__kicker { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 10px; }
.chooser__head h2 { color: var(--white); font-size: clamp(26px, 3.2vw, 40px); margin: 0; }
.chooser__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ccard { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; animation: chUp .8s var(--ease) both; }
.ccard:nth-child(1) { animation-delay: .25s; } .ccard:nth-child(2) { animation-delay: .38s; }
.ccard:hover, .ccard:focus-visible { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 30px 60px -24px rgba(73,197,182,.45); outline: none; }
.ccard__img { position: relative; display: block; aspect-ratio: 16/8; overflow: hidden; }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transition: transform 1.2s var(--ease); }
.ccard:hover .ccard__img img { transform: scale(1.07); }
.ccard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,26,44,.9)); }
.ccard__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 28px 26px; margin-top: -34px; }
.ccard__n { font-family: "Noto Serif", serif; font-style: italic; font-size: 46px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(73,197,182,.75); margin-bottom: 12px; }
.ccard__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.ccard__eyebrow i { font-style: normal; background: var(--teal); color: var(--navy); font-size: 9.5px; letter-spacing: .12em; padding: 3px 7px; border-radius: 999px; }
.ccard__title { display: block; font-size: 21px; line-height: 1.2; font-weight: 600; color: var(--white); margin-bottom: 10px; letter-spacing: -.01em; }
.ccard__text { display: block; font-size: 14px; color: #a9b9c7; line-height: 1.6; margin-bottom: 22px; }
.ccard__go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--teal); color: var(--navy); font-weight: 600; font-size: 14.5px; transition: background .3s, box-shadow .3s; }
.ccard__go .i { width: 16px; height: 16px; stroke-width: 2; transition: transform .3s var(--ease); }
.ccard:hover .ccard__go { background: var(--teal-2); box-shadow: 0 10px 30px -8px rgba(73,197,182,.6); }
.ccard:hover .ccard__go .i { transform: translateX(4px); }
.ccard:not(.ccard--adv) .ccard__go { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.ccard:not(.ccard--adv):hover .ccard__go { background: var(--white); color: var(--navy); border-color: var(--white); box-shadow: none; }
.chooser__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #93a6b6; }
.chooser__foot label { display: inline-flex; align-items: center; gap: 10px; color: #dbe5ec; cursor: pointer; }
.chooser__foot input { accent-color: var(--teal); width: 16px; height: 16px; margin: 0; }
.chooser.is-closing .chooser__backdrop { animation: chFadeOut .45s ease both; }
.chooser.is-closing .chooser__box { animation: chPopOut .45s var(--ease) both; }
@keyframes chFade { from { opacity: 0; } }
@keyframes chFadeOut { to { opacity: 0; } }
@keyframes chPop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes chPopOut { to { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes chUp { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 760px) {
  .chooser { padding: 12px; align-items: flex-end; }
  .chooser__box { padding: 28px 18px 20px; border-radius: 22px; max-height: calc(100svh - 24px); }
  .chooser__head { margin-bottom: 22px; padding: 0 30px; }
  .chooser__head img { width: 42px; height: 42px; margin-bottom: 10px; }
  .chooser__cards { grid-template-columns: 1fr; gap: 14px; }
  .chooser__head h2 { font-size: 25px; }
  .chooser__kicker { font-size: 10.5px; margin-bottom: 6px; }
  .ccard__img { aspect-ratio: 16/5; }
  .ccard__img::after { background: linear-gradient(180deg, transparent 20%, rgba(7,26,44,.9)); }
  .ccard__body { padding: 0 18px 18px; margin-top: -14px; }
  .ccard__n, .ccard__text { display: none; }
  .ccard__title { font-size: 17.5px; margin-bottom: 14px; }
  .ccard__go { padding: 12px 18px; font-size: 14px; }
  .chooser__foot { justify-content: center; text-align: center; }
  .chooser__foot span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chooser__backdrop, .chooser__box, .ccard { animation: none !important; }
}

/* ---------- Top info bar (shared: homepage + advisory page) ---------- */
.topbar { position: absolute; top: 33px; left: 0; right: 0; z-index: 101; height: 46px; color: #b9c7d3; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar__info { display: flex; gap: 30px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar .i { width: 15px; height: 15px; color: var(--teal); }
.topbar__lang { display: flex; align-items: center; gap: 8px; }
.topbar__lang span { opacity: .4; }
.topbar__lang a.is-on { color: var(--white); font-weight: 600; }
.has-bar.has-topbar .site-header { top: 79px; }
.has-bar.has-topbar .site-header.is-scrolled { top: 0; }

@media (max-width: 960px) {
  .topbar { display: none; }
  .has-bar.has-topbar .site-header { top: 33px; }
}
@media (max-width: 600px) {
  .has-bar.has-topbar .site-header { top: 50px; }
}
/* advisory page: extra room for the top bar above the page hero */
.has-topbar .page-hero { padding-top: 236px; }
@media (max-width: 960px) { .has-topbar .page-hero { padding-top: 160px; } }
