/* ============================================
   OUTBACK BYTE — Core Tokens & Reset
   v1.4 · Light Theme · AU
   ============================================ */

:root {
  /* ─── Surfaces (light) ─── */
  --srf-base:        #fbfaf6;
  --srf-soft:        #f4f1e8;
  --srf-tint:        #ede8da;
  --srf-card:        #ffffff;
  --srf-elevate:     #ffffff;
  --line-soft:       rgba(46, 71, 93, 0.10);
  --line-mid:        rgba(46, 71, 93, 0.18);

  /* ─── Brand palette ─── */
  --brand-1:         #2d5a87;
  --brand-1-h:       #4a7caa;
  --brand-1-d:       #1d3e63;
  --brand-2:         #d97f2c;
  --brand-2-h:       #e8a45f;
  --accent-coral:    #e85d4d;
  --accent-eucalypt: #4a8c5e;
  --accent-sun:      #f4b94a;

  /* ─── Text ─── */
  --ink-strong:      #1f2d3a;
  --ink:             #354758;
  --ink-mute:        #5d6e80;
  --ink-soft:        #8497a8;

  /* ─── Status ─── */
  --st-ok:           #2f8f5b;
  --st-err:          #c64545;

  /* ─── Gradients (signature) ─── */
  --grd-brand:       linear-gradient(135deg, #2d5a87 0%, #4a7caa 100%);
  --grd-warm:        linear-gradient(135deg, #d97f2c 0%, #e85d4d 100%);
  --grd-sky:         linear-gradient(135deg, #2d5a87 0%, #4a8c5e 50%, #f4b94a 100%);
  --grd-page:        linear-gradient(180deg, #fbfaf6 0%, #f4f1e8 100%);
  --grd-card:        linear-gradient(135deg, #ffffff 0%, #fbfaf6 100%);
  --grd-section:     linear-gradient(180deg, #fbfaf6 0%, #ede8da 100%);
  --grd-section-alt: linear-gradient(180deg, #ffffff 0%, #f4f1e8 100%);
  --grd-hero:        linear-gradient(135deg, #fbfaf6 0%, #ede8da 60%, #d4dee8 100%);
  --grd-cta:         linear-gradient(135deg, #2d5a87 0%, #1d3e63 100%);

  /* Legacy aliases — kept for backward-compat with widget/footer/JS */
  --clr-bg:          var(--srf-base);
  --clr-bg-2:        var(--srf-soft);
  --clr-bg-3:        var(--srf-tint);
  --clr-bg-card:     var(--srf-card);
  --clr-surface:     var(--srf-elevate);
  --clr-border:      var(--line-mid);
  --clr-primary:     var(--brand-1);
  --clr-primary-h:   var(--brand-1-h);
  --clr-primary-d:   var(--brand-1-d);
  --clr-accent:      var(--brand-2);
  --clr-accent-h:    var(--brand-2-h);
  --clr-neon:        var(--brand-1-h);
  --clr-neon-glow:   rgba(45, 90, 135, 0.25);
  --clr-cyan:        var(--accent-eucalypt);
  --clr-text:        var(--ink-strong);
  --clr-text-muted:  var(--ink-mute);
  --clr-text-dim:    var(--ink-soft);
  --clr-success:     var(--st-ok);
  --clr-error:       var(--st-err);

  --grad-primary:    var(--grd-brand);
  --grad-gold:       var(--grd-warm);
  --grad-neon:       var(--grd-sky);
  --grad-bg:         var(--grd-page);
  --grad-card:       var(--grd-card);
  --grad-hero:       var(--grd-hero);

  /* ─── Typography ─── */
  --font-primary:    'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.5rem;
  --fs-4xl:   3rem;
  --fs-5xl:   3.75rem;

  --fw-light:   300;
  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-extra:   800;

  --lh-tight:  1.2;
  --lh-snug:   1.35;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* ─── Spacing ─── */
  --sp-xs:   0.25rem;
  --sp-sm:   0.5rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;
  --sp-3xl:  4rem;
  --sp-4xl:  6rem;
  --sp-5xl:  8rem;

  /* ─── Layout ─── */
  --container-max:  1200px;
  --container-xl:   1440px;
  --header-h:       72px;
  --section-py:     clamp(4rem, 8vw, 8rem);

  /* ─── Radius ─── */
  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-xl:  26px;
  --radius-full: 9999px;

  /* ─── Shadows (soft, light theme) ─── */
  --shadow-sm:   0 1px 2px rgba(46, 71, 93, 0.06);
  --shadow-md:   0 4px 14px rgba(46, 71, 93, 0.08);
  --shadow-lg:   0 12px 32px rgba(46, 71, 93, 0.12);
  --shadow-card: 0 6px 22px rgba(46, 71, 93, 0.08), 0 1px 3px rgba(46, 71, 93, 0.05);
  --shadow-soft: 0 8px 28px rgba(46, 71, 93, 0.10);
  --shadow-neon: 0 8px 22px rgba(45, 90, 135, 0.20), 0 0 0 1px rgba(45, 90, 135, 0.05);
  --shadow-gold: 0 8px 22px rgba(217, 127, 44, 0.22), 0 0 0 1px rgba(217, 127, 44, 0.10);

  /* ─── Transitions ─── */
  --ease-fast:   0.15s ease;
  --ease-base:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─── Z-index ─── */
  --z-base:    1;
  --z-card:    10;
  --z-modal:   100;
  --z-header:  1000;
  --z-toast:   2000;
}

/* ============================================
   FONT FACES — Manrope (woff2)
   ============================================ */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--ink);
  background-color: var(--srf-base);
  background-image: var(--grd-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--ink-strong);
}

::selection {
  background: rgba(45, 90, 135, 0.18);
  color: var(--ink-strong);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--wide {
  max-width: var(--container-xl);
}

.section {
  padding-block: var(--section-py);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: var(--sp-md);
}

.section__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--grd-warm);
  border-radius: var(--radius-full);
}

.section__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-extra);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-lg);
  color: var(--ink-strong);
  letter-spacing: -0.015em;
}

.section__title span {
  background: var(--grd-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--ink-mute);
  line-height: var(--lh-loose);
  max-width: 620px;
}

.text-center { text-align: center; }
.text-center .section__subtitle { margin-inline: auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.875rem 2rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: transform var(--ease-base), box-shadow var(--ease-base), background var(--ease-base), color var(--ease-base), border-color var(--ease-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  transition: opacity var(--ease-fast);
  pointer-events: none;
}

.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--grd-warm);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 127, 44, 0.28);
}

.btn--gold {
  background: var(--grd-warm);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 127, 44, 0.30);
}

.btn--outline {
  background: transparent;
  color: var(--brand-1);
  border-color: var(--brand-1);
}

.btn--outline:hover {
  background: var(--brand-1);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--srf-card);
  color: var(--brand-1);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: var(--srf-soft);
  border-color: var(--brand-1);
  color: var(--brand-1-d);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--fs-base);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}

/* ─── Card ─── */
.card {
  background: var(--srf-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--brand-1-h);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--primary {
  background: rgba(45, 90, 135, 0.10);
  color: var(--brand-1-d);
  border: 1px solid rgba(45, 90, 135, 0.25);
}

.badge--gold {
  background: rgba(217, 127, 44, 0.12);
  /* #7a3f00 = 5.6:1 contrast on badge bg — WCAG AA */
  color: #7a3f00;
  border: 1px solid rgba(217, 127, 44, 0.28);
}
