/* ==================================================================
   OIHI Healthcare — LP1 v4
   Override layer for the Figma "Healthcare" design.
   Loads AFTER styles.v3.css. Replaces lp2.v3.css entirely.

   PALETTE (client-supplied hexes)
     hero + placement background   #bfdbfe
     programs + financial aid      #ffffff
     programme card background     #e4e8f2
     footer / ink / buttons        #091948
     chips + bullets               #8544d6
     decorative blobs              #3389ca / #004a82

   PROGRAM COLOUR MAP — redline pin 7 asks for pink PSW / orange MOA /
   teal PA / purple MHAW. The Figma shows a single purple family and only
   one bullet asset was supplied, so the Figma wins here, the same rule
   already applied on the Educational LP. Revisit if pin 7 is enforced.
   ================================================================== */

:root{
  --hc-surface:#bfdbfe;      /* hero and placement bands */
  --hc-card:#e4e8f2;         /* programme card background */
  --hc-ink:#091948;          /* headings, footer, buttons */
  --hc-purple:#8544d6;       /* chips and bullets */
  --hc-cyan:#47ccdb;         /* social icons and the Platty credit */
  --field-fill:#f2f4f9;      /* form field fill */
  --ink-grad:linear-gradient(110deg,#091948 0%,#16306e 45%,#091948 100%);
  --shadow-card:0 18px 48px rgba(9,25,72,.10);
}

/* This LP's styles.v3.css lacks the scroll offset the sticky header needs. */
html{scroll-padding-top:100px}

/* ---------- Shared ---------- */
.lp2 section{position:relative}
.lp2 .container{position:relative;z-index:1}

.deco{position:absolute;pointer-events:none;z-index:0;display:none}
.deco img{display:block;width:100%;height:100%}
@media (min-width:1100px){.deco{display:block}}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}

/* ==================== HEADER ==================== */
.lp2 .btn-dark{
  background:var(--ink-grad);color:#fff;
  box-shadow:0 4px 14px rgba(9,25,72,.28);
}
.lp2 .btn-dark:hover{box-shadow:0 10px 32px rgba(9,25,72,.45)}
.lp2 .btn-ic{flex-shrink:0;transition:transform .3s cubic-bezier(.4,0,.2,1)}
.lp2 .btn-dark:hover .btn-ic,
.lp2 .pcard-cta:hover .btn-ic{transform:rotate(-12deg) scale(1.08)}
@media (prefers-reduced-motion:reduce){.lp2 .btn-ic{transition:none}}

/* ==================== HERO ==================== */
.hero-v4{
  background:var(--hc-surface);color:var(--hc-ink);
  padding:32px 0 56px;overflow:hidden;
  min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
}
@media (min-width:900px){
  .hero-v4{padding:170px 0 90px;margin-top:-90px;min-height:calc(100vh + 90px)}
}
.hero-v4 .hero-inner{
  max-width:1200px;margin:0 auto;padding:0 20px;
  display:grid;gap:32px;align-items:start;
}
@media (min-width:1000px){
  .hero-v4 .hero-inner{grid-template-columns:1fr minmax(460px,540px);gap:60px;align-items:stretch}
  .hero-v4 .hero-copy{display:flex;flex-direction:column}
  /* flex-basis 0 + sem aspect-ratio: a foto nao entra na altura intrinseca da
     coluna, entao quem dita a linha e o formulario e a foto ocupa o resto. */
  .hero-v4 .hero-media{flex:1 1 0;min-height:220px;aspect-ratio:auto}
  .hero-v4 .form-card-v4{align-self:start}
}
.hero-v4 .deco-hero-a{bottom:-40px;left:-70px;width:230px;height:237px}
.hero-v4 .deco-hero-b{top:-90px;right:-90px;width:400px;height:391px}

.chip-accredited{
  display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
  background:#fff;color:var(--hc-ink);
  height:40px;padding:0 18px;border-radius:20px;
  font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;line-height:1.2;
}
.chip-accredited img{width:18px;height:18px;flex-shrink:0}
@media (max-width:600px){
  .chip-accredited{height:auto;padding:10px 16px;border-radius:16px;letter-spacing:.04em}
}

.hero-v4 h1{
  margin-top:28px;
  font-size:clamp(34px,5.2vw,60px);
  font-weight:400;line-height:1.05;letter-spacing:-.02em;
  color:var(--hc-ink);max-width:620px;
}
.hero-v4 .hero-lead{
  display:block;margin-top:24px;font-size:16px;line-height:1.5;
  color:var(--hc-ink);max-width:560px;
}
.hero-v4 .hero-media{
  margin-top:28px;border-radius:25px;overflow:hidden;
  background:rgba(9,25,72,.06);
  box-shadow:0 14px 40px rgba(9,25,72,.16);
  aspect-ratio:620/428;
}
.hero-v4 .hero-media img{width:100%;height:100%;object-fit:cover}

/* ==================== FORM ==================== */
.form-card-v4{
  background:linear-gradient(var(--hc-ink),var(--hc-ink)) top left/100% 8px no-repeat, #fff;
  color:var(--text);
  border-radius:24px;padding:0;gap:0;
  box-shadow:0 24px 64px rgba(9,25,72,.24);
}
.form-card-v4 .accent-bar{height:8px;flex-shrink:0}   /* espacador: a faixa e pintada no fundo do card */
.form-card-v4 .form-body{display:flex;flex-direction:column;gap:14px;padding:28px 24px 26px}
@media (min-width:900px){.form-card-v4 .form-body{padding:34px 40px 36px}}
.form-card-v4 h2{font-size:24px;font-weight:500;letter-spacing:-.02em;color:var(--hc-ink)}
.form-card-v4 .form-sub{font-size:13px;color:var(--muted);line-height:1.5}
.form-card-v4 .field input,
.form-card-v4 .field select,
.form-card-v4 .iti__tel-input{
  height:48px;font-size:14px;border-radius:12px;background:var(--field-fill);
}
.form-card-v4 .field input::placeholder{color:#6b7391;opacity:1}
/* 16px minimum on touch: anything smaller makes iOS zoom the viewport on focus. */
@media (max-width:899px){
  .form-card-v4 .field input,
  .form-card-v4 .field select,
  .form-card-v4 .iti__tel-input{font-size:16px;height:46px}
}
.form-card-v4 .field{font-size:13px;color:var(--hc-ink)}
.form-card-v4 .btn-submit{
  margin-top:6px;padding:18px;font-size:16px;
  background:var(--ink-grad);box-shadow:0 6px 18px rgba(9,25,72,.28);
}
.form-card-v4 .btn-submit:hover{box-shadow:0 12px 34px rgba(9,25,72,.42)}
.form-card-v4 .consent{font-size:12px;line-height:1.5}
.intake-note{
  display:flex;gap:8px;align-items:flex-start;
  font-size:12px;font-weight:500;line-height:1.55;color:#7a5d10;
  background:#fdf6e3;border-radius:10px;padding:16px 14px;
}
.intake-note svg{flex-shrink:0;margin-top:2px}

/* ---------- Program of Interest listbox ---------- */
.field-combo{position:relative;display:block}
.combo-btn{
  width:100%;height:48px;padding:0 14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--field-fill);border-radius:12px;
  font-size:14px;color:var(--hc-ink);text-align:left;
}
@media (max-width:899px){.combo-btn{height:46px;font-size:16px}}
.combo-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.combo-value.is-placeholder{color:#6b7391}
.combo-caret{flex-shrink:0;transition:transform .2s ease}
.combo-btn[aria-expanded="true"] .combo-caret{transform:rotate(180deg)}
.field-combo.is-invalid .combo-btn{outline:2px solid #d23295;background:rgba(210,50,149,.06)}
.combo-list{
  position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:20;
  list-style:none;margin:0;padding:8px;
  background:#fff;border-radius:14px;
  box-shadow:0 12px 32px rgba(9,25,72,.16);
  border:1px solid rgba(9,25,72,.08);
}
.combo-list[hidden]{display:none}
/* Fixed height with an inner scrollbar: predictable, and it cannot run past the
   viewport the way a content-sized panel did. */
.combo-list{max-height:240px;overflow-y:auto}
/* Opens upward when the panel would run past the bottom of the screen. */
.combo-list.is-up{top:auto;bottom:calc(100% + 8px)}
.combo-opt{
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;border-radius:10px;cursor:pointer;
  font-size:14px;line-height:1.3;color:var(--hc-ink);
}
.combo-opt:hover,.combo-opt.is-active{background:var(--field-fill)}
.combo-opt[aria-selected="true"]{font-weight:500}
.dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:var(--hc-purple)}
/* One colour per programme in the dropdown, client-supplied. */
.dot-psw{background:#004a82}
.dot-moa{background:#3389ca}
.dot-pa{background:#4b5563}
.dot-mhaw{background:#091948}
@media (prefers-reduced-motion:reduce){.combo-caret{transition:none}}

/* ---------- Native selects dressed as the listbox ----------
   Province, Status and the phone's country button are browser-native controls;
   without this they keep their own padding, text colour and caret and read as a
   different component next to Program of Interest. */
.form-card-v4 .select-wrap select{
  padding:0 40px 0 14px;
  color:var(--hc-ink);
}
.form-card-v4 .select-wrap select:invalid{color:#6b7391}
.form-card-v4 .select-wrap .caret{
  right:14px;width:16px;height:16px;color:var(--hc-ink);
}
.form-card-v4 .iti__selected-country{
  color:var(--hc-ink);
  /* styles.v3.css rounds this to 10px while every other control is 12px. */
  border-top-left-radius:12px;border-bottom-left-radius:12px;
}
.form-card-v4 .iti{--iti-border-radius:12px}
/* Slightly smaller type on these three: their labels are the longest in the
   form and would otherwise clip. 16px is kept under 900px because anything
   smaller makes iOS zoom the viewport on focus. */
@media (min-width:900px){
  .form-card-v4 .select-wrap select,
  .form-card-v4 .iti__selected-dial-code,
  .form-card-v4 .iti__selected-country{font-size:13px}
}

/* ==================== PROGRAMS ==================== */
.programs-v4{background:#fff;padding:64px 0;overflow:hidden}
@media (min-width:900px){.programs-v4{padding:100px 0}}
.programs-v4 .deco-programs{top:80px;right:-120px;width:290px;height:442px}

.programs-head{display:grid;gap:24px;margin-bottom:40px}
@media (min-width:900px){
  .programs-head{grid-template-columns:1fr 1fr;gap:60px;align-items:start;margin-bottom:56px}
}
.programs-head .eyebrow{color:#2d79b4;letter-spacing:.1em;font-size:13px}
.programs-head h2{
  margin-top:18px;
  font-size:clamp(26px,3.6vw,42px);font-weight:400;
  line-height:1.12;letter-spacing:-.02em;color:var(--hc-ink);
}
.programs-head-note{font-size:15px;line-height:1.6;color:var(--hc-ink)}
/* The exported SVG carries its own dark circle, so no background here. */
.badge-arrow{width:43px;height:43px;display:block;margin-bottom:20px}

.pgrid{display:grid;gap:24px}
@media (min-width:900px){.pgrid{grid-template-columns:1fr 1fr;gap:28px}}
.pcard{
  background:var(--hc-card);border-radius:24px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:var(--shadow-card);
}
.pcard-media{aspect-ratio:580/250;overflow:hidden;background:rgba(9,25,72,.06)}
.pcard-media img{width:100%;height:100%;object-fit:cover}
.pcard-body{display:flex;flex-direction:column;gap:14px;padding:24px 22px 28px;flex:1}
@media (min-width:900px){.pcard-body{padding:28px}}
.pcard .tag{
  display:inline-flex;align-items:center;align-self:flex-start;
  background:var(--hc-purple);color:#fff;
  padding:7px 14px;border-radius:20px;
  font-size:12px;font-weight:500;line-height:1.2;
}
.pcard-title{font-size:22px;font-weight:500;letter-spacing:-.01em;line-height:1.3;color:var(--hc-ink)}
.pcard-desc{font-size:14px;line-height:1.55;color:var(--hc-ink)}
.pcard .features{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.pcard .features li{
  display:flex;gap:10px;align-items:flex-start;
  font-size:14px;line-height:1.45;color:var(--hc-ink);
}
.pcard .features li img{width:20px;height:20px;flex-shrink:0;margin-top:1px}
.pcard .note{font-size:11px;line-height:1.4;color:rgba(9,25,72,.6)}
.pcard-cta{
  align-self:flex-start;margin-top:6px;
  display:inline-flex;align-items:center;gap:12px;
  height:48px;padding:0 20px 0 24px;border-radius:24px;
  background:var(--ink-grad);background-size:200% 100%;background-position:0% 50%;
  color:#fff;font-size:14px;font-weight:500;
  box-shadow:0 6px 18px rgba(9,25,72,.28);
  transition:background-position .6s ease,transform .25s ease,box-shadow .3s ease;
}
.pcard-cta:hover{background-position:100% 50%;transform:translateY(-2px);box-shadow:0 12px 32px rgba(9,25,72,.42)}
.pcard-cta img{width:22px;height:22px}

/* ==================== PLACEMENT ==================== */
.placement-v4{background:var(--hc-surface);color:var(--hc-ink);padding:64px 0;overflow:hidden}
@media (min-width:900px){.placement-v4{padding:100px 0}}
.placement-v4 .deco-plac-a{bottom:-70px;left:-60px;width:218px;height:396px}
.placement-v4 .deco-plac-b{top:60px;right:-30px;width:140px;height:240px}
.placement-v4 h2{
  font-size:clamp(26px,3.4vw,42px);font-weight:400;
  line-height:1.15;letter-spacing:-.02em;text-align:center;color:var(--hc-ink);
  max-width:900px;margin:0 auto 20px;
}
.placement-v4 .p-sub{
  text-align:center;max-width:760px;margin:0 auto 32px;
  font-size:15px;line-height:1.6;color:var(--hc-ink);
}
.placement-v4 .p-tabs{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:32px;padding:0}
.placement-v4 .p-tab{
  flex:0 0 auto;max-width:none;height:46px;padding:0 20px;border-radius:23px;
  background:#fff;color:var(--hc-ink);border:0;
  font-size:14px;font-weight:500;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.placement-v4 .p-tab:hover{transform:translateY(-1px)}
.placement-v4 .p-tab[aria-selected="true"]{background:var(--hc-ink);color:#fff}
.placement-v4 .p-tab:focus-visible{outline:3px solid var(--hc-ink);outline-offset:3px}
@media (max-width:600px){
  .placement-v4 .p-tabs{gap:8px}
  .placement-v4 .p-tab{height:40px;padding:0 14px;font-size:13px}
}
.placement-v4 .p-cards{display:grid;gap:20px}
.placement-v4 .p-cards[hidden]{display:none}
@media (min-width:900px){.placement-v4 .p-cards{grid-template-columns:repeat(3,1fr);gap:24px}}
.placement-v4 .p-card{
  background:#fff;color:var(--hc-ink);
  border:0;border-radius:20px;padding:26px;
  display:flex;flex-direction:column;gap:12px;backdrop-filter:none;
  box-shadow:var(--shadow-card);
}
.pmarker{width:40px;height:10px;border-radius:5px;flex-shrink:0;background:var(--hc-purple)}
.placement-v4 .p-card h3{font-size:19px;font-weight:500;line-height:1.3;color:var(--hc-ink);margin:0}
.placement-v4 .p-card p{font-size:14px;line-height:1.55;color:var(--hc-ink);margin:0}

/* ==================== FINANCIAL AID ==================== */
.finaid-v4{background:#fff;padding:64px 0;overflow:hidden}
@media (min-width:900px){.finaid-v4{padding:100px 0}}
.finaid-v4 .eyebrow{color:#2d79b4;letter-spacing:.1em;font-size:13px;text-align:center}
.finaid-v4 h2{
  font-size:clamp(26px,3.4vw,42px);font-weight:400;
  line-height:1.15;letter-spacing:-.02em;text-align:center;color:var(--hc-ink);
  max-width:900px;margin:14px auto 0;
}
.fa-callout{
  background:var(--hc-surface);border-radius:16px;
  padding:22px 24px;margin:32px auto 36px;max-width:1000px;
  font-size:14px;line-height:1.6;color:var(--hc-ink);text-align:center;
}
.fa-grid{display:grid;gap:24px}
@media (min-width:900px){.fa-grid{grid-template-columns:1fr 1fr;gap:28px}}
.fa-card{border-radius:24px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-card)}
.fa-media{aspect-ratio:580/260;overflow:hidden;background:rgba(9,25,72,.06)}
.fa-media img{width:100%;height:100%;object-fit:cover}
.fa-body{padding:26px;color:#fff;display:flex;flex-direction:column;gap:14px;flex:1}
.fa-card-ink .fa-body{background:var(--hc-ink)}
.fa-card-blue .fa-body{background:#2d79b4}
.fa-body h3{font-size:20px;font-weight:500;line-height:1.3}
.fa-body p{font-size:14px;line-height:1.55}
.fa-link{
  color:#fff;font-weight:500;font-size:14px;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;
  align-self:flex-start;margin-top:auto;
  display:inline-flex;align-items:center;gap:8px;
  transition:gap .25s ease;
}
.fa-link:hover{gap:14px}
/* styles.v3.css draws a second, 2px underline with ::after. Two lines under one
   link reads as a rendering bug, so the pseudo-element goes and the text
   decoration above is the only rule left. */
.fa-link::after,
.fa-link::before{display:none;content:none}

/* ==================== FOOTER ==================== */
.lp2 .site-footer{background:var(--hc-ink);color:#fff;border-top:0}
.lp2 .site-footer .copy,
.lp2 .site-footer .legal,
.lp2 .site-footer .legal a{color:#fff}
.lp2 .site-footer .legal a:hover{color:var(--hc-surface)}
.lp2 .site-footer .copy-mark{color:inherit}
.lp2 .socials a{color:var(--hc-cyan)}
.lp2 .socials svg{fill:var(--hc-cyan)}
.lp2 .site-footer .legal a.platty-link{color:var(--hc-cyan)}
.lp2 .site-footer .legal a.platty-link:hover{color:#7fe0eb}
@media (min-width:900px){
  .lp2 .footer-grid{
    grid-template-areas:"logo socials" "copy legal";
    grid-template-columns:auto 1fr;
    row-gap:72px;
  }
  /* Each social link carries 6px of padding for the touch target; pull it back
     so its right edge lines up with the legal row. */
  .lp2 .site-footer .socials{margin-right:-6px}
  .lp2 .site-footer .legal{flex-wrap:wrap;justify-content:flex-end}
  .lp2 .site-footer .legal > *{white-space:nowrap}
}

/* ==================== FOCUS / MOTION ==================== */
.lp2 a:focus-visible,
.lp2 button:focus-visible,
.lp2 input:focus-visible,
.lp2 select:focus-visible{outline:3px solid var(--hc-ink);outline-offset:2px}
.site-footer a:focus-visible{outline:3px solid var(--hc-surface);outline-offset:2px}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:#fff;color:var(--hc-ink);
  padding:14px 20px;border-radius:0 0 12px 0;
  font-size:15px;font-weight:500;box-shadow:0 6px 20px rgba(0,0,0,.18);
}
.skip-link:focus{left:0}
.is-invalid-outline{outline:2px solid #d23295;outline-offset:2px;border-radius:6px}
.nav-links.is-open{
  display:flex;position:absolute;top:100%;left:0;right:0;
  flex-direction:column;background:#fff;padding:20px;gap:16px;
  border-radius:20px;margin-top:10px;box-shadow:0 8px 24px rgba(0,0,0,.1);
}
