/* =========================================================================
   Oliver Real Estate — Colors & Type
   --------------------------------------------------------------------------
   Brand typeface: Poppins (all weights supplied by brand).
   Used for both display and body. Monospace falls back to system UI.
   ======================================================================= */

@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 100; src: url('fonts/Poppins-Thin.ttf')             format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 100; src: url('fonts/Poppins-ThinItalic.ttf')       format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 200; src: url('fonts/Poppins-ExtraLight.ttf')       format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 200; src: url('fonts/Poppins-ExtraLightItalic.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 300; src: url('fonts/Poppins-Light.ttf')            format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 300; src: url('fonts/Poppins-LightItalic.ttf')      format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 400; src: url('fonts/Poppins-Regular.ttf')          format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 400; src: url('fonts/Poppins-Italic.ttf')           format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 500; src: url('fonts/Poppins-Medium.ttf')           format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 500; src: url('fonts/Poppins-MediumItalic.ttf')     format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 600; src: url('fonts/Poppins-SemiBold.ttf')         format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 600; src: url('fonts/Poppins-SemiBoldItalic.ttf')   format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 700; src: url('fonts/Poppins-Bold.ttf')             format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 700; src: url('fonts/Poppins-BoldItalic.ttf')       format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 800; src: url('fonts/Poppins-ExtraBold.ttf')        format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 800; src: url('fonts/Poppins-ExtraBoldItalic.ttf')  format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: normal;  font-weight: 900; src: url('fonts/Poppins-Black.ttf')            format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-style: italic;  font-weight: 900; src: url('fonts/Poppins-BlackItalic.ttf')      format('truetype'); font-display: swap; }

:root {
  /* ---------- Color: Brand core ----------
     Values derived by sampling official Oliver logo files. */
  --color-forest-900:   #0E2B1E;   /* deepest — backgrounds, dark mode surface */
  --color-forest-800:   #1C4934;   /* PRIMARY · sampled from official mark */
  --color-forest-700:   #275A43;   /* hover / raised dark */
  --color-forest-600:   #3A7057;   /* accents on dark */
  --color-forest-sage:  #849D87;   /* muted variant · sampled from sage logo */
  --color-forest-400:   #849D87;   /* alias for sage (muted dividers on dark) */
  --color-forest-200:   #C4D6CC;   /* soft green tint */
  --color-forest-50:    #EEF3F0;   /* whisper green wash */

  --color-ember-600:    #E8481F;   /* pressed / deeper orange */
  --color-ember-500:    #FF562F;   /* ACCENT · sampled from official orange logo */
  --color-ember-400:    #FF7A4D;   /* hover state */
  --color-ember-100:    #FDE4D9;   /* tint / badge bg */

  /* ---------- Color: Paper / neutrals ---------- */
  --color-paper:        #F4EFE6;   /* warm off-white — primary light surface */
  --color-paper-raised: #FBF7EF;   /* subtle elevated paper */
  --color-bone:         #E9E2D3;   /* warm divider / card border on paper */

  --color-ink-900:      #151310;   /* near-black text on paper */
  --color-ink-700:      #322E25;   /* default heading · sampled from ink logo */
  --color-ink-500:      #555A56;   /* body text on paper */
  --color-ink-300:      #8C928E;   /* muted / meta */
  --color-ink-100:      #D6D8D5;   /* hairline on paper */

  --color-white:        #FFFFFF;
  --color-black:        #000000;

  /* ---------- Semantic tokens ---------- */
  --bg-canvas:          var(--color-paper);
  --bg-canvas-raised:   var(--color-paper-raised);
  --bg-dark:            var(--color-forest-800);
  --bg-dark-raised:     var(--color-forest-700);

  --fg-1:               var(--color-ink-900);   /* primary text on paper */
  --fg-2:               var(--color-ink-700);   /* heading / strong */
  --fg-3:               var(--color-ink-500);   /* body */
  --fg-muted:           var(--color-ink-300);   /* meta, captions */
  --fg-on-dark-1:       var(--color-paper);     /* primary text on forest */
  --fg-on-dark-2:       var(--color-forest-200);/* secondary text on forest */
  --fg-on-dark-muted:   var(--color-forest-400);

  --accent:             var(--color-ember-500);
  --accent-hover:       var(--color-ember-400);
  --accent-press:       var(--color-ember-600);
  --accent-fg:          var(--color-white);

  --brand-primary:      var(--color-forest-800);
  --brand-primary-hover:var(--color-forest-700);
  --brand-primary-press:var(--color-forest-900);
  --brand-primary-fg:   var(--color-paper);

  --border-subtle:      rgba(17,20,17,0.08);
  --border-strong:      rgba(17,20,17,0.16);
  --border-on-dark:     rgba(244,239,230,0.12);

  /* semantic: success / warn / error (derived from palette) */
  --success:            #3A7057;
  --warning:            #E08B2A;
  --danger:             #C23A2B;

  /* ---------- Type: families ---------- */
  --font-display: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* ---------- Type: scale (fluid-ish, 1280 design width) ---------- */
  --fs-display-xl: 96px;   /* hero pitch */
  --fs-display-l:  72px;   /* section hero */
  --fs-display-m:  56px;   /* page title */
  --fs-h1:         44px;
  --fs-h2:         32px;
  --fs-h3:         24px;
  --fs-h4:         20px;
  --fs-body-l:     18px;
  --fs-body:       16px;
  --fs-body-s:     14px;
  --fs-caption:    12px;
  --fs-overline:   11px;

  /* ---------- Type: weights ---------- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* ---------- Type: leading + tracking ---------- */
  --lh-tight:    1.04;
  --lh-snug:     1.15;
  --lh-normal:   1.35;
  --lh-relaxed:  1.55;
  --lh-loose:    1.7;

  --tr-display:  -0.02em;
  --tr-tight:    -0.01em;
  --tr-normal:   0;
  --tr-wide:     0.04em;
  --tr-overline: 0.14em;

  /* ---------- Spacing (4px base) ---------- */
  --sp-0:  0;
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ---------- Radii ---------- */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;   /* default card */
  --r-lg:   16px;   /* chunky card (matches "Truth" badge corners) */
  --r-xl:   24px;
  --r-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs:  0 1px 2px rgba(14,43,30,0.06);
  --shadow-sm:  0 2px 6px rgba(14,43,30,0.08);
  --shadow-md:  0 8px 20px rgba(14,43,30,0.10);
  --shadow-lg:  0 18px 40px rgba(14,43,30,0.14);
  --shadow-xl:  0 32px 60px rgba(14,43,30,0.18);
  --shadow-inset-paper: inset 0 0 0 1px var(--color-bone);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    120ms;
  --dur-med:     220ms;
  --dur-slow:    420ms;

  /* ---------- Layout ---------- */
  --container-max: 1200px;
  --container-pad: 24px;
  --grid-gap: 24px;
}

/* =========================================================================
   Semantic element styles — drop onto bare elements for brand defaults
   ======================================================================= */

html, body {
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4,
.display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  color: var(--fg-2);
  letter-spacing: var(--tr-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-black);
  margin: 0;
  text-wrap: balance;
}

.display-xl { font-size: var(--fs-display-xl); line-height: 0.98; }
.display-l  { font-size: var(--fs-display-l);  line-height: 1.00; }
.display-m  { font-size: var(--fs-display-m);  line-height: 1.04; }

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: var(--tr-tight); }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: var(--tr-tight); font-weight: var(--fw-bold); }
h4, .h4 { font-size: var(--fs-h4); letter-spacing: 0; font-weight: var(--fw-bold); }

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-3);
  margin: 0 0 1em;
  text-wrap: pretty;
}

.body-l { font-size: var(--fs-body-l); line-height: var(--lh-relaxed); }
.body-s { font-size: var(--fs-body-s); line-height: var(--lh-normal); }
.caption { font-size: var(--fs-caption); color: var(--fg-muted); line-height: var(--lh-normal); }

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  letter-spacing: var(--tr-overline);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--fg-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); }
a:active { color: var(--accent-press); }

strong, b { font-weight: var(--fw-bold); color: var(--fg-2); }

code, pre, .mono { font-family: var(--font-mono); font-size: 0.92em; }

/* Dark-surface inversion helper */
.on-dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark-1);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.on-dark .display-xl, .on-dark .display-l, .on-dark .display-m {
  color: var(--fg-on-dark-1);
}
.on-dark p, .on-dark .body { color: var(--fg-on-dark-2); }
.on-dark .overline, .on-dark .caption { color: var(--fg-on-dark-muted); }

/* Subtle dotted-grid texture — matches recurring pattern in marketing */
.texture-dots {
  background-image: radial-gradient(rgba(244,239,230,0.14) 1px, transparent 1.2px);
  background-size: 14px 14px;
  background-position: 0 0;
}
.texture-dots-dark {
  background-image: radial-gradient(rgba(14,43,30,0.14) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.texture-paper {
  background-color: var(--color-paper);
  background-image:
    radial-gradient(rgba(14,43,30,0.03) 1px, transparent 1px),
    radial-gradient(rgba(14,43,30,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}
