/* ============================================================
   FOKES GLOBAL SERVICES — Design System
   File: assets/css/main.css

   Brand: deep navy • electric blue • gold accent
   Type:  Syne (display) · DM Sans (body) · Cormorant (accents)
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --navy:        #0b1f3a;
  --navy-mid:    #102848;
  --navy-deep:   #071324;
  --blue:        #1a5cad;
  --blue-lt:     #2e7be0;
  --blue-glow:   rgba(26, 92, 173, 0.14);
  --gold:        #c9a84c;
  --ice:         #f4f8fd;
  --ice-2:       #e9f1fa;
  --white:       #ffffff;
  --text:        #12263f;
  --text-mid:    #43597a;
  --text-soft:   #7c92b3;
  --line:        #dbe6f4;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 12px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 40px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 30px 80px rgba(11, 31, 58, 0.16);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-accent:  'Cormorant Garamond', serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ice);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
}
.eyebrow.on-dark { color: #9cc3f5; }

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.h-display em, .h-section em {
  font-family: var(--font-accent);
  font-style: italic; font-weight: 600;
  letter-spacing: 0;
  background: linear-gradient(120deg, var(--blue), var(--blue-lt) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.on-dark { color: #fff; }
.lede { font-size: 1.06rem; color: var(--text-mid); max-width: 58ch; }
.lede.on-dark { color: rgba(255, 255, 255, 0.62); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 16px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.28);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 92, 173, 0.4); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(26, 92, 173, 0.32); }
.btn-blue:hover { background: var(--blue-lt); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.btn-white:hover { transform: translateY(-3px); }
.btn i { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

/* ── Navbar ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: 78px;
  display: flex; align-items: center;
  transition: all 0.4s var(--ease);
}
.nav-inner {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.scrolled {
  height: 66px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(11, 31, 58, 0.07);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; color: var(--navy); line-height: 1.05;
}
.nav-logo-text span { display: block; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.22em; color: var(--blue); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  color: var(--text-mid);
  padding: 9px 15px; border-radius: 100px;
  transition: all 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--ice-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.78rem; }
.nav-burger { display: none; background: none; border: none; font-size: 1.35rem; color: var(--navy); padding: 8px; }

.mobile-menu {
  position: fixed; inset: 66px 0 auto 0; z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(11, 31, 58, 0.12);
  padding: 18px 5% 28px;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; animation: menuIn 0.3s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--text); padding: 13px 14px; border-radius: var(--r-sm);
}
.mobile-menu a:hover { background: var(--ice-2); }
.mobile-menu .menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mobile-menu .btn { justify-content: center; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(26, 92, 173, 0.25); }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-lt));
  color: #fff; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 92, 173, 0.3);
  margin-bottom: 20px;
}
.card h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--text-mid); }

.chip {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  color: var(--blue); background: var(--blue-glow);
  padding: 6px 14px; border-radius: 100px;
}

/* ── Glass card (used on dark sections & hero) ──────────── */
.glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Forms ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 0.92rem;
  color: var(--text);
  background: var(--ice);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-glow);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.alert {
  padding: 14px 18px; border-radius: 14px;
  font-size: 0.88rem; font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert i { margin-top: 3px; }
.alert-ok { background: #e8f7ee; color: #16794c; border: 1px solid #bfe8d0; }
.alert-err { background: #fdeeed; color: #b3352a; border: 1px solid #f5c9c5; }

/* ── Marquee ────────────────────────────────────────────── */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft); white-space: nowrap;
}
.marquee-item::before { content: '✦'; color: var(--gold); font-size: 0.7rem; }

/* ── Stats ──────────────────────────────────────────────── */
.stat-val {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy); line-height: 1;
}
.stat-val .unit { color: var(--blue); }
.stat-label { font-size: 0.82rem; color: var(--text-soft); margin-top: 6px; }

/* ── Dark section base ──────────────────────────────────── */
.dark { background: radial-gradient(1200px 600px at 80% -10%, rgba(26, 92, 173, 0.25), transparent 60%), var(--navy-deep); }
.dark .card { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.dark .card h3 { color: #fff; }
.dark .card p { color: rgba(255, 255, 255, 0.55); }

/* ── Reveal animations (JS adds .in) ────────────────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-r { opacity: 0; transform: translateX(40px);  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.08s; } [data-d="2"] { transition-delay: 0.16s; }
[data-d="3"] { transition-delay: 0.24s; } [data-d="4"] { transition-delay: 0.32s; }
[data-d="5"] { transition-delay: 0.40s; } [data-d="6"] { transition-delay: 0.48s; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy-deep); padding: 80px 0 36px; color: rgba(255, 255, 255, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 280px; }
.footer h4 { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); transition: color 0.2s, transform 0.2s; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s;
}
.footer-socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 28px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.3); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(255, 255, 255, 0.3); }
.footer-legal a:hover { color: rgba(255, 255, 255, 0.7); }

/* ── Newsletter mini-form ───────────────────────────────── */
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px; padding: 11px 18px;
  color: #fff; font-size: 0.85rem; outline: none;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.35); }
.newsletter button {
  border: none; border-radius: 100px;
  background: var(--blue); color: #fff;
  width: 42px; height: 42px; flex-shrink: 0;
  transition: background 0.25s, transform 0.25s;
}
.newsletter button:hover { background: var(--blue-lt); transform: scale(1.06); }

/* ── WhatsApp float ─────────────────────────────────────── */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(8deg); }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero { padding: 170px 0 90px; background:
  radial-gradient(900px 420px at 15% 0%, rgba(26, 92, 173, 0.12), transparent 60%),
  radial-gradient(700px 380px at 90% 20%, rgba(201, 168, 76, 0.08), transparent 60%),
  var(--ice);
}
.breadcrumb { display: flex; gap: 8px; font-size: 0.78rem; color: var(--text-soft); margin-bottom: 22px; }
.breadcrumb a { color: var(--blue); }

/* ── Accessibility & motion ─────────────────────────────── */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.85rem; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .section-pad { padding: 80px 0; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .wa-float { right: 18px; bottom: 18px; width: 52px; height: 52px; }
}
