/* ==========================================================================
   Tritherapy Healthcare — Site styles
   ========================================================================== */
:root {
  --navy:       #0E1E2D;
  --navy-2:     #122637;
  --navy-3:     #0a1622;
  --cream:      #F4ECD2;
  --cream-2:    #E8E1C5;
  --cream-3:    #d8d1b6;
  --gold:       #C99A2B;
  --gold-2:     #B5872A;
  --orange:     #E04A2B;
  --red:        #983221;
  --line:       rgba(244, 236, 210, 0.14);
  --line-soft:  rgba(244, 236, 210, 0.08);
  --shadow:     0 18px 60px rgba(0, 0, 0, 0.35);

  --serif: "Cormorant Garamond", "Playfair Display", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --header-h:  92px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
/* Industry-standard long-scroll rhythm — ~110px each side between sections,
   100vh hero so the visitor sees just the hero on landing. */
.section       { padding: 110px 0; }
.section--tight{ padding: 80px 0;  }
.section--tall { padding: 120px 0; }
.text-center   { text-align: center; }

/* ---------- top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--navy-3);
}
.site-nav__brand img { height: 36px; width: auto; }
.site-nav__links {
  display: flex; align-items: center; gap: 40px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav__links a {
  color: var(--cream);
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav__links a:hover,
.site-nav__links a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav__cta {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.site-nav__cta:hover { background: var(--gold); color: var(--navy); }
.site-nav__cta--ghost { border-color: var(--line); color: var(--cream); }
.site-nav__cta--ghost:hover { background: transparent; border-color: var(--cream); color: var(--cream); }
.site-nav__pair { display: inline-flex; gap: 10px; align-items: center; }

section[id] { scroll-margin-top: 88px; }

.site-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}
@media (max-width: 880px) {
  .site-nav__inner { padding: 14px 20px; gap: 12px; }
  .site-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-3); border-bottom: 1px solid var(--line-soft);
    padding: 8px 20px 16px; display: none;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav__links li:last-child { border-bottom: none; }
  .site-nav__toggle { display: inline-block; }
  .site-nav__cta { padding: 7px 16px; font-size: 13px; }
}

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  padding: 60px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero > .container { width: 100%; }
/* The brand sits in a bordered dark card — matches the corporate brand
   treatment, with breathing room before the headline. */
.hero__brand {
  display: inline-block;
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 56px;
  margin: 0 auto 96px;
}
.hero__brand img {
  width: min(440px, 80vw);
  margin: 0 auto;
}
.hero__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--cream);
  margin: 0 0 28px;
}
.hero__headline em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--cream-2);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.55;
}
.hero__ctas {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
@media (max-width: 880px) {
  .hero { min-height: 70vh; padding: 40px 0; }
  .section, .section--tall { padding: 80px 0; }
  .hero__brand { padding: 18px 32px; margin-bottom: 56px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--gold    { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--line); }
.btn--outline:hover { border-color: var(--cream); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 36px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 56px; height: 1px; background: var(--gold); display: inline-block;
}
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1;
  text-align: center; margin: 0 0 24px; color: var(--cream);
}
.section__lede {
  text-align: center; max-width: 880px; margin: 0 auto 64px;
  color: var(--cream-2); font-size: 17px; line-height: 1.6;
}

/* ---------- "What we do" cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--cream); color: var(--navy);
  border-radius: 14px;
  padding: 56px 32px 64px;
  min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; top: -2px; left: 24px; right: 24px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.card__num {
  font-family: var(--serif); font-style: italic; color: var(--gold);
  font-size: 56px; line-height: 1; margin: 0 0 38px;
}
.card__title {
  font-family: var(--serif); font-weight: 500; font-size: 28px;
  margin: 0; color: var(--navy); line-height: 1.2;
}
.card__body { margin-top: 16px; color: #4a5867; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 880px) {
  .cards-3 { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 44px 24px 48px; }
}

/* ---------- approach ---------- */
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line-soft); padding-top: 56px;
}
.principle { padding: 8px 36px; border-right: 1px solid var(--line-soft); }
.principle:last-child { border-right: none; }
.principle__title {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  margin: 0 0 18px; color: var(--cream); text-align: center;
}
.principle__body {
  color: var(--cream-2); font-size: 15px; line-height: 1.6; text-align: center;
}
@media (max-width: 880px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 28px 0; }
  .principle:last-child { border-bottom: none; }
}

/* ---------- the group: org chart ---------- */
.org { margin-top: 24px; }
.org__parent {
  background: var(--cream); color: var(--navy);
  border-radius: 14px; padding: 28px 36px;
  text-align: center; font-family: var(--serif); font-size: 32px; font-weight: 500;
  position: relative; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow);
}
.org__parent::before {
  content: ""; position: absolute; top: -2px; left: 18px; right: 18px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.org__connectors {
  position: relative; height: 50px; margin: 0 auto;
  width: 100%; max-width: 1100px;
}
.org__connectors::before {
  content: ""; position: absolute; top: 0; bottom: 24px; left: 50%;
  width: 1px; background: var(--line);
}
.org__connectors::after {
  content: ""; position: absolute; bottom: 24px; left: 12.5%; right: 12.5%;
  height: 1px; background: var(--line);
}
.org__verticals {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative;
}
.vertical {
  background: var(--cream); color: var(--navy); border-radius: 14px;
  padding: 24px 22px; display: flex; flex-direction: column;
  min-height: 320px; box-shadow: var(--shadow); position: relative;
}
.vertical__tag {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin: 4px 0 10px; font-weight: 600;
}
.vertical__title {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  text-align: center; margin: 0 0 16px; color: var(--navy); line-height: 1.2;
}
.vertical__body {
  font-size: 14px; color: #4a5867; text-align: center; line-height: 1.55; flex: 1;
}
.vertical__foot {
  margin-top: 22px; border-top: 1px dashed rgba(14, 30, 45, 0.15);
  padding-top: 14px; text-align: center;
}
.vertical__foot-title { font-family: var(--serif); font-size: 17px; color: var(--navy); margin: 0 0 4px; }
.vertical__foot-tag { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: #7a8693; }
@media (max-width: 980px) { .org__verticals { grid-template-columns: repeat(2, 1fr); } .org__connectors { display: none; } }
@media (max-width: 560px) { .org__verticals { grid-template-columns: 1fr; } .org__parent { font-size: 24px; padding: 22px 24px; } }

/* ---------- growth ---------- */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; }
.route { text-align: center; padding: 0 24px; }
.route__letter { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 84px; line-height: 1; margin: 0 0 24px; }
.route__title { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 0 0 18px; color: var(--cream); }
.route__body { color: var(--cream-2); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- standards ---------- */
.standards { text-align: center; max-width: 1000px; margin: 0 auto; }
.standards__line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3;
  color: var(--cream); margin: 0;
}
.standards__sep { width: 56px; height: 1px; background: var(--gold); margin: 56px auto; }

/* ---------- contact / form ---------- */
.contact-intro { text-align: center; max-width: 880px; margin: 0 auto 64px; color: var(--cream-2); font-size: 17px; line-height: 1.6; }
.form { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.form__row { grid-column: 1 / -1; }
.form__field { display: flex; flex-direction: column; gap: 10px; }
.form__field label {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream-2);
}
.form__field input,
.form__field textarea,
.form__field select {
  background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--cream); font-family: var(--sans); font-size: 15px;
  padding: 14px 16px; outline: none;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.form__field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
  cursor: pointer;
}
.form__field select:disabled { opacity: 0.45; cursor: not-allowed; }
.form__field select option { background: var(--navy-2); color: var(--cream); }
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus { border-color: var(--gold); background: #14283c; }
.form__field textarea { min-height: 130px; resize: vertical; }
.form__field--hidden { display: none; }
.form__submit {
  grid-column: 1 / -1;
  display: flex; justify-content: center; margin-top: 12px;
}
.form__submit .btn[disabled],
.form__submit .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; pointer-events: none;
}
.form__notice {
  grid-column: 1 / -1; text-align: center; margin-top: 18px;
  padding: 14px 18px; border-radius: 10px;
  font-size: 14px; line-height: 1.5; color: var(--gold);
  border: 1px solid transparent; background: transparent;
  display: none;
  opacity: 1;
  transition: opacity 1s ease;
}
.form__notice.is-shown { display: block; }
.form__notice.is-fading { opacity: 0; }
.form__notice.is-success {
  color: var(--cream);
  background: rgba(201, 154, 43, 0.10);
  border-color: rgba(201, 154, 43, 0.45);
}
.form__notice.is-error {
  color: #FCD7C7;
  background: rgba(196, 84, 60, 0.12);
  border-color: rgba(196, 84, 60, 0.55);
}
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 22px 0; background: var(--navy); }
.site-foot__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  text-align: center; font-size: 12px; letter-spacing: 0.32em;
  color: var(--cream-3); text-transform: uppercase;
}

/* ---------- corporate / about footer ---------- */
.corporate { text-align: center; padding: 64px 0 80px; }
.corporate__brand {
  display: inline-block; background: var(--navy-3); border: 1px solid var(--line);
  border-radius: 6px; padding: 28px 40px; margin: 0 auto 56px;
}
.corporate__brand img { width: min(440px, 70vw); margin: 0 auto; }
.corporate__head {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 60px);
  font-weight: 500; margin: 0 0 8px; color: var(--cream);
}
.corporate__head em { font-style: italic; color: var(--gold); font-weight: 500; }
.corporate__details {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: end;
  margin-top: 80px; padding: 32px 0 0; border-top: 1px solid var(--line-soft); text-align: left;
}
.corporate__details .col-left { text-align: left; }
.corporate__details .col-right { text-align: right; }
.corporate__details h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 6px; font-size: 22px; color: var(--cream); }
.corporate__details p { margin: 0; color: var(--cream-2); font-size: 14.5px; }
.corporate__details a { color: var(--gold); }
.corporate__details a:hover { color: var(--gold-2); }
@media (max-width: 760px) {
  .corporate__details { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .corporate__details .col-left, .corporate__details .col-right { text-align: center; }
}

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