/* Raging Ventures - site styles. No framework, no CDN. */

@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/opensans-latin-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #9c1e6d;
  --brand-bright: #d8369c;
  --footer: #111111;
  --ink: #1d1d1f;
  --paper: #ffffff;
  --mist: #f7f1f5;            /* soft neutral, slight magenta bias */
  --line: #e7dbe3;
  --wrap: 1120px;
  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--brand); padding: .6rem 1rem; z-index: 20;
}
.skip-link:focus { left: 8px; top: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand-bright); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 300px; height: auto; display: block; }
.nav-toggle {
  display: none;
  font: inherit; font-weight: 600; color: var(--ink);
  background: var(--mist); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .9rem; cursor: pointer;
}
.primary-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.primary-nav a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(17,6,13,.62), rgba(17,6,13,.62)), url('/images/rv-splash-bg.jpg') center / cover no-repeat;
  color: #fff;
}
.hero-inner { padding: clamp(3rem, 8vw, 6rem) 20px; max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .85rem; margin: 0 0 .8rem; opacity: .95; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero-sub { font-size: 1.15rem; max-width: 60ch; margin: 0 0 1.6rem; }
.hero-actions { margin: 0 0 2.4rem; }
.counter { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.counter-value { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.counter-label { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; opacity: .95; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; padding: .85rem 1.6rem; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-bright); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-intro { max-width: 70ch; }
.section-what { background: var(--paper); }

/* cards 4 / 2 / 1 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 2rem; }
.card { background: var(--mist); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.card img { width: auto; height: 60px; margin-bottom: .8rem; }
.card h3 { color: var(--brand); }

/* stats band */
.section-stats { background: var(--brand); color: #fff; }
.section-stats h2 { color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.stat { text-align: center; }
.stat-num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: .95rem; opacity: .95; margin-top: .3rem; }

/* who we are */
.section-who {
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url('/images/rv-content-bg.jpg') center / cover no-repeat;
  color: var(--ink);
}
.who-inner { max-width: 65ch; }
.who-inner a { color: var(--brand); text-decoration: underline; }

/* contact */
.section-contact {
  background: linear-gradient(rgba(17,6,13,.66), rgba(17,6,13,.66)), url('/images/rv-contactus-bg.jpg') center / cover no-repeat;
  color: #fff;
}
.section-contact h2 { color: #fff; }
.contact-intro { max-width: 60ch; }
.contact-card { background: var(--paper); color: var(--ink); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.4rem); max-width: 640px; margin-top: 1.8rem; }

/* form */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .8rem; border: 1px solid #b9a7b2; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b00020; outline: 2px solid #b00020; }
.cf-turnstile { margin: 1rem 0; }
.form-note { font-size: .9rem; margin-top: 1rem; }
.form-note a { color: var(--brand); text-decoration: underline; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { margin-top: 0; }

/* honeypot: hidden off-screen, not announced */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* legal / response pages */
.section-legal .legal-inner { max-width: 70ch; }
.legal-inner a { color: var(--brand); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #e9e3e7; padding: 2.6rem 0; }
.footer-legal { max-width: 70ch; margin: 0 0 .6rem; color: #cbbfc7; font-size: .95rem; }
.footer-links { margin: 0 0 .6rem; }
.site-footer a { color: var(--brand-bright); text-decoration: underline; }
.footer-copy { margin: 0; color: #cbbfc7; font-size: .95rem; }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .brand img { width: clamp(140px, 45vw, 220px); }
  .primary-nav { display: none; flex-basis: 100%; width: 100%; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .8rem 0; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(5) { grid-column: 1 / -1; }

  .section-who {
    background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url('/images/rv-content-bg-mob.jpg') center / cover no-repeat;
  }
}
@media (max-width: 575px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Insights blog ---------- */
.article-wrap { max-width: 72ch; }
.post, .blog-index { font-size: 1rem; }
.post p, .blog-index p { line-height: 1.75; }
.post h1 { margin-bottom: .4em; }
.post h2 { margin-top: 2em; margin-bottom: .5em; }
.post h3 { margin-top: 1.6em; margin-bottom: .4em; color: var(--brand); }
.post ul, .post ol { line-height: 1.75; padding-left: 1.3em; margin: 0 0 1em; }
.post li { margin-bottom: .4em; }

.standfirst { font-size: 1.25rem; line-height: 1.5; color: #4a4450; margin: 0 0 1.6em; }

/* in-body links: brand colour + underline, clear focus */
.post a, .blog-index a, .standfirst a, .post-back a {
  color: var(--brand); text-decoration: underline; text-underline-offset: 2px;
}
.post a:hover, .blog-index a:hover, .standfirst a:hover, .post-back a:hover { color: var(--brand-bright); }

/* worked example boxes (AI briefs) */
blockquote.brief {
  margin: 1.4em 0; padding: 1rem 1.2rem;
  background: var(--mist); border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0; font-size: .95rem; color: #3a343f;
}
blockquote.brief p { margin: 0 0 .6em; line-height: 1.6; }
blockquote.brief p:last-child { margin-bottom: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.post table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.post th, .post td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.post thead th { background: var(--mist); color: var(--ink); font-weight: 700; }

/* index list: clean, no cards/shadows */
.blog-index { list-style: none; padding: 0; margin: 1.4em 0 0; }
.blog-index li { padding: 1.3em 0; border-top: 1px solid var(--line); }
.blog-index li:first-child { border-top: 0; }
.blog-index h2 { margin: 0 0 .3em; font-size: 1.3rem; }
.blog-index h2 a { text-decoration: none; }
.blog-index h2 a:hover { text-decoration: underline; }
.blog-index p { margin: 0; color: #4a4450; }

.post-back { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-weight: 600; }
