/* Global For Trade and Investment — new.global-french.online
 * Luxury investment look (cream + gold + serif display), bilingual AR/EN, RTL + LTR.
 * Fonts are self-hosted in assets/fonts (no third-party font CDN, for privacy). */

/* Fonts are defined in /assets/fonts/fonts.css (self-hosted subsets), linked before this file. */
:root {
  --bg: #f7f3ec;
  --bg-alt: #efe8da;
  --card: #ffffff;
  --ink: #211d16;
  --muted: #6d6456;
  --gold: #b2873c;
  --gold-soft: #cbb07a;
  --gold-dark: #8f6c2c;
  --dark: #17140e;
  --dark-2: #211c13;
  --line: #e4dccc;
  --line-dark: #3a331f;
  --maxw: 1200px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif-ar: 'El Messiri', 'Cairo', serif;
  --body: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, [dir="rtl"] .serif { font-family: var(--serif-ar); letter-spacing: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; color: var(--gold-dark); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; margin: 0 0 14px;
}
:lang(ar) .eyebrow { letter-spacing: 0.12em; }
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #efe7d6; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section.dark .lead { color: #c9bfa9; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--gold); color: #fff; border: 1px solid var(--gold);
  padding: 14px 30px; font: inherit; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; border-radius: 2px; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--gold-dark); }
.btn.ghost:hover { background: var(--gold); color: #fff; }
.btn.on-dark { background: transparent; color: #f0e6d2; border-color: rgba(203,176,122,.5); }
.btn.on-dark:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn .ar-flip { display: inline-block; }
[dir="rtl"] .btn .ar-flip { transform: scaleX(-1); }

/* ---- Header ---- */
.topbar { background: var(--dark); color: #cbbfa6; font-size: 0.82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: #cbbfa6; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-right { display: flex; gap: 20px; align-items: center; }

header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(247,243,236,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .bt { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; color: var(--ink); line-height: 1; }
.brand .bs { font-size: 0.56rem; letter-spacing: 0.3em; color: var(--gold-dark); font-weight: 700; margin-top: 3px; }
:lang(ar) .brand .bt { font-family: var(--serif); } /* keep the Latin wordmark */

nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a { font-size: 0.95rem; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; white-space: nowrap; }
nav.main a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px; font-weight: 700; font-size: 0.85rem; color: var(--gold-dark); background: #fff; }
.lang-toggle:hover { border-color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero .bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,4,.86) 0%, rgba(14,11,5,.66) 45%, rgba(20,15,6,.3) 100%); }
[dir="rtl"] .hero .bg::after { background: linear-gradient(270deg, rgba(10,8,4,.86) 0%, rgba(14,11,5,.66) 45%, rgba(20,15,6,.3) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-block: 80px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); margin: 0 0 22px; white-space: pre-line; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero p { max-width: 620px; font-size: 1.15rem; color: #eadfca; margin: 0 0 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .scroll-hint { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: 1.4rem; animation: bob 2s infinite; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* page hero (interior pages) */
.page-hero { position: relative; color: #fff; padding: 120px 0 72px; background: var(--dark); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.page-hero .eyebrow { color: var(--gold-soft); }
.crumbs { margin-top: 14px; color: #c3b89f; font-size: 0.9rem; }
.crumbs a:hover { color: var(--gold-soft); }

/* ---- Stat / intro split ---- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split .media { position: relative; }
.split .media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; min-height: 340px; }
.stat-badge { position: absolute; inset-block-end: -24px; inset-inline-start: -24px; background: var(--gold); color: #fff; padding: 20px 26px; border-radius: 3px; box-shadow: 0 20px 40px rgba(143,108,44,.35); }
.stat-badge .n { font-family: var(--serif); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-badge .l { font-size: 0.8rem; letter-spacing: 0.06em; margin-top: 6px; }

/* ---- Value pills ---- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill { border: 1px solid var(--gold); color: var(--gold-dark); padding: 9px 20px; border-radius: 40px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section.dark .pill { border-color: rgba(203,176,122,.55); color: var(--gold-soft); }

/* ---- Cards grid ---- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  padding: 30px 28px; border-radius: 2px; transition: transform .2s, box-shadow .2s; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(33,29,22,.12); }
.sic { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; background: #faf4e8; border: 1px solid var(--line); color: var(--gold-dark); align-items: center; justify-content: center; margin-bottom: 18px; }
.sic svg { width: 27px; height: 27px; }
.card:hover .sic { background: var(--gold); color: #fff; border-color: var(--gold); transition: .2s; }
.card .cat { color: var(--gold-dark); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.card h3 { font-size: 1.35rem; margin: 10px 0 14px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card ul li { position: relative; padding-inline-start: 20px; color: var(--muted); margin-bottom: 8px; }
.card ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: 11px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.card p { color: var(--muted); margin: 0; }

/* numbered advantage cards */
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.adv .item { background: var(--card); border: 1px solid var(--line); padding: 28px 24px; border-radius: 2px; }
.adv .num { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; display: block; margin-bottom: 12px; }
.adv .item p { margin: 0; font-weight: 600; }

/* value / future lists */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.feature .f { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; border-inline-start: 3px solid var(--gold); }
.feature .f h3 { font-size: 1.2rem; margin: 0 0 8px; }
.feature .f p { margin: 0; color: var(--muted); }

/* standards blocks */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 24px; }

/* identity table */
.idtable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.idtable th, .idtable td { text-align: start; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.idtable th { width: 34%; background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.idtable tr:last-child th, .idtable tr:last-child td { border-bottom: 0; }

/* partner tags */
.ptags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ptag { background: var(--bg-alt); border: 1px solid var(--line); padding: 7px 16px; border-radius: 3px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.withp { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 18px; }

/* feature band with image */
.band { position: relative; color: #fff; padding: 110px 0; background-size: cover; background-position: center; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,5,.82), rgba(14,11,5,.5)); }
[dir="rtl"] .band::after { background: linear-gradient(270deg, rgba(14,11,5,.82), rgba(14,11,5,.5)); }
.band .wrap { position: relative; z-index: 2; }
.band h2 { color: #fff; }
.band .lead { color: #e7dcc6; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.cinfo { display: grid; gap: 22px; }
.cinfo .row { display: flex; gap: 16px; align-items: flex-start; }
.cinfo .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; color: var(--gold-dark); border: 1px solid var(--line); }
.cinfo .row .l { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cinfo .row .v { font-weight: 600; }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.92rem; }
form input, form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 2px; font: inherit; background: #fff; color: var(--ink); }
form input:focus, form textarea:focus { outline: 2px solid rgba(178,135,60,.35); border-color: var(--gold); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---- Footer ---- */
footer.site { background: var(--dark); color: #c7bda6; padding: 72px 0 28px; }
footer.site .cols-f { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
footer.site h4 { color: #fff; font-family: var(--serif); font-size: 1.15rem; margin: 0 0 18px; }
footer.site a:hover { color: var(--gold-soft); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site ul li { margin-bottom: 10px; }
.foot-brand .bt { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; color: #fff; }
.foot-brand .bs { letter-spacing: 0.3em; font-size: 0.6rem; color: var(--gold-soft); font-weight: 700; }
.foot-bottom { padding-top: 24px; font-size: 0.85rem; color: #938871; text-align: center; }

/* ---- Floating rail ---- */
.rail { position: fixed; inset-inline-end: 16px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.rail a, .rail button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: transform .2s; }
.rail a:hover, .rail button:hover { transform: translateY(-3px); }
.rail .wa { background: #25d366; }
.rail .ph { background: var(--gold); }
.rail .up { background: var(--dark); }

/* ---- Reveal ---- content is always fully visible. A gentle one-shot LIFT (transform only,
   never opacity) plays on entry, so a throttled/background tab can never hide anything. */
@keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
.js .reveal.in { animation: rise .55s ease; }
@media (prefers-reduced-motion: reduce) { .js .reveal.in { animation: none; } }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  footer.site .cols-f { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  nav.main, .header-tools .lang-text-full { display: none; }
  nav.main.open { display: flex; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--bg); padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .menu-btn { display: block; }
  .section { padding: 64px 0; }
  .grid.cols-2, .grid.cols-3, footer.site .cols-f { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .stat-badge { inset-inline-start: 16px; inset-block-end: 16px; }
}
