/* ==========================================================================
   LOYAVA Life — design tokens
   Ink #22313A · Slate #5C6670 · Mist #9A9A98 · Line #DBDCDA · Fog #F6F6F5
   Display: 'Jost' (geometric, echoes the wordmark) · Body: 'Inter'
   ========================================================================== */

:root {
  --ink: #22313A;
  --ink-90: rgba(34, 49, 58, 0.9);
  --slate: #5C6670;
  --mist: #9A9A98;
  --line: #DBDCDA;
  --fog: #F6F6F5;
  --paper: #FFFFFF;

  --font-display: 'Jost', 'Century Gothic', 'Futura', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-weight: 500; }

p { margin: 0 0 1em; color: var(--ink); }
p.lead { color: var(--slate); font-size: 1.1rem; }

a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 0.9rem;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-fog { background: var(--fog); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #16232B; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* -------------------- Header / nav -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 40px; width: 40px; }
.brand-word { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.03em; color: var(--ink); }
.brand-word small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--mist); font-family: var(--font-body); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--slate); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta { display: flex; align-items: center; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: all 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem var(--gutter); border-bottom: 1px solid var(--fog); width: 100%; }
  .nav-cta { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero-sub { font-size: 1.05rem; color: var(--slate); max-width: 34em; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-mark { position: relative; }
.hero-mark svg { width: 100%; height: auto; }

/* -------------------- Stat strip -------------------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line);
}
.stat-strip div { padding: 1.6rem var(--gutter); border-left: 1px solid var(--line); }
.stat-strip div:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.8rem); color: var(--ink); white-space: nowrap; }
.stat-label { font-size: 0.82rem; color: var(--slate); margin-top: 0.2rem; }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(3) { border-left: none; }
}

/* -------------------- Cards / grids -------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.cell {
  padding: 2rem clamp(1rem, 3vw, 2rem) 2rem 0;
  border-top: 1px solid var(--line);
}
.grid-3 .cell:nth-child(3n+2), .grid-3 .cell:nth-child(3n+3) { padding-left: clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.grid-2 .cell:nth-child(2n) { padding-left: clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .grid-3 .cell:nth-child(3n+2), .grid-3 .cell:nth-child(3n+3),
  .grid-2 .cell:nth-child(2n) { border-left: none; padding-left: 0; }
}
.cell .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--mist); display: block; margin-bottom: 0.6rem; }
.cell h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.cell p { color: var(--slate); font-size: 0.95rem; }

/* -------------------- Process steps (distribution page) -------------------- */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 2rem; color: var(--mist); }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--slate); }
@media (max-width: 640px) { .step { grid-template-columns: 50px 1fr; } .step-num { font-size: 1.4rem; } }

/* -------------------- Table-style rows (footprint) -------------------- */
.row-list .row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.row-list .row:last-child { border-bottom: 1px solid var(--line); }
.row-list .row strong { font-family: var(--font-display); font-weight: 500; }
.row-list .row span { color: var(--slate); }
@media (max-width: 600px) { .row-list .row { grid-template-columns: 1fr; gap: 0.2rem; } }

/* -------------------- Pull quote -------------------- */
.pullquote { border-left: 2px solid var(--ink); padding-left: 1.6rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); font-style: italic; max-width: 40em; }
.pullquote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--slate); margin-top: 1rem; }

/* -------------------- Team cards -------------------- */
.team-card {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
  padding: 2.2rem 0; border-top: 1px solid var(--line);
}
.team-card:last-child { border-bottom: 1px solid var(--line); }
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.team-card .role { color: var(--slate); margin-bottom: 1rem; }
.team-card .qr-block { text-align: center; }
.team-card .qr-block img { width: 128px; height: 128px; border: 1px solid var(--line); }
.team-card .qr-block span { display: block; font-size: 0.75rem; color: var(--slate); margin-top: 0.5rem; font-style: italic; }
.team-links { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1rem; }
.team-links a { font-size: 0.85rem; }
@media (max-width: 600px) { .team-card { grid-template-columns: 1fr; } .team-card .qr-block { justify-self: start; } }

/* -------------------- Forms -------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--slate); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
input, textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75em 0.9em; background: var(--paper);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--mist); margin-top: 0.8rem; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--ink); color: #C9D0D4; padding: 3.5rem 0 2rem; margin-top: 4rem; }
.site-footer a { color: #C9D0D4; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #8FA0A8; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.8rem; color: #8FA0A8; }

/* -------------------- Legal pages -------------------- */
.legal-body h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal-body p, .legal-body li { color: var(--slate); font-size: 0.96rem; }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; }
.notice-box {
  background: var(--fog); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-size: 0.88rem; color: var(--slate); margin: 1.6rem 0;
}
.notice-box strong { color: var(--ink); }
.placeholder { background: #FBF0DE; padding: 0.05em 0.35em; border-radius: 2px; color: #7A5B1E; font-weight: 600; }

/* -------------------- Page header (interior pages) -------------------- */
.page-header { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-header p.lead { max-width: 42em; }

/* -------------------- Utility -------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
