/* =====================================================================
   BOROUGH LONGEVITY CLINIC — STYLES
   Design tokens live in :root. Colours are locked to the brand palette.
   ===================================================================== */

:root {
  /* Brand palette (locked) */
  --bg:        #ffffff;
  --primary:   #0f406b;
  --secondary: #005e8c;
  --accent:    #d6992f;

  /* Derived neutrals */
  --ink:       #0e1c2b;
  --muted:     #5b6b7d;
  --line:      #e6ebf1;
  --tint:      #eef2f8;   /* soft section background */
  --tint-2:    #e8eefaf6;

  /* Effects */
  --radius:    28px;
  --radius-sm: 16px;
  --shadow:    0 24px 60px -28px rgba(15, 64, 107, .28);
  --shadow-sm: 0 12px 34px -20px rgba(15, 64, 107, .32);
  --glass:     rgba(255, 255, 255, .68);

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}

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

.section { padding: clamp(64px, 9vw, 130px) 0; }
.section--tint { background: var(--tint); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(38px, 6vw, 74px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 540px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary);
  background: var(--tint);
  padding: 8px 16px; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0c3357; }
.btn--accent { background: var(--accent); color: #241704; box-shadow: 0 14px 30px -14px rgba(214,153,47,.7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--secondary); color: var(--secondary); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(255,255,255,.24); }
.btn .arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 14px;
}
.btn--ghost .arrow, .btn--accent .arrow { background: rgba(15,64,107,.1); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 var(--gutter);
  transition: top .3s ease;
}
.nav__inner {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; gap: 20px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 12px 12px 12px 26px;
}
.nav__logo { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.nav__logo b { color: var(--primary); }
.nav__logo i { color: var(--accent); font-style: normal; }
.nav__links { display: flex; gap: 28px; margin: 0 auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink); opacity: .8; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--secondary); }
.nav__cta { margin-left: auto; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 999px; }
.nav__burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--gutter) clamp(40px, 6vw, 72px);
  overflow: hidden; color: #fff;
  border-radius: 0 0 40px 40px;
}
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,64,107,.62) 0%, rgba(15,64,107,.28) 40%, rgba(9,40,68,.82) 100%),
    linear-gradient(90deg, rgba(0,94,140,.35), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(8px); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(52px, 9vw, 132px); color: #fff; }
.hero h1 span { display: block; }
.hero__sub { max-width: 520px; font-size: clamp(16px, 1.6vw, 20px); margin: 22px 0 32px; color: rgba(255,255,255,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 48px; }
.hero__loc {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px); padding: 14px 20px; border-radius: 999px; font-size: 14px; line-height: 1.3;
}
.hero__loc .pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #241704; }
.hero__socials { display: flex; gap: 10px; margin-left: auto; }
.hero__socials a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); transition: .25s;
}
.hero__socials a:hover { background: #fff; color: var(--primary); }
.icon { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.svc-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 34px;
  display: flex; flex-direction: column; min-height: 340px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card__media {
  position: absolute; top: 0; right: 0; width: 44%; height: 100%;
  overflow: hidden;
}
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #fff 2%, rgba(255,255,255,.2) 45%, transparent);
}
.svc-card__body { position: relative; z-index: 2; max-width: 62%; }
.svc-card h3 { font-size: clamp(30px, 3.4vw, 44px); color: var(--primary); margin-bottom: 14px; }
.svc-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.svc-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.svc-card li { font-size: 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.svc-card li::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--secondary); flex: none; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Stats ---------- */
.stats__grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 22px; align-items: stretch;
}
.stats__photo {
  grid-row: span 2; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  box-shadow: var(--shadow-sm); position: relative;
}
.stats__photo img { width: 100%; height: 100%; object-fit: cover; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s ease;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card__tag { align-self: flex-end; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--tint); padding: 6px 14px; border-radius: 999px; }
.stat-card__value {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; letter-spacing: -.03em;
  color: var(--primary); font-size: clamp(44px, 5.5vw, 68px); line-height: 1; margin-top: auto;
}
.stat-card__value small { font-size: .38em; color: var(--secondary); font-weight: 600; margin-left: 8px; letter-spacing: 0; }
.stat-card__label { color: var(--muted); font-size: 14px; margin-top: 12px; }
.stat-card--offset { margin-top: 34px; }

/* ---------- Strategy ---------- */
.strategy__wrap {
  background: #fff; border-radius: 40px; box-shadow: var(--shadow);
  padding: clamp(36px, 5vw, 80px) clamp(24px, 4vw, 64px);
}
.strategy__wrap h2 { text-align: center; font-size: clamp(36px, 5.4vw, 68px); margin-bottom: clamp(40px, 5vw, 64px); }
.strategy__grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
.strategy__col { display: grid; gap: 34px; }
.strategy__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 480px; }
.strategy__media img { width: 100%; height: 100%; object-fit: cover; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }
.strategy__col--right { text-align: left; }

/* ---------- Spotlight ---------- */
.spotlight__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; align-items: stretch; }
.spotlight__media {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px;
  box-shadow: var(--shadow-sm);
}
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.spotlight__play span { width: 74px; height: 74px; border-radius: 999px; background: rgba(255,255,255,.85);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.spotlight__play svg { width: 26px; height: 26px; fill: var(--primary); margin-left: 4px; }
.spotlight__badge { position: absolute; left: 20px; bottom: 20px; background: rgba(15,64,107,.75);
  color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.spotlight__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(30px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.spotlight__panel .tag { align-self: flex-start; }
.spotlight__panel h2 { font-size: clamp(38px, 5vw, 64px); margin: 18px 0 22px; }
.spotlight__panel h4 { font-size: 17px; margin: 0 0 10px; }
.spotlight__panel p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.spotlight__panel .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- Team ---------- */
.team__track {
  display: flex; gap: 22px; overflow-x: auto; padding: 20px 4px 30px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.team__track::-webkit-scrollbar { display: none; }
.doc-card {
  flex: 0 0 clamp(240px, 26vw, 300px); scroll-snap-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease;
}
.doc-card:hover { transform: translateY(-6px); }
.doc-card__photo { aspect-ratio: 4/3.4; overflow: hidden; background: var(--tint); }
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-card__body { padding: 20px 22px 24px; }
.doc-card__body h3 { font-size: 20px; color: var(--primary); }
.doc-card__body p { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }
.doc-card__socials { display: flex; gap: 8px; }
.doc-card__socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--secondary); transition: .2s;
}
.doc-card__socials a:first-child { background: var(--primary); color: #fff; border-color: var(--primary); }
.doc-card__socials a:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.doc-card--featured {
  background: linear-gradient(180deg, #10426e, #0a2c4a); color: #fff;
  box-shadow: var(--shadow); transform: scale(1.05);
}
.doc-card--featured:hover { transform: scale(1.05) translateY(-6px); }
.doc-card--featured .doc-card__body h3 { color: #fff; }
.doc-card--featured .doc-card__body p { color: rgba(255,255,255,.75); }
.doc-card--featured .doc-card__socials a { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.12); }
.doc-card--featured .doc-card__socials a:first-child { background: #fff; color: var(--primary); }
.team__controls { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.team__controls button {
  width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: .2s; color: var(--primary);
}
.team__controls button:hover { background: var(--primary); color: #fff; }
.team__cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Reviews ---------- */
.reviews__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.reviews__head h2 { font-size: clamp(38px, 6vw, 74px); }
.reviews__nav { display: flex; gap: 12px; }
.reviews__nav button {
  width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--primary); display: grid; place-items: center; transition: .2s;
}
.reviews__nav button:hover, .reviews__nav button.is-active { background: var(--primary); color: #fff; }
.reviews__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px 4px 20px; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(560px, 88vw); scroll-snap-align: start;
  display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.review-card__photo { position: relative; }
.review-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.review-card__photo::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 20px; background: rgba(15,64,107,.18);
}
.review-card__body { padding: 28px; display: flex; flex-direction: column; }
.review-card__name { color: var(--muted); font-size: 14px; font-style: italic; }
.review-card__quote { font-size: 15px; color: var(--ink); margin-top: 14px; position: relative; }
.review-card__quote::before { content: "\201C"; font-family: "Bricolage Grotesque"; font-size: 60px; color: var(--secondary);
  line-height: 0; display: block; margin-bottom: 18px; }
.reviews__dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.reviews__dots i { width: 9px; height: 9px; border-radius: 999px; background: #cdd7e3; cursor: pointer; transition: .2s; }
.reviews__dots i.is-active { background: var(--primary); width: 26px; }

/* ---------- Contact / Footer ---------- */
.contact {
  background: linear-gradient(140deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 40px; margin: 0 var(--gutter) 40px;
  padding: clamp(56px, 8vw, 110px) clamp(28px, 5vw, 90px);
  text-align: center; position: relative; overflow: hidden;
}
.contact::before, .contact::after {
  content: ""; position: absolute; border-radius: 999px; filter: blur(10px); opacity: .35;
}
.contact::before { width: 380px; height: 380px; background: radial-gradient(circle, var(--accent), transparent 65%);
  top: -120px; right: -80px; }
.contact::after { width: 320px; height: 320px; background: radial-gradient(circle, #4aa6d4, transparent 65%);
  bottom: -140px; left: -60px; }
.contact > * { position: relative; z-index: 1; }
.contact h2 { color: #fff; font-size: clamp(34px, 5vw, 62px); max-width: 760px; margin: 0 auto 18px; }
.contact p { color: rgba(255,255,255,.86); max-width: 520px; margin: 0 auto 32px; }
.contact__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 40px; font-size: 14px; }
.contact__meta a, .contact__meta span { color: rgba(255,255,255,.9); }
.contact__socials { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.contact__socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); transition: .2s; }
.contact__socials a:hover { background: #fff; color: var(--primary); }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 0 46px; }
.footer b { color: var(--primary); }

/* ---------- Reveal animation ---------- */
/* Progressive enhancement: content is visible by default; only hidden
   (to animate in) when JS is present. If JS/observer fails, nothing vanishes. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: var(--gutter); right: var(--gutter);
    background: #fff; padding: 22px; border-radius: 24px; box-shadow: var(--shadow); gap: 16px; margin: 0;
  }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__photo { grid-row: auto; grid-column: span 2; min-height: 260px; }
  .stat-card--offset { margin-top: 0; }
  .strategy__grid { grid-template-columns: 1fr; }
  .strategy__media { order: -1; min-height: 320px; }
  .spotlight__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stats__photo { grid-column: auto; }
  .svc-card__media { width: 100%; opacity: .18; }
  .svc-card__media::before { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,.5)); }
  .svc-card__body { max-width: 100%; }
  .review-card { grid-template-columns: 1fr; }
  .review-card__photo { height: 220px; }
  .contact { margin: 0 12px 24px; }
}
