/**
 * FilmMerge — base.css
 *
 * Global reset and foundational element styles.
 * Extracted from the inline <style> blocks shared across all 16 pages.
 * Loaded after tokens.css on every page.
 * No component styles here — those live in components.css.
 */

/* ── Reset ─────────────────────────────────────────────────── */

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

/* ── Document ────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography defaults ─────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
}

p { line-height: 1.75; }

strong { font-weight: 600; }

/* ── Links ───────────────────────────────────────────────────── */

a {
  text-decoration: none;
  color: inherit;
}

/* ── Media ───────────────────────────────────────────────────── */

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

/* ── Lists ───────────────────────────────────────────────────── */

ul, ol { list-style: none; }

/* ── Forms ───────────────────────────────────────────────────── */

button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--sans);
}

/* ── Layout wrappers ─────────────────────────────────────────── */

/* Full-width container with max-width and horizontal padding */
.fm-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Narrower wrapper for text-heavy pages (legal, resources) */
.fm-wrap--sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Standard vertical section padding */
.fm-section {
  padding: 96px 0;
}

/* Section background variants — used by services, press, resources, buyers */
.fm-section--alt  { background: var(--deep); }
.fm-section--dark { background: var(--panel); }

/* Shared section heading pattern — used by services, press, resources */
.fm-section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 14px;
}

.fm-section-sub {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

/* Gold divider hr — used by services and press (alternative to .gold-line for block context) */
.fm-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 14px 0 40px;
}

/* ── Utility ─────────────────────────────────────────────────── */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .fm-wrap,
  .fm-wrap--sm {
    padding: 0 22px;
  }
}

@media (max-width: 768px) {
  .fm-section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .fm-wrap,
  .fm-wrap--sm {
    padding: 0 16px;
  }
}
