/*
 * website.css
 * Public marketing website for FramWellbeing.
 * Self-contained — no dependency on survey-shared.css.
 *
 * Aesthetic: light editorial base + brutal accents
 * (hard borders, sharp corners, terra stripes, one dark statement strip)
 */

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
  --teal:        #0ea5a8;
  --teal-dark:   #0a8c8f;
  --teal-soft:   #d4f7f8;
  /* Replaced orange/green (Attentia collision) with coral + teal dataviz palette */
  --coral:       #cc3d5a;        /* primary accent (was terra orange) */
  --coral-dark:  #a52d48;        /* darker coral (was terra-dark) */
  --coral-soft:  #fae8ec;        /* light coral background */
  --terra:       #cc3d5a;        /* alias for coral (backward compat) */
  --terra-dark:  #a52d48;        /* alias for coral-dark */
  --terra-soft:  #fae8ec;        /* alias for coral-soft */
  --amber:       #0ea5a8;        /* replaced green with teal (was amber gold) */
  --bg:          #fafaf8;
  --surface:     #ffffff;
  --ink:         #111827;
  --ink-soft:    #1f2937;
  --text:        #2c3e50;
  --muted:       #6b7a90;
  --border:      #e5e7eb;
  --border-soft: #f0f2f4;
  --shadow:      0 2px 12px rgba(44,62,80,.07);
  --shadow-lg:   0 8px 32px rgba(44,62,80,.14);
  --max-w:       1000px;
  --section-py:  100px;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Epilogue', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
}
img, svg { display: block; }
a { color: inherit; }

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  animation: fadeUp .6s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}
@supports not (animation-timeline: view()) {
  .reveal { animation: none; }
}

/* ── Layout ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  display: block;
  font-family: 'Epilogue', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-label--light { color: var(--teal-soft); }

/* ── NAV (light, sharp) ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.nav-logo-text span {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-link {
  font-family: 'Epilogue', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 0;
  transition: background .15s;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ── HERO (light, editorial) ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terra);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 28px;
  animation: fadeUp .5s ease-out both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terra);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  color: var(--text);
  margin-bottom: 28px;
  animation: fadeUp .5s .15s ease-out both;
  line-height: 1.1;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero h1 strong {
  font-style: normal;
  color: var(--terra);
  font-weight: 700;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.8;
  font-weight: 300;
  animation: fadeUp .5s .3s ease-out both;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp .5s .45s ease-out both;
}
.btn-primary {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--terra);
  color: #fff;
  padding: 15px 30px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); }
.hero-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.hero-link:hover { color: var(--text); border-color: var(--text); }

/* ── HERO PANEL (callout beside hero text) ───────────────────────── */
.hero-panel {
  border: 1px solid var(--border);
  border-top: 3px solid var(--terra);
  padding: 36px;
  background: var(--surface);
  animation: fadeIn .8s .6s ease-out both;
}
.hero-panel-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}
.hero-panel-quote {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 24px;
}
.hero-panel-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.hero-panel-answer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
}
.hero-panel-answer strong { color: var(--teal); font-weight: 600; }

/* ── STATEMENT STRIP (the ONE dark section — manifesto accent) ──── */
.section-statement {
  background: var(--ink);
  padding: 72px 0;
  border-top: 3px solid var(--terra);
  border-bottom: 3px solid var(--terra);
}
.statement-inner {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 820px;
}
.statement-bar { background: var(--terra); align-self: stretch; }
.statement-text {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.statement-text em {
  font-style: italic;
  color: var(--terra);
}

/* ── METHODOLOGY (light, hard borders) ───────────────────────────── */
.section-provocation {
  background: var(--surface);
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
}
.provocation-intro {
  max-width: 640px;
  margin-bottom: 72px;
}
.provocation-intro h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}
.provocation-intro h2 em { color: var(--terra); font-style: italic; }
.provocation-intro p { font-size: 16px; color: var(--muted); line-height: 1.8; }

.provocation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.provocation-card {
  background: var(--surface);
  padding: 40px 32px;
  border-top: 3px solid transparent;
}
.provocation-card:nth-child(1) { border-top-color: var(--terra); }
.provocation-card:nth-child(2) { border-top-color: var(--teal); }
.provocation-card:nth-child(3) { border-top-color: var(--amber); }
.provocation-card-num {
  font-family: 'Lora', serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(44,62,80,.1);
  line-height: 1;
  margin-bottom: 20px;
}
.provocation-card h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.provocation-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.provocation-card em { color: var(--text); font-style: italic; }

/* ── PROBLEM / SOLUTION ───────────────────────────────────────────── */
.section-ps {
  padding: var(--section-py) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.section-ps .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.section-ps .container::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.ps-block h2 { font-size: 28px; margin-bottom: 20px; }
.callout {
  border-left: 3px solid var(--terra);
  padding: 16px 20px;
  background: var(--terra-soft);
  margin-bottom: 20px;
}
.callout p {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}
.ps-block p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.ps-icon {
  width: 44px; height: 44px;
  background: var(--teal-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ps-icon svg { width: 24px; height: 24px; }

/* ── FEATURES ─────────────────────────────────────────────────────── */
.section-features {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.section-features h2 { font-size: 32px; margin-bottom: 12px; }
.section-features .intro { font-size: 16px; color: var(--muted); max-width: 520px; margin-bottom: 56px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: 0;
  padding: 32px;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-top-color .2s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--teal);
}
.feature-card-icon {
  width: 44px; height: 44px;
  background: var(--teal-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── WORKFLOW ─────────────────────────────────────────────────────── */
.section-workflow {
  padding: var(--section-py) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.section-workflow h2 { font-size: 32px; margin-bottom: 12px; }
.section-workflow .intro { font-size: 16px; color: var(--muted); max-width: 480px; margin-bottom: 64px; }
/* closing line after the steps — reads as a reflective coda, not a lead-in */
.section-workflow .workflow-loop { margin: 48px 0 0; font-style: italic; }
.workflow-steps { list-style: none; }
.workflow-step {
  display: grid;
  grid-template-columns: 80px 1fr 240px;
  gap: 32px 40px;
  align-items: start;
  padding-bottom: 60px;
  position: relative;
}
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 36px;
  top: 64px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  opacity: .3;
}
.step-num {
  font-family: 'Lora', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--teal);
  opacity: .2;
  line-height: 1;
  padding-top: 4px;
}
.step-content h3 { font-size: 20px; margin-bottom: 10px; }
.step-content p { font-size: 15px; color: var(--muted); line-height: 1.8; }
.step-content .step-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
}
.step-illustration { display: flex; justify-content: center; align-items: flex-start; padding-top: 4px; }
.step-illustration svg { width: 100px; height: 100px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.section-faq {
  padding: var(--section-py) 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}
.section-faq h2 { font-size: 32px; margin-bottom: 12px; }
.section-faq .intro { font-size: 16px; color: var(--muted); max-width: 480px; margin-bottom: 48px; }
.faq-list { list-style: none; max-width: 700px; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--teal); }
.faq-chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--muted);
  transition: transform .25s ease;
}
details[open] .faq-chevron { transform: rotate(180deg); color: var(--teal); }
.faq-answer {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 20px;
  max-width: 620px;
}

/* ── CONTACT ──────────────────────────────────────────────────────── */
.section-contact {
  padding: var(--section-py) 0;
  background: var(--bg);
  border-top: 3px solid var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 { font-size: 32px; margin-bottom: 16px; }
.contact-intro p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-detail svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--teal); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
/* Honeypot (Story 13-8): kept in the layout but moved off-screen so humans never
   see/focus it, while bots that fill every field still trip it. Not display:none —
   some bots skip hidden inputs; off-screen positioning catches more. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: .02em; }
.form-group input,
.form-group textarea {
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0;
  padding: 12px 16px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,168,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  align-self: flex-start;
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--terra);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-submit:hover { background: var(--terra-dark); transform: translateY(-2px); }

/* ── FOOTER (dark accent) ────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.4);
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-logo-text {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: rgba(255,255,255,.75);
}
.footer-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: 12px; }

/* Name-origin microcopy — the FRAM acronym + Norwegian etymology
 * lives here as a tasteful detail, never the headline. The drawer-hero
 * remains the primary positioning. */
.footer-name-origin {
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink-soft, rgba(255, 255, 255, 0.55));
  margin: 16px 0 8px;
  max-width: 560px;
  line-height: 1.55;
}
.footer-name-origin strong {
  font-weight: 600;
  color: var(--ink, rgba(255, 255, 255, 0.85));
  letter-spacing: 0.02em;
}
.footer-name-origin .origin-acronym {
  font-variant-caps: small-caps;
  letter-spacing: 0.04em;
}
.footer-name-origin em {
  font-style: italic;
  color: var(--ink-softer, rgba(255, 255, 255, 0.45));
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .provocation-grid { grid-template-columns: 1fr; gap: 0; }
  .section-ps .container { grid-template-columns: 1fr; gap: 48px; }
  .section-ps .container::before { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .workflow-step { grid-template-columns: 60px 1fr; }
  .workflow-step .step-illustration { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  :root { --section-py: 64px; }
  .container { padding: 0 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
}
