/* ==============================================
   SERAFIM FASTIGHETER — Design System
   16px Spacing Base Unit
   ============================================== */

:root {
  /* ── Spacing Scale (base 16px) ── */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 56px;
  --sp-11: 64px;
  --sp-12: 72px;
  --sp-13: 80px;
  --sp-14: 96px;
  --sp-15: 112px;

  /* ── Colors ── */
  --color-primary-green: #084823;
  --color-secondary-green: #b3cdad;
  --color-bg-beige: #eae1d7;
  --color-cream: #F7F2EA;

  /* Color tints (20% increments) */
  --color-green-80: rgba(8, 72, 35, 0.8);
  --color-green-60: rgba(8, 72, 35, 0.6);
  --color-green-40: rgba(8, 72, 35, 0.4);
  --color-green-20: rgba(8, 72, 35, 0.2);

  /* ── Typography ── */
  --font-primary: 'ConcretteXL', Georgia, serif;
  --font-secondary: 'SeasonSans', system-ui, sans-serif;

  /* ── Line Heights ── */
  --lh-tight: 1.1;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;

  /* ── Layout container ──
     One shared content width for EVERY section. Full-bleed backgrounds stay
     100vw; their inner content is capped to --content-max and padded by
     --content-pad. --content-pad shrinks on smaller screens (below). */
  --content-max: 1400px;
  --content-pad: 48px;
  /* Inner content width = box − side padding (1304 by default). Full-bleed
     sections use the max() padding below to land content on this exact width. */
  --content-inner: calc( var(--content-max) - var(--content-pad) * 2 );
}

@media (max-width: 900px) {
  :root { --content-pad: 32px; }
}

@media (max-width: 600px) {
  :root { --content-pad: 20px; }
}

/* Shared container utility — max-width + centered + side padding. Blocks can
   use this class, or mirror it via the tokens. (border-box: --content-max is
   the outer cap, content = max − 2×pad, matching every existing 1400 section.) */
.pc-container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* Full-bleed section whose CONTENT still lands on --content-inner (1304),
   centered, with a --content-pad minimum gutter. Background stays 100vw. */
.pc-bleed {
  padding-inline: max( var(--content-pad), calc( ( 100% - var(--content-inner) ) / 2 ) );
}

/* ── HEADINGS ── */
h1, .h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-6) 0;
}

h3, .h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-5) 0;
}

h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: var(--font-secondary);
  font-weight: 500;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-4) 0;
}

/* ── Subheadings ── */
.subheading-1 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: var(--lh-normal);
}

.subheading-2 {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: var(--lh-normal);
}

/* ── Lead Text ── */
.lead,
.intro {
  font-family: var(--font-secondary);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: var(--lh-relaxed);
}
