/* Bosque Clinical Research · /partnerships
   Visual language of the SCRS one-pager: navy bands, forest-green accents.
   Mobile-first. */

:root {
    --navy: #002557;
    --navy-deep: #001a40;
    --navy-ink: #0d2246;
    --navy-soft: #e8edf5;
    --green: #405532;
    --green-hover: #4d6640;
    --green-light: #a9c590;
    --beige: #ebdece;
    --paper: #f6f4ef;
    --white: #ffffff;
    --ink: #1f2937;
    --muted: #5b6474;
    --line: #e3e6ec;
    --radius: 14px;
    --shadow: 0 18px 40px -18px rgba(0, 26, 64, 0.35);
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 1rem; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
ul[role="list"], ol { list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin-top: 2.25rem; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: var(--white); padding: 12px 16px; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ico-xl { width: 44px; height: 44px; }

/* Type */
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 0.6rem; }
.eyebrow-light { color: var(--green-light); }
.h2 { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.6rem; line-height: 1.2; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.h2-light { color: var(--white); }
.lead { font-size: 1.02rem; color: var(--muted); max-width: 40rem; }
.lead-light { color: #c9d3e3; }
.note { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.5rem; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; text-align: center; }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 10px 20px -10px rgba(64, 85, 50, 0.7); }
.btn-green:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand img { height: 56px; width: auto; }
.topbar-tag { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; }
.lang-btn { min-width: 44px; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.06em; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.subnav { background: var(--navy); }
.subnav-inner { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { color: #d6deea; text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; padding: 10px 0; }
.subnav a:hover { color: var(--white); }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 26, 64, 0.82) 0%, rgba(0, 37, 87, 0.92) 70%, var(--navy) 100%); }
.hero-inner { padding: 3rem 16px 6.5rem; }
.hero-title { font-family: var(--font-head); font-weight: 800; font-size: 1.95rem; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 1rem; max-width: 34rem; }
.hero-title span { display: block; color: var(--green-light); }
.hero-sub { font-size: 1.02rem; color: #dbe3ef; max-width: 34rem; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; max-width: 26rem; }

/* Stats card overlapping hero */
.stats { position: relative; margin-top: -4.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.stats li { padding: 1.1rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li:nth-child(2) { border-right: 0; }
.stats li:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.stats strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; color: var(--green); margin-bottom: 0.35rem; }
.stats span { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }

/* About */
.about-grid { display: grid; gap: 2.25rem; }
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.focus li { background: var(--navy-soft); border-left: 4px solid var(--navy); border-radius: 6px; padding: 0.9rem 0.85rem; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; line-height: 1.3; color: var(--navy); }

/* Investigators */
.inv-grid { display: grid; gap: 14px; margin-top: 0.5rem; }
.inv-card { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--line); }
.monogram { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; }
.inv-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.inv-card p { font-size: 0.9rem; color: var(--muted); margin-top: 0.2rem; }
.inv-card .inv-role { color: var(--green); font-weight: 600; }

/* Feasibility */
#feasibility { background: radial-gradient(1200px 500px at 85% -10%, rgba(169, 197, 144, 0.12), transparent 60%), var(--navy); }
.commit { display: grid; gap: 12px; margin: 0.5rem 0 1.75rem; }
.commit li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 1rem 1.1rem; }
.commit .ico { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--green); color: var(--white); }
.commit strong { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--white); }
.commit span { font-size: 0.85rem; color: #c9d3e3; }

.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 2rem; counter-reset: none; }
.path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 0.68rem; font-weight: 600; color: #dbe3ef; line-height: 1.25; }
.path li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: rgba(169, 197, 144, 0.5); }
.path-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-deep); border: 2px solid var(--green-light); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; }
.path em { font-style: normal; font-size: 0.65rem; font-weight: 700; color: var(--navy); background: var(--green-light); border-radius: 999px; padding: 1px 7px; }

.caps { display: grid; gap: 14px; }
.cap { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; border-top: 4px solid var(--green); }
.cap header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.cap header .ico { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--navy-soft); color: var(--navy); }
.cap h3 { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--navy); line-height: 1.25; }
.cap dl > div { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.cap dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 0.15rem; }
.cap dd { font-size: 0.9rem; color: var(--ink); line-height: 1.5; }

/* Facility */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { border: 3px solid var(--green); border-radius: 10px; overflow: hidden; background: var(--white); height: 100%; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 0.55rem 0.7rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--navy); line-height: 1.3; }
.trust { margin-top: 1.75rem; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--navy); background: var(--navy-soft); border-radius: 10px; padding: 0.9rem 1rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.25rem; }
.contact-list { display: grid; gap: 14px; margin: 1.5rem 0 1.75rem; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.contact-list .ico { color: var(--green-light); margin-top: 1px; }
.contact-list a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.contact-list a:hover { border-bottom-color: var(--white); }
.contact-list span { color: #dbe3ef; }

.form-card { background: var(--white); color: var(--ink); border-radius: 18px; padding: 1.5rem 1.15rem; box-shadow: var(--shadow); }
.form-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); margin-bottom: 1.25rem; line-height: 1.3; }
.row { display: grid; gap: 0 14px; }
.field { margin-bottom: 1rem; }
.field label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.counter { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="month"], select, textarea {
    width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1.5px solid #d5dae3; border-radius: 8px; background: #fbfbfc; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 37, 87, 0.12); }
.invalid { border-color: #b42318 !important; background: #fef3f2 !important; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--ink); margin: 0.25rem 0 1rem; cursor: pointer; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 22px; accent-color: var(--green); }
.check a { color: var(--navy); font-weight: 600; }
.phi { background: var(--beige); color: var(--navy); font-size: 0.85rem; font-weight: 600; border-radius: 8px; padding: 0.75rem 0.9rem; margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fef3f2; color: #b42318; border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.alert a { color: inherit; }
.form-state { text-align: center; padding: 1.5rem 0.5rem; }
.form-state .ico { margin: 0 auto 0.75rem; color: var(--white); background: var(--green); border-radius: 50%; padding: 10px; }
.form-state h3 { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.4rem; margin-bottom: 0.75rem; }
.form-state p { color: var(--muted); margin-bottom: 0.75rem; }
.form-state a { color: var(--green); font-weight: 600; }

/* Footer */
.footer { background: var(--green); color: #e9efe4; padding: 2rem 0 1.25rem; font-size: 0.85rem; }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-name { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 0.95rem; margin-bottom: 0.25rem; }
.footer a { color: var(--white); }
.footer-links { display: grid; gap: 6px; }
.footer-copy { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.75rem; color: #c8d4bd; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ≥ 640px */
@media (min-width: 640px) {
    .wrap { padding: 0 24px; }
    .hero-inner { padding: 4rem 24px 7rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-ctas { flex-direction: row; max-width: none; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .stats li { border-bottom: 0; border-right: 1px solid var(--line); }
    .stats li:nth-child(2) { border-right: 1px solid var(--line); }
    .stats li:last-child { grid-column: auto; border-right: 0; }
    .commit { grid-template-columns: repeat(3, 1fr); }
    .path li { font-size: 0.78rem; }
    .caps { grid-template-columns: 1fr 1fr; }
    .row { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 2rem; }
    .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* ≥ 900px */
@media (min-width: 900px) {
    .topbar-inner { height: 84px; }
    .brand img { height: 70px; }
    .topbar-tag { display: block; margin-left: auto; text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); line-height: 1.4; }
    .topbar-tag span { display: block; }
    .topbar-actions { padding-left: 20px; border-left: 1px solid var(--line); }
    .subnav-inner { justify-content: flex-end; gap: 32px; }

    .hero { min-height: 560px; display: flex; align-items: center; }
    .hero-photo { left: 42%; }
    .hero::before { background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 40%, rgba(0, 37, 87, 0.85) 52%, rgba(0, 37, 87, 0.15) 75%, rgba(0, 37, 87, 0) 100%); }
    .hero-inner { padding: 4.5rem 24px 8rem; }
    .hero-title { font-size: 3rem; }
    .hero-sub { font-size: 1.1rem; }

    .stats li { padding: 1.5rem 1.4rem; }
    .stats strong { font-size: 2.4rem; }
    .stats span { font-size: 0.85rem; }

    .section { padding: 5rem 0; }
    .h2 { font-size: 2.1rem; }
    .about-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
    .inv-grid { grid-template-columns: repeat(3, 1fr); }
    .inv-card { flex-direction: column; padding: 1.5rem; }
    .caps { grid-template-columns: repeat(3, 1fr); }
    .path { max-width: 860px; margin-left: auto; margin-right: auto; }
    .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
    .contact-copy { position: sticky; top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
