/* ==========================================================================
   Biomedical Career Coach — site styles
   Colours, fonts and spacing carried over from the original Framer design.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Asul";
  src: url("../fonts/asul-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --gold: #d9b471;
  --gold-dark: #946e23;
  --gold-soft: rgba(217, 180, 113, 0.22);
  --cream: #f1eee7;
  --card: #fbfaf7;
  --ink: #000;
  --muted: #666666;
  --white: #fff;

  --font-sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Asul", Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(60, 45, 20, 0.18);

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain texture over the cream background, as on the original */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../img/noise.png");
  background-size: 250px 250px;
  opacity: 0.35;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
main { flex: 1; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.center { text-align: center; }
.section { padding: var(--section) 0 0; }
.section:last-child { padding-bottom: var(--section); }

/* ---------- Typography ---------- */
h1, .h1 {
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
h2, .h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3, .h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.eyebrow svg { width: 22px; height: 22px; }

/* Hand-drawn gold underline used under small headings */
.underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.underline::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; bottom: -2px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  transform: rotate(-1.6deg);
  transform-origin: left center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 18px; line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 11px; height: 11px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #cfa65e; box-shadow: 0 10px 24px -10px rgba(148, 110, 35, 0.6); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-dark {
  width: 100%;
  background: var(--ink); color: var(--white);
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  padding: 13px 18px; border-radius: 8px;
}
.btn-dark:hover { background: #222; }
.btn-sm { padding: 10px 14px; font-size: 16px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  view-transition-name: site-header;
  background: rgba(241, 238, 231, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 20px; color: var(--ink);
}
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a:not(.btn),
.nav-links > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}
.nav-links > li > a:not(.btn):hover,
.nav-links > li > button:hover { color: var(--gold-dark); }
.nav-links a[aria-current="page"] { color: var(--gold-dark); }
.nav-links .btn { margin-left: 10px; color: var(--white); }
.nav-links .btn:hover { color: var(--white); }
.caret { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }

/* Services dropdown */
.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 220px;
  padding: 8px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.submenu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 15px; transition: background-color 0.2s;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--gold-soft); }
.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.open .submenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.has-menu:hover .caret, .has-menu.open .caret { transform: rotate(180deg); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 8px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }

/* Mobile menu */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--cream);
    box-shadow: 0 24px 32px -24px rgba(0, 0, 0, 0.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }
  .nav-links > li > a:not(.btn), .nav-links > li > button {
    width: 100%; justify-content: space-between;
    padding: 14px 0; font-size: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07); border-radius: 0;
  }
  .submenu {
    position: static; transform: none; min-width: 0;
    box-shadow: none; background: transparent; padding: 0 0 0 12px;
    display: none; opacity: 1; visibility: visible;
  }
  .has-menu:hover .submenu, .has-menu:focus-within .submenu { transform: none; }
  .has-menu.open .submenu { display: block; transform: none; }
  .has-menu:hover .caret { transform: none; }
  .has-menu.open .caret { transform: rotate(180deg); }
  .submenu a { font-size: 17px; padding: 12px 0; }
  .nav-links .btn { margin: 20px 0 0; width: 100%; padding: 16px; }
}

/* ---------- Circular images with the gold disc behind ---------- */
.orb {
  position: relative;
  width: min(100%, var(--orb, 340px));
  aspect-ratio: 1.4 / 1;
  margin: 0 auto;
}
.orb::before,
.orb picture,
.orb > img {
  position: absolute; top: 0;
  width: 71.5%; aspect-ratio: 1; height: auto;
  border-radius: 50%;
}
.orb::before { content: ""; background: var(--gold); }
.orb > img { object-fit: cover; }
/* gold disc on the right (home) */
.orb--right::before { right: 0; }
.orb--right > img, .orb--right picture { left: 0; }
/* gold disc on the left (sub-pages) */
.orb--left::before { left: 0; }
.orb--left > img, .orb--left picture { right: 0; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 0; }
.hero-grid {
  display: grid; align-items: center; gap: 56px;
  grid-template-columns: 1.05fr 1fr;
}
.hero-copy h1 { margin: 18px 0 22px; }
.hero-copy .lead { margin-bottom: 36px; }
.hero .orb { --orb: 520px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-copy h1 { max-width: 12ch; margin-left: auto; margin-right: auto; }
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 0; text-align: center; }
.page-hero h1 { margin-bottom: clamp(32px, 5vw, 56px); }
.page-hero .lead { margin-top: -16px; margin-bottom: 40px; }
.page-hero .orb { --orb: 360px; }

/* Image beside intro text (About and service pages) */
.split {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  text-align: left;
}
.split .orb { --orb: 440px; margin: 0; justify-self: end; }
.split-copy { display: grid; gap: 16px; max-width: 520px; }
.page-hero .split-copy .lead { margin: 0; }
.split-copy .lead + h2 { margin-top: 24px; }
.section--after-split { padding-top: clamp(56px, 7vw, 88px); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .split .orb { --orb: 360px; margin: 0 auto; justify-self: center; }
  .split-copy { margin: 0 auto; }
}

/* ---------- Coach intro ---------- */
.coach {
  display: grid; align-items: center; gap: clamp(32px, 6vw, 80px);
  grid-template-columns: 1fr 1fr;
}
.coach-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.coach-img img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.coach-copy h2 { margin-bottom: 20px; }
.coach-name { font-family: var(--font-serif); font-size: 24px; color: var(--gold); margin-bottom: 12px; }
.coach-copy .btn { margin-top: 28px; }
@media (max-width: 860px) {
  .coach { grid-template-columns: 1fr; text-align: center; }
  .coach-img { max-width: 420px; margin: 0 auto; }
}

/* ---------- Feature grid (offer, session content, approach) ---------- */
.features {
  display: grid; gap: clamp(40px, 5vw, 56px) 40px;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.feature { display: flex; flex-direction: column; align-items: center; }
.feature-icon { width: 50px; height: 50px; color: var(--gold); margin-bottom: 20px; }
.feature h3 { margin-bottom: 16px; }
.feature p { color: var(--muted); max-width: 300px; }
a.feature { border-radius: var(--radius-lg); padding: 24px 12px; margin: -24px -12px; transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
a.feature:hover { background: rgba(255, 255, 255, 0.45); transform: translateY(-4px); }
.feature-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 4px;
  background: var(--gold-soft);
  font-family: var(--font-serif); font-size: 30px; line-height: 1; color: var(--gold);
}
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card h3 { text-align: center; margin-bottom: 18px; font-size: 22px; }
.card > p { font-size: 16px; line-height: 1.45; color: #555; }
.card h4 { font-size: 17px; font-weight: 700; margin: 22px 0 12px; }
.checklist { display: grid; gap: 6px; margin-bottom: 32px; }
.checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: #6b6b6b;
}
.checklist svg { flex: none; width: 15px; height: 15px; color: #a5a5a5; }
.card .btn-dark { margin-top: auto; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- About: timeline cards ---------- */
.prose p { color: var(--muted); }
.prose h2 { text-align: center; margin-bottom: 20px; }
.prose + .prose { margin-top: 48px; }
.timeline { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.t-card {
  padding: 24px 24px 28px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.t-card h3 { font-size: 21px; margin-bottom: 10px; }
.t-card .meta { font-size: 15px; color: #6b6b6b; margin-bottom: 12px; }
.t-card ul { display: grid; gap: 6px; }
.t-card li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: #555; }
.t-card li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- "Ready?" call to action ---------- */
.ready { padding: var(--section) 0; }
.ready-orb {
  position: relative; isolation: isolate;
  display: grid; place-items: center; align-content: center; gap: 18px;
  width: 260px; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; overflow: hidden;
  background: var(--gold);
  text-align: center;
}
.ready-orb img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; opacity: 0.55;
}
.ready-orb h2 { color: var(--white); font-size: 34px; }

/* ---------- Booking page ---------- */
.cal-wrap {
  margin-top: 8px;
  min-height: 640px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cal-fallback { padding: 48px 24px; text-align: center; color: var(--muted); }
.cal-fallback a { color: var(--gold-dark); text-decoration: underline; }

/* ---------- Contact page ---------- */
.contact-box {
  max-width: 640px; margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-box p { color: #6b6b6b; font-size: 16px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); }
.contact-note { min-height: 1.5em; margin-top: 14px; }
.contact-note:empty { min-height: 0; margin-top: 0; }
.contact-alt { margin-top: 20px; }
.contact-alt a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.contact-box button.btn { cursor: pointer; font-family: var(--font-serif); }

/* ---------- Privacy policy ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); text-align: center; margin-bottom: 12px; }
.legal .effective { text-align: center; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: #444; }
.legal p + p { margin-top: 10px; }
.legal ul { display: grid; gap: 8px; margin: 10px 0; }
.legal li { position: relative; padding-left: 18px; }
.legal li::before { content: ""; position: absolute; left: 3px; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--gold-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  view-transition-name: site-footer;
  background: var(--gold);
  color: var(--white);
  padding: 56px 0 40px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 16px; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.75; }
.footer-brand { font-family: var(--font-serif); font-size: 26px; margin-bottom: 18px; }
.copyright { font-size: 15px; }

/* ==========================================================================
   Motion
   ========================================================================== */

/* Smooth cross-page transition (Chrome, Edge, Safari 18.2+) */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: 280ms var(--ease) both page-out; }
::view-transition-new(root) { animation: 520ms var(--ease) both page-in; }
::view-transition-group(site-header),
::view-transition-group(site-footer) { animation-duration: 0s; }

@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in  { from { opacity: 0; transform: translateY(18px); } }

/* Fallback for browsers without cross-document view transitions (Firefox) */
.js-fallback main { animation: 520ms var(--ease) both page-in; }
.js-fallback.is-leaving main { transition: opacity 0.25s ease, transform 0.25s ease; opacity: 0; transform: translateY(-12px); }

/* Elements fade up as they scroll into view, like Framer's appear effects */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
