/* =============================================
   BRIDGING PCARE — MINIMALIST REBUILD
   Mobile-first · Vanilla CSS · 8pt grid
   ============================================= */

/* ---------- TOKENS ---------- */
:root {
  --ink:      #0F1A24;
  --ink-mid:  #2C3E50;
  --ink-lt:   #5A7184;
  --teal:     #1C8A72;
  --teal-lt:  #2BB597;
  --offwhite: #F5F6F4;
  --border:   #E2E6E9;
  --white:    #FFFFFF;

  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s;
  --wrap: 1160px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-body); color: var(--ink); background: var(--white); cursor: none; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed; width: 6px; height: 6px;
  background: var(--teal); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s, background .2s;
}
.cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1px solid var(--teal); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  opacity: .45;
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s;
}
.cursor.hov   { background: var(--teal-lt); transform: translate(-50%,-50%) scale(1.6); }
.cursor-ring.hov { width: 40px; height: 40px; opacity: .25; }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } body { cursor: auto; } }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- TYPE HELPERS ---------- */
.label {
  display: block;
  font-size: .65rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .5rem;
}
.rule {
  width: 32px; height: 1px;
  background: var(--teal);
  margin: .75rem 0 2rem;
  transition: width .7s var(--ease);
}
.rule.on { width: 48px; }

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  padding: .6rem 1.4rem;
  background: var(--teal);
  color: var(--white);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--t) var(--ease), transform var(--t);
  cursor: none;
}
.cta:hover { background: var(--teal-lt); transform: translateY(-2px); }
.cta-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
}
.cta-light:hover { background: rgba(255,255,255,.08); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 60px; padding: 0 1.25rem;
  display: flex; align-items: center;
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.on {
  background: rgba(15,26,36,.96);
  border-color: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.nav-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--f-display); font-size: 1.05rem; color: var(--white); }
.logo-tag  { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }

.nav-toggle {
  display: flex; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--white); transition: var(--t) var(--ease);
}
.nav-toggle.on span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle.on span:last-child  { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: none;
  position: fixed; inset: 60px 0 0 0;
  background: rgba(15,26,36,.97);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-links.on { display: flex; }
.nav-links a {
  font-size: .8rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75);
  transition: color var(--t);
}
.nav-links a:hover, .nav-links .nav-cta { color: var(--white); }
.nav-links .nav-cta {
  padding: .5rem 1.2rem;
  border: 1px solid rgba(255,255,255,.25); border-radius: 2px;
}

/* ---------- HERO SLIDER ---------- */
.hero {
  position: relative; height: 100svh; min-height: 580px; overflow: hidden;
}
.slides { position: relative; width: 100%; height: 100%; }
.slide  {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s var(--ease);
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.slide-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,18,22,.88) 0%, rgba(10,30,28,.55) 45%, rgba(26,107,90,.18) 75%, rgba(26,107,90,.05) 100%),
    linear-gradient(to top, rgba(6,14,16,.5) 0%, transparent 35%);
}
.slide-text {
  position: absolute; bottom: 14%; left: 1.5rem; right: 1.5rem;
  color: var(--white);
}
.slide-label {
  display: block;
  font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: .75rem;
}
.slide-text h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.1; margin-bottom: .9rem;
  font-weight: 400;
}
.slide-text p {
  font-size: .9rem; line-height: 1.75;
  color: rgba(255,255,255,.72); max-width: 480px; margin-bottom: 1.75rem;
}
.slide-nav {
  position: absolute; bottom: 5.5%; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.sdot {
  width: 5px; height: 5px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.3); cursor: none;
  transition: background var(--t), transform var(--t);
}
.sdot.active { background: var(--white); transform: scale(1.5); }
.prog-track {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,.1); z-index: 10;
}
.prog-fill {
  height: 100%; background: var(--teal); width: 0%;
  animation: prog 6s linear infinite;
}
@keyframes prog { from { width: 0% } to { width: 100% } }

/* ---------- ABOUT ---------- */
.about { padding: 6rem 0; background: var(--offwhite); }
.about .wrap {
  display: grid; grid-template-columns: 1fr; gap: 3.5rem;
}
.about-lead {
  font-size: .95rem; line-height: 1.8; color: var(--ink-lt);
  margin-bottom: 1.75rem;
}
.about h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15;
  color: var(--ink);
}
.pillars { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.pillar { padding-left: 1rem; border-left: 1px solid var(--border); }
.pillar-head {
  font-size: .65rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: .3rem;
}
.pillar p { font-size: .85rem; line-height: 1.7; color: var(--ink-lt); }

.vals { display: flex; flex-direction: column; gap: 1.5rem; }
.vals li { display: flex; gap: 1.25rem; align-items: flex-start; }
.val-num {
  flex-shrink: 0;
  font-size: .65rem; font-weight: 500; letter-spacing: .08em;
  color: var(--teal); padding-top: 3px;
}
.vals strong { display: block; font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: .2rem; }
.vals p { font-size: .82rem; line-height: 1.65; color: var(--ink-lt); }

/* ---------- SERVICES ---------- */
.services { padding: 6rem 0; background: var(--white); }
.sec-head { margin-bottom: 3rem; }
.sec-head h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--ink);
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.svc-card {
  background: var(--white);
  display: flex; flex-direction: column;
  transition: background var(--t);
  overflow: hidden;
}
.svc-card:hover { background: var(--offwhite); }

.svc-img {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.svc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .4s;
  filter: grayscale(15%);
}
.svc-card:hover .svc-img img { transform: scale(1.04); filter: grayscale(0%); }

.svc-body { padding: 1.25rem 1.25rem 1.5rem; }
.svc-body h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 1.05rem; color: var(--ink);
  margin-bottom: .4rem; line-height: 1.3;
}
.svc-body p { font-size: .82rem; line-height: 1.65; color: var(--ink-lt); }

/* ---------- NHIF STRIP ---------- */
.nhif { background: var(--ink); padding: 4rem 1.25rem; }
.nhif-inner {
  display: flex; flex-direction: column; gap: 2rem; align-items: flex-start;
}
.nhif-text h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem); color: var(--white); margin-bottom: .6rem;
}
.nhif-text p { font-size: .85rem; line-height: 1.75; color: rgba(255,255,255,.5); max-width: 440px; }

/* ---------- CONTACT ---------- */
.contact { padding: 6rem 0; background: var(--offwhite); }
.contact-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-left h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--ink);
}
.cinfo { display: flex; flex-direction: column; gap: 1.25rem; }
.ci { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.ci-label {
  font-size: .62rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
}
.ci span:last-child { font-size: .88rem; line-height: 1.7; color: var(--ink-lt); }
.contact-photo { position: relative; overflow: hidden; border-radius: 2px; }
.contact-photo img { width: 100%; height: 300px; object-fit: cover; object-position: center top; filter: grayscale(10%); transition: filter .5s, transform .5s var(--ease); }
.contact-photo:hover img { filter: none; transform: scale(1.02); }
.photo-tag-block {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,20,32,.85) 0%, transparent 100%);
  padding: 2.5rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.photo-tag-label {
  font-size: .58rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal-lt);
}
.photo-tag-name {
  font-family: var(--f-display); font-size: 1rem;
  color: var(--white); line-height: 1.2;
}
.photo-tag-sub { font-size: .72rem; color: rgba(255,255,255,.5); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); padding: 3.5rem 0 0; }
.footer-inner {
  display: flex; flex-direction: column; gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { display: flex; flex-direction: column; gap: .2rem; }
.footer-brand p { font-size: .78rem; color: rgba(255,255,255,.3); margin-top: .5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer-nav a {
  font-size: .72rem; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  transition: color var(--t);
}
.footer-nav a:hover { color: rgba(255,255,255,.75); }
.footer-bar { padding: 1.25rem 0; }
.footer-bar span { font-size: .68rem; color: rgba(255,255,255,.2); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 600px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars   { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; position: static;
    flex-direction: row; background: none;
    gap: 2rem; inset: auto; align-items: center;
  }
  .nav-links a { font-size: .7rem; }

  .slide-text { left: 8%; right: auto; bottom: 20%; }

  .about .wrap { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-photo img { height: 380px; }
  .nhif-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}