/* Vial HREC — static rebuild
   Palette and type recovered from the original Elementor build:
   Inter; body #333; ink #0F1012; rules #161719 */

:root {
  --ink: #0f1012;
  --ink-soft: #161719;
  --body: #333333;
  --muted: #6b6f76;
  --line: #e4e6e9;
  --surface: #ffffff;
  --surface-alt: #f6f7f8;
  --accent: #2b2b2b;
  --maxw: 1140px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a, .nav button {
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--muted); }

.has-menu { position: relative; }
.has-menu > button::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 320px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 18px 44px rgba(15,16,18,.13);
  padding: 8px; margin: 0; list-style: none; display: none;
}
.has-menu[data-open="true"] .menu { display: block; }
.menu a {
  display: block; padding: 11px 14px; border-radius: 7px;
  font-size: 14px; font-weight: 450; letter-spacing: 0; text-transform: none;
  color: var(--ink); line-height: 1.4;
}
.menu a:hover { background: var(--surface-alt); color: var(--ink); }
.menu .doc-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav-toggle { display: none; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-num {
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  color: var(--muted); margin: 0 0 18px;
}
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.4rem); line-height: 1.18; }
h3 { font-size: 1.05rem; line-height: 1.35; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.55; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(84px, 11vw, 150px) 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 78% 18%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { color: #fff; }
.hero .section-num { color: rgba(255,255,255,.55); }
.hero .lede { color: rgba(255,255,255,.8); margin-top: 22px; max-width: 46rem; }

.btn {
  display: inline-block; margin-top: 34px;
  padding: 15px 30px; border-radius: 4px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- Membership ---------- */

.intro { max-width: 46rem; margin-bottom: 52px; }

.cards {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.card { background: #fff; padding: 32px 30px; }
.card .n {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--ink); display: block; margin-bottom: 14px;
}
.card p { font-size: 15.5px; line-height: 1.62; margin: 0; }

/* ---------- Representation ---------- */

.alt { background: var(--surface-alt); }
.statements { display: grid; gap: 22px; max-width: 54rem; }
.statement {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0; padding: 26px 30px;
}
.statement p { font-size: 16px; margin: 0; }

/* ---------- Documents ---------- */

.doc-list { display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.doc {
  background: #fff; padding: 22px 26px; display: flex; gap: 20px;
  align-items: center; justify-content: space-between;
  text-decoration: none; color: inherit;
}
.doc:hover { background: var(--surface-alt); }
.doc .t { display: block; font-size: 16.5px; font-weight: 550; color: var(--ink); }
.doc .m { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.doc .dl {
  flex: none; font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: 46px;
}
.contact-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 30px;
  background: #fff;
}
.contact-card .label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5; margin: 0 0 16px;
}
.contact-card .who { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.contact-card a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-card a:hover { border-bottom-color: var(--ink); }
.contact-card .tel { display: block; margin-top: 6px; color: var(--body); }

form { margin-top: 56px; max-width: 42rem; }
.field { margin-bottom: 22px; }
.field > label, legend {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px; padding: 0;
}
.req { color: #b4232a; }
input, textarea {
  font: inherit; font-size: 16px; width: 100%;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; color: var(--body);
}
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.two .sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
button[type="submit"] {
  font: inherit; cursor: pointer; border: 0;
  padding: 15px 34px; border-radius: 4px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
}
button[type="submit"]:hover { opacity: .9; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 36px; }
.site-footer h2 { color: #fff; font-size: 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.site-footer a:hover { border-bottom-color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-end; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.footer-links a { border: 0; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: #fff; }
.copyright {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13.5px; color: rgba(255,255,255,.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .nav-toggle {
    display: inline-block; font-size: 13px; font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 14px;
    box-shadow: 0 20px 40px rgba(15,16,18,.16);
  }
  .site-header[data-nav="open"] .nav { display: flex; }
  .nav > * { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav > a { width: 100%; padding: 15px 0; }
  .has-menu > button { display: block; width: 100%; text-align: left; padding: 15px 0 5px; }
  .nav > *:last-child { border-bottom: 0; }
  .has-menu > button::after { float: right; margin-top: 8px; }
  .menu {
    position: static; transform: none; display: none; min-width: 0;
    border: 0; box-shadow: none; padding: 6px 0 0;
  }
  .has-menu[data-open="true"] .menu { display: block; }
  .menu a { padding: 10px 0; }
  .two { grid-template-columns: 1fr; }
  .doc { flex-direction: column; align-items: flex-start; gap: 8px; }
}

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

/* ---------- Brand lockup ----------
   CSS recreation of the original vialhreclogo.svg so the site has no
   missing-asset gap. To use the original mark instead, drop the file at
   assets/vialhreclogo.svg and replace the .brand markup in each page with:
   <img src="/assets/vialhreclogo.svg" alt="Vial HREC" width="215" height="30"> */

.brand { gap: 11px; color: var(--ink); }
.brand .mark {
  width: 19px; height: 25px; flex: none; position: relative;
  border: 2px solid var(--accent); border-top: 0;
}
.brand .mark::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -8px;
  height: 3px; background: var(--accent);
}
.brand .word {
  font-size: 21px; font-weight: 500; letter-spacing: -.01em; color: var(--accent);
  line-height: 1;
}
.brand .rule { width: 1px; height: 22px; background: var(--ink-soft); flex: none; }
.brand .hrec {
  font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft);
  line-height: 1.35; white-space: nowrap;
}
