/* ============================================================
   Dolado Design System — colors_and_type.css
   The single source of truth for colors, type, spacing, radii,
   shadows, easings. Import this file into any HTML in the system:

     <link rel="stylesheet" href="../colors_and_type.css">

   ⚠ Font substitution: Arboria Black and New Hero are commercial.
   This file ships Mulish (Google Fonts) for Headline and Inter
   for Body until licensed files are dropped into ./fonts/.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---------- Color: brand ---------- */
  --dolado-blue:      #196bf7;
  --dolado-blue-deep: #0e3b88;
  --dolado-navy:      #0c2447;
  --dolado-orange:    #ff7900;
  --dolado-fog:       #f0f3f8;
  --dolado-fog-2:     #dde3ee;
  --dolado-white:     #ffffff;

  /* ---------- Color: ink (text) ---------- */
  --ink:        #0c2447;       /* body on light */
  --ink-2:      #3a4a66;       /* secondary on light */
  --ink-3:      #6c7a93;       /* tertiary on light */
  --ink-on-dark:        #ffffff;
  --ink-2-on-dark:      rgba(255,255,255,0.72);
  --ink-3-on-dark:      rgba(255,255,255,0.48);

  /* ---------- Color: semantic ---------- */
  --success:   #1f8a4a;
  --warning:   #ff7900;        /* uses brand orange */
  --danger:    #d62828;
  --info:      #196bf7;        /* uses brand blue */

  /* ---------- Type: families ---------- */
  --font-display: "Mulish", "Arboria", "Arboria Black", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", "New Hero", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ---------- Type: scale ---------- */
  --fs-display-1: 72px;  --lh-display-1: 1.00;  --ls-display-1: -0.02em;
  --fs-display-2: 56px;  --lh-display-2: 1.07;  --ls-display-2: -0.01em;
  --fs-h1:        40px;  --lh-h1:        1.10;
  --fs-h2:        28px;  --lh-h2:        1.14;
  --fs-h3:        20px;  --lh-h3:        1.30;
  --fs-body-l:    18px;  --lh-body-l:    1.55;
  --fs-body:      16px;  --lh-body:      1.50;
  --fs-body-s:    14px;  --lh-body-s:    1.43;
  --fs-caption:   12px;  --lh-caption:   1.33;  --ls-caption:   0.02em;
  --fs-overline:  11px;  --lh-overline:  1.09;  --ls-overline:  0.12em;

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

  /* ---------- Radii ---------- */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-sm:  0 1px 2px rgba(12, 36, 71, 0.06);
  --shadow-md:  0 6px 16px rgba(12, 36, 71, 0.08), 0 2px 4px rgba(12, 36, 71, 0.04);
  --shadow-lg:  0 24px 48px rgba(12, 36, 71, 0.12), 0 4px 8px rgba(12, 36, 71, 0.06);
  --shadow-cta: 0 8px 20px rgba(255, 121, 0, 0.32);

  /* ---------- Borders ---------- */
  --border-hairline: 1px solid var(--dolado-fog-2);
  --border-hairline-dark: 1px solid rgba(255,255,255,0.08);

  /* ---------- Easings & durations ---------- */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 200ms;
  --dur-state: 360ms;

  /* ---------- Layout ---------- */
  --maxw-marketing: 1280px;
  --maxw-app:       1440px;
  --gutter-mobile:  24px;
  --gutter-tablet:  48px;
  --gutter-desktop: 80px;
}

/* ============================================================
   Semantic element rules
   ============================================================ */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--dolado-fog);
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display-1 { font-size: var(--fs-display-1); line-height: var(--lh-display-1); letter-spacing: var(--ls-display-1); font-weight: 900; }
.display-2 { font-size: var(--fs-display-2); line-height: var(--lh-display-2); letter-spacing: var(--ls-display-2); font-weight: 900; }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; }

p, .body { font-size: var(--fs-body); line-height: var(--lh-body); }
.body-l   { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.body-s   { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--ink-2); }

.caption  { font-size: var(--fs-caption); line-height: var(--lh-caption); letter-spacing: var(--ls-caption); color: var(--ink-2); }
.overline { font-size: var(--fs-overline); line-height: var(--lh-overline); letter-spacing: var(--ls-overline); text-transform: uppercase; font-weight: 700; color: var(--ink-2); }

code, kbd, samp, pre { font-family: var(--font-mono); }

a { color: var(--dolado-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Surface utilities
   ============================================================ */
.surface-blue { background: var(--dolado-blue); color: var(--ink-on-dark); }
.surface-navy { background: var(--dolado-navy); color: var(--ink-on-dark); }
.surface-fog  { background: var(--dolado-fog);  color: var(--ink); }
.surface-white{ background: var(--dolado-white); color: var(--ink); }

.surface-blue h1, .surface-blue h2, .surface-blue h3,
.surface-navy h1, .surface-navy h2, .surface-navy h3 { color: #fff; }

/* The signature orange divider band */
.orange-band {
  display: block;
  width: 100%;
  height: 8px;
  background: var(--dolado-orange);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--dolado-blue); color: #fff; }
.btn-primary:hover { background: var(--dolado-blue-deep); }

.btn-orange { background: var(--dolado-orange); color: #fff; box-shadow: var(--shadow-cta); }
.btn-orange:hover { filter: brightness(1.06); }
.btn-orange:active { box-shadow: 0 2px 4px rgba(255,121,0,0.32); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--dolado-fog-2); }
.btn-ghost:hover { background: rgba(12,36,71,0.04); }

.btn-link { background: transparent; color: var(--dolado-blue); padding: 8px 0; }
.btn-link:hover { color: var(--dolado-blue-deep); }

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--dolado-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}
.card-flat {
  background: var(--dolado-white);
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
  padding: var(--space-6);
}
.card-dark {
  background: var(--dolado-navy);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* ============================================================
   Pills / badges
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.pill-blue   { background: rgba(25,107,247,0.12); color: var(--dolado-blue-deep); }
.pill-orange { background: rgba(255,121,0,0.14);  color: #b35400; }
.pill-success{ background: rgba(31,138,74,0.14);  color: #166e3a; }
.pill-fog    { background: var(--dolado-fog); color: var(--ink-2); }

/* ============================================================
   Form
   ============================================================ */
.input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dolado-fog-2);
  background: #fff;
  color: var(--ink);
  width: 100%;
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.input:focus {
  outline: none;
  border-color: var(--dolado-blue);
  box-shadow: 0 0 0 4px rgba(25,107,247,0.16);
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
