/* PriCare Advantage site styles
   Brand: PriCare Navy #001F4A, PriCare Green #6CC24A, Bright Green #89D255, White.
   Type: Montserrat (ExtraBold headlines, Bold subheads). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2");
}

:root {
  --navy: #001F4A;
  --navy-2: #0B2F63;
  --green: #6CC24A;
  --green-bright: #89D255;
  --green-text: #3E8A25; /* darker green for small text on white, passes contrast */
  --white: #FFFFFF;
  --mist: #EEF1F5;
  --line: #D9DFE8;
  --ink: #12284A;
  --muted: #4A5D78;
  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--green-text); }

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

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: var(--white);
  padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}
.brand img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--navy); color: var(--navy);
  font: 700 0.85rem/1 "Montserrat", sans-serif;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--navy);
}
.site-nav a:hover { background: var(--mist); color: var(--navy); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.site-nav .nav-cta a {
  background: var(--navy); color: var(--white); margin-left: 8px; border-radius: 8px;
}
.site-nav .nav-cta a:hover { background: var(--navy-2); color: var(--white); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); }
  .brand img { height: 36px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem/1 "Montserrat", sans-serif;
  padding: 16px 24px; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:hover { background: var(--green-bright); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  border-bottom: 6px solid var(--green);
}
.hero::after {
  /* oversized brand mark, cropped off the right edge */
  content: "";
  position: absolute; right: -6%; top: 50%;
  width: min(620px, 62vw); aspect-ratio: 80 / 63;
  transform: translateY(-50%);
  background: url("../img/icon-white.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #D6DEEA; max-width: 52ch; margin-bottom: 2em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: var(--navy); color: var(--white);
  border-bottom: 6px solid var(--green);
}
.page-head .wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); }
.page-head h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { color: #D6DEEA; font-size: 1.1rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-mist { background: var(--mist); }
.section-intro { max-width: 760px; margin-bottom: 40px; }
.section-intro p { color: var(--muted); }

/* Outcomes list */
.outcomes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--navy);
}
.outcomes li {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 26px 24px 26px 0;
  border-bottom: 1px solid var(--line);
}
.outcomes li:nth-child(odd) { padding-right: 40px; }
.outcomes .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; margin-top: 2px;
}
.outcomes .mark svg { width: 18px; height: 18px; }
.outcomes h3 { margin-bottom: 4px; }
.outcomes p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.footnote { font-size: 0.85rem; color: var(--muted); margin-top: 20px; }
@media (max-width: 720px) {
  .outcomes { grid-template-columns: 1fr; }
  .outcomes li, .outcomes li:nth-child(odd) { padding-right: 0; }
}

/* Split block */
.split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li {
  position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

/* Team preview strip */
.faces { display: flex; gap: 16px; }
.faces figure { margin: 0; flex: 1; }
.faces img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.faces figcaption { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-top: 8px; line-height: 1.3; }
.faces figcaption span { display: block; font-weight: 500; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 56px; padding-bottom: 56px;
}
.cta-band h2 { color: var(--white); margin: 0; max-width: 22ch; }

/* ---------- Team page ---------- */
.team { display: grid; gap: 56px; }
.member {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.member:last-child { border-bottom: 0; padding-bottom: 0; }
.member img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.member h2 { margin-bottom: 4px; font-size: clamp(1.5rem, 3vw, 2rem); }
.member .role { color: var(--green-text); font-weight: 700; margin-bottom: 1.2em; }
.member h2 + p:not(.role) { margin-top: 14px; }
@media (max-width: 700px) {
  .member { grid-template-columns: 1fr; }
  .member img { max-width: 280px; }
}

/* Draft-only placeholder styling. Remove .placeholder blocks before launch. */
.placeholder {
  border: 2px dashed #B7C2D3; border-radius: var(--radius);
  padding: 18px 20px; color: var(--muted); background: #F7F9FB;
  font-size: 0.95rem;
}
.placeholder strong { color: var(--navy); }

/* ---------- Services page ---------- */
.service-group { margin-bottom: 56px; }
.service-group h2 { font-size: 1.5rem; padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 0; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.service-list .name { font-weight: 700; color: var(--navy); }
.service-list .desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; margin: 0; }
.service-list .price { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.form .opt { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 500 1rem/1.4 "Montserrat", sans-serif; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #B7C2D3; border-radius: 8px; background: var(--white);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(108,194,74,0.45);
}
.form .hp { position: absolute; left: -5000px; }
.form button { justify-self: start; }

.direct { background: var(--mist); border-radius: var(--radius); padding: 28px; }
.direct h2 { font-size: 1.3rem; }
.direct ul { list-style: none; padding: 0; margin: 0; }
.direct li { padding: 14px 0; border-top: 1px solid var(--line); }
.direct li:first-child { border-top: 0; padding-top: 4px; }
.direct .who { font-weight: 700; color: var(--navy); display: block; }
.direct a { word-break: break-word; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D3E2; font-size: 0.92rem; border-top: 6px solid var(--green); }
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-top: 56px; padding-bottom: 32px;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h2 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E4EAF3; text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); text-decoration: underline; }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px; margin-top: 8px; font-size: 0.82rem; color: #9FB0C8; max-width: none;
}
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 480px) {
  .direct { padding: 22px 18px; }
  .direct a { font-size: 0.8rem; word-break: normal; overflow-wrap: anywhere; }
}

/* Services grid */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 64px; }
.svc { border-top: 3px solid var(--navy); padding-top: 22px; }
.svc h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: 4px; }
.svc .tagline { color: var(--green-text); font-weight: 700; margin-bottom: 14px; }
.svc .checklist li { font-weight: 500; font-size: 0.98rem; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Contact details */
.direct .title { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 4px; }
.direct li a { display: block; }
.direct address { font-style: normal; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* Photo backgrounds for the home hero and page headers.
   To change a photo, swap the file name in the matching .photo-* rule below. */
.has-photo {
  background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(0,31,74,0.94) 0%, rgba(0,31,74,0.80) 45%, rgba(0,31,74,0.35) 100%), var(--photo);
  background-size: cover;
  background-position: center;
}
.photo-home { --photo: url("../img/plant-floor.jpg"); }
.photo-services { --photo: url("../img/plant-line.jpg"); }
.photo-contact { --photo: url("../img/clinician-desk.jpg"); }
.hero.has-photo::after { display: none; }
@media (max-width: 720px) {
  .has-photo { background-image: linear-gradient(rgba(0,31,74,0.84), rgba(0,31,74,0.84)), var(--photo); }
}

/* Photo beside text */
.split-photo { grid-template-columns: 1fr 1.1fr; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) { .split-photo { grid-template-columns: 1fr; } .photo img { aspect-ratio: 4 / 3; object-position: center 30%; } }
