/* ============================================================
   Florette Relocation — Base / Design System
   Foundation tokens, reset, typography, layout helpers, buttons,
   reusable blocks (FAQ, logo strip, figures). Loaded first on
   every page; chrome.css (nav/footer) and homepage.css (sections)
   build on top of this.
   Extracted from the homepage inline <style> so all pages share
   the same visual language.
   ============================================================ */

:root {
  /* Brand — red used SPARINGLY (logo + primary CTAs only) */
  --color-brand-red: #D6131C;
  --color-brand-red-hover: #A80F15;
  /* Neutrals — dominant */
  --color-background: #FAFAF7;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #5C5C5C;
  /* Trust accents */
  --color-trust-navy: #0F2A44;
  --color-success-green: #2D6A4F;
  /* Structure */
  --color-border: #E5E5E0;
  --color-surface-elevated: #FFFFFF;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-hero: clamp(2.5rem, 5vw, 4rem);
  --text-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);

  /* Legacy aliases */
  --blue: var(--color-trust-navy);
  --blue-2: var(--color-trust-navy);
  --blue-ink: #0A1E33;
  --ink: var(--color-text-primary);
  --slate: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border);
  --bg: var(--color-background);
  --bg-2: #F3F2EC;
  --bg-3: #ECEBE3;
  --white: var(--color-surface-elevated);
  --font: var(--font-primary);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
  --shadow: 0 8px 24px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.16), 0 8px 24px rgba(15,23,42,.08);
  --shadow-blue: 0 18px 40px rgba(15,42,68,.18);
  --container: 1200px;
  --nav-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--color-text-primary); letter-spacing: -.01em; }
h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: var(--text-h2); font-weight: 700; line-height: 1.15; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.25; }
h4 { font-weight: 700; line-height: 1.25; }
section { position: relative; }
::selection { background: var(--color-trust-navy); color: #fff; }
:focus-visible { outline: 3px solid var(--color-trust-navy); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(48px, 7vw, 84px) 0; }
.bg-soft { background: var(--bg-2); }
.bg-soft-2 { background: linear-gradient(180deg, var(--bg-2), var(--color-background)); }

.eyebrow {
  display: inline-block;
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-trust-navy);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--color-text-primary); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.075rem; color: var(--color-text-secondary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; will-change: transform;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--color-brand-red); color: #fff; box-shadow: 0 12px 26px rgba(214,19,28,.22); }
.btn-primary:hover { background: var(--color-brand-red-hover); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(168,15,21,.30); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.95); color: var(--color-trust-navy); transform: translateY(-3px); border-color: #fff; }
.btn-outline, .btn-dark { background: transparent; color: var(--color-trust-navy); border: 1.6px solid var(--color-trust-navy); }
.btn-outline:hover, .btn-dark:hover { background: rgba(15,42,68,.06); color: var(--color-trust-navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 8px 14px; background: var(--color-trust-navy); color: #fff;
  border-radius: 8px; font-weight: 600; z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: .92rem;
}
.breadcrumbs-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); list-style: none; }
.breadcrumbs li + li::before { content: "›"; opacity: .55; margin-right: 4px; }
.breadcrumbs a { color: var(--muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--color-trust-navy); }
.breadcrumbs li[aria-current="page"] span { color: var(--color-text-primary); font-weight: 600; }

/* ---------- FAQ accordion (used by inner pages) ---------- */
.faq-block {
  background: var(--color-surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: box-shadow .2s, border-color .2s;
}
.faq-block[open] { box-shadow: var(--shadow-sm); border-color: rgba(15,42,68,.22); }
.faq-block summary {
  font-weight: 600; font-size: 1.04rem; color: var(--color-text-primary);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: "+"; color: var(--color-trust-navy); font-size: 1.4rem; font-weight: 300; line-height: 1;
  transition: transform .2s var(--ease);
}
.faq-block[open] summary::after { content: "−"; }
.faq-block[open] summary { margin-bottom: 12px; }
.faq-block p { color: var(--muted); line-height: 1.6; }

/* ---------- "Insured by" pill ---------- */
.insured-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,106,79,.08); color: var(--color-success-green);
  padding: 8px 14px; border-radius: 20px; font-size: .875rem; font-weight: 600;
  border: 1px solid rgba(45,106,79,.2);
}
.insured-badge::before { content: "\2713"; font-weight: 700; }

/* ---------- logo strip (clients/partners) ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 44px; padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0;
}
.logo-strip img { max-height: 48px; width: auto; opacity: .72; filter: grayscale(100%); transition: opacity .25s, filter .25s; }
.logo-strip img:hover { opacity: 1; filter: grayscale(0%); }

/* ---------- inline content figure (text-flowing image) ---------- */
.content-figure {
  max-width: 380px;
  margin: 0 0 20px 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.content-figure.float-right { float: right; clear: right; }
.content-figure.float-left { float: left; clear: left; margin: 0 28px 20px 0; }
.content-figure img { width: 100%; height: auto; display: block; }
.content-figure figcaption {
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg-2);
}
@media (max-width: 760px) {
  .content-figure, .content-figure.float-right, .content-figure.float-left {
    float: none; max-width: 100%; margin: 16px 0;
  }
}

/* ---------- prose styling for content-rich pages ---------- */
.prose { max-width: 880px; }
.prose h2 { margin-top: clamp(32px, 4vw, 48px); margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; line-height: 1.7; color: var(--color-text-primary); }
.prose p:has(+ h2), .prose p:has(+ h3) { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn):not(.service-card):not(.route-card) {
  color: var(--color-trust-navy);
  border-bottom: 1px solid rgba(15,42,68,.3);
  transition: color .2s, border-color .2s;
}
.prose a:not(.btn):not(.service-card):not(.route-card):hover {
  color: var(--color-brand-red);
  border-bottom-color: var(--color-brand-red);
}
.prose table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: .94rem;
}
.prose th, .prose td {
  padding: 10px 14px; border: 1px solid var(--line); text-align: left;
}
.prose th { background: var(--bg-2); font-weight: 700; }
