/* ===========================================================
   ah-strategies.com — Ambulatory Healthcare Strategies, LLC
   Retainer-based ASC regulatory / accreditation oversight.
   Clinical blue + teal theme (family member of jgoehle.com / egd-consulting.com)
   NOTE: never call AHS "consultants" in retainer copy — "part of your team".
   =========================================================== */

:root {
  --navy:     #241860;
  --navy-2:   #34277f;
  --teal:     #5346b0;
  --teal-d:   #3d3193;
  --teal-lt:  #eeecfa;
  --green:    #2e9e6b;
  --green-lt: #e8f4ee;
  --amber:    #e0a30b;
  --red:      #d0453b;
  --ink:      #1d2733;
  --muted:    #566173;
  --line:     #e3e8ee;
  --bg:       #f5f9fa;
  --white:    #ffffff;
  --radius:   10px;
  --shadow:   0 6px 24px rgba(12, 58, 90, 0.10);
  --shadow-sm: 0 2px 8px rgba(12, 58, 90, 0.08);
  --max:      1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

a { color: var(--teal-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-d);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 0.6em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.98rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-d); box-shadow: var(--shadow-sm); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-2); }
.btn--go { background: var(--green); color: #fff; }
.btn--go:hover { background: #268a5c; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn--onhero { background: transparent; color:#fff; border-color: rgba(255,255,255,.55); }
.btn--onhero:hover { border-color:#fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 46px; height: 46px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  border: 2px solid var(--teal);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.brand__tag { font-size: 0.72rem; color: var(--muted); letter-spacing: .03em; }

.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 6px; }
.nav-links a:hover { background: var(--teal-lt); text-decoration: none; color: var(--navy); }
.nav-links a.active { color: var(--teal-d); }
.nav-links a.nav-cta { background: var(--navy); color:#fff; }
.nav-links a.nav-cta:hover { background: var(--navy-2); color:#fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; font-size: 1.5rem; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 58%, var(--teal-d) 140%); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 82% 18%, rgba(83,70,176,.35), transparent 55%); pointer-events:none; }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: 2.9rem; max-width: 17ch; }
.hero .lead { color: #dcd8f0; }
.hero .eyebrow { color: #b9b0ea; }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }

/* Hero pillars panel */
.hero-pillars { display: grid; gap: 14px; }
.hero-pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.hero-pillar__icon { font-size: 1.4rem; line-height: 1; color: #b9b0ea; flex: none; margin-top: 2px; }
.hero-pillar h3 { color: #fff; font-size: 1.05rem; margin: 0 0 2px; }
.hero-pillar p { color: #cdc7e8; font-size: 0.92rem; margin: 0; }

/* accreditation chips */
.chips { display:flex; flex-wrap:wrap; gap:9px; margin-top: 26px; align-items:center; }
.chips .chips__label { font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#c9c3e6; }
.chip { background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); padding:5px 12px; border-radius:20px; font-size:.8rem; font-weight:600; color:#eaf4f8; }

/* ---------- Trust band ---------- */
.band { background: var(--teal-lt); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat__num { font-family: Georgia, serif; font-size: 2.2rem; color: var(--navy); font-weight: 700; }
.stat__label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card h3 { display: flex; align-items: center; gap: 10px; margin-top:0; }
.card__icon { color: var(--teal); font-size: 1.4rem; }

/* service cards with accent rail */
.serv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.serv { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.serv::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--teal); }
.serv:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.serv h3 { margin: 0 0 .15em; }
.serv .serv__tag { display:block; color: var(--teal-d); font-weight: 700; font-size: .88rem; margin-bottom: .6em; }
.serv p { color: var(--muted); font-size: .96rem; margin: 0; }

/* feature list */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 32px; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; background: var(--green-lt); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; }

/* who-we-help dark panel */
.panel-dark { background: var(--navy); color:#fff; border-radius: 16px; padding: 44px; }
.panel-dark h2 { color:#fff; }
.panel-dark .lead { color:#dcd8f0; }
.panel-dark .features li { color:#d7e6ee; }
.panel-dark .features li::before { background: rgba(46,158,107,.25); color:#7be0ac; }

/* testimonials */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote p { font-style: italic; color: var(--ink); font-size: 1.05rem; }
.quote .who { font-weight: 700; color: var(--teal-d); font-size: .9rem; }

/* author block */
.author-photo { border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 18px; }
.author-photo--round { border-radius: 50%; width: 210px; height: 210px; object-fit: cover; margin: 0 auto 18px; border: 5px solid #fff; box-shadow: var(--shadow); }

/* ---------- Page head ---------- */
.pagehead { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow:hidden; }
.pagehead::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(83,70,176,.30), transparent 55%); }
.pagehead .container { position: relative; }
.pagehead h1 { color: #fff; }
.pagehead p { color: #dcd8f0; margin: 0; }
.pagehead .eyebrow { color: #b9b0ea; }

/* ---------- Contact / forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--white); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(83,70,176,.15); }

/* ---------- Assessment quiz ---------- */
.quiz { max-width: 780px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.qitem { padding: 15px 0; border-bottom: 1px solid var(--line); }
.qitem:last-of-type { border-bottom: none; }
.qitem > p { font-weight: 700; color: var(--navy); margin: 0 0 10px; font-family: -apple-system, sans-serif; font-size: .98rem; }
.opts { display: flex; gap: 10px; flex-wrap: wrap; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-block; padding: 7px 16px; border: 1.5px solid var(--line); border-radius: 22px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: .15s; }
.opts input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.opts input:focus-visible + span { box-shadow: 0 0 0 3px rgba(83,70,176,.30); }
.result { display: none; margin-top: 20px; padding: 26px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.result.show { display: block; }
.score-num { font-family: Georgia, serif; font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.meter { height: 14px; border-radius: 10px; background: #e6edf2; overflow: hidden; margin: 16px 0; }
.meter > i { display: block; height: 100%; width: 0; transition: width .8s ease; }
.note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c6d8e0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: -apple-system, sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #c6d8e0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #90b0c0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero__grid, .grid-2, .grid-3, .serv-grid, .footer-grid, .stats { grid-template-columns: 1fr; }
  .panel-dark { padding: 30px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 6px; }
  .nav-toggle { display: block; }
  .footer-bottom { flex-direction: column; }
}

/* clickable service cards */
a.serv { color: inherit; text-decoration: none; display: block; }
a.serv:hover { text-decoration: none; }
a.serv .more { display:inline-block; margin-top:14px; color: var(--teal-d); font-weight:700; font-size:.9rem; }
a.serv:hover .more { text-decoration: underline; }

/* real logo in header */
.brand-logo { height: 74px; width: auto; display: block; }
@media (max-width:860px){ .brand-logo{ height: 50px; } }

/* ---------- Engagement model badges ---------- */
.eng { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:5px 12px; border-radius:999px; }
.eng em { font-style:normal; text-transform:none; font-weight:600; opacity:.85; }
.eng-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
/* on light card backgrounds */
.eng--retainer { background:var(--teal-lt); color:var(--navy); border:1px solid #d6d0f2; }
.eng--project  { background:var(--green-lt); color:#1f6f4a; border:1px solid #bfe3cf; }
.eng--both     { background:#eceafa; color:var(--teal-d); border:1px solid #d6d0f2; }
/* on dark pageheads/panels */
.pagehead .eng--retainer, .panel-dark .eng--retainer { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); color:#fff; }
.pagehead .eng--project,  .panel-dark .eng--project  { background:var(--green); border:1px solid var(--green); color:#fff; }
.pagehead .eng--both,     .panel-dark .eng--both     { background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.4); color:#fff; }

/* ---------- Service filter ---------- */
.svc-filter { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:0 0 34px; }
.svc-filter button { padding:9px 20px; border-radius:999px; border:1.5px solid var(--line); background:#fff; font-weight:700; cursor:pointer; color:var(--muted); font-family:inherit; font-size:.92rem; transition:.15s; }
.svc-filter button:hover { border-color:var(--teal); color:var(--teal-d); }
.svc-filter button.active { background:var(--navy); color:#fff; border-color:var(--navy); }
.serv[hidden] { display:none; }
.serv .eng-row { margin-top:14px; }

/* ---------- How we work (engagement) cards ---------- */
.work-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.work-card { border:1px solid var(--line); border-radius:var(--radius); padding:30px; background:#fff; box-shadow:var(--shadow-sm); position:relative; }
.work-card--rec { border:2px solid var(--teal); }
.work-card__flag { position:absolute; top:-12px; left:24px; background:var(--teal); color:#fff; font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 12px; border-radius:999px; }
.work-card h3 { margin-top:4px; }
@media (max-width:860px){ .work-grid { grid-template-columns:1fr; } }

/* ---------- Urgent / rapid-response ---------- */
.alert { background:#fff7e6; border:1px solid #f0dca6; border-left:5px solid var(--amber); border-radius:10px; padding:22px 24px; }
.alert h3 { margin-top:0; }
/* homepage urgent band */
.urgent-band { background:linear-gradient(120deg,#3a1330,#5a1836); color:#fff; border-radius:16px; padding:34px 40px; display:grid; grid-template-columns:1.4fr 1fr; gap:28px; align-items:center; }
.urgent-band h2 { color:#fff; margin:0 0 8px; }
.urgent-band p { color:#f4d9e4; margin:0; }
.urgent-band .btn-wrap { text-align:right; }
.urgent-band__kicker { text-transform:uppercase; letter-spacing:.1em; font-size:.74rem; font-weight:800; color:#ffb3c8; margin-bottom:8px; }
.btn--urgent { background:#e23b5a; color:#fff; }
.btn--urgent:hover { background:#c92f4c; }
@media (max-width:860px){ .urgent-band{ grid-template-columns:1fr; } .urgent-band .btn-wrap{ text-align:left; } }
/* situation checklist */
.sit-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 26px; }
.sit-grid li { list-style:none; position:relative; padding-left:30px; color:var(--ink); }
.sit-grid li::before { content:"\26A0"; position:absolute; left:0; top:0; color:var(--amber); }
@media (max-width:640px){ .sit-grid{ grid-template-columns:1fr; } }

/* urgent nav button */
.nav-links a.nav-urgent { background:#e23b5a; color:#fff; }
.nav-links a.nav-urgent:hover { background:#c92f4c; color:#fff; }

/* assessment category headings */
.quiz-cat { font-family:Georgia,serif; color:var(--navy); font-size:1.12rem; font-weight:700; margin:24px 0 2px; padding-top:20px; border-top:2px solid var(--teal-lt); }
.quiz-cat:first-child { border-top:none; padding-top:0; margin-top:0; }

/* ---------- Podcast band ---------- */
.podcast-band { background:linear-gradient(120deg,#3a1d5c,#5a2b86); color:#fff; border-radius:16px; padding:26px 34px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.podcast-band .pb-left { display:flex; align-items:center; gap:18px; }
.podcast-band .pb-ic { font-size:2.6rem; line-height:1; flex:none; }
.podcast-band .pb-kicker { text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-weight:800; color:#d9c2f0; margin-bottom:3px; }
.podcast-band h3 { color:#fff; margin:0 0 3px; font-size:1.3rem; }
.podcast-band p { color:#e6d8f5; margin:0; max-width:60ch; font-size:.98rem; }
.btn--podcast { background:#fff; color:#4a2178; }
.btn--podcast:hover { background:#f0e8fa; color:#4a2178; }
@media(max-width:760px){ .podcast-band{ flex-direction:column; align-items:flex-start; } }
