/* ==========================================================
   Citadel Concepts International — styles
   Palette taken from the brochure: navy, green, lime.
   ========================================================== */
:root {
  --navy: #13227a;
  --navy-deep: #0b1550;
  --green: #2e9b4a;
  --green-dark: #1f7a37;
  --lime: #b7e36a;
  --ink: #111827;
  --muted: #5b6475;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(11, 21, 80, .35);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-deep); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: .8em;
}
.eyebrow.light { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; font-family: var(--font-body);
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(46,155,74,.7); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .55em 1.2em; font-size: .88rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  border: 2.5px solid var(--navy); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -.04em;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; right: 9px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px;
  background: var(--green); opacity: .9;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); font-weight: 800; }
.brand-text small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--muted); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--green); transition: width .25s;
}
.nav a:not(.btn):hover { color: var(--navy); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(46,155,74,.55), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(183,227,106,.25), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  padding: clamp(64px, 10vw, 120px) 0;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.03em; font-weight: 800; }
.hero .hl { color: var(--lime); }
.hero .eyebrow { color: var(--lime); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges li {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; padding: .4em .9em;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.85);
}

.hero-cards { display: grid; gap: 16px; }
.pillar {
  position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px); transition: transform .25s, background .25s;
}
.pillar:hover { transform: translateX(6px); background: rgba(255,255,255,.14); }
.pillar svg {
  grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 12px;
  fill: none; stroke: var(--navy-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pillar-hse svg { background: var(--lime); }
.pillar-fin svg { background: #fff; }
.pillar-lead svg { background: #7fd39a; }
.pillar h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.pillar p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.72); }
.pillar-num { position: absolute; top: 14px; right: 18px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: rgba(255,255,255,.35); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { padding: 18px; border-radius: 14px; background: var(--bg-soft); border-left: 4px solid var(--green); }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }

/* ---------- Programmes ---------- */
.programs { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.tabs {
  display: inline-flex; gap: 6px; padding: 6px; background: #fff; border-radius: 999px;
  border: 1px solid var(--line); margin-bottom: 28px; max-width: 100%; overflow-x: auto;
}
.tabs button {
  border: 0; background: none; cursor: pointer; padding: .7em 1.6em; border-radius: 999px;
  font: 600 .95rem var(--font-body); color: var(--muted); transition: background .2s, color .2s; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { color: var(--navy); }

.panel {
  display: grid; grid-template-columns: 1fr 1.35fr; background: #fff;
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); animation: fadeUp .45s ease;
}
.panel[hidden] { display: none; }
.panel-intro { padding: clamp(28px, 4vw, 48px); color: #fff; position: relative; overflow: hidden; }
.panel-intro::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  right: -90px; bottom: -90px; border: 40px solid rgba(255,255,255,.08);
}
.panel-intro h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.panel-intro p { color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.panel-hse { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.panel-fin { background: linear-gradient(160deg, #5fbf4a, var(--green-dark)); }
.panel-lead { background: linear-gradient(160deg, #1e6b3a, #0d3f22); }
.panel-tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.15); padding: .35em .9em; border-radius: 999px; margin-bottom: 18px;
}
.panel-body { padding: clamp(28px, 4vw, 48px); }
.panel-body h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }

.course-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.course-list li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; }
.course-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px;
  background: var(--lime); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1.5px var(--green);
}
.benefits { padding-top: 24px; border-top: 1px dashed var(--line); }
.benefits ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.benefits li { padding-left: 24px; position: relative; color: var(--muted); font-size: .95rem; }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.benefits .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.benefits .chips li { padding: .35em 1em; background: var(--bg-soft); border-radius: 999px; color: var(--navy); font-weight: 500; }
.benefits .chips li::before { content: none; }

.custom-note {
  display: flex; align-items: center; gap: 14px; margin: 28px 0 0; padding: 18px 22px;
  background: #fff; border-radius: 14px; border: 1px solid var(--line); color: var(--muted);
}
.custom-note svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--lime); fill: none; stroke: var(--navy-deep); stroke-width: 2; }
.custom-note strong { color: var(--navy); }

/* ---------- Why ---------- */
.why { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,155,74,.35), transparent 65%); top: -250px; right: -200px;
}
.why h2 { color: #fff; }
.why-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); transition: transform .25s, border-color .25s;
}
.why-card:hover { transform: translateY(-6px); border-color: var(--lime); }
.why-card svg { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--green); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.why-card h3 { color: #fff; }
.why-card p { color: rgba(255,255,255,.72); font-size: .93rem; margin: 0; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.steps li span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px;
}
.steps li:nth-child(even) span { background: var(--green); }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); }
.office { padding: 18px 0 18px 20px; border-left: 3px solid var(--green); margin: 18px 0; }
.office h3 { margin-bottom: .3em; color: var(--green-dark); text-transform: uppercase; font-size: .9rem; letter-spacing: .1em; }
.office p { margin: 0; color: var(--ink); }
.phones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.phones a {
  padding: .7em 1.2em; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .92rem;
  transition: background .2s;
}
.phones a:hover { background: var(--green); }

.contact-form { background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--green); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line);
  font: inherit; font-size: .95rem; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field .invalid { border-color: #d64545; }
.form-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form-note.error { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand-light .brand-mark { border-color: #fff; color: #fff; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--lime); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--lime); }
.copy { margin: 0; font-size: .85rem; width: 100%; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel { animation: none; }
}
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-grid, .contact-grid, .panel { grid-template-columns: 1fr; }
  .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .course-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stats div { padding: 12px; }
  .stats strong { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .why-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: .7em 1em; }
  .hero-cta .btn { flex: 1; }
}
