/* ============================================================
   MedCapital Group — shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:        #0F2A2E;  /* deepest teal, near-black */
  --ink-2:      #0B2024;  /* footer / darkest */
  --petrol:     #18454A;
  --teal:       #2E6B6B;
  --brass:      #B0855A;  /* accent — used with restraint */
  --brass-soft: #CCA67E;
  --paper:      #FAF7F1;  /* warm near-white */
  --paper-2:    #F1ECE2;  /* tinted band */
  --line:       #E4DCCD;  /* hairline on paper */
  --line-dark:  rgba(204, 166, 126, 0.22); /* hairline on ink */
  --muted:      #586667;  /* body on paper */
  --muted-dark: #9FB1AF;  /* body on ink */
  --on-dark:    #EFEAE0;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a { color: inherit; }

::selection { background: var(--brass); color: #fff; }

/* ---- shared type helpers ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--brass-soft); }
.nav__right { display: flex; align-items: center; gap: 22px; }

.lang {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  overflow: hidden;
}
.lang a {
  padding: 6px 13px; text-decoration: none;
  color: var(--muted-dark); transition: color .2s, background .2s;
}
.lang a.is-active { background: var(--brass); color: #fff; }
.lang a:not(.is-active):hover { color: var(--on-dark); }

.nav__cta {
  font-size: 14px; font-weight: 600;
  color: var(--on-dark); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav__cta:hover { border-color: var(--brass); }

@media (max-width: 560px) {
  .nav__cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px);
}
/* faint radial atmosphere */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 82% 8%, rgba(176,133,90,0.16), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(46,107,107,0.20), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--brass-soft); }
.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted-dark);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--brass { background: var(--brass); color: #fff; }
.btn--brass:hover { background: var(--brass-soft); }
.btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.btn--ghost:hover { border-color: var(--brass); color: #fff; }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--petrol); }

/* ---- lifecycle (signature element) ---- */
.lifecycle {
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-dark);
}
.lifecycle__label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-dark); margin-bottom: 26px;
}
.lifecycle__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.stage {
  position: relative;
  padding-right: 18px;
}
.stage::before { /* connector line */
  content: ""; position: absolute;
  left: 13px; right: 0; top: 12px; height: 1px;
  background: linear-gradient(90deg, var(--brass) 0 55%, var(--line-dark) 55%);
}
.stage:last-child::before { display: none; }
.stage__dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--brass);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--brass-soft);
  position: relative; z-index: 1;
  margin-bottom: 14px;
}
.stage__name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--on-dark);
}

@media (max-width: 720px) {
  .lifecycle__track { grid-template-columns: 1fr 1fr 1fr; gap: 28px 0; }
  .stage:nth-child(3)::before { display: none; }
}
@media (max-width: 420px) {
  .lifecycle__track { grid-template-columns: 1fr 1fr; }
  .stage:nth-child(2)::before { display: none; }
}

/* ============================================================
   CONCEPT band
   ============================================================ */
.concept {
  padding: clamp(64px, 9vw, 110px) 0;
  border-bottom: 1px solid var(--line);
}
.concept .eyebrow { margin-bottom: 28px; }
.concept p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.concept p b { color: var(--brass); font-weight: 500; font-style: italic; }

/* ============================================================
   SECTION heading shared
   ============================================================ */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.015em;
}
.section__count { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }

/* ---- core services grid ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 2.6vw, 32px);
  transition: background .25s;
}
.card:hover { background: #fff; }
.card__top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.card__rule { width: 26px; height: 2px; background: var(--brass); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.62; }

@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---- additional capabilities ---- */
.caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 6vw, 80px);
}
.cap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cap__name {
  font-family: var(--font-display);
  font-weight: 500; font-size: 19px;
  display: flex; align-items: center; gap: 12px;
}
.cap__name::before {
  content: ""; width: 7px; height: 7px; flex: none;
  background: var(--brass); transform: rotate(45deg);
}
.cap p { color: var(--muted); font-size: 15px; padding-left: 19px; }

@media (max-width: 700px) { .caps { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 120% at 50% 0%, rgba(176,133,90,0.18), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta .eyebrow { margin-bottom: 20px; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 18ch; margin: 0 auto 34px;
}
.cta h2 em { font-style: italic; color: var(--brass-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-2);
  color: var(--muted-dark);
  padding: 44px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 14px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 18px; color: var(--on-dark);
}
.footer__brand span { color: var(--brass-soft); }
.footer a { color: var(--muted-dark); text-decoration: none; }
.footer a:hover { color: var(--brass-soft); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   Scroll reveal (progressive enhancement)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* visible keyboard focus everywhere */
a:focus-visible, .btn:focus-visible, .lang a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}
