/* =====================================================================
   FUTUREADY MEDIA BRAND CSS
   Based on Futuready Web Style Guide
   Primary font: Montserrat | Secondary: Helvetica
   Agency: Midnight Blue #0D203A | Business: Orange #C84727 | Consumer: Yellow #F98025
   ===================================================================== */

/* ---------- FONTS ----------
   Montserrat titles, headings (per style guide primary)
   Helvetica body text (per style guide secondary; system-installed on Mac/iOS/most Windows)
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Primary brand palette (from style guide) */
  --brand-midnight:      #0D203A;   /* Agency trust, reliability */
  --brand-navy:          #0D203A;   /* Alias used by .btn-primary and section accents */
  --brand-midnight-ink:  #081628;   /* Deeper variant for backgrounds */
  --brand-orange:        #C84727;   /* Business happiness */
  --brand-consumer:      #F98025;   /* Consumer optimism */

  /* Supporting palette */
  --brand-ice:     #EAF2F5;   /* Light blue-gray */
  --brand-gray:    #CCCCCC;
  --brand-blue:    #2A85BE;   /* Accent blue */

  /* Neutrals */
  --ink:           #0D203A;            /* Alias: midnight for body ink */
  --white:         #FFFFFF;
  --cream:         #F4F1EC;            /* Light cream bg */
  --rule:          rgba(13, 32, 58, 0.10);
  --rule-dark:     rgba(255, 255, 255, 0.10);
  --text-dim:      rgba(13, 32, 58, 0.60);
  --text-dim-dark: rgba(255, 255, 255, 0.55);

  /* Typography scale */
  --font-title:     'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:      'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-primary:   var(--font-title);   /* Backward compat alias */
  --font-secondary: var(--font-body);

  /* Fluid type ramp */
  --fs-display-xl: clamp(2.8rem, 8vw, 8rem);      /* Hero */
  --fs-display-lg: clamp(2.2rem, 5.5vw, 5.5rem);  /* Section hero */
  --fs-display-md: clamp(1.8rem, 4vw, 3.8rem);    /* Section H2 */
  --fs-h1:         clamp(2rem, 3.5vw, 3rem);
  --fs-h2:         clamp(1.5rem, 2.5vw, 2.2rem);
  --fs-h3:         clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body:       clamp(0.95rem, 1vw, 1.05rem);
  --fs-sm:         0.875rem;
  --fs-xs:         0.75rem;
  --fs-label:      0.7rem;

  /* Layout */
  --container:     1440px;
  --gutter:        5vw;
  --section-pad:   clamp(4rem, 8vw, 8rem);

  /* Motion */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:      0.25s;
  --dur:           0.4s;
  --dur-slow:      0.8s;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit; /* inherit from section so dark sections show light text */
}
p { margin: 0 0 1rem; }

/* ---------- TYPOGRAPHY UTILS ---------- */
.t-display-xl { font-family: var(--font-title); font-size: var(--fs-display-xl); font-weight: 800; line-height: 0.92; letter-spacing: -0.03em; }
.t-display-lg { font-family: var(--font-title); font-size: var(--fs-display-lg); font-weight: 800; line-height: 0.95; letter-spacing: -0.025em; }
.t-display-md { font-family: var(--font-title); font-size: var(--fs-display-md); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.t-h1         { font-family: var(--font-title); font-size: var(--fs-h1);         font-weight: 700; line-height: 1.15; }
.t-h2         { font-family: var(--font-title); font-size: var(--fs-h2);         font-weight: 700; line-height: 1.2; }
.t-h3         { font-family: var(--font-title); font-size: var(--fs-h3);         font-weight: 600; line-height: 1.3; }
.t-body       { font-family: var(--font-body);  font-size: var(--fs-body);       font-weight: 400; line-height: 1.7; }
.t-sm         { font-family: var(--font-body);  font-size: var(--fs-sm); }
.t-xs         { font-family: var(--font-body);  font-size: var(--fs-xs); }

.t-label {
  font-family: var(--font-title);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.t-italic    { font-style: italic; }
.t-light     { font-weight: 300; }
.t-regular   { font-weight: 400; }
.t-medium    { font-weight: 500; }
.t-semibold  { font-weight: 600; }
.t-bold      { font-weight: 700; }
.t-extrabold { font-weight: 800; }

/* ---------- COLORS ---------- */
.c-midnight  { color: var(--brand-midnight); }
.c-orange    { color: var(--brand-orange); }
.c-consumer  { color: var(--brand-consumer); }
.c-white     { color: var(--white); }
.c-dim       { color: var(--text-dim); }
.c-dim-dark  { color: var(--text-dim-dark); }

.bg-midnight { background: var(--brand-midnight); color: var(--white); }
.bg-orange   { background: var(--brand-orange); color: var(--white); }
.bg-consumer { background: var(--brand-consumer); color: var(--brand-midnight); }
.bg-cream    { background: var(--cream); }
.bg-white    { background: var(--white); }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: var(--section-pad) 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------- ABC PATTERN (signature graphic: 3 parallel lines) ---------- */
/* Per style guide: 3 parallel lines, always moving forward/upward */
.abc-pattern {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 44px;
}
.abc-pattern span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.abc-pattern span:nth-child(1) { width: 100%; }
.abc-pattern span:nth-child(2) { width: 72%; }
.abc-pattern span:nth-child(3) { width: 44%; }

/* Larger hero variant */
.abc-pattern-lg { width: 72px; gap: 6px; }
.abc-pattern-lg span { height: 3px; }

/* Diagonal/forward variant used as section accent */
.abc-rule {
  display: block;
  height: 40px;
  width: 60px;
  background-image:
    linear-gradient(45deg, currentColor 0 2px, transparent 2px),
    linear-gradient(45deg, transparent 12px, currentColor 12px 14px, transparent 14px),
    linear-gradient(45deg, transparent 24px, currentColor 24px 26px, transparent 26px);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--white); }

.btn-solid {
  background: var(--brand-midnight);
  color: var(--white);
  border-color: var(--brand-midnight);
}
.btn-solid:hover { background: var(--brand-orange); border-color: var(--brand-orange); }

.btn-orange {
  background: var(--brand-orange);
  color: var(--white);
  border-color: var(--brand-orange);
}
.btn-orange:hover { background: var(--brand-midnight); border-color: var(--brand-midnight); }

.btn-white {
  background: var(--white);
  color: var(--brand-midnight);
  border-color: var(--white);
}
.btn-white:hover { background: var(--brand-orange); color: var(--white); border-color: var(--brand-orange); }

.btn-ghost-white {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
.btn-ghost-white:hover { background: var(--white); color: var(--brand-midnight); border-color: var(--white); }

/* ---------- LABEL ROW (section headers) ---------- */
.label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.label-row .lbl {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.label-row .line {
  flex: 0 0 80px;
  height: 1px;
  background: var(--brand-orange);
}
.label-row.on-dark .lbl  { color: rgba(255, 255, 255, 0.5); }
.label-row.on-dark .line { background: var(--brand-consumer); }

/* ---------- UTILS ---------- */
.flex   { display: flex; }
.grid   { display: grid; }
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- SCROLL REVEAL ----------
   Progressive enhancement elements are visible by default.
   When JS loads, .js-reveal class is added to <html>, enabling the hide-then-reveal behaviour.
   This means no-JS users and search crawlers always see content.
*/
.sr { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

.js-reveal .sr { opacity: 0; transform: translateY(24px); }
.js-reveal .sr.is-visible { opacity: 1; transform: translateY(0); }

.sr-delay-1 { transition-delay: 0.1s; }
.sr-delay-2 { transition-delay: 0.2s; }
.sr-delay-3 { transition-delay: 0.3s; }
.sr-delay-4 { transition-delay: 0.4s; }

/* Print / PDF export: the scroll-reveal observer never fires without scrolling,
   so force every reveal element visible when printing or saving to PDF. */
@media print {
  .js-reveal .sr,
  .js-reveal .sr:not(.is-visible) { opacity: 1 !important; transform: none !important; }
}

/* ---------- FOCUS ---------- */
:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
}

/* ---------- SELECTION ---------- */
::selection {
  background: var(--brand-orange);
  color: var(--white);
}