/* ============================================
   BLOOM HEALTHCARE — DESIGN SYSTEM
   Premium hospitality × calm/human × clinical
   ============================================ */

:root {
  /* Palette — sourced from Bloom Healthcare logo (#20316E navy + #00C7D0 teal) */
  --ink: #20316E;                         /* deep navy from logo */
  --ink-2: #2C4291;
  --ink-soft: #4A5A8A;
  --bloom: #00C7D0;                       /* signature teal — infinity mark */
  --bloom-deep: #009BA3;                  /* darker teal for hover/accents */
  --bloom-soft: oklch(0.94 0.04 200);     /* mist tint of teal */
  --bone: oklch(0.985 0.005 220);         /* cool-leaning white */
  --paper: oklch(0.97 0.006 220);         /* card / panel */
  --stone: oklch(0.92 0.012 220);
  --line: oklch(0.88 0.012 220);
  --line-2: oklch(0.82 0.015 220);
  --muted: oklch(0.55 0.02 248);
  --gold: oklch(0.72 0.09 75);            /* warm accent (subtle) */

  /* Type scale */
  --display: "Instrument Serif", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(60px, 7vw, 100px) 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bloom-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--ink);
}
.display-1 { font-size: clamp(36px, 4.8vw, 72px); }
.display-2 { font-size: clamp(28px, 3.6vw, 54px); }
.display-3 { font-size: clamp(22px, 2.6vw, 38px); }
.display em {
  font-style: italic;
  color: var(--bloom-deep);
  font-feature-settings: "ss01";
}

.heading {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.heading-1 { font-size: clamp(36px, 4.4vw, 64px); }
.heading-2 { font-size: clamp(28px, 3.2vw, 44px); }
.heading-3 { font-size: clamp(22px, 2vw, 28px); }

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 60ch;
  text-wrap: pretty;
}
.body { font-size: 16px; color: var(--ink-soft); line-height: 1.65; text-wrap: pretty; }
.small { font-size: 13px; color: var(--muted); }
.caps {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--ink);
  color: var(--bone);
}
.btn--primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn--bloom {
  background: var(--bloom-deep);
  color: var(--bone);
}
.btn--bloom:hover { background: var(--bloom); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--light {
  background: var(--bone);
  color: var(--ink);
}
.btn--light:hover { background: white; }
.btn--link {
  padding: 0;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.btn--link:hover { color: var(--bloom-deep); }
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bone) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand__name { display: inline-flex; gap: 6px; align-items: baseline; line-height: 1; }
.brand__mark {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: 8px; height: 8px;
  background: var(--bloom);
  border-radius: 50%;
}
.brand__name { font-weight: 400; }
.brand__name b { font-style: italic; color: var(--bloom-deep); font-weight: 400; }

.brand__logo {
  height: 54px;
  width: auto;
  display: block;
}
.site-footer .brand__logo { height: 44px; }
@media (max-width: 720px) {
  .brand__logo { height: 44px; }
}

.nav {
  display: flex;
  gap: 6px;
  justify-self: center;
}
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: all 0.15s;
  position: relative;
}
.nav a:hover { color: var(--ink); background: var(--stone); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--bloom);
  border-radius: 50%;
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .phone {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.header-cta .phone .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bloom);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--bloom) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: oklch(0.85 0.01 80);
  padding: clamp(60px, 8vw, 120px) 0 32px;
  margin-top: 0;
}
.site-footer .display { color: var(--bone); }
.site-footer a:hover { color: var(--bone); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid color-mix(in oklch, var(--bone) 12%, transparent);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.7 0.04 200);
  margin-bottom: 20px;
}
.footer-col ul li { padding: 6px 0; font-size: 14px; }
.footer-col ul li a { color: oklch(0.78 0.01 80); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: oklch(0.6 0.01 80);
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom .legal-links { display: flex; gap: 24px; }

/* ============================================
   PHOTO PLACEHOLDERS
   intentional, never apologetic
   ============================================ */
.photo {
  position: relative;
  background: var(--stone);
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.photo[data-src] { background-image: var(--src); }
.photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      color-mix(in oklch, var(--ink) 4%, transparent) 22px 23px
    ),
    linear-gradient(180deg, color-mix(in oklch, var(--ink) 6%, transparent), color-mix(in oklch, var(--ink) 12%, transparent));
}
.photo[data-src]::before { display: none; }
.photo[data-src] .photo__label { background: color-mix(in oklch, var(--bone) 88%, transparent); }
.photo__label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in oklch, var(--bone) 92%, transparent);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
  border: 1px solid var(--line);
}
.photo--dark::before {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      color-mix(in oklch, var(--bone) 6%, transparent) 22px 23px
    ),
    linear-gradient(180deg, color-mix(in oklch, var(--ink) 80%, var(--bloom-deep)), var(--ink));
}
.photo--dark .photo__label {
  background: color-mix(in oklch, var(--ink) 80%, transparent);
  color: var(--bone);
  border-color: color-mix(in oklch, var(--bone) 20%, transparent);
}
.photo--bloom::before {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      color-mix(in oklch, var(--bone) 12%, transparent) 22px 23px
    ),
    linear-gradient(180deg, var(--bloom-deep), oklch(0.34 0.09 200));
}
.photo--bloom .photo__label {
  background: color-mix(in oklch, var(--bloom-deep) 60%, transparent);
  color: var(--bone);
  border-color: color-mix(in oklch, var(--bone) 30%, transparent);
}

.photo--portrait { aspect-ratio: 3/4; }
.photo--square { aspect-ratio: 1/1; }
.photo--landscape { aspect-ratio: 16/10; }
.photo--wide { aspect-ratio: 21/9; }
.photo--tall { aspect-ratio: 4/5; }

/* ============================================
   CARDS / TILES
   ============================================ */
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.2s ease;
}
.tile:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.tile h3 { font-family: var(--display); font-size: 28px; line-height: 1.1; margin-bottom: 12px; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bone);
}
.tag--bloom { color: var(--bloom-deep); border-color: var(--bloom); background: var(--bloom-soft); }
.tag--ink { color: var(--bone); border-color: var(--ink); background: var(--ink); }

/* number marker */
.numkey {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================
   ANNOUNCE BAR
   ============================================ */
.announce {
  background: var(--ink);
  color: var(--bone);
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.announce .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.announce .marquee { display: flex; gap: 36px; align-items: center; color: oklch(0.85 0.02 80); }
.announce .marquee span { display: inline-flex; gap: 8px; align-items: center; }
.announce .marquee i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--bloom);
}

/* ============================================
   UTILITY
   ============================================ */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.text-center { text-align: center; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head__right { padding-bottom: 8px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* responsive */
@media (max-width: 1200px) {
  .nav { gap: 0; }
  .nav a { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta .phone { display: none; }
}
