/* =========================================================
   ROOT COLORS — keep these in sync with the brand palette.
   ========================================================= */
:root {
  --ink: #070707;
  --panel: #111113;
  --panel-soft: #17171b;
  --pink: #f05d9d;
  --pink-light: #ff9bc6;
  --line: rgba(255, 255, 255, .13);

  /* Additional tokens layered on top of the palette above — safe to
     adjust independently, the five colors above are the source of truth. */
  --text: #ffffff;
  --text-muted: #d4d4d8;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  --on-pink: #080808;
  --pink-tint: rgba(240, 93, 157, .1);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: .75rem;
  --shell-width: 1180px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  width: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

h1, h2, h3, p, ul, form { margin: 0; }

ul { padding: 0; list-style: none; }

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

button, input, textarea { font-family: inherit; }

.hidden { display: none !important; }

/* =========================================================
   LAYOUT / UTILITY
   ========================================================= */
.app-wrapper { width: 100%; overflow: hidden; }

.section-shell {
  width: min(var(--shell-width), calc(100% - 3rem));
  margin: 0 auto;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.pink-line {
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.ring {
  position: absolute;
  border: 1px solid rgba(240, 93, 157, .45);
  border-radius: 999px;
  pointer-events: none;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--pink);
}

.section-title {
  margin-top: 1rem;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.15;
  color: var(--text);
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--pink-tint);
  color: var(--pink-light);
  flex-shrink: 0;
}

.icon-badge svg { width: 1.25rem; height: 1.25rem; }

.icon-badge-img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* Only for PNG icons still exported black — recolors them to match the
   pink SVG/pre-colored-PNG icon set. Not needed once a PNG is exported
   pre-colored at #ff9bc6 (e.g. images/radiology.png). */
.icon-recolor {
  filter: brightness(0) saturate(100%) invert(70%) sepia(24%) saturate(1656%) hue-rotate(295deg) brightness(101%) contrast(101%);
}

.reveal { animation: rise .7s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .9rem 1.6rem;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.btn-sm { padding: .6rem 1.1rem; font-size: .8rem; }

.btn-pink {
  background: var(--pink);
  color: var(--on-pink);
  box-shadow: 0 0 0 1px rgba(255, 155, 198, .2), 0 10px 30px rgba(240, 93, 157, .22);
}

.btn-pink:hover {
  box-shadow: 0 0 25px rgba(240, 93, 157, .42);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .3);
}

.btn-outline:hover {
  border-color: var(--pink-light);
  color: var(--pink-light);
}

.btn-outline-pink {
  background: transparent;
  color: #ffe4ef;
  border: 1px solid rgba(255, 155, 198, .6);
}

.btn-outline-pink:hover {
  background: var(--pink-light);
  color: var(--on-pink);
}

/* =========================================================
   HEADER & NAV
   ========================================================= */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
}

/* Not using .section-shell: matches the hero's wider, edge-anchored
   container so the logo and CTA line up with the hero content below. */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  max-width: 2200px;
  margin: 1 auto;
  padding: 1rem clamp(1.5rem, 4vw, 4rem);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  justify-self: start;
}

/* foxMD.png is the full icon+wordmark lockup (not square), so it's sized
   by height with width following its natural aspect ratio. */
.brand-mark { height: 2.75rem; width: auto; }

.main-nav { justify-self: center; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.main-nav a:hover { color: var(--pink-light); }

.main-nav a.is-active { color: var(--pink-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: .5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 6px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to right, var(--ink), rgba(7, 7, 7, .9), rgba(7, 7, 7, .6));
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 76% 42%, rgba(240, 93, 157, .22), transparent 27%);
}

.ring--3 { left: -7rem; top: 4rem; height: 20rem; width: 20rem; opacity: .4; }


/* Deliberately not using .section-shell here: the hero gets its own wider,
   left-weighted container so the text sits near the true edge of the
   viewport instead of centered inside the standard 1180px shell. */
.hero-inner {
  display: flex;
  align-items: center;
  min-height: 720px;
  max-width: 2000px;
  margin: 0 auto;
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
}

.hero-content { max-width: 42rem; }

.hero-logo { width: min(11rem, 100%); margin-bottom: 2.5rem; }

.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
  animation-delay: .16s;
}

.hero-copy {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, .9rem + .3vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted);
  animation-delay: .24s;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation-delay: .32s;
}

/* =========================================================
   EXPLORE HUB (homepage — replaces the old long Services/
   Benefits stack with links out to dedicated pages)
   ========================================================= */
.explore { position: relative; padding: 6rem 0; }

.explore-head { max-width: 42rem; margin-bottom: 3rem; }

.explore-head-copy {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.explore-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.explore-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 93, 157, .75);
  background: linear-gradient(145deg, rgba(240, 93, 157, .13), rgba(255, 255, 255, .03));
}

.explore-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }

.explore-card p {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-dim);
  flex-grow: 1;
}

.explore-card-arrow { font-size: .78rem; font-weight: 700; color: var(--pink-light); letter-spacing: .04em; }

/* =========================================================
   ABOUT PAGE — intro band
   ========================================================= */
.about-hero { position: relative; padding: 6rem 0 4rem; border-bottom: 1px solid var(--line); overflow: hidden; }

.about-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 82% 20%, rgba(240, 93, 157, .16), transparent 45%);
  pointer-events: none;
}

.ring--hero { right: -6rem; top: -5rem; height: 22rem; width: 22rem; opacity: .3; }

.about-hero-inner { position: relative; z-index: 1; max-width: 46rem; }

.about-hero-inner p:not(.eyebrow) {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* =========================================================
   COMPREHENSION (homepage "single source" overview section)
   ========================================================= */
.comprehension { position: relative; padding: 6rem 0; }

.comprehension-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.comprehension-copy { max-width: 42rem; }

.comprehension-head { max-width: 42rem; }

.comprehension-copy p:not(.eyebrow) {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.comprehension-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.comprehension-grid--services {
  grid-template-columns: 1fr 1fr;
}

.comprehension-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}

.comprehension-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.comprehension-card p {
  margin-top: .9rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.comprehension-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comprehension-side .comprehension-card { flex: 1; }

.comprehension-side--row {
  flex-direction: row;
  margin-top: 1.25rem;
}

.comprehension-list {
  margin-top: 1.25rem;
  column-count: 2;
  column-gap: 1.75rem;
}

.comprehension-list li {
  break-inside: avoid;
  margin-bottom: .85rem;
  padding-left: 1.4rem;
  position: relative;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.comprehension-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink-light);
  font-weight: 700;
}

/* =========================================================
   FORM PANEL — shared by the homepage-era apply section and the
   dedicated career.html / consult.html pages.
   ========================================================= */
.apply { position: relative; padding: 6rem 0; }

/* Used on career.html / consult.html, where this is the first section
   under the header rather than following a hero. */
.apply--page { padding-top: 8rem; }

.apply-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 93, 157, .25);
  border-radius: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--panel-soft), #0d0d0f);
}

.apply-glow {
  position: absolute;
  right: 0;
  top: 0;
  height: 13rem;
  width: 13rem;
  border-radius: 999px;
  background: rgba(240, 93, 157, .15);
  filter: blur(64px);
}

.apply-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: .8fr 1.2fr;
}

.apply-copy {
  margin-top: 1.25rem;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.apply-list {
  margin-top: .75rem;
  max-width: 30rem;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--text-muted);
  line-height: 1.8;
}

.apply-note {
  margin-top: 2.5rem;
  border-left: 1px solid var(--pink);
  padding-left: 1.25rem;
}

.apply-note-title { font-size: .9rem; font-weight: 700; color: var(--text); }

.apply-note-copy {
  margin-top: .5rem;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.inline-link { color: var(--pink-light); }
.inline-link:hover { text-decoration: underline; }

.application-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, .3);
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.field-group--full { grid-column: 1 / -1; }

.field-group label {
  display: block;
  margin-bottom: .5rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
}

.field {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .85rem .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(240, 93, 157, .16);
}

.field::placeholder { color: #9a9aa1; }

.field--textarea { min-height: 7rem; resize: vertical; }

/* Honeypot: kept in the layout (not display:none) so bots that skip
   display:none fields still fall for it, but moved off-screen and out of
   the tab order so real, sighted or assistive-tech users never see it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-drop {
  border: 1px dashed rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.file-drop input[type="file"] {
  display: block;
  width: 100%;
  font-size: .875rem;
  color: var(--text-muted);
}

.file-drop input[type="file"]::file-selector-button {
  margin-right: 1rem;
  border: 0;
  border-radius: .5rem;
  background: rgba(240, 93, 157, .15);
  padding: .5rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--pink-light);
  cursor: pointer;
}

.file-helper {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--text-faint);
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status { font-size: .875rem; }
.form-status.is-pending { color: var(--text-muted); }
.form-status.is-warning { color: #fde68a; }
.form-status.is-success { color: #6ee7b7; }
.form-status.is-error { color: #fca5a5; }

/* =========================================================
   CTA STRIP (homepage closing section)
   ========================================================= */
.cta-strip {
  position: relative;
  border-top: 1px solid rgba(240, 93, 157, .2);
  background: linear-gradient(135deg, var(--panel-soft), var(--ink));
  padding: 5rem 0;
}

.cta-strip-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.cta-strip-copy { max-width: 64rem; }

.cta-strip-text {
  margin-top: 1rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cta-strip-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  max-width: 2200px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  font-size: .75rem;
  color: var(--text-faint);
}

.footer-inner a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.footer-inner a:hover { color: var(--pink-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 641px) {
  .cta-strip-inner, .footer-inner { flex-direction: row; align-items: center; }
}

@media (max-width: 900px) {
  .apply-grid { grid-template-columns: 1fr; }
  .comprehension-grid { grid-template-columns: 1fr; }
  .comprehension-side--row { flex-direction: column; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .section-shell { width: min(100% - 2rem, var(--shell-width)); }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, .95);
    backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .main-nav.is-open { max-height: 16rem; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.5rem;
  }

  .main-nav li { width: 100%; border-top: 1px solid var(--line); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 1rem 0; }

  .form-grid { grid-template-columns: 1fr; }
  .comprehension-list { column-count: 1; }
  .explore-grid { grid-template-columns: 1fr; }
}
