/* ==========================================================================
   SkillEdge Institute — Global Stylesheet
   Theme: Navy Blue + Gold (corporate training brand)
   ========================================================================== */

:root {
  --navy-900: #071427;
  --navy-800: #0a1f3a;
  --navy-700: #0e2a4f;
  --navy-600: #143a67;
  --gold-500: #caa14b;
  --gold-400: #dab968;
  --gold-100: #f6ecd7;
  --teal-500: #1c7c73;
  --ink: #1c2430;
  --muted: #5b6472;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --border: #e6e8ec;
  --success: #1e7a4c;
  --error: #b3261e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(7, 20, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 20, 39, 0.16);
  --maxw: 1180px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--muted); }

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

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--paper-soft); }
.section-navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #eef2f7;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c3ccdb; }
/* Cards keep dark text even inside a navy section — they have a white/light
   background of their own, so they must not inherit the light-on-navy colors. */
.section-navy .pillar-card h3,
.section-navy .course-card h3,
.section-navy .facil-card h3,
.section-navy .facil-mini h4 { color: var(--navy-900); }
.section-navy .pillar-card p,
.section-navy .course-card p,
.section-navy .facil-card p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(202, 161, 75, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(202, 161, 75, .45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-900); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 20, 39, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.brand .tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .68rem;
  color: var(--gold-400);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: #dfe5ee;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .93rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a.active { background: var(--gold-500); color: var(--navy-900); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(202,161,75,.22), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(28,124,115,.28), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .lead { color: #c3ccdb; font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  max-width: 560px;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold-400);
}
.stat span { font-size: .82rem; color: #a9b3c4; }

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(7,20,39,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 14px 16px;
}
.hero-visual-caption b { display: block; color: #fff; font-family: var(--font-head); font-size: .95rem; }
.hero-visual-caption span { font-size: .78rem; color: var(--gold-400); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pillar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--gold-400);
  margin-bottom: 20px;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 { margin-bottom: .5em; }
.pillar-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-500);
  background: #e8f3f1;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Course cards ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--navy-800);
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--gold-500); }
.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.course-card .pillar-tag { align-self: flex-start; }
.course-card h3 { margin-bottom: .4em; }
.course-card .label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--navy-600);
  margin: 14px 0 4px;
}
.course-card .label:first-of-type { margin-top: 10px; }
.course-card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Facilitators ---------- */
.facil-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.facil-mini {
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 16px;
  padding: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.facil-mini:hover,
.facil-mini:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.facil-mini:hover .photo {
  border-color: var(--gold-400);
}
.facil-mini .photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 3px solid var(--paper);
  outline: 1px solid var(--border);
  transition: border-color .2s ease;
}
.facil-mini .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-bottom { object-position: center bottom; }
.facil-mini h4 { font-family: var(--font-head); font-size: .95rem; margin: 0 0 4px; color: var(--navy-900); }
.facil-mini span { font-size: .78rem; color: var(--muted); }

.facil-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  align-items: start;
  scroll-margin-top: 100px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.facil-card:target {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-100), var(--shadow-lg);
}
.facil-card .photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.facil-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.facil-card .role {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold-500);
  background: var(--navy-900);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.facil-card h3 { margin-bottom: .3em; }
.facil-card p { margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--teal-500) 140%);
  border-radius: 20px;
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { color: #d8dfea; margin-bottom: 0; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: #b9c2d1; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.info-row:first-of-type { border-top: none; }
.info-row .icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: rgba(202,161,75,.15);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-row .icon svg { width: 19px; height: 19px; }
.info-row b { display: block; color: #fff; font-family: var(--font-head); font-size: .92rem; margin-bottom: 2px; }
.info-row a, .info-row span { color: #c3ccdb; font-size: .9rem; }
.info-row a:hover { color: var(--gold-400); }

.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.social-row a:hover { background: var(--gold-500); color: var(--navy-900); }
.social-row svg { width: 17px; height: 17px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper-soft);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field.hp { position: absolute; left: -9999px; top: -9999px; }

.form-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
#formStatus {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 20px;
  font-weight: 500;
}
#formStatus.show { display: block; }
#formStatus.ok { background: #e7f6ee; color: var(--success); border: 1px solid #b9e6cd; }
#formStatus.err { background: #fdecea; color: var(--error); border: 1px solid #f6c4bf; }

/* ---------- Map ---------- */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: var(--paper);
}
.map-label b { font-family: var(--font-head); color: var(--navy-900); font-size: .95rem; }
.map-label span { font-size: .82rem; color: var(--muted); }

@media (max-width: 720px) {
  .offices-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c2d1;
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-grid h4 {
  color: #fff;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid ul a { font-size: .9rem; color: #b9c2d1; transition: color .15s ease; }
.footer-grid ul a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  color: #8a93a6;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(202,161,75,.2), transparent 40%);
}
.page-hero .breadcrumb {
  position: relative;
  font-size: .85rem;
  color: var(--gold-400);
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 500;
}
.page-hero h1 { position: relative; color: #fff; margin-bottom: .3em; }
.page-hero p { position: relative; color: #c3ccdb; max-width: 620px; margin-bottom: 0; }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.text-gold { color: var(--gold-500); }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .pillars { grid-template-columns: 1fr; }
  .facil-strip { grid-template-columns: repeat(3, 1fr); }
  .facil-card { grid-template-columns: 160px 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-900);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .site-header.nav-open .nav-links a { width: 100%; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .hero { padding: 64px 0 70px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .facil-strip { grid-template-columns: repeat(2, 1fr); }
  .facil-card { grid-template-columns: 1fr; }
  .facil-card .photo { max-width: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
}
