/* ============================================================
   New River Center — Institutional Design System
   Concept: "The Confluence" — minimal, elegant, institutional
   ============================================================ */

:root {
  /* Primary */
  --river-deep: #0B2B3A;   /* deep river navy — authority */
  --river: #1B5E6B;        /* river teal — brand */
  --ink: #1A2433;          /* body ink */
  /* Secondary */
  --copper: #A8763E;       /* copper — restrained accent */
  --parchment: #F7F4EE;    /* warm paper */
  --mist: #E8ECEF;         /* alt background */
  --slate: #5A6B7A;        /* secondary text */
  --line: #D8DEE3;         /* hairlines */
  --white: #FFFFFF;

  /* Typography */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --sans-ar: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  --serif-ar: 'Noto Naskh Arabic', 'Amiri', serif;

  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(11,43,58,.06);
  --shadow-md: 0 6px 24px rgba(11,43,58,.08);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body { font-family: var(--sans-ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--serif-ar); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--river-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--slate); line-height: 1.7; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; font-family: var(--sans);
  font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: all .2s ease;
  border: 1px solid transparent; border-radius: var(--radius);
}
.btn-primary { background: var(--river-deep); color: #fff; }
.btn-primary:hover { background: var(--river); }
.btn-outline { border-color: var(--river-deep); color: var(--river-deep); background: transparent; }
.btn-outline:hover { background: var(--river-deep); color: #fff; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: #8f6233; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--river-deep); line-height: 1.1; }
.brand-sub { font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--river); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-toggle { border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 16px; background: transparent; cursor: pointer; font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--river-deep); text-decoration: none; }
.lang-toggle:hover { border-color: var(--river); color: var(--river); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--river-deep); margin: 4px 0; transition: all .2s; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.nav-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 20px 32px; gap: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--river-deep); color: #fff;
  padding: 120px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    url('assets/brand/flow-pattern-dark.svg') no-repeat center / cover,
    radial-gradient(circle at 85% 15%, rgba(168,118,62,.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(27,94,107,.35), transparent 50%);
  opacity: .9;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero .eyebrow { color: var(--copper); }
.hero h1 { color: #fff; font-weight: 500; margin-bottom: 24px; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 36px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--river-deep); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--parchment); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  transition: all .2s ease;
}
.card:hover { border-color: var(--river); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--slate); font-size: .95rem; }
.card-num { font-family: var(--serif); font-size: 2rem; color: var(--copper); opacity: .5; margin-bottom: 8px; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 32px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--river-deep); font-weight: 500; }
.stat .lbl { font-size: .85rem; color: var(--slate); letter-spacing: .04em; }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--line); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--river-deep); color: #fff; padding: 72px 48px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--river-deep); color: rgba(255,255,255,.7); padding: 72px 0 36px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('assets/brand/flow-pattern-dark.svg') no-repeat center / cover;
  opacity: .5;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.7); text-decoration: none; display: block; margin-bottom: 10px; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--river-deep); color: #fff; padding: 80px 0; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,.8); }

/* ---------- Misc ---------- */
.tag { display: inline-block; background: var(--mist); color: var(--river-deep); padding: 5px 14px; border-radius: var(--radius); font-size: .8rem; font-weight: 500; margin: 0 6px 8px 0; }
.divider { height: 1px; background: var(--line); margin: 48px 0; }
.rule { height: 2px; width: 48px; background: var(--copper); margin-bottom: 24px; }

/* ---------- Visual band (no photography) ---------- */
.visual-band {
  position: relative; overflow: hidden;
  background: var(--parchment);
  padding: 80px 0;
}
.visual-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url('assets/brand/flow-pattern.svg') no-repeat center / cover;
  opacity: .6;
}
.visual-band .container { position: relative; z-index: 1; }
.visual-band .statement {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--river-deep); font-weight: 500; line-height: 1.4;
  max-width: 900px; margin: 0 auto; text-align: center;
}
.visual-band .statement em { color: var(--copper); font-style: normal; }
