/* West1 Systems — home page redesign ("Lagos sunset" concept).
   Navy ink + gold accent, photo hero, dark stats band, dark footer.
   Loaded INSTEAD of main.css on index.html only. */

:root {
  --navy: #0d1b2e;
  --navy-2: #13233c;
  --navy-3: #1a2f4e;
  --gold: #c9962e;
  --gold-2: #e0b04b;
  --gold-deep: #a87c1f;
  --paper: #faf9f6;
  --card: #ffffff;
  --ink: #101d30;
  --ink-soft: #4c5566;
  --ink-faint: #7d8494;
  --line: rgba(16, 29, 48, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--ink-soft); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1c1503; box-shadow: 0 6px 18px rgba(201, 150, 46, 0.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.text-link { color: var(--gold-deep); font-weight: 600; font-size: 0.93rem; }
.text-link:hover { color: var(--gold); }

.kicker {
  display: block; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); font-family: var(--font-display); font-size: 1.5rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; height: 76px; }
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
  padding-left: 26px;
}
.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90"><g fill="%23121212"><circle cx="12" cy="14" r="11"/><circle cx="41" cy="14" r="11"/><circle cx="12" cy="45" r="11"/><circle cx="41" cy="45" r="11"/><circle cx="12" cy="76" r="11"/><circle cx="41" cy="76" r="11"/></g><g fill="%23e8722a"><circle cx="70" cy="14" r="11"/><circle cx="70" cy="45" r="11"/><circle cx="70" cy="76" r="11"/></g></svg>') no-repeat center / contain;
}
.logo span { color: #e8722a; }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  font-family: var(--font-display); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding: 8px 14px; border-radius: 999px;
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav a:hover { color: var(--ink); background: rgba(16, 29, 48, 0.06); }
.main-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.main-nav a.active { color: #3a2c08; font-weight: 600; background: #f3d789; }
.main-nav a.btn-gold {
  margin-left: 6px; padding: 8px 18px;
  color: #2a2005; font-weight: 600;
  background: var(--gold-2);
}
.main-nav a.btn-gold:hover { background: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /* ponytail: pure-CSS sunset scene instead of a photo — swap for a real
     Lagos waterfront photo via .hero-bg{background-image:url(...)} when one exists */
  background:
    radial-gradient(1100px 600px at 78% 30%, rgba(255, 196, 92, 0.55), transparent 60%),
    radial-gradient(900px 500px at 95% 65%, rgba(224, 160, 64, 0.45), transparent 65%),
    linear-gradient(105deg, #fdfaf3 0%, #fbf3e2 34%, #f6e3bd 55%, #ecc98d 74%, #d9a557 100%);
}
.hero-bg .skyline { position: absolute; right: 0; bottom: 0; width: 62%; min-width: 520px; opacity: 0.85; }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
.hero h1 .l1, .hero h1 .l2 { display: block; color: var(--navy); }
.hero h1 .l3 { display: block; color: var(--gold); }
.hero .lede { margin-top: 20px; font-weight: 700; color: var(--ink); font-size: 1.05rem; max-width: 430px; }
.hero .sub { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); max-width: 440px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.hero-badges .badge { display: flex; align-items: center; gap: 9px; font-size: 0.78rem; line-height: 1.25; }
.hero-badges .badge strong { display: block; font-size: 0.8rem; }
.hero-badges .badge small { display: block; color: var(--ink-faint); font-size: 0.72rem; }
.hero-badges .ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-deep);
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.55);
}
.hero-badges .ico svg { width: 17px; height: 17px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* skills panel */
.skills-panel {
  background: rgba(13, 20, 32, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 22px 24px;
  color: #fff;
  max-width: 320px;
  justify-self: end;
  box-shadow: 0 24px 60px rgba(10, 16, 28, 0.35);
}
.skills-panel h3 { font-size: 0.95rem; margin-bottom: 14px; }
.skills-panel ul { list-style: none; }
.skills-panel li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; font-size: 0.92rem; font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.skills-panel li:last-child { border-bottom: 0; }
.skills-panel .ico {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  border: 1.5px solid rgba(201, 150, 46, 0.8); color: var(--gold-2);
  display: grid; place-items: center;
}
.skills-panel .ico svg { width: 15px; height: 15px; }
.hero-loc {
  position: absolute; right: 32px; bottom: 28px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13, 20, 32, 0.85); color: #fff;
  padding: 9px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
}
.hero-loc svg { width: 15px; height: 15px; color: var(--gold-2); }

/* ---------- stats band ---------- */
.stats-band { margin-top: -8px; position: relative; z-index: 2; }
.stats-band .inner {
  background: var(--navy);
  border-radius: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  color: #fff;
  padding: 26px 10px;
  box-shadow: 0 18px 45px rgba(10, 16, 28, 0.3);
}
.stats-band .stat { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 4px 20px; }
.stats-band .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stats-band .ico { color: var(--gold-2); }
.stats-band .ico svg { width: 38px; height: 38px; }
.stats-band .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; display: block; line-height: 1.1; }
.stats-band .stat-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); max-width: 210px; }

/* ---------- generic sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head .sub-title { font-weight: 600; color: var(--ink); margin-top: 6px; }
.section-head p.desc { margin-top: 10px; font-size: 0.94rem; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- path cards ---------- */
.path-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 6px 22px rgba(16, 29, 48, 0.05);
}
.path-card .ico {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-deep);
  display: grid; place-items: center;
}
.path-card .ico svg { width: 22px; height: 22px; }
.path-card h3 { font-size: 1.08rem; }
.path-card p { font-size: 0.88rem; }
.path-card .media {
  border-radius: 10px; overflow: hidden; height: 130px; margin-top: auto;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3) 60%, #2c4a76);
}
.path-card .media img { width: 100%; height: 100%; object-fit: cover; }
.path-card .text-link { margin-top: 12px; }

/* ---------- featured programmes ---------- */
.featured { background: #f4f1ea; }
.featured .head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; }
.featured .head-row h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.featured .head-row p { margin-top: 6px; font-size: 0.94rem; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.course-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 6px 22px rgba(16, 29, 48, 0.05);
}
.course-card .pill {
  align-self: flex-start;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; padding: 4px 9px; border-radius: 6px;
}
.pill-flagship { background: #b5178a; }
.pill-foundation { background: #1e9e50; }
.pill-intermediate { background: #1f6fd6; }
.pill-intadv { background: #7a3fd1; }
.pill-business { background: #e07b1f; }
.pill-executive { background: var(--navy); }
.course-card .ico { color: var(--gold-deep); margin: 6px 0 2px; }
.course-card .ico svg { width: 40px; height: 40px; }
.course-card h3 { font-size: 0.98rem; line-height: 1.25; }
.course-card p { font-size: 0.78rem; }
.course-card .facts { font-size: 0.72rem; color: var(--ink-faint); margin-top: auto; padding-top: 8px; }
.course-card .facts strong { color: var(--ink); }
.course-card .text-link { font-size: 0.82rem; }

/* ---------- learn by building ---------- */
.method .cols { display: grid; grid-template-columns: 0.9fr repeat(4, 1fr); gap: 0; align-items: start; }
.method .intro { padding-right: 34px; }
.method .intro h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.method .intro .sub-title { font-weight: 700; margin-top: 8px; color: var(--ink); }
.method .intro p.desc { margin-top: 14px; font-size: 0.86rem; }
.method .item { padding: 8px 26px; border-left: 1px solid var(--line); text-align: center; }
.method .ico { color: var(--gold-deep); margin: 0 auto 14px; width: 54px; }
.method .ico svg { width: 54px; height: 54px; }
.method h3 { font-size: 1rem; margin-bottom: 8px; }
.method p { font-size: 0.83rem; }

/* ---------- faculty + corporate ---------- */
.faculty-corp { background: #f4f1ea; }
.faculty-corp .cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: stretch; }
.faculty-box { }
.faculty-box h2 { font-size: 1.5rem; }
.faculty-box .sub-title { font-weight: 600; margin-top: 4px; }
.faculty-box p.desc { font-size: 0.85rem; margin-top: 8px; }
.person-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.person-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; font-size: 0.78rem;
}
.person-card .avatar {
  width: 74px; height: 74px; border-radius: 12px; margin-bottom: 12px;
  background: var(--navy-2); color: var(--gold-2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  border: 2px solid var(--gold);
}
.person-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.person-card h3 { font-size: 0.95rem; }
.person-card .role { color: var(--gold-deep); font-weight: 600; font-size: 0.74rem; margin: 3px 0 8px; }
.person-card p { font-size: 0.75rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.skill-tags .tag {
  font-size: 0.62rem; font-weight: 600; background: #efe9db; color: var(--ink-soft);
  padding: 3px 8px; border-radius: 6px;
}
.corp-box {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: var(--radius); color: #fff; padding: 30px 28px;
  display: flex; flex-direction: column;
}
.corp-box h2 { font-size: 1.4rem; }
.corp-box .sub-title { font-weight: 600; margin-top: 4px; color: var(--gold-2); }
.corp-box p.desc { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; margin-top: 12px; }
.corp-box .media {
  border-radius: 10px; overflow: hidden; height: 150px; margin: 18px 0;
  background: linear-gradient(135deg, #23405f, #0f1d33);
}
.corp-box .media img { width: 100%; height: 100%; object-fit: cover; }
.corp-box .ctas { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.corp-box .btn { justify-content: space-between; }

/* ---------- lab ---------- */
.lab .section-head { max-width: 760px; }
.lab .section-head p.desc { font-size: 0.88rem; }
.lab-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 22px rgba(16, 29, 48, 0.05);
  display: flex; flex-direction: column;
}
.lab-card .media { height: 160px; background: linear-gradient(135deg, #101a33, #23155a 55%, #3a1a6e); position: relative; }
.lab-card .media img { width: 100%; height: 100%; object-fit: cover; }
.lab-card .body { padding: 16px 18px 18px; }
.lab-card h3 { font-size: 1rem; }
.lab-card p { font-size: 0.8rem; margin: 8px 0 10px; }
.lab-card .text-link { font-size: 0.82rem; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 60px 0 0; font-size: 0.85rem; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 0.8fr 1.1fr; gap: 30px; }
footer .brand .logo { color: #fff; }
footer .brand .logo small { color: rgba(255, 255, 255, 0.55); }
footer .brand .logo::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90"><g fill="%23ffffff"><circle cx="12" cy="14" r="11"/><circle cx="41" cy="14" r="11"/><circle cx="12" cy="45" r="11"/><circle cx="41" cy="45" r="11"/><circle cx="12" cy="76" r="11"/><circle cx="41" cy="76" r="11"/></g><g fill="%23e8722a"><circle cx="70" cy="14" r="11"/><circle cx="70" cy="45" r="11"/><circle cx="70" cy="76" r="11"/></g></svg>');
}
footer .brand p { color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; margin-top: 14px; }
footer a { display: block; color: rgba(255, 255, 255, 0.65); padding: 3px 0; }
footer a:hover { color: var(--gold-2); }
footer .social { display: flex; gap: 10px; margin-top: 18px; }
footer .social a {
  width: 32px; height: 32px; border-radius: 8px; padding: 0;
  background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; color: #fff;
}
footer .social a:hover { background: var(--gold); color: #1c1503; }
footer .social svg { width: 15px; height: 15px; }
footer .news p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 12px; }
footer .news form { display: flex; flex-direction: column; gap: 10px; }
footer .news input {
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-dark);
  border-radius: 8px; padding: 10px 14px; color: #fff; font-family: var(--font-body); font-size: 0.85rem;
}
footer .news input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: 44px; padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { display: inline; padding: 0 4px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .method .cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .method .intro { grid-column: 1 / -1; padding-right: 0; }
  .method .item { border-left: 0; padding: 0; text-align: left; }
  .method .ico { margin: 0 0 10px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 11px; font-size: 0.84rem; }
  .main-nav { gap: 5px; }
}
@media (max-width: 1060px) {
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch;
    padding: 18px 24px; gap: 10px; border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .main-nav a.btn-gold { margin-left: 0; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .skills-panel { justify-self: start; max-width: 100%; width: 100%; }
  .hero-loc { display: none; }
  .stats-band .inner { grid-template-columns: 1fr; gap: 14px; }
  .stats-band .stat + .stat { border-left: 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .faculty-corp .cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-6, .person-row { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  footer .cols { grid-template-columns: 1fr; }
}
