/* Elite Donor Solutions — design tokens from the Claude Design handoff (Greyscale theme) */
:root {
  --ink: #141414;
  --strong: #333333;
  --body: #5c5c5c;
  --mute: #7d7d7d;
  --accent: #2b2b2b;
  --hair: #e0e0e0;
  --border: #c0c0c0;
  --soft: #F7F6F2;
  --dark: #141414;
  /* side padding: 72px at the 1280px design width, content capped at 1440px on wider screens (matches surrogatealternatives.com) */
  --pad: max(72px, calc((100vw - 1440px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--body); font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

/* ---------- Header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 36px var(--pad); }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.logo img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 40px; align-items: center; font-size: 14px; color: var(--body); }
.btn-outline { color: var(--ink); font-weight: 600; border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px; }
.menu-toggle { display: none; }

.nav-menu { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-trigger::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .5; }
.nav-drop { position: absolute; top: 100%; left: -18px; padding-top: 14px; display: none; z-index: 40; }
.nav-menu:hover .nav-drop, .nav-menu:focus-within .nav-drop { display: block; }
.nav-panel { background: #fff; border: 1px solid rgba(20,20,20,.10); box-shadow: 0 22px 60px rgba(40,60,55,.14); padding: 8px; min-width: 190px; display: flex; flex-direction: column; }
.nav-panel a { padding: 11px 14px; border-radius: 4px; white-space: nowrap; color: var(--ink); font-weight: 500; }
.nav-panel a:hover { background: var(--soft); }

/* ---------- Shared building blocks ---------- */
.section { padding: 100px var(--pad); border-top: 1px solid var(--hair); }
.section-lg { padding-top: 120px; padding-bottom: 120px; }
.soft { background: var(--soft); }
.center { text-align: center; }

.label { font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.h1 { font-weight: 600; font-size: 60px; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); margin-bottom: 30px; }
.h1 em, .h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: 0; }
.h2 { font-weight: 500; font-size: 38px; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }
.lead { font-size: 18px; line-height: 1.65; color: var(--body); }
.prose { font-size: 18px; line-height: 1.72; color: var(--strong); }
.prose p + p { margin-top: 1.72em; }

.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 16px 30px; border-radius: 999px; }
.link { color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Split: copy + full-bleed image */
.split { display: grid; grid-template-columns: 1.02fr .98fr; border-top: 1px solid var(--hair); }
.split.reverse-ratio { grid-template-columns: .98fr 1.02fr; }
.split-copy { padding: 120px 64px 120px var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.split-media { position: relative; min-height: 560px; border-left: 1px solid var(--hair); overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* University strip */
.uni-strip { background: var(--soft); border-top: 1px solid var(--hair); padding: 34px var(--pad); display: flex; align-items: center; justify-content: center; gap: 24px 52px; flex-wrap: wrap; color: var(--mute); }
.uni-strip small { font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.uni-strip span { font-weight: 700; font-size: 22px; opacity: .6; }

/* Portrait strip: greyscale photo, hover a person to reveal them in colour */
.portraits { position: relative; background: var(--dark); overflow: hidden; aspect-ratio: 3 / 1; border-top: 1px solid var(--hair); }
.portraits > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portraits .zone { position: absolute; top: 0; bottom: 0; left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); overflow: hidden; opacity: 0; transition: opacity .4s ease; }
.portraits .zone:hover { opacity: 1; }
.portraits .zone img { position: absolute; top: 0; height: 100%; max-width: none; width: calc(100% * 100 / var(--w)); left: calc(-100% * var(--l) / var(--w)); object-fit: cover; pointer-events: none; }

/* Two-column intro: heading left, text right */
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.intro-grid .prose { margin-bottom: 22px; }

/* Feature grid with rule above each item */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 64px; margin-top: 64px; }
.feature { border-top: 1px solid var(--accent); padding-top: 22px; }
.feature h3 { font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.feature p { font-size: 15px; line-height: 1.65; }

/* Testimonial */
.quote-mark { font-size: 64px; line-height: 0; color: var(--accent); height: 28px; }
.quote { font-size: 32px; line-height: 1.42; color: var(--ink); margin: 0 auto; max-width: 880px; letter-spacing: -.02em; }
.quote-by { margin-top: 36px; font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: .14em; color: var(--mute); }

/* Closing CTA band */
.cta-band { background: var(--dark); padding: 120px var(--pad); text-align: center; }
.cta-band h2 { font-weight: 600; font-size: 48px; line-height: 1.08; letter-spacing: -.03em; color: #fff; margin: 0 auto 40px; max-width: 740px; }
.cta-band .btn { background: #fff; color: var(--ink); font-size: 16px; padding: 18px 42px; }

/* FAQ accordion: native <details name="faq"> keeps one item open at a time */
.faq { border-top: 1px solid var(--hair); }
.faq:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq h3 { font-weight: 600; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.faq p { font-size: 16px; line-height: 1.7; padding: 0 60px 34px 0; max-width: 760px; }
.faq-icon { flex: none; width: 28px; height: 28px; position: relative; color: var(--accent); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 2px; background: currentColor; transform: translate(-50%,-50%); transition: transform .25s ease; }
.faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(0deg); }

/* 404 page */
.notfound { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 96px; align-items: start; padding: 120px var(--pad) 140px; border-top: 1px solid var(--hair); }
.notfound .h1 { margin-bottom: 26px; }
.notfound-links { border-top: 1px solid var(--hair); }
.notfound-links a { display: flex; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--hair); font-weight: 500; font-size: 18px; color: var(--ink); transition: color .2s ease; }
.notfound-links a:hover { color: var(--body); }

/* Article published date, under the headline */
.article-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 24px; }

/* Blog carousel: native scroll-snap, 3 cards per view on desktop, arrows scroll one card */
.blog .h2 { font-weight: 600; } /* matches the About page's other headings */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.blog-nav { display: flex; gap: 12px; }
.blog-nav button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s ease; }
.blog-nav button:hover:not(:disabled) { background: var(--soft); }
.blog-nav button:disabled { opacity: .35; cursor: default; }
.blog-nav[hidden] { display: none; }
.blog-track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.blog-track::-webkit-scrollbar { display: none; }
.post { flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; }
.post-label { font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.post h3 { font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin-bottom: 12px; }
.post p { font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
.post .link { margin-top: auto; }

/* Office cards (contact page) */
.office { background: #fff; padding: 40px 36px; display: flex; flex-direction: column; }
.office h3 { font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 22px; }
.office-addr { font-size: 16px; line-height: 1.6; color: var(--strong); font-weight: 500; margin-bottom: 8px; }
.office-note { font-size: 14px; color: var(--mute); margin-bottom: 24px; }
.office a { margin-top: auto; font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px var(--pad) 48px; border-top: 1px solid var(--hair); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.footer-grid .logo { margin-bottom: 16px; }
.footer-blurb { font-size: 14px; line-height: 1.65; max-width: 280px; }
.footer-social { display: flex; gap: 18px; margin-top: 24px; }
.footer-social a { color: var(--body); transition: color .2s ease; }
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.footer-head { font-family: 'JetBrains Mono', monospace; color: var(--ink); font-size: 12px; letter-spacing: .1em; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; border-top: 1px solid var(--hair); }
.footer-legal { display: flex; gap: 28px; }

/* ---------- Responsive (not in the design; tablet + phone) ---------- */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .site-nav { gap: 24px; }
}

@media (max-width: 960px) {
  .site-header { padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
  .menu-toggle { display: block; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font: 600 14px 'Manrope', sans-serif; color: var(--ink); cursor: pointer; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 16px; font-size: 16px; }
  .menu-open .site-nav { display: flex; }
  .site-nav > a, .nav-trigger { padding: 14px 0; border-top: 1px solid var(--hair); color: var(--ink); font-weight: 600; }
  .nav-trigger::after { display: none; }
  .nav-menu { flex-direction: column; align-items: stretch; }
  .nav-drop { display: block; position: static; padding: 0 0 10px; }
  .nav-panel { border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav-panel a { padding: 8px 16px; color: var(--body); }
  .site-nav .btn-outline { margin-top: 12px; text-align: center; padding: 14px; border: 1px solid var(--border); }

  .split, .split.reverse-ratio, .intro-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 28px; }
  .split-copy { padding: 72px var(--pad); }
  .split-media { min-height: 360px; border-left: 0; border-top: 1px solid var(--hair); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post { flex-basis: calc((100% - 32px) / 2); }
  .notfound { grid-template-columns: 1fr; gap: 56px; padding-top: 72px; padding-bottom: 96px; }

  /* Pages converted straight from the design keep its inline styles; these rules stack their layouts.
     ponytail: attribute selectors over inline styles; move a page to classes (like the homepage) if it gets heavy edits */
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 32px !important; }
  main [style*="grid-template-columns:repeat(3"], main [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }
  main [style*="min-height:560px"], main [style*="min-height:520px"], main [style*="min-height:480px"] { min-height: 360px !important; }
  main [style*="border-left:1px"] { border-left: 0 !important; }
  main [style*="border-right:1px"] { border-right: 0 !important; }
  main [style*="padding:120px 64px"], main [style*="padding:100px 64px"], main [style*="padding:100px var(--pad) 100px 64px"], main [style*="padding:120px var(--pad) 120px 64px"] { padding: 72px var(--pad) !important; }
  main [style*="position:sticky"] { position: static !important; }
  main [style*="gap:1px"] { gap: 1px !important; }
  main [style*="var(--pad) 56px 64px"] { padding-left: var(--pad) !important; }
}

@media (max-width: 600px) {
  :root { --pad: 24px; }
  .section, .section-lg, .cta-band { padding-top: 72px; padding-bottom: 72px; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .cta-band h2 { font-size: 34px; }
  .quote { font-size: 23px; }
  .lead, .prose { font-size: 17px; }
  .features, .footer-grid { grid-template-columns: 1fr; }
  .portraits { aspect-ratio: 2 / 1; }
  .uni-strip { gap: 14px 28px; }
  .uni-strip span { font-size: 18px; }
  .faq h3 { font-size: 18px; }
  .post { flex-basis: 85%; }
  .blog-head { margin-bottom: 36px; }
  .blog-track { gap: 20px; }
  .faq p { padding-right: 0; }

  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  main [style*="padding:100px"], main [style*="padding:120px"], main [style*="padding: 100px"], main [style*="padding: 120px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  main [style*="padding:40px 36px"] { padding: 28px 24px !important; }
  main [style*="padding:40px; min-height:600px"] { padding: 8px !important; }
  main [style*="font-size:60px"], main [style*="font-size: 60px"], main [style*="font-size:58px"], main [style*="font-size:56px"], main [style*="font-size:52px"] { font-size: 40px !important; }
  main [style*="justify-content:space-between; max-width:360px"] { gap: 16px; }
  main [style*="font-size:48px"], main [style*="font-size: 48px"], main [style*="font-size:44px"] { font-size: 34px !important; }
  main [style*="font-size:38px"], main [style*="font-size: 38px"], main [style*="font-size:36px"] { font-size: 30px !important; }
  main [style*="font-size:32px"], main [style*="font-size: 32px"] { font-size: 23px !important; }
  main [style*="display:flex"] { flex-wrap: wrap; }
  main [style*="gap:80px"], main [style*="gap:96px"], main [style*="gap:64px"] { gap: 32px !important; }
}
