/* ============================================================
   ZIPS — Zimbabwe Institute of Procurement and Supply
   Shared stylesheet. Brand colours: white and blue.
   ============================================================ */

:root{
  --navy: #0b2a52;
  --navy-2: #0e3563;
  --blue: #1c4f91;
  --blue-mid: #2560a8;
  --blue-light: #3f7fc4;
  --sky: #eef4fb;
  --sky-2: #e2ecf9;
  --white: #ffffff;
  --ink: #142238;
  --muted: #5b6b85;
  --border: #dbe6f4;
  --shadow: 0 10px 30px rgba(11,42,82,0.10);
  --shadow-sm: 0 4px 14px rgba(11,42,82,0.08);
  --radius: 14px;
  --maxw: 1180px;
  --ff-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
[hidden]{ display:none !important; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--ff-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
p{ margin: 0 0 1em; }
ul{ margin:0; padding:0; }
li{ list-style:none; }
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section{ padding: 72px 0; }
.section-alt{ background: var(--sky); }
.section-navy{ background: var(--navy); color: #d9e6f6; }
.section-navy h1, .section-navy h2, .section-navy h3{ color:#fff; }

.eyebrow{
  display:inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--sky-2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head{
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p{ color: var(--muted); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--blue); color:#fff; }
.btn-primary:hover{ background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline{ background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover{ background: var(--blue); color:#fff; transform: translateY(-2px); }
.btn-light{ background:#fff; color: var(--blue); }
.btn-light:hover{ background: var(--sky); transform: translateY(-2px); }
.btn-ghost-white{ background: transparent; color:#fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-white:hover{ background: rgba(255,255,255,.12); border-color:#fff; }
.btn-sm{ padding: 9px 18px; font-size: .85rem; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Logo ---------- */
.brand{ display:flex; align-items:center; gap:14px; }
.brand-mark{ width:56px; height:56px; flex:none; color: var(--blue); }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{ font-family: var(--ff-head); font-size:1.3rem; color: var(--navy); font-weight:700; letter-spacing:.02em; }
.brand-text span{ font-size:.74rem; color: var(--muted); letter-spacing:.03em; }
.section-navy .brand-text span, footer .brand-text span{ color:#a9bedb; }
footer .brand-text strong{ color:#fff; }
footer .brand-mark{ color:#fff; }

/* ---------- Header / Nav ---------- */
header.site-header{
  position: sticky;
  top:0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap{
  max-width: var(--maxw);
  margin:0 auto;
  padding: 14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
}
nav.main-nav ul{ display:flex; gap: 6px; align-items:center; }
nav.main-nav a{
  display:block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight:600;
  font-size:.93rem;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
nav.main-nav a:hover{ background: var(--sky); color: var(--blue); }
nav.main-nav a.active{ background: var(--blue); color:#fff; }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.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: var(--navy); border-radius:2px; }

@media (max-width: 900px){
  nav.main-nav{
    position:absolute;
    top:100%; left:0; right:0;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display:none;
    padding: 10px 24px 20px;
  }
  nav.main-nav.open{ display:block; }
  nav.main-nav ul{ flex-direction:column; align-items:stretch; gap:2px; }
  nav.main-nav a{ padding:12px 14px; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn span.long{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  color:#fff;
  background: var(--navy);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center 30%;
  z-index:0;
}
.hero-inner{ position:relative; z-index:1; padding: 120px 0 90px; max-width: 760px; }
.hero .eyebrow{ background: rgba(255,255,255,.14); color:#dcebff; }
.hero h1{ color:#fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom:.4em; }
.hero p.lead{ font-size:1.12rem; color:#dbe7f8; max-width:620px; }

.page-hero{
  padding: 64px 0 56px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color:#fff;
  text-align:center;
}
.page-hero h1{ color:#fff; font-size: clamp(1.8rem,3.6vw,2.6rem); }
.page-hero p{ color:#d7e6f9; max-width:640px; margin:0 auto; }
.breadcrumb{ font-size:.85rem; color:#b9cdea; margin-bottom:14px; }
.breadcrumb a:hover{ text-decoration:underline; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 28px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon{
  width:52px; height:52px;
  border-radius: 14px;
  background: var(--sky-2);
  color: var(--blue);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.card h3{ font-size:1.08rem; margin-bottom:.4em; }
.card p{ color: var(--muted); font-size:.94rem; margin:0; }

/* ---------- Membership pricing ---------- */
.tier{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align:center;
  box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tier:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.tier .grade{ font-size: .78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--blue-mid); font-weight:700; margin-bottom:6px; }
.tier h3{ margin-bottom:2px; }
.tier .postnominal{ color: var(--muted); font-size:.85rem; margin-bottom:14px; }
.tier .price{ font-family: var(--ff-head); font-size:2rem; color: var(--navy); font-weight:700; margin: 10px 0; }
.tier .price small{ font-size:.9rem; color: var(--muted); font-weight:500; }
.tier p.desc{ color: var(--muted); font-size:.9rem; flex:1; }
.tier.featured{ border-color: var(--blue); background: linear-gradient(180deg, #fff, var(--sky)); }

/* ---------- Timeline / steps ---------- */
.steps{ counter-reset: step; display:grid; gap:22px; }
.step{
  display:flex; gap:18px; align-items:flex-start;
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px;
}
.step .num{
  counter-increment: step;
  flex:none;
  width:38px; height:38px; border-radius:50%;
  background: var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-family: var(--ff-head);
}
.step .num::before{ content: counter(step); }

/* ---------- Values / objectives list ---------- */
.value-list{ display:grid; gap:22px; grid-template-columns: repeat(3,1fr); }
@media (max-width:900px){ .value-list{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:620px){ .value-list{ grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.person{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align:center; box-shadow: var(--shadow-sm);
}
.person .avatar{
  width:76px; height:76px; margin:0 auto 14px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family: var(--ff-head); font-weight:700; font-size:1.3rem;
}
.person h4{ margin-bottom:2px; font-size:1rem; }
.person span{ color: var(--blue-mid); font-size:.82rem; font-weight:600; }

/* ---------- Gallery ---------- */
.gallery{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
@media (max-width:900px){ .gallery{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .gallery{ grid-template-columns: 1fr; } }
.gallery figure{
  margin:0; position:relative; border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background:var(--sky);
}
.gallery img{ width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.gallery figure:hover img{ transform: scale(1.06); }
.gallery figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(6,22,45,.85), rgba(6,22,45,0));
  color:#fff; font-size:.85rem; font-weight:600;
}

/* ---------- Event list ---------- */
.event-row{
  display:flex; gap:20px; align-items:center;
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px;
}
.event-date{
  flex:none; width:78px; height:78px; border-radius:12px;
  background: var(--navy); color:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-family: var(--ff-head);
}
.event-date .day{ font-size:1.5rem; font-weight:700; line-height:1; }
.event-date .mon{ font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
.event-body h3{ margin-bottom:4px; font-size:1.05rem; }
.event-body .meta{ color: var(--muted); font-size:.88rem; }
.event-tag{
  margin-left:auto; flex:none;
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  background: var(--sky-2); color: var(--blue-mid); padding:6px 12px; border-radius:999px;
}
@media (max-width:620px){ .event-row{ flex-wrap:wrap; } .event-tag{ margin-left:0; } }
.event-row.clickable{ cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.event-row.clickable:hover{ transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-light); }

/* ---------- Modals (event details, admin dashboard) ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(11,42,82,.55);
  display:flex; align-items:flex-start; justify-content:center;
  padding: 40px 20px; overflow-y:auto; z-index:1000;
}
.modal-box{
  background:#fff; border-radius: var(--radius); max-width:760px; width:100%;
  padding:32px; box-shadow: var(--shadow);
}
.modal-box.modal-narrow{ max-width:520px; }
.modal-box h2{ margin-bottom:4px; }
.modal-close{
  float:right; background:none; border:none; font-size:1.4rem; line-height:1;
  color: var(--muted); cursor:pointer; padding:4px 8px;
}
.detail-section{ margin-top:22px; }
.detail-section h4{
  font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color: var(--blue-mid);
  border-bottom:1px solid var(--border); padding-bottom:6px; margin-bottom:12px;
}
.detail-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px 24px; }
.detail-grid dt{ font-size:.78rem; color: var(--muted); margin:0; }
.detail-grid dd{ margin:0 0 8px; font-size:.92rem; }
.detail-full{ grid-column: 1 / -1; }

/* ---------- Downloads ---------- */
.doc-card{
  display:flex; align-items:center; gap:18px;
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.doc-card .file-icon{
  flex:none; width:54px; height:54px; border-radius:12px;
  background: var(--sky-2); color: var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.doc-card .info{ flex:1; min-width:0; }
.doc-card h3{ font-size:1rem; margin-bottom:2px; }
.doc-card .meta{ color: var(--muted); font-size:.82rem; }

/* ---------- Bank / payment box ---------- */
.pay-box{
  background:#fff; border:1px dashed var(--blue-light); border-radius: var(--radius);
  padding: 26px 28px;
}
.pay-box dl{ display:grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin:0; }
.pay-box dt{ color: var(--muted); font-size:.88rem; }
.pay-box dd{ margin:0; font-weight:600; }

/* ---------- Info strip ---------- */
.info-strip{
  display:grid; grid-template-columns: repeat(4,1fr); gap:0;
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  overflow:hidden;
}
.info-strip > div{ padding: 22px; text-align:center; border-right:1px solid var(--border); }
.info-strip > div:last-child{ border-right:none; }
.info-strip .num{ font-family: var(--ff-head); font-size:1.7rem; color: var(--blue); font-weight:700; }
.info-strip .lbl{ color: var(--muted); font-size:.82rem; }
@media (max-width:760px){
  .info-strip{ grid-template-columns: repeat(2,1fr); }
  .info-strip > div{ border-bottom:1px solid var(--border); }
}

/* ---------- CTA band ---------- */
.cta-band{
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color:#fff; border-radius: var(--radius);
  padding: 44px 40px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h3{ color:#fff; margin-bottom:6px; }
.cta-band p{ color:#d7e6f9; margin:0; }

/* ---------- Table (terms/eligibility) ---------- */
table.simple{ width:100%; border-collapse:collapse; }
table.simple th, table.simple td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--border); font-size:.92rem; }
table.simple th{ color: var(--navy); background: var(--sky); }

/* ---------- Legal / terms content ---------- */
.legal h2{ font-size:1.2rem; margin-top:2em; }
.legal h2:first-child{ margin-top:0; }
.legal ul{ margin: 0 0 1em 1.2em; }
.legal li{ list-style: disc; margin-bottom:.4em; }
.legal p{ color: var(--ink); }
.legal .meta-box{
  background: var(--sky); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px;
  font-size:.9rem; color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:36px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-item{ display:flex; gap:16px; margin-bottom:22px; }
.contact-item .ic{
  flex:none; width:44px; height:44px; border-radius:12px;
  background: var(--sky-2); color: var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.contact-item h4{ margin-bottom:2px; font-size:.98rem; }
.contact-item p{ margin:0; color: var(--muted); font-size:.92rem; }

.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-size:.86rem; font-weight:600; margin-bottom:6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--border);
  font-family: var(--ff-body); font-size:.95rem; background:#fbfdff;
}
.form-field textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:.82rem; color: var(--muted); margin-top:10px; }

/* ---------- Application form: sections, radios, repeating rows ---------- */
.form-section{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 24px;
}
.form-section h3{ font-size:1.05rem; margin-bottom:4px; }
.form-section .section-sub{ color: var(--muted); font-size:.86rem; margin-bottom:20px; }
.form-section .section-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:50%; background: var(--sky-2); color: var(--blue-mid);
  font-size:.78rem; font-weight:700; margin-right:8px;
}

.radio-row{ display:flex; flex-wrap:wrap; gap:10px; }
.radio-opt{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border:1px solid var(--border); border-radius:10px;
  font-size:.9rem; font-weight:500; cursor:pointer; background:#fbfdff;
  transition: border-color .15s ease, background .15s ease;
}
.radio-opt input{ width:auto; margin:0; accent-color: var(--blue); }
.radio-opt:has(input:checked){ border-color: var(--blue); background: var(--sky-2); font-weight:600; }

.repeat-group{ margin-top:6px; }
.repeat-row{
  border:1px dashed var(--border); border-radius:12px; padding:18px 18px 4px;
  margin-bottom:14px; position:relative; background:#fbfdff;
}
.repeat-row .remove-row{
  position:absolute; top:10px; right:10px;
  background:none; border:none; color: var(--muted); cursor:pointer;
  font-size:.78rem; font-weight:600; padding:4px 8px; border-radius:6px;
}
.repeat-row .remove-row:hover{ background:#fdeaea; color:#c53030; }
.add-row-btn{ margin-top:4px; }

.conditional-block{
  border-left:3px solid var(--blue-light); padding-left:16px; margin-top:14px;
}

/* ---------- Footer ---------- */
footer{ background: var(--navy); color:#c4d5ec; padding: 56px 0 20px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns: 1fr; } }
footer h4{ color:#fff; font-size:.92rem; letter-spacing:.04em; text-transform:uppercase; margin-bottom:16px; }
footer p{ color:#a9bedb; font-size:.9rem; }
footer a{ color:#c4d5ec; font-size:.92rem; }
footer li{ margin-bottom:10px; }
footer a:hover{ color:#fff; text-decoration:underline; }
.foot-contact li{ display:flex; gap:10px; color:#a9bedb; font-size:.9rem; align-items:flex-start; }
.foot-contact svg{ flex:none; margin-top:3px; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%;
  background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.14);
}
.social-row a:hover{ background: var(--blue); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.82rem; color:#93aad0;
}
.footer-bottom a:hover{ color:#fff; }

/* ---------- Misc ---------- */
.center{ text-align:center; }
.mt-lg{ margin-top:40px; }
.badge-soft{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--sky-2); color: var(--blue-mid);
  padding:6px 12px; border-radius:999px; font-size:.8rem; font-weight:700;
}
.two-col{ display:grid; grid-template-columns: 1.1fr .9fr; gap:48px; align-items:center; }
@media (max-width:860px){ .two-col{ grid-template-columns:1fr; } }
.two-col img{ border-radius: var(--radius); box-shadow: var(--shadow); }

.back-to-top{
  position: fixed; right: 22px; bottom: 22px;
  width:46px; height:46px; border-radius:50%;
  background: var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow);
  opacity:0; pointer-events:none; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 900;
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:none; }
.back-to-top:hover{ background: var(--navy); }
