/* =========================================================
   HEAL CONSULTING — Design System
   Healthcare Excellence & Learning
   Palette: cream / espresso / gold / rust
   ========================================================= */

:root {
  /* Color tokens */
  --cream:        #FAF6ED;
  --cream-deep:   #F0E5CF;
  --espresso:     #2E1B0F;
  --espresso-soft:#3F2918;
  --brown:        #6B4226;
  --gold:         #C9A24B;
  --gold-bright:  #E2C172;
  --rust:         #A8501F;
  --rust-soft:    #C4683A;
  --ink:          #2B2420;
  --ink-muted:    #7A6A5A;
  --line:         rgba(46, 27, 15, 0.12);
  --line-light:   rgba(250, 246, 237, 0.16);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-width: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.18rem;
  color: var(--ink-muted);
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  display: block;
  margin-bottom: 0.9em;
}

.eyebrow--light { color: var(--gold-bright); }

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.logo span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--rust);
  font-weight: 600;
  text-transform: uppercase;
  align-self: center;
}

.logo:hover { text-decoration: none; }

.logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: 700;
  background:
    repeating-conic-gradient(var(--cream) 0deg 8deg, transparent 8deg 18deg);
  position: relative;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

nav.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--rust); }

.nav-cta {
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem !important;
}
.nav-cta:hover { background: var(--rust); text-decoration: none; }

/* mobile nav toggle (kept simple, no JS needed for small site) */
.nav-toggle { display: none; }

@media (max-width: 820px) {
  nav.main-nav ul { gap: 16px; }
  nav.main-nav a:not(.nav-cta) { display: none; }
  .logo span { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
}
.btn-primary:hover { background: var(--espresso); text-decoration: none; }

.btn-secondary {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-secondary:hover { background: var(--espresso); color: var(--cream); text-decoration: none; }

.btn-ghost-light {
  background: transparent;
  border-color: var(--line-light);
  color: var(--cream);
}
.btn-ghost-light:hover { background: var(--line-light); text-decoration: none; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* =========================================================
   SEAL — signature element
   A notched circular badge echoing NABH / NABL accreditation
   stamps. Built entirely in CSS.
   ========================================================= */

.seal {
  --seal-size: 220px;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background:
    repeating-conic-gradient(
      var(--gold) 0deg 4deg,
      transparent 4deg 12deg
    );
}

.seal::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--cream);
}

.seal::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px dashed var(--rust);
  opacity: 0.55;
}

.seal-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--espresso);
  padding: 0 14%;
}

.seal-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--espresso);
}

.seal-inner em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 6px;
  font-weight: 600;
}

/* Small seal used as bullet / numeral marker */
.seal-mark {
  --seal-size: 54px;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--gold) 0deg 6deg, transparent 6deg 16deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.seal-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--espresso);
}
.seal-mark span {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.seal-mark--light {
  background: repeating-conic-gradient(var(--gold-bright) 0deg 6deg, transparent 6deg 16deg);
}
.seal-mark--light::before { background: var(--cream); }
.seal-mark--light span { color: var(--rust); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 76px 0 88px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-seal-wrap {
  display: flex;
  justify-content: center;
}

.hero .seal { --seal-size: 280px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-seal-wrap { order: -1; }
  .hero .seal { --seal-size: 200px; }
}

/* page hero (sub-pages) */
.page-hero {
  background: var(--espresso);
  color: var(--cream);
  padding: 64px 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero h1 { color: var(--cream); }
.page-hero .lede { color: rgba(250,246,237,0.78); }
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--gold-bright); }

/* =========================================================
   SECTIONS
   ========================================================= */

section { padding: 80px 0; }
.section-tight { padding: 56px 0; }

.section-alt { background: var(--cream-deep); }

.section-dark {
  background: var(--espresso);
  color: rgba(250,246,237,0.92);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .lede { color: rgba(250,246,237,0.7); }

.section-head {
  max-width: 760px;
  margin: 0 0 48px;
}
.section-head.center { margin: 0 auto 48px; text-align: center; }

/* =========================================================
   STATS STRIP
   ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-bright);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,246,237,0.65);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* =========================================================
   CARD GRID — services
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card .seal-mark { margin-bottom: 6px; }

.card h3 { margin-bottom: 4px; }

.card p { color: var(--ink-muted); font-size: 0.96rem; }

.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rust);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   STEPPER (Our Approach) — genuine sequence, numbering justified
   ========================================================= */

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: none; }

.step .step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rust);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}

.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--ink-muted); margin: 0; }

@media (max-width: 880px) {
  .stepper { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .stepper { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}

/* Stepper variant for use on dark background */
.section-dark .stepper { border-color: var(--line-light); }
.section-dark .step { border-color: var(--line-light); }
.section-dark .step p { color: rgba(250,246,237,0.65); }

/* =========================================================
   PROCESS LIST — for approach sequences with 5+ steps
   ========================================================= */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.process-list li .seal-mark { --seal-size: 42px; flex-shrink: 0; }
.process-list li .seal-mark span { font-size: 0.75rem; }

.process-list li h4 { margin: 0; }

.section-dark .process-list li {
  border-color: var(--line-light);
  background: var(--espresso-soft);
}

/* =========================================================
   LISTS — checklist style (echoes brochure checkmarks)
   ========================================================= */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 3px;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(135deg, transparent 45%, var(--rust) 46%, var(--rust) 54%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--rust) 46%, var(--rust) 54%, transparent 55%);
  background-size: 60% 60%, 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.check-list--light li::before { border-color: var(--gold-bright); }

.check-list.two-col {
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}
@media (max-width: 700px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* =========================================================
   CLIENTELE
   ========================================================= */

.clientele-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
}
@media (max-width: 760px) { .clientele-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .clientele-grid { grid-template-columns: 1fr; } }

.clientele-grid li {
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
  color: rgba(250,246,237,0.88);
}
.clientele-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-bright);
  font-weight: 700;
}

/* Accreditation tag row */
.accred-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.accred-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 9px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
}

/* =========================================================
   SERVICE DETAIL PAGE LAYOUT
   ========================================================= */

.service-block { margin-bottom: 56px; }
.service-block:last-child { margin-bottom: 0; }

.service-block h2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}
@media (max-width: 760px) { .scope-grid { grid-template-columns: 1fr; } }

.scope-item h4 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.scope-item h4 .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--rust);
}

.deliverables-box {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--espresso);
  border-left: 3px solid var(--gold);
}

/* =========================================================
   SERVICES HUB
   ========================================================= */

.hub-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hub-card-head {
  background: var(--espresso);
  color: var(--cream);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hub-card-head h3 { color: var(--cream); margin: 0; }

.hub-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.hub-card-body p { color: var(--ink-muted); font-size: 0.95rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
  background: var(--rust);
  color: var(--cream);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 12px; }
.cta-banner p { color: rgba(250,246,237,0.85); max-width: 560px; margin: 0 auto; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner .btn-primary { background: var(--espresso); }
.cta-banner .btn-primary:hover { background: var(--cream); color: var(--espresso); }
.cta-banner .btn-secondary { border-color: var(--cream); color: var(--cream); }
.cta-banner .btn-secondary:hover { background: var(--cream); color: var(--rust); }

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-detail .seal-mark { --seal-size: 44px; }
.contact-detail .seal-mark span { font-size: 0.7rem; }
.contact-detail h4 { margin-bottom: 4px; }
.contact-detail p { margin: 0; color: var(--ink-muted); }
.contact-detail a { color: var(--ink); font-weight: 600; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-weight: 700;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-field textarea { min-height: 120px; resize: vertical; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */

footer.site-footer {
  background: var(--espresso);
  color: rgba(250,246,237,0.7);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: rgba(250,246,237,0.7); }
.footer-grid a:hover { color: var(--gold-bright); }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(250,246,237,0.45);
}

/* =========================================================
   UTILITIES
   ========================================================= */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
