/* =========================================================
   PRIME — Pretorius Institute of Medical Excellence
   Design system: navy / signal red / clinical paper
   Type: Barlow Condensed (display) + Barlow (body)
   ========================================================= */

:root{
  --navy:        #0F2138;
  --navy-deep:   #091524;
  --navy-soft:   #1B3350;
  --red:         #AE242F;
  --red-deep:    #841A22;
  --steel:       #55606C;
  --steel-light: #8A94A0;
  --paper:       #F3F6F7;
  --paper-alt:   #E7ECEE;
  --line:        #D7DEE1;
  --ink:         #10202F;
  --gold:        #C69A44;
  --white:       #FFFFFF;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --container: 1160px;
  --radius-sm: 3px;
  --radius-md: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
p{ margin: 0 0 1em; color: var(--steel); max-width: 62ch; }
.ink{ color: var(--ink); }

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

.wrap{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-red{ background: var(--red); color: var(--white); }
.btn-red:hover{ background: var(--red-deep); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ink{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ink:hover{ background: var(--navy); color: var(--white); }
.btn-block{ width:100%; justify-content:center; }

/* ---------------------------------------------------------
   Site header / nav
--------------------------------------------------------- */
.site-header{
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 76px;
  gap: 20px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-shrink:0;
}
.brand img{ height: 46px; width: 46px; }
.brand-word{
  font-family: var(--font-display);
  color: var(--white);
  font-size: 22px;
  letter-spacing: .5px;
  font-weight: 700;
  line-height: 1;
}
.brand-sub{
  display:block;
  font-family: var(--font-body);
  color: var(--steel-light);
  font-size: 10.5px;
  letter-spacing: .4px;
  font-weight: 500;
  margin-top: 3px;
}
.main-nav{
  display:flex;
  align-items:center;
  gap: 30px;
}
.main-nav a{
  color: #C9D2DA;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--white); }
.main-nav a.active{ color: var(--white); border-color: var(--red); }
.nav-call{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-shrink:0;
}
.nav-phone{
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  display:flex;
  align-items:center;
  gap:8px;
}
.nav-phone svg{ width:16px; height:16px; flex-shrink:0; }
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color:var(--white);
  cursor:pointer;
  padding: 8px;
}
.nav-toggle svg{ width:26px; height:26px; }

@media (max-width: 900px){
  .main-nav{
    position: fixed;
    top: 76px; left:0; right:0;
    background: var(--navy);
    flex-direction:column;
    align-items:flex-start;
    padding: 8px 28px 24px;
    gap: 4px;
    border-bottom: 3px solid var(--red);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events:none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .main-nav.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .main-nav a{ width:100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle{ display:block; }
  .nav-phone-label{ display:none; }
}

/* ---------------------------------------------------------
   Hero (pulse-line motif)
--------------------------------------------------------- */
.hero{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items:center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--steel-light);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-eyebrow::before{
  content:"";
  width: 26px; height: 2px;
  background: var(--red);
}
.hero h1{
  font-size: clamp(42px, 6vw, 68px);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span{ display:block; }
.hero-rule{
  width: 84px; height: 4px;
  background: var(--red);
  margin: 4px 0 22px;
}
.hero p.lead{
  color: #C4CDD6;
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-art{ position:relative; z-index:2; }
.pulse-svg{ width:100%; height:auto; display:block; }
.pulse-path{
  fill:none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.1s ease-out .35s forwards;
}
.pulse-grid line{ stroke: rgba(255,255,255,.08); stroke-width:1; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }

.hero-stats{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats .stat b{
  display:block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  font-weight: 700;
}
.hero-stats .stat span{
  color: var(--steel-light);
  font-size: 13px;
}

/* ---------------------------------------------------------
   Section scaffolding
--------------------------------------------------------- */
section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.section-alt{ background: var(--paper-alt); }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy p{ color: var(--steel-light); }
.section-navy h2, .section-navy h3{ color: var(--white); }

.kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--red);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing:.3px;
  margin-bottom: 14px;
}
.kicker::before{ content:""; width:22px; height:2px; background:var(--red); }
.section-navy .kicker{ color: var(--gold); }
.section-navy .kicker::before{ background: var(--gold); }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 30px;
  margin-bottom: 46px;
}
.section-head h2{ font-size: clamp(30px,4vw,42px); max-width: 14ch; }
.section-head p{ margin:0; }

/* ---------------------------------------------------------
   Services split (asymmetric)
--------------------------------------------------------- */
.services-split{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-panel{
  background: var(--white);
  padding: 46px 42px;
  position:relative;
}
.service-panel.dark{ background: var(--navy); color:var(--white); }
.service-panel.dark p{ color: var(--steel-light); }
.service-panel .num{
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red);
  font-weight:700;
  margin-bottom: 18px;
  display:block;
}
.service-panel h3{ font-size: 30px; margin-bottom: 14px; }
.service-panel .icon{ width:40px; height:40px; margin-bottom:22px; }
.service-list{ margin: 20px 0 26px; }
.service-list li{
  display:flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font-size: 14.5px;
}
.service-panel.dark .service-list li{ border-color: rgba(255,255,255,.12); color:#C4CDD6; }
.service-list li:first-child{ border-top:none; }
.service-list svg{ width:15px; height:15px; flex-shrink:0; margin-top:3px; color: var(--red); }

/* ---------------------------------------------------------
   Pathway (genuine sequence)
--------------------------------------------------------- */
.pathway{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  position:relative;
}
.pathway::before{
  content:"";
  position:absolute;
  top: 27px; left: 6%; right: 6%;
  height: 2px;
  background: var(--line);
}
.path-step{ position:relative; padding: 0 22px; text-align:left; }
.path-step .badge{
  width: 54px; height:54px;
  border-radius:50%;
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight:700;
  font-size:20px;
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2;
  margin-bottom: 20px;
}
.path-step h4{ font-family: var(--font-body); font-weight:700; font-size:17px; margin-bottom:6px; color: var(--ink); }
.path-step .code{ display:block; color: var(--red); font-weight:700; font-size:12.5px; letter-spacing:.4px; margin-bottom:10px; }
.path-step p{ font-size: 14.5px; }

/* ---------------------------------------------------------
   Credential / accreditation strip
--------------------------------------------------------- */
.cred-strip{
  display:flex;
  flex-wrap:wrap;
  gap: 14px;
}
.cred-chip{
  display:flex;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(255,255,255,.22);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight:600;
  color: var(--white);
}
.cred-chip svg{ width:18px; height:18px; color: var(--gold); flex-shrink:0; }

/* ---------------------------------------------------------
   Cards: courses / clients / team
--------------------------------------------------------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 26px; }

.course-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px;
  border-top: 3px solid var(--red);
}
.course-card .tag{
  display:inline-block;
  font-size: 11.5px;
  font-weight:700;
  letter-spacing:.4px;
  color: var(--red);
  background: rgba(174,36,47,.08);
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.course-card .tag.muted{ color: var(--steel); background: var(--paper-alt); }
.course-card h4{ font-size: 21px; margin-bottom: 8px; }
.course-card .code{ display:block; color:var(--steel-light); font-size:12.5px; font-weight:600; margin-bottom:12px; }
.course-card p{ font-size: 14.5px; margin-bottom:0; }

.group-head{
  display:flex;
  align-items:baseline;
  gap:16px;
  margin: 64px 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}
.group-head:first-of-type{ margin-top:0; }
.group-head h3{ font-size: 26px; margin:0; }
.group-head span{ color: var(--steel-light); font-size:13.5px; font-weight:600; }

/* Team */
.team-card{
  background: var(--white);
  border: 1px solid var(--line);
  display:flex;
  flex-direction:column;
}
.avatar{
  height: 190px;
  background: var(--navy);
  color: var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight:700;
  letter-spacing: 2px;
  position:relative;
  overflow:hidden;
}
.avatar::after{
  content:"";
  position:absolute;
  right:-10px; bottom:-30px;
  width:120px; height:120px;
  border-radius:50%;
  border: 24px solid var(--red-deep);
  opacity:.5;
}
.team-body{ padding: 24px 26px 28px; }
.team-body h4{ font-size:21px; margin-bottom:4px; }
.team-role{ color: var(--red); font-weight:700; font-size:13.5px; margin-bottom:14px; }
.team-body ul li{
  font-size: 13.8px;
  color: var(--steel);
  padding: 5px 0 5px 16px;
  position:relative;
}
.team-body ul li::before{
  content:"";
  position:absolute; left:0; top:12px;
  width:6px; height:6px;
  background: var(--red);
}

/* Testimonials */
.testi-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.testi-mark{ font-family: var(--font-display); font-size:44px; color: var(--red); line-height:.6; }
.testi-card p.quote{ color: var(--ink); font-size:15.5px; margin:0; }
.testi-who{ font-size:13.5px; color: var(--steel-light); font-weight:600; border-top:1px solid var(--line); padding-top:14px; }
.testi-note{
  font-size: 12.5px;
  color: var(--steel-light);
  font-style: italic;
  margin-top: -22px;
  margin-bottom: 34px;
}

/* Clients wall */
.clients-groups{ display:flex; flex-direction:column; gap: 0; }
.client-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  gap: 14px;
}
.clients-groups .client-row:first-child{ border-top:none; }
.client-row .cname{ font-family: var(--font-display); font-size: 22px; font-weight:600; }
.client-row .ctag{
  font-size: 11.5px;
  font-weight:700;
  letter-spacing:.3px;
  color: var(--white);
  background: var(--navy);
  padding: 5px 11px;
  border-radius: 2px;
  white-space:nowrap;
}
.client-row .ctag.event{ background: var(--red); }
.client-row .ctag.equip{ background: var(--gold); color: var(--navy-deep); }

/* CTA banner */
.cta-banner{
  background: var(--red);
  color: var(--white);
  padding: 56px 0;
}
.cta-banner .wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 30px;
  flex-wrap:wrap;
}
.cta-banner h2{ color:var(--white); font-size: clamp(26px,3.4vw,36px); margin:0; max-width: 18ch; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.cta-banner .btn-outline{ border-color: rgba(255,255,255,.6); }
.cta-banner .btn-white{ background: var(--white); color: var(--red-deep); }
.cta-banner .btn-white:hover{ background: #F2E3D8; }

/* ---------------------------------------------------------
   Page intro banner (inner pages)
--------------------------------------------------------- */
.page-banner{
  background: var(--navy);
  color: var(--white);
  padding: 58px 0 54px;
  position:relative;
  overflow:hidden;
  border-bottom: 3px solid var(--red);
}
.page-banner h1{ color: var(--white); font-size: clamp(34px,5vw,52px); margin-bottom:10px; }
.page-banner p{ color:#C4CDD6; font-size:16.5px; max-width: 58ch; margin:0; }
.breadcrumb{
  color: var(--steel-light);
  font-size: 13px;
  margin-bottom: 16px;
  display:flex; gap:8px; align-items:center;
}
.breadcrumb a:hover{ color: var(--white); }
.breadcrumb .sep{ color: rgba(255,255,255,.3); }

/* ---------------------------------------------------------
   Contact page
--------------------------------------------------------- */
.contact-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 0;
  border: 1px solid var(--line);
}
.contact-info{ background: var(--navy); color:var(--white); padding: 46px 42px; }
.contact-info h3{ color:var(--white); font-size:26px; }
.contact-info p{ color:#C4CDD6; }
.contact-item{
  display:flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact-item:first-of-type{ border-top:none; margin-top: 8px; }
.contact-item svg{ width:20px; height:20px; color: var(--gold); flex-shrink:0; margin-top:2px; }
.contact-item a, .contact-item span{ color: var(--white); font-weight:600; font-size:15px; }
.contact-item small{ display:block; color: var(--steel-light); font-weight:500; font-size:12.5px; margin-top:2px; }

.contact-form{ background: var(--white); padding: 46px 42px; }
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size:13px; font-weight:700; color: var(--ink); margin-bottom:7px; letter-spacing:.2px; }
.field input, .field select, .field textarea{
  width:100%;
  border: 1.5px solid var(--line);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--red);
  background: var(--white);
}
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note{ font-size:12.5px; color: var(--steel-light); margin-top:10px; }

.map-embed{ border:0; width:100%; height: 360px; display:block; filter: grayscale(.15) contrast(1.05); }
.map-wrap{ border: 1px solid var(--line); border-top:none; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer{
  background: var(--navy-deep);
  color: #AEB8C2;
  padding: 64px 0 28px;
  border-top: 3px solid var(--red);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand{ display:flex; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:40px; width:40px; }
.footer-brand-word{ font-family: var(--font-display); color:var(--white); font-size:19px; font-weight:700; }
.footer-brand-sub{ display:block; color:var(--steel-light); font-size:10px; letter-spacing:.3px; }
.site-footer p{ color:#8B96A2; font-size:14px; max-width: 34ch; }
.site-footer h5{
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing:.4px;
  margin-bottom:18px;
  font-weight:700;
}
.site-footer ul li{ margin-bottom: 11px; }
.site-footer ul a{ color:#AEB8C2; font-size:14.5px; transition:color .15s ease; }
.site-footer ul a:hover{ color: var(--white); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  color: #6D7885;
  flex-wrap:wrap;
  gap: 10px;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; opacity:.9; max-width: 420px; }
  .services-split{ grid-template-columns: 1fr; }
  .pathway{ grid-template-columns: 1fr; gap: 34px; }
  .pathway::before{ display:none; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .field-row{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .grid-3{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:14px; }
  .cta-banner .wrap{ flex-direction:column; align-items:flex-start; }
  section{ padding: 60px 0; }
  .hero{ padding: 52px 0 60px; }
  .hero-stats{ grid-template-columns: 1fr; gap: 14px; }
  .contact-info, .contact-form{ padding: 34px 24px; }
}
