/* ==========================================================================
   Vitora Care — Design tokens
   A recruitment bridge between South Africa and the UK care sector.
   Signature device: the plus/cross — the brand mark, a medic's cross, and
   the literal shape of two paths (care providers / care professionals)
   meeting in the middle. It recurs as a bullet, a divider and a hero split.
   ========================================================================== */

:root{
  --navy:        #0a0e2a;
  --navy-panel:  #10143c;
  --navy-panel-2:#161a49;
  --line:        rgba(255,255,255,.14);
  --blue:        #9fcdf8;
  --blue-deep:   #5b93d6;
  --magenta:     #c91bb2;
  --white:       #ffffff;
  --ink:         #eef2fb;
  --muted:       rgba(238,242,251,.68);
  --muted-2:     rgba(238,242,251,.48);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

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

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
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); margin:0; line-height:1.05; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family: inherit; }

/* texture: faint cross grid on the deep navy, matching brand pattern */
.cross-field{
  position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0;
}
.cross-field svg{ position:absolute; opacity:.5; }

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:11px; height:11px;
  background: var(--blue);
  clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);
  flex-shrink:0;
}

/* cross bullet list, used throughout instead of generic dots/checks */
.cross-list li{
  position:relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
}
.cross-list li::before{
  content:"";
  position:absolute; left:0; top: 6px;
  width:14px; height:14px;
  background: var(--blue);
  clip-path: polygon(38% 0,62% 0,62% 38%,100% 38%,100% 62%,62% 62%,62% 100%,38% 100%,38% 62%,0 62%,0 38%,38% 38%);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-body);
  font-weight:600;
  font-size:15px;
  padding: 14px 26px;
  border-radius: 999px;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--blue); color: var(--navy); }
.btn-primary:hover{ background:#b6d9fa; }
.btn-magenta{ background: var(--magenta); color: var(--white); }
.btn-magenta:hover{ background:#e021c3; }
.btn-outline{ background:transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover{ border-color: var(--blue); color: var(--blue); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- header ---------- */
header.site{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,14,42,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand img{ height: 26px; width:auto; }
.brand{ display:inline-flex; align-items:center; gap:9px; }
.brand .logo-cross{
  width:15px; height:15px; flex-shrink:0;
  background: var(--blue);
  clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);
}
.brand .logo-text{ font-family: var(--font-display); font-size:21px; color: var(--white); letter-spacing:-0.01em; }
.brand .logo-text .thin{ font-style: italic; font-weight:500; }
.brand .logo-text .bold{ font-weight:700; }
footer .brand-footer{ display:inline-flex; align-items:center; gap:8px; margin-bottom:16px; }
footer .brand-footer .logo-cross{
  width:13px; height:13px; flex-shrink:0;
  background: var(--blue);
  clip-path: polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%);
}
footer .brand-footer .logo-text{ font-family: var(--font-display); font-size:18px; color: var(--white); }
footer .brand-footer .logo-text .thin{ font-style: italic; font-weight:500; }
footer .brand-footer .logo-text .bold{ font-weight:700; }
nav.primary{ display:flex; align-items:center; gap:30px; }
nav.primary a{
  font-size:14.5px; font-weight:500; color: var(--muted);
  transition: color .15s ease;
  position:relative;
}
nav.primary a:hover, nav.primary a.active{ color: var(--white); }
nav.primary a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--blue);
}
.nav-ctas{ display:flex; gap:12px; align-items:center; }
nav.primary .mobile-ctas{ display:none; }
nav.primary a{ white-space: nowrap; }
.menu-toggle{
  display:none;
  background:none; border:none; color:var(--white);
  width:38px; height:38px; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.menu-toggle span{ display:block; width:22px; height:2px; background: var(--white); }

/* ---------- footer ---------- */
footer.site{
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  margin-top: 100px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4{ font-size:14px; color: var(--white); margin-bottom:16px; font-family: var(--font-body); font-weight:600; }
.footer-grid a, .footer-grid p{ color: var(--muted); font-size:14.5px; display:block; margin-bottom:10px; }
.footer-grid a:hover{ color: var(--blue); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:28px; border-top:1px solid var(--line);
  color: var(--muted-2); font-size:13px; flex-wrap:wrap; gap:12px;
}
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ border-color: var(--blue); }

/* ---------- generic section rhythm ---------- */
section{ position:relative; padding: 96px 0; }
section.tight{ padding: 64px 0; }
.section-head{ max-width: 680px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(30px,4vw,44px); margin-top:14px; text-transform:uppercase; }
.section-head p{ color: var(--muted); margin-top:16px; font-size:17px; }
.panel{
  background: var(--navy-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.alt-bg{ background: var(--navy-panel); }

/* ---------- hero ---------- */
.hero{ padding: 70px 0 20px; overflow:hidden; }
.hero-top{ max-width: 760px; }
.hero-top h1{
  font-size: clamp(38px, 5.4vw, 66px);
  text-transform:uppercase;
  margin: 18px 0 22px;
}
.hero-top p{ font-size:19px; color: var(--muted); max-width:600px; }
.hero-actions{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }

/* the split-path device: two doors meeting at a cross */
.path-split{
  margin-top: 64px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:stretch;
  gap: 0;
}
.path-card{
  background: var(--navy-panel);
  border: 1px solid var(--line);
  padding: 44px 40px;
  position:relative;
  display:flex;
  flex-direction:column;
  transition: background .2s ease, transform .2s ease;
}
.path-card > .btn{ margin-top:auto; align-self:flex-start; }
.path-card:hover{ background: var(--navy-panel-2); transform: translateY(-4px); }
.path-card:first-child{ border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.path-card:last-child{ border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.path-card .tag{ font-family: var(--font-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color: var(--blue); }
.path-card h3{ font-size: clamp(20px,2.4vw,28px); margin:14px 0 12px; text-transform:uppercase; }
.path-card p{ color: var(--muted); margin-bottom:24px; }
.path-divider{
  width: 74px; display:flex; align-items:center; justify-content:center;
  background: var(--magenta);
  position:relative;
}
.path-divider svg{ width:30px; height:30px; }
@media (max-width: 860px){
  .path-split{ grid-template-columns: 1fr; }
  .path-divider{ width:100%; height:52px; }
  .path-card:first-child{ border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .path-card:last-child{ border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

/* ---------- card grids ---------- */
.grid{ display:grid; gap: 24px; align-items: stretch; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3 > *, .grid-2 > *{ height: 100%; }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr; } .grid-2{ grid-template-columns:1fr; } }

.card{
  background: var(--navy-panel);
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.card h3{ font-size:19px; margin-bottom:12px; }
.card p{ color: var(--muted); font-size:15.5px; }
.card .tag{
  display:inline-block; font-family: var(--font-mono); font-size:11.5px;
  letter-spacing:.08em; text-transform:uppercase; color: var(--muted-2);
  border:1px solid var(--line); border-radius:999px; padding:5px 12px; margin-top:18px;
}

/* role cards on home / careers */
.role-card{
  background: var(--navy-panel);
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px;
}
.role-card .pill{
  display:inline-block; background: var(--blue); color:var(--navy);
  font-family: var(--font-mono); font-size:11.5px; font-weight:600;
  padding:6px 13px; border-radius:999px; margin-bottom:20px; text-transform:uppercase; letter-spacing:.06em;
}
.role-card h3{ font-size:21px; margin-bottom:12px; text-transform:uppercase; }
.role-card p{ color:var(--muted); font-size:15.5px; margin-bottom:18px; }
.role-card .level{ font-size:13.5px; color: var(--muted-2); font-style:italic; }

/* ---------- CIRCLE values wheel ---------- */
.circle-wrap{
  display:grid; grid-template-columns: 420px 1fr; gap:56px; align-items:center;
}
@media (max-width: 900px){ .circle-wrap{ grid-template-columns:1fr; } }
.circle-values{ display:grid; gap: 22px; }
.circle-values .cval{ display:flex; gap:18px; }
.circle-values .letter{
  font-family: var(--font-display); font-size:26px; color: var(--navy);
  background: var(--blue); width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.circle-values h4{ font-size:16.5px; margin-bottom:4px; text-transform:uppercase; }
.circle-values p{ color: var(--muted); font-size:15px; }

/* ---------- timeline / process ---------- */
.process-row{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1000px){ .process-row{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .process-row{ grid-template-columns: 1fr; } }
.process-step{
  background: var(--navy-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow:hidden;
}
.process-step .num{
  font-family: var(--font-mono); font-size:13px; letter-spacing:.1em;
  background: rgba(159,205,248,.12); color: var(--blue);
  padding: 12px 20px; text-transform:uppercase;
}
.process-step h4{ padding: 18px 20px 0; font-size:16px; text-transform:uppercase; }
.process-step ul{ padding: 14px 20px 22px; }
.process-step ul li{ font-size:14px; color: var(--muted); position:relative; padding-left:16px; margin-bottom:8px; }
.process-step ul li::before{ content:"–"; position:absolute; left:0; color: var(--blue); }

/* ---------- packages / pricing tiers ---------- */
.tier-card{
  background: var(--navy-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display:flex; flex-direction:column;
}
.tier-card.featured{
  border-color: var(--blue);
  background: linear-gradient(180deg, rgba(159,205,248,.08), var(--navy-panel) 40%);
  position:relative;
}
.tier-card.featured::before{
  content:"MOST FLEXIBLE";
  position:absolute; top:-13px; left:36px;
  background: var(--blue); color: var(--navy);
  font-family: var(--font-mono); font-size:11px; letter-spacing:.08em;
  padding:5px 14px; border-radius:999px;
}
.tier-card .tier-eyebrow{ font-family:var(--font-mono); color:var(--blue); font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; }
.tier-card .tier-head{ display:flex; flex-direction:column; min-height:250px; }
.tier-card .tier-commit{ display:flex; flex-direction:column; min-height:200px; }
.tier-card h3{ font-size:24px; margin: 12px 0 8px; text-transform:uppercase; }
.tier-card .ideal{ color: var(--muted); font-size:15px; margin-bottom:22px; }
.tier-card .sub{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color: var(--muted-2); margin: 22px 0 10px; }
.tier-card ul li{ font-size:14.5px; }
@media (max-width: 900px){
  .tier-card .tier-head{ min-height:0; }
  .tier-card .tier-commit{ min-height:0; }
}
.tier-card .best{
  margin-top:auto; padding-top:22px; border-top:1px solid var(--line);
  font-size:14px; color: var(--muted);
}
.tier-card .best strong{ color: var(--white); }

/* ---------- FAQ accordion ---------- */
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-q{
  width:100%; text-align:left; background:none; border:none; color: var(--white);
  padding: 24px 0; font-size:17px; font-weight:600; font-family: var(--font-body);
  display:flex; justify-content:space-between; align-items:center; gap:20px; cursor:pointer;
}
.faq-q .plus{
  width:18px; height:18px; position:relative; flex-shrink:0;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:""; position:absolute; background: var(--blue); border-radius:2px;
}
.faq-q .plus::before{ left:0; top:8px; width:18px; height:2px; }
.faq-q .plus::after{ left:8px; top:0; width:2px; height:18px; transition: transform .2s ease; }
.faq-item.open .faq-q .plus::after{ transform: rotate(90deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .25s ease; }
.faq-a-inner{ padding-bottom:24px; color: var(--muted); font-size:15.5px; max-width: 760px; }
.faq-a-inner ul{ margin-top:10px; }
.faq-a-inner ul li{ position:relative; padding-left:18px; margin-bottom:6px; }
.faq-a-inner ul li::before{ content:"–"; position:absolute; left:0; color: var(--blue); }

/* ---------- forms ---------- */
.form-panel{
  background: var(--navy-panel);
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-bottom:20px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field label{ font-size:13.5px; color: var(--muted); }
.field label .req{ color: var(--magenta); }
.field input, .field select, .field textarea{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--blue);
  background: rgba(255,255,255,.06);
}
.field select option{ color: var(--navy); background: var(--white); }
.field textarea{ resize: vertical; min-height:110px; }
.field-file{
  border:1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 22px; text-align:center; color: var(--muted); font-size:14.5px;
  background: rgba(255,255,255,.02);
}
.field-file input{ margin-top:12px; width:100%; color:var(--muted); font-size:13.5px; }
.form-note{
  font-size:13.5px; color: var(--muted-2); margin-top:18px; line-height:1.6;
}
.form-success{
  display:none; text-align:center; padding: 60px 20px;
}
.form-success.show{ display:block; }
.form-success .plus-big{
  width:56px; height:56px; margin: 0 auto 22px; position:relative;
}
.plus-big::before, .plus-big::after{ content:""; position:absolute; background: var(--blue); border-radius:4px; }
.plus-big::before{ left:0; top:24px; width:56px; height:8px; }
.plus-big::after{ left:24px; top:0; width:8px; height:56px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--blue) 0%, #c8e2fb 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: var(--navy);
  display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap;
}
.cta-banner h2{ font-size: clamp(26px,3.4vw,38px); text-transform:uppercase; max-width:520px; }
.cta-banner .btn-primary{ background: var(--navy); color: var(--white); }
.cta-banner .btn-primary:hover{ background:#1b2154; }

/* ---------- page header (interior pages) ---------- */
.page-head{ padding: 56px 0 10px; }
.page-head .eyebrow{ margin-bottom:16px; }
.page-head h1{ font-size: clamp(32px,4.6vw,52px); text-transform:uppercase; max-width:760px; }
.page-head p{ color: var(--muted); font-size:17px; margin-top:18px; max-width:620px; }

/* team */
.team-card{ display:flex; gap:26px; background: var(--navy-panel); border:1px solid var(--line); border-radius: var(--radius-lg); padding:28px; align-items:flex-start; }
.team-card img{ width:120px; height:120px; object-fit:cover; object-position: center 15%; border-radius: 16px; flex-shrink:0; }
.team-card h3{ font-size:19px; }
.team-card .role{ color: var(--blue); font-size:13.5px; font-family: var(--font-mono); text-transform:uppercase; letter-spacing:.06em; margin: 6px 0 14px; }
.team-card p{ color: var(--muted); font-size:15px; }

@media (max-width: 900px){
  .menu-toggle{ display:flex; }
  nav.primary{
    position:fixed; top:64px; left:0; right:0; bottom:0;
    background: var(--navy);
    flex-direction:column; align-items:flex-start; gap:0;
    padding: 10px 32px 30px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y:auto;
  }
  nav.primary.open{ transform: translateX(0); }
  nav.primary a{ width:100%; padding: 16px 0; border-bottom:1px solid var(--line); }
  .nav-ctas{ display:none; }
  nav.primary .mobile-ctas{ display:flex; flex-direction:column; gap:12px; width:100%; margin-top:20px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
