/* ============================================================
   MW Alternative Investments — styles
   Brand values pulled from mw_brand_assets.html
   ============================================================ */

/* ---- Self-hosted Inter (single variable file, weights 300-500) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;            /* covers 300 / 400 / 500 */
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---- Design tokens ---- */
:root {
  --slate:        #1E2C3A;   /* primary, dark bg, headings */
  --slate-soft:   #9BB5C8;   /* muted text on dark */
  --teal:         #1D9E75;   /* accent, marks, rules */
  --teal-light:   #5DCAA5;   /* on dark only */
  --teal-dark:    #0F6E56;   /* subheads on light */
  --cool-white:   #F4F7F9;   /* panels */
  --white:        #FFFFFF;
  --ink-light:    #F0F4F7;   /* light text on slate */
  --border:       #D6E2EA;   /* hairline */
  --text:         #2B3B4A;   /* body on light */
  --text-soft:    #5F7A8A;   /* secondary on light */

  --maxw: 1080px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; max-width: 100%; }

h1, h2, p, ul { margin: 0; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.measure { max-width: 760px; }

/* ---- Accessibility: skip link + focus ---- */
.skip-link {
  position: absolute;
  left: 0;
  top: -100%;
  background: var(--teal-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

/* ---- Eyebrows / shared type ---- */
.eyebrow {
  font-size: 0.6875rem;          /* ~11px */
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow--on-dark  { color: var(--teal-light); }
.eyebrow--on-light { color: var(--teal-dark); }

.section-heading {
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.01em;
  color: var(--slate);
  margin-bottom: 1.1rem;
}
.section-heading--on-dark { color: var(--ink-light); }

.body-lg {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--slate);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.5rem;
}
.logo { display: inline-flex; align-items: center; }
.logo-svg { width: clamp(210px, 38vw, 260px); height: auto; }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-light);
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-cta:hover { background: var(--teal); color: var(--slate); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--slate);
  color: var(--ink-light);
  padding-block: clamp(3.5rem, 11vw, 7rem);
}
.hero-lead {
  font-weight: 300;
  font-size: clamp(1.9rem, 6vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 16ch;
  color: var(--white);
}
.hero-cred {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 300;
  color: var(--slate-soft);
  line-height: 1.7;
}

/* tagline fragments row */
.tagline {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.tagline li { position: relative; padding-right: 1.15rem; }
.tagline li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 16px;            /* 1:2 ratio matches the filled diamond in the logo mark */
  margin-top: -8px;
  background: var(--teal);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.tagline li:last-child { padding-right: 0; }
.tagline li:last-child::after { display: none; }

/* ============================================================
   Content sections
   ============================================================ */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--panel { background: var(--cool-white); border-block: 1px solid var(--border); }

/* ============================================================
   Contact
   ============================================================ */
.section--contact { background: var(--slate); color: var(--ink-light); }
.contact-intro {
  max-width: 52ch;
  margin-bottom: 2.25rem;
  color: var(--slate-soft);
  font-weight: 300;
  font-size: 1.0625rem;
}

.contact-form { max-width: 560px; }
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
  color: var(--ink-light);
}
.req { color: var(--teal-light); }
.optional { color: var(--slate-soft); font-weight: 400; letter-spacing: 0; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 226, 234, 0.25);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-soft); }
.field input:hover,
.field textarea:hover { border-color: rgba(214, 226, 234, 0.45); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  background: rgba(255, 255, 255, 0.07);
}
.field textarea { resize: vertical; min-height: 120px; }

.hp { position: absolute; left: -9999px; }

.btn {
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--slate);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--teal-light); border-color: var(--teal-light); }

/* Form success state (shown by main.js after submission) */
.form-success {
  max-width: 560px;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--teal-light);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(93, 202, 165, 0.08);
}
.form-success-title {
  color: var(--ink-light);
  font-weight: 500;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}
.form-success-body { color: var(--slate-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--slate);
  color: var(--slate-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}
.footer-mark { margin-bottom: 0.4rem; }
.footer-name {
  color: var(--ink-light);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}
.footer-small { font-size: 0.75rem; color: var(--slate-soft); }
