/* ResolveUK — shared styles for content pages (about, legal, FAQs, contact…) */
:root {
  --orange: #FC4C02;
  --orange-light: #FF7A3D;
  --orange-dark: #C63A00;
  --navy: #002940;
  --navy-mid: #0B4462;
  --gray-50: #F9F8F6;
  --gray-100: #F2F0EC;
  --gray-200: #E2DFD8;
  --gray-400: #9E9A92;
  --gray-700: #3D3A35;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--orange); }

/* ── NAVBAR ──
 * Scoped to the top-level nav so in-page <nav> elements (quiz tabs, etc.)
 * are not turned into fixed bars. */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.nav-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
/* Real brand lockup (assets/brand/resolve-logo.svg) — replaces the old
   CSS-drawn "RES•LVE uk" wordmark. */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}
.logo-dot-legacy {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  margin: 0 1px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.btn-login {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  background: transparent;
  padding: 8px 22px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-login:hover { background: var(--orange); color: #fff; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(252,76,2,0.35);
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(252,76,2,0.4); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 130px 40px 50px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  color: var(--navy);
}
.page-hero p.lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.6;
}
.page-meta { margin-top: 16px; font-size: 13px; color: var(--gray-400); }

/* ── CONTENT / PROSE ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 40px 90px;
  font-size: 16px;
  color: var(--gray-700);
}
.prose h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin: 40px 0 14px;
}
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 26px 0 10px;
}
.prose p { margin-bottom: 16px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--orange); }
.prose strong { color: var(--navy); font-weight: 700; }
.prose hr { border: none; border-top: 1px solid var(--gray-200); margin: 36px 0; }

/* ── FEATURE GRID (about / business) ── */
.grid-section { max-width: 1100px; margin: 0 auto; padding: 40px 40px 90px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card .ic-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #FFF3EE; border: 1px solid #FDDDD1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.info-card .ic-icon svg { width: 20px; height: 20px; color: var(--orange); }
.info-card h3 { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--gray-400); line-height: 1.65; }

/* ── PAGE HERO VISUAL (optional image under a .page-hero, e.g. business.html) ── */
.page-hero-visual { display: flex; justify-content: center; padding: 0 40px 60px; }
.page-hero-visual img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,41,64,0.14);
}

/* ── STEPS (how it works, with visuals) ── */
.how { padding: 10px 40px 90px; max-width: 1100px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 50px; }
.how-header p { font-size: 16px; color: var(--gray-400); margin-top: 10px; }
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--navy);
}
.section-title em { font-style: normal; color: var(--orange); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 40px;
  padding: 50px 0;
  border-bottom: 1px solid var(--gray-100);
}
.step:last-child { border-bottom: none; }
.step.reverse .step-text { order: 3; }
.step.reverse .step-visual { order: 1; }
.step-text { order: 1; }
.step-num-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; order: 2; }
.step-visual { order: 3; border-radius: 20px; overflow: hidden; position: relative; }
.step-num {
  width: 52px; height: 52px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text h3 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.step-text p { font-size: 15px; color: var(--gray-400); line-height: 1.7; max-width: 380px; }
.step-visual img { width: 100%; height: auto; display: block; }

/* ── QUIZ TABS ── */
.quiz-tabs {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200);
}
.quiz-tabs a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  text-decoration: none;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.quiz-tabs a:hover { color: var(--navy); }
.quiz-tabs a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; padding: 20px 40px 90px; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 4px 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  padding: 22px 40px 22px 0;
  position: relative;
  display: block;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a {
  display: none;
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ── CONTACT ── */
.contact-wrap { max-width: 980px; margin: 0 auto; padding: 30px 40px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); margin: 22px 0 6px; }
.contact-info p, .contact-info a { font-size: 15px; color: var(--gray-700); text-decoration: none; line-height: 1.7; }
.contact-info a:hover { color: var(--orange); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252,76,2,0.12); }

/* ── CTA STRIP ── */
/* ── QUIZ BANNER (business page) ──
 * Secondary CTA: sits above the primary "Post a Shift" strip without competing
 * with it, so the outline button and navy panel rather than the orange fill. */
.quiz-banner { padding: 20px 40px 70px; }
.quiz-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.quiz-banner-text { flex: 1; min-width: 260px; }
.quiz-banner h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 8px;
}
.quiz-banner p { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.6; margin: 0; }
.btn-quiz {
  border: 1.5px solid var(--orange);
  background: var(--orange);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-quiz:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); color: #fff; }
@media (max-width: 600px) {
  .quiz-banner { padding: 10px 20px 50px; }
  .quiz-banner-inner { padding: 28px 24px; }
  .btn-quiz { width: 100%; text-align: center; }
}

.cta-strip { background: var(--gray-50); padding: 70px 40px; text-align: center; }
.cta-strip h2 { font-family: 'Manrope', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.6px; color: var(--navy); margin-bottom: 12px; }
.cta-strip p { color: var(--gray-400); margin-bottom: 26px; font-size: 16px; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 70px 40px 32px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 30px;
}
/* The Quiz Links column only renders on /business and the FAQs pages, so the
 * grid gains a fifth track there. See PAGES.quizLinks in build.js. */
.footer-grid.has-quiz { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer-contact-block { margin-top: 20px; }
.footer-contact-label { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.footer-email { color: rgba(255,255,255,0.6); font-size: 13px; display: block; margin-bottom: 12px; text-decoration: none; }
.footer-email:hover { color: var(--orange); }
.footer-address { font-size: 12px; margin-top: 16px; opacity: 0.5; line-height: 1.7; }
.footer-col h4 { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: rgba(255,255,255,0.5);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.social-btn:hover { border-color: var(--orange); color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: 0.4; flex-wrap: wrap; gap: 10px; }

/* ── COOKIE CONSENT ──
 * Injected by site.js. Bottom-left, per the agreed widget position. */
.cookie-banner {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 200;
  width: min(420px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,41,64,0.18);
  padding: 22px;
  display: none;
}
.cookie-banner.open { display: block; }
.cookie-main h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cookie-main p { font-size: 13px; color: var(--gray-700); line-height: 1.6; }
.cookie-prefs { margin-top: 16px; border-top: 1px solid var(--gray-200); padding-top: 14px; }
.cookie-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.cookie-row input { margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.cookie-row input:disabled { cursor: not-allowed; }
.cookie-row strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.cookie-row em { display: block; font-style: normal; font-size: 12px; color: var(--gray-400); line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.cookie-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-solid { background: var(--orange); color: #fff; }
.cookie-solid:hover { background: var(--orange-dark); }
.cookie-ghost { background: transparent; border-color: var(--gray-200); color: var(--gray-700); }
.cookie-ghost:hover { border-color: var(--navy); color: var(--navy); }
.cookie-link { background: none; border: none; color: var(--gray-400); text-decoration: underline; padding: 9px 4px; margin-right: auto; }
.cookie-link:hover { color: var(--orange); }
.cookie-fab {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 199;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 6px 20px rgba(0,41,64,0.14);
  color: var(--navy);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.cookie-fab.show { display: flex; }
.cookie-fab:hover { color: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.cookie-fab svg { width: 20px; height: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid.has-quiz { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
  .step { grid-template-columns: 1fr; text-align: center; }
  .step-num-wrap { flex-direction: row; justify-content: center; }
  .step.reverse .step-text, .step.reverse .step-visual { order: unset; }
  .step-text p { max-width: none; }
}
@media (max-width: 600px) {
  nav { padding: 0 16px; height: 56px; }
  .nav-links { display: none; }
  .page-hero { padding: 110px 20px 40px; }
  .prose, .faq-list { padding-left: 20px; padding-right: 20px; }
  .footer-grid, .footer-grid.has-quiz { grid-template-columns: 1fr; gap: 30px; }
}
