/* ============================================================
   OneBlood Labs — shared design system
   Jamaican heritage: black / vibrant green / gold foil
   Display: Oswald (condensed) · Body: Hanken Grotesk
   Structural motif: the flag saltire (diagonal cross)
   ============================================================ */

:root {
  /* core flag palette */
  --black:      #0c0b09;   /* warm near-black */
  --ink:        #14110d;   /* warm dark surface */
  --ink-2:      #1d1812;   /* raised dark surface */
  --cream:      #f4ecdb;   /* warm paper */
  --cream-2:    #ece2cd;   /* darker paper */
  --cream-line: #ddd0b4;
  --green:      #00a256;   /* vibrant Jamaica green */
  --green-deep: #00713c;
  --green-dark: #053d24;
  --gold:       #f4be41;   /* foil gold */
  --gold-deep:  #d99a23;
  --gold-soft:  #f7d588;
  --white:      #fffdf7;

  /* text */
  --on-dark:        #f4ecdb;
  --on-dark-dim:    rgba(244, 236, 219, 0.62);
  --on-dark-faint:  rgba(244, 236, 219, 0.34);
  --on-light:       #1a1408;
  --on-light-dim:   rgba(26, 20, 8, 0.66);
  --on-light-faint: rgba(26, 20, 8, 0.40);

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

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--on-dark);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--black); }

/* ---------- type ---------- */
h1, h2, h3, h4, .display {
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-light { color: var(--green-deep); }
.eyebrow.on-light::before { background: var(--green-deep); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.62; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { position: relative; }

/* ---------- buttons ---------- */
.btn {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 1.9em;
  border-radius: 2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-deep); }
.btn-ghost { border-color: rgba(244,236,219,0.28); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { border-color: rgba(26,20,8,0.25); color: var(--on-light); }
.btn-ghost-dark:hover { border-color: var(--green-deep); color: var(--green-deep); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(244, 190, 65, 0.16);
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(8deg) scale(1.04); }
.brand .wm {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.brand .wm b { color: var(--gold); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
  color: var(--black);
  background: var(--gold);
  padding: 0.7em 1.3em;
  border-radius: 2px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold-soft); color: var(--black); }
.nav-toggle { display: none; }

/* ---------- saltire / flag motifs ---------- */
.saltire-corner {
  position: absolute;
  width: 240px; height: 240px;
  pointer-events: none;
  opacity: 0.5;
}

/* thin gold diagonal hairlines forming the flag cross */
.flag-cross {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(244,190,65,0.18) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(244,190,65,0.18) 50%, transparent calc(50% + 1px));
}

/* diagonal section divider band */
.diag-top { clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); }
.diag-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }

/* ---------- footer ---------- */
.footer { background: var(--black); padding: 90px 0 44px; position: relative; overflow: hidden; }
.footer .flag-cross { opacity: 0.6; }
.footer .wrap { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand-lg { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.footer-brand .brand-lg img { width: 64px; }
.footer-brand .brand-lg .wm { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.7rem; text-transform: uppercase; line-height: 1; color: var(--white); white-space: nowrap; }
.footer-brand .brand-lg .wm b { color: var(--gold); font-weight: 600; }
.footer-brand .motto { font-family: "Oswald", sans-serif; font-weight: 400; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--on-dark-dim); max-width: 30ch; }
.footer-brand .motto b { color: var(--gold); font-weight: 500; }
.foot-col h5 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 6px 0 18px; }
.foot-col a { display: block; color: var(--on-dark-dim); font-size: 0.96rem; padding: 7px 0; transition: color 0.25s, transform 0.25s var(--ease); }
.foot-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(244,236,219,0.1); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--on-dark-faint); }
.footer-bottom .flag-dots { display: flex; gap: 7px; }
.footer-bottom .flag-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1.5px solid rgba(244,236,219,0.25);
    border-radius: 2px; background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--on-dark); position: relative; display: block; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--on-dark); }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.page-head {
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(0,162,86,0.16), transparent 55%),
    var(--black);
  padding: clamp(130px, 18vh, 180px) 0 clamp(56px, 8vw, 84px);
  position: relative;
  overflow: hidden;
}
.page-head .flag-cross { opacity: 0.6; }
.page-head .hero-stripe {
  position: absolute; top: 0; bottom: 0; right: 0; width: 12px;
  background: linear-gradient(var(--green) 0 33.3%, var(--gold) 33.3% 66.6%, var(--green) 66.6% 100%);
  opacity: 0.9;
}
.page-head .inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; color: var(--cream); margin: 18px 0 0; }
.page-head .updated {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-faint);
}
.page-head .head-mark { width: 88px; opacity: 0.9; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); }

.legal { background: var(--cream); color: var(--on-light); padding: clamp(40px, 6vw, 76px) 0 clamp(70px, 9vw, 110px); }
.legal .wrap { max-width: 920px; }
.legal-intro {
  font-family: "Oswald", sans-serif; font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.18; color: var(--on-light);
  max-width: 24ch; padding: clamp(30px, 4vw, 50px) 0;
}
.legal-intro .grn { color: var(--green-deep); }
.legal-block {
  display: grid; grid-template-columns: 92px 1fr; gap: clamp(20px, 4vw, 44px);
  padding: clamp(30px, 4vw, 46px) 0; border-top: 1px solid var(--cream-line); align-items: start;
}
.legal-block .num { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.5rem; color: var(--gold-deep); line-height: 1; }
.legal-block .cat {
  display: block; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px;
}
.legal-block h2 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--on-light); margin: 0 0 14px; line-height: 1.04; }
.legal-block p { color: var(--on-light-dim); margin: 0 0 16px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul { margin: 8px 0 0; padding-left: 20px; color: var(--on-light-dim); }
.legal-block li { margin-bottom: 10px; }
.legal-block li::marker { color: var(--gold-deep); }
.legal-block .pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.legal-block .pair h3 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--on-light); margin: 0 0 8px; }
.legal-block .pair p { font-size: 0.96rem; }
.legal-block h3 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--on-light); margin: 26px 0 10px; }
.legal-block h2 + h3 { margin-top: 14px; }
.legal-preamble { max-width: 70ch; }
.legal-preamble p { color: var(--on-light-dim); margin: 0 0 16px; }
.legal-preamble strong { color: var(--on-light); }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 4px; font-size: 0.95rem; }
.legal-table th { text-align: left; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--green-deep); padding: 0 18px 12px 0; border-bottom: 1px solid var(--cream-line); }
.legal-table td { padding: 13px 18px 13px 0; border-bottom: 1px solid var(--cream-line); color: var(--on-light-dim); vertical-align: top; }
.legal-table td:first-child { color: var(--on-light); font-weight: 600; padding-right: 28px; }
.legal-contact { font-style: normal; color: var(--on-light-dim); line-height: 1.8; }
.legal-contact strong { display: block; color: var(--on-light); font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; margin-bottom: 4px; }
.legal a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 0.2s; }
.legal a:hover { color: var(--gold-deep); }
.legal-note { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--cream-line); font-size: 0.85rem; font-style: italic; color: var(--on-light-faint); max-width: 64ch; }
.legal-caps { font-size: 0.92rem; line-height: 1.7; color: var(--on-light-dim); letter-spacing: 0.005em; }

@media (max-width: 680px) {
  .legal-block { grid-template-columns: 1fr; gap: 10px; }
  .legal-block .num { font-size: 1.2rem; }
  .legal-block .pair { grid-template-columns: 1fr; }
}
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; } }
