/* ============================================================
   NGOBOYI GROUP — Design System (Premium / Editorial)
   Palette: navy #0F172A · ink #131A26 · slate #454F5E
            orange #FD9800 (single accent) · paper #FFFFFF · paper-2 #F7F7F5
   ============================================================ */

:root {
  --navy: #0F172A;
  --ink: #131A26;
  --slate: #454F5E;
  --accent: #FD9800;
  --accent-press: #E28600;
  --paper: #FFFFFF;
  --paper-2: #F7F7F5;
  --muted: #5B6472;
  --line: rgba(19, 26, 38, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --radius: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1140px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--navy); color: var(--paper); }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.h-xl { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
.h-lg { font-size: clamp(2rem, 4vw, 2.9rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.h-sm { font-size: clamp(1.12rem, 1.7vw, 1.28rem); line-height: 1.35; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); line-height: 1.75; }

.em-accent { font-style: italic; font-weight: 450; }

.eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .lead { color: rgba(255, 255, 255, 0.66); }
.on-dark .eyebrow { color: rgba(255, 255, 255, 0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-press); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--paper); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #1F2A3E; }

.btn-outline { border-color: rgba(19, 26, 38, 0.25); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -24px rgba(19, 26, 38, 0.35); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 32px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s ease;
}
.nav a.nav-link:hover, .nav a.nav-link.active { color: var(--accent); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 50px -30px rgba(19, 26, 38, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav .sub a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink) !important;
}
.nav .sub a:hover { background: var(--paper-2); color: var(--accent) !important; }
.nav .sub .sub-title { font-weight: 600; font-size: 0.93rem; }
.nav .sub .sub-desc { font-size: 0.79rem; color: var(--muted); font-weight: 450; }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 10px 22px; font-size: 0.88rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  z-index: 120;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 70px) 0 100px;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 23, 42, 0.92) 30%, rgba(15, 23, 42, 0.55) 70%, rgba(15, 23, 42, 0.35));
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 720px; }
.hero h1 { color: var(--paper); margin-bottom: 28px; }
.hero .lead { max-width: 600px; margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 64px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.hero-note .sep { margin: 0 12px; opacity: 0.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 10vw, 140px) 0; }
.section-tight { padding: clamp(60px, 7vw, 96px) 0; }
.section-light, .section-cream { background: var(--paper-2); }
.section-navy { background: var(--navy); }

.section-head { max-width: 660px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}
.split .stack { display: grid; gap: 24px; }
.split .stack p { color: var(--muted); }
.split .stack .btn { justify-self: start; }

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: border-color 0.25s ease;
}
.card:hover { border-color: rgba(19, 26, 38, 0.32); }
.card .icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--ink);
}
.card .icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Check list ---------- */
.check-list { display: grid; }
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--slate);
}
.check-list .tick {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid rgba(19, 26, 38, 0.3);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.check-list .tick svg { width: 10px; height: 10px; }

/* ---------- Subsidiaries showcase ---------- */
.sub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.sub-card:hover { border-color: rgba(19, 26, 38, 0.32); }
.sub-card .logo-panel {
  height: 180px;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.sub-card .logo-panel img { height: 52px; width: auto; }
.sub-card .body { padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sub-card .body p { color: var(--muted); font-size: 0.94rem; }
.sub-card .tags { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 8px; }
.sub-card .tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub-card .link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 4px;
  transition: color 0.2s ease;
}
.sub-card .link-more:hover { color: var(--accent); }
.sub-card .link-more svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.sub-card:hover .link-more svg { transform: translateX(3px); }

/* ---------- Vision quote ---------- */
.quote-strip { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-strip blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.quote-strip blockquote .accent { font-style: italic; }
.on-dark .quote-strip blockquote { color: var(--paper); }
.quote-strip .attrib {
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.on-dark .quote-strip .attrib { color: rgba(255, 255, 255, 0.45); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  border-radius: 20px;
  padding: clamp(64px, 8vw, 104px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.cta-band h2 { color: var(--paper); max-width: 620px; margin-inline: auto; margin-bottom: 18px; }
.cta-band p { color: rgba(255, 255, 255, 0.62); max-width: 520px; margin: 0 auto 40px; }
.cta-band .eyebrow { color: rgba(255, 255, 255, 0.5); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 clamp(72px, 8vw, 110px);
  background: var(--navy);
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--paper); max-width: 780px; }
.page-hero .lead { max-width: 640px; margin-top: 22px; }
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.5); }
.page-hero .crumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs .sep { opacity: 0.5; }

/* ---------- Subsidiary hero panel ---------- */
.sub-hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}
.sub-hero-logo {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(44px, 5vw, 68px);
  display: grid;
  place-items: center;
}
.sub-hero-logo img { max-height: 104px; width: auto; }

/* ---------- Values (editorial rows) ---------- */
.value-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 30px 0 8px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.value-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Operating model ---------- */
.model-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.model-step {
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.model-step .step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 18px;
}
.model-step h3 { font-size: 1.16rem; margin-bottom: 10px; }
.model-step p { color: rgba(255, 255, 255, 0.6); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info-card {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(34px, 4vw, 46px);
  display: grid;
  gap: 30px;
}
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ci-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
}
.contact-item .ci-icon svg { width: 19px; height: 19px; }
.contact-item h4 {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 7px;
  font-weight: 600;
}
.contact-item p, .contact-item a { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; line-height: 1.6; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 4vw, 46px);
}
.contact-form h2 { margin-bottom: 10px; }
.contact-form > p { color: var(--muted); margin-bottom: 32px; font-size: 0.96rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23454F5E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-group textarea { min-height: 128px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

.map-wrap {
  margin-top: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.66);
  padding: clamp(72px, 9vw, 110px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 7vw, 84px);
}
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 22px; }
.footer-brand p { font-size: 0.93rem; max-width: 300px; }

.footer-col h4 {
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.94rem; color: rgba(255, 255, 255, 0.62); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col li p { font-size: 0.93rem; line-height: 1.65; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-bottom .tagline { color: rgba(255, 255, 255, 0.55); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, border-color 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--ink); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-left.in, .reveal-right.in { transform: none; }

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

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) 28px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
body.nav-open .mobile-nav { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.mobile-nav ul { display: grid; gap: 2px; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav .m-link {
  display: block;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav .m-sub { padding: 2px 0 18px 18px; display: grid; gap: 10px; }
.mobile-nav .m-sub a { color: var(--muted); font-size: 0.98rem; font-weight: 500; }
.mobile-nav .m-sub a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .sub-hero, .contact-grid { grid-template-columns: 1fr; }
  .sub-hero { gap: 44px; }
  .sub-hero-logo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2, .model-steps, .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-note { line-height: 2; }
  .hero-note .sep { margin: 0 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 18px; bottom: 18px; }
}
