/* Onalink Global — v2 layout (full-bleed hero, floating nav, quote bar)
   Brand colours from the Onalink Global logo. */

:root {
  --navy-950: #061231;
  --navy-900: #0a1a3d;
  --navy-800: #0f2557;
  --navy-700: #16326f;
  --sky-500: #1a9fe0;
  --sky-600: #0b82c2;
  --sky-700: #086a9f;
  --sky-50: #eef7fd;
  --ghana-gold: #fcd116;
  --ghana-red: #ce1126;
  --ghana-green: #006b3f;
  --whatsapp: #1fa855;
  --whatsapp-dark: #178a45;

  --text: #0a1a3d;
  --text-muted: #4a5873;
  --border: #dbe4f0;
  --surface: #f3f6fb;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(10 26 61 / 0.06), 0 12px 32px rgb(10 26 61 / 0.12);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: #fff; color: var(--navy-900);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-sky { background: var(--sky-700); color: #fff; }
.btn-sky:hover { background: var(--navy-800); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

/* ---------- Hero shell (top bar + floating nav + hero) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--navy-950);
  /* diagonal bottom edge, like the reference */
  clip-path: polygon(0 0, 100% 0, 100% 84%, 62% 100%, 0 90%);
  padding-bottom: clamp(140px, 16vw, 220px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 18 49 / 0.94) 0%, rgb(6 18 49 / 0.82) 42%, rgb(6 18 49 / 0.35) 75%, rgb(6 18 49 / 0.2) 100%),
    linear-gradient(180deg, rgb(6 18 49 / 0.6) 0%, transparent 30%);
}

.topbar { font-size: 0.875rem; color: #d3ddef; }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 14px;
}
.topbar ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { color: var(--sky-500); }

.navbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 12px 12px 24px;
  background: #fff; color: var(--text);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.5);
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 44px; width: auto; }

.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav-links a:hover { color: var(--sky-600); }
.nav-links a[aria-current="page"] { color: var(--sky-600); border-bottom-color: var(--sky-600); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .navbar { padding-left: 16px; }
  .navbar .btn { padding-inline: 16px; }
  .logo img { height: 38px; }
}

.hero-content { padding-top: clamp(56px, 9vw, 120px); max-width: 44rem; }
.hero-eyebrow { font-size: 0.95rem; font-weight: 600; color: #d3ddef; }
.hero-eyebrow::before {
  content: ""; display: block; width: 180px; height: 3px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--sky-500), transparent);
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--sky-500); }
.hero-lede { margin-top: 20px; max-width: 34rem; font-size: 1.1rem; color: #d3ddef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Quote bar (overlaps the hero edge) ---------- */

.quote-wrap { position: relative; z-index: 2; margin-top: clamp(-150px, -12vw, -90px); }
.quote-bar {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr 1.3fr auto; gap: 16px; align-items: end;
  max-width: 1000px; margin-inline: auto;
  padding: 28px 32px;
  background: var(--sky-700); color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.quote-title { align-self: center; }
.quote-title h2 { font-size: 1.5rem; font-weight: 600; }
.quote-title svg.route { display: block; margin-top: 6px; width: 120px; height: 26px; color: rgb(255 255 255 / 0.75); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: #e3f2fc; }
.field select, .field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 2px solid #fff; border-radius: var(--radius-sm);
}
.field select:focus-visible, .field input:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 2px; }

.quote-bar .btn { border-color: #fff; color: #fff; background: transparent; }
.quote-bar .btn:hover { background: #fff; color: var(--sky-700); }

@media (max-width: 900px) {
  .quote-bar { grid-template-columns: 1fr 1fr; }
  .quote-title { grid-column: 1 / -1; }
  .quote-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .quote-bar { grid-template-columns: 1fr; padding: 24px 20px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-700); }
.section h2.title {
  margin-top: 12px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--navy-900);
}

/* About */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-media { position: relative; padding: 0 0 28px 28px; }
.about-media::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 60%; height: 60%;
  background: var(--sky-600); border-radius: var(--radius-sm);
}
.about-media img {
  position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.about-body p { margin-top: 18px; color: var(--text-muted); font-size: 1.05rem; }
.about-cols { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-top: 8px; }
.badges { display: grid; gap: 12px; margin-top: 18px; }
.badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 150px; padding: 18px 12px;
  text-align: center; font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: var(--navy-900);
  background: var(--sky-50); border: 1px solid #cfe7f8; border-radius: var(--radius-sm);
}
.badge .icon { width: 32px; height: 32px; color: var(--sky-600); stroke-width: 1.6; }
.about-body .btn { margin-top: 28px; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .about-cols { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr 1fr; }
  .badge { width: auto; }
}

/* Services */

.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 40px; }
.services-head p { max-width: 28rem; color: var(--text-muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; padding: 24px;
  color: #fff; text-decoration: none;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
}
.service-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(6 18 49 / 0.05) 0%, rgb(6 18 49 / 0.55) 45%, rgb(6 18 49 / 0.95) 100%);
}
.service-card:hover img { transform: scale(1.04); }
.service-card .chip {
  position: absolute; top: 18px; right: 18px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--sky-600); color: #fff;
}
.service-card h3 { font-size: 1.4rem; font-weight: 600; }
.service-card p { margin-top: 6px; color: #d3ddef; font-size: 0.95rem; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 600; font-size: 0.9rem; color: var(--sky-500);
}
.service-card.plain {
  background: radial-gradient(120% 90% at 100% 0%, var(--navy-700) 0%, var(--navy-900) 60%);
}
.service-card.plain::before { display: none; }
.service-card.plain .big-icon { width: 72px; height: 72px; color: var(--sky-500); stroke-width: 1.4; margin-bottom: auto; }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.plain { grid-column: 1 / -1; min-height: 260px; }
}
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } .service-card { min-height: 300px; } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Marquee */

.marquee {
  overflow: hidden; padding-block: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.2;
  color: transparent; -webkit-text-stroke: 1.5px #c6d3e6;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 0.6em; animation: marquee 40s linear infinite; }
.marquee span { display: inline-flex; gap: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA */

.cta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface); border-left: 6px solid var(--sky-600); border-radius: var(--radius-sm);
}
.cta h2 { margin-top: 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--navy-900); }
.cta p { margin-top: 10px; color: var(--text-muted); max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { background: var(--navy-900); color: #c9d4ea; padding-block: 64px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo img { height: 56px; }
.footer-tag { margin-top: 16px; max-width: 22rem; }
.footer h3 { font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: 0.04em; }
.footer ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer li, .footer li a { display: flex; gap: 10px; align-items: flex-start; }
.footer li a { text-decoration: none; overflow-wrap: anywhere; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer .icon { margin-top: 3px; color: var(--sky-500); }
.footer address { font-style: normal; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem; color: #97a6c4;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a, .service-card img { transition: none; }
  .service-card:hover img { transform: none; }
}
