/* ==========================================================================
   Everblue web design harness — v0.1 (proposed, 2026-09-14)
   Source of truth for brand values: brand/tokens.json and brand/guide.md.
   Everything marked "proposed" is a web adaptation for review, not a supplied standard.
   ========================================================================== */

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

:root {
  /* --- Supplied brand colors (style sheet) --- */
  --eb-blue:   #3D70B7;   /* medium blue: color blocking, large visual moments */
  --eb-navy:   #344576;   /* dark blue: logo, titles, headings, emphasis */
  --eb-sky:    #98BCE4;   /* light blue: supporting accent */
  --eb-yellow: #FED700;   /* highlight yellow: highlights and calls to action */
  --eb-ink:    #2C2C2C;   /* near black: body copy only */
  --eb-white:  #FFFFFF;   /* provisional interpretation; sheet label discrepancy noted in brand/guide.md */

  /* --- Proposed web neutrals and tints (derived from the palette above) --- */
  --eb-ink-2:    #5B6272; /* muted text: captions, meta */
  --eb-line:     #DDE5F0; /* hairlines, card borders */
  --eb-surface:  #F4F7FB; /* quiet section background */
  --eb-sky-100:  #E8F0FA; /* light-blue tint for panels */
  --eb-sky-200:  #CFE0F3;
  --eb-blue-600: #3463A6; /* hover for medium blue */
  --eb-navy-800: #2A3960; /* hover for dark blue, footer bottom */
  --eb-yellow-600: #E9C400; /* hover for yellow */

  /* --- Type (Montserrat Extra Bold headings, Medium body) --- */
  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --w-body: 500;
  --w-semibold: 600;
  --w-bold: 700;
  --w-heading: 800;

  /* Proposed responsive web type scale (fluid) */
  --t-display: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);      /* 40 to 64 */
  --t-h1:      clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);    /* 36 to 56 */
  --t-h2:      clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);   /* 28 to 40 */
  --t-h3:      clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);    /* 20 to 24 */
  --t-h4:      1.125rem;
  --t-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);   /* 17 to 20 */
  --t-body:    1rem;                                        /* 16 */
  --t-small:   0.875rem;                                    /* 14 */
  --t-eyebrow: 0.8125rem;                                   /* 13 */

  --lh-tight: 1.08;
  --lh-heading: 1.15;   /* matches the sheet's 1.15 for headings */
  --lh-body: 1.55;      /* proposed web adaptation of 1.15 for long-form reading */

  /* --- Space (4px base) --- */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;
  --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --container: 75rem;   /* 1200px */
  --container-narrow: 46rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* --- Shape and elevation (proposed) --- */
  --r-sm: 0.375rem;
  --r-md: 0.75rem;
  --r-lg: 1.25rem;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(52, 69, 118, 0.06), 0 1px 3px rgba(52, 69, 118, 0.08);
  --shadow-md: 0 6px 20px -6px rgba(52, 69, 118, 0.18), 0 2px 6px rgba(52, 69, 118, 0.06);
  --shadow-lg: 0 24px 48px -20px rgba(52, 69, 118, 0.28), 0 8px 20px -8px rgba(52, 69, 118, 0.12);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--eb-ink);
  background: var(--eb-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--eb-blue); text-decoration: none; }
a:hover { color: var(--eb-blue-600); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--eb-yellow); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--eb-sky); color: var(--eb-navy); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display {
  font-weight: var(--w-heading);
  color: var(--eb-navy);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h1, .h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--t-h2); }
h3, .h3 { font-size: var(--t-h3); }
h4, .h4 { font-size: var(--t-h4); }

.lead { font-size: var(--t-lead); line-height: 1.5; }
.small { font-size: var(--t-small); }
.muted { color: var(--eb-ink-2); }
.eyebrow {
  display: inline-block;
  font-size: var(--t-eyebrow);
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eb-blue);
  margin-bottom: var(--s-4);
}
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark p { color: var(--eb-white); }
.on-dark .eyebrow { color: var(--eb-sky); }
.on-dark .muted { color: rgba(255,255,255,0.78); }
.on-dark a:not(.btn) { color: var(--eb-white); }

.measure { max-width: 34em; }
.measure-narrow { max-width: 26em; }
.center { text-align: center; }
.center .measure, .center .measure-narrow { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }
.bg-surface { background: var(--eb-surface); }
.bg-sky { background: var(--eb-sky-100); }
.bg-blue { background: var(--eb-blue); }
.bg-navy { background: var(--eb-navy); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split > .media-first { order: -1; }
@media (max-width: 60em) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split > .media-first { order: 0; }
}
@media (max-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--s-3); }

.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.8rem 1.5rem;
  border-radius: var(--r-sm); border: 2px solid transparent;
  font-weight: var(--w-bold); font-size: 0.9375rem; line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-primary { background: var(--eb-yellow); color: var(--eb-navy); }          /* 6.7:1 */
.btn-primary:hover { background: var(--eb-yellow-600); color: var(--eb-navy); }
.btn-navy { background: var(--eb-navy); color: var(--eb-white); }              /* 10.6:1 */
.btn-navy:hover { background: var(--eb-navy-800); color: var(--eb-white); }
.btn-blue { background: var(--eb-blue); color: var(--eb-white); }              /* 4.8:1 */
.btn-blue:hover { background: var(--eb-blue-600); color: var(--eb-white); }
.btn-outline { background: transparent; color: var(--eb-navy); border-color: var(--eb-navy); }
.btn-outline:hover { background: var(--eb-navy); color: var(--eb-white); }
.btn-outline-light { background: transparent; color: var(--eb-white); border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: var(--eb-white); color: var(--eb-navy); border-color: var(--eb-white); }
.btn-ghost { background: transparent; color: var(--eb-navy); padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--eb-blue); }
.btn-lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: var(--w-bold); color: var(--eb-navy); }
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--eb-blue); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--eb-line);
}
.site-header.on-blue { background: var(--eb-blue); border-bottom-color: rgba(255,255,255,0.14); }
.nav-bar { display: flex; align-items: center; gap: var(--s-6); min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 2rem; width: auto; }
.nav-list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem; border-radius: var(--r-sm);
  font-weight: var(--w-semibold); font-size: 0.9375rem; color: var(--eb-navy);
  background: transparent; border: 0; cursor: pointer;
}
.nav-link svg { width: 0.85em; height: 0.85em; transition: transform var(--dur) var(--ease); }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--eb-blue); background: var(--eb-surface); }
.nav-item:hover > .nav-link svg, .nav-item:focus-within > .nav-link svg { transform: rotate(180deg); }
.on-blue .nav-link { color: var(--eb-white); }
.on-blue .nav-link:hover, .on-blue .nav-item:focus-within > .nav-link { color: var(--eb-white); background: rgba(255,255,255,0.12); }
.nav-cta { margin-left: var(--s-3); }

.menu {
  position: absolute; top: calc(100% + 0.4rem); left: 0;
  min-width: 15rem; padding: 0.5rem;
  background: var(--eb-white); border: 1px solid var(--eb-line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav-item:hover > .menu, .nav-item:focus-within > .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a {
  display: block; padding: 0.6rem 0.75rem; border-radius: var(--r-sm);
  color: var(--eb-navy); font-weight: var(--w-semibold); font-size: 0.9375rem;
}
.menu a:hover { background: var(--eb-surface); color: var(--eb-blue); }
.menu.menu-wide { min-width: 30rem; display: grid; grid-template-columns: 1fr 1fr; }
.menu-head { grid-column: 1 / -1; padding: 0.5rem 0.75rem 0.25rem; font-size: var(--t-eyebrow); font-weight: var(--w-bold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--eb-ink-2); }

.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--eb-navy); align-items: center; justify-content: center; }
.on-blue .nav-toggle { color: var(--eb-white); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 64em) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: var(--eb-white); border-bottom: 1px solid var(--eb-line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 4.75rem); overflow: auto;
  }
  .site-header[data-open="true"] .nav-list { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.85rem 0.5rem; color: var(--eb-navy) !important; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0.5rem 0.75rem; display: none; }
  .nav-item[data-open="true"] > .menu, .nav-item:focus-within > .menu { display: block; }
  .menu.menu-wide { grid-template-columns: 1fr; min-width: 0; }
  .nav-cta { margin: var(--s-4) 0 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Cards, media and proof
   -------------------------------------------------------------------------- */
.card {
  background: var(--eb-white); border: 1px solid var(--eb-line); border-radius: var(--r-md);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--s-2); }
.card-feature { border-top: 4px solid var(--eb-yellow); }
.card-quiet { background: var(--eb-surface); border-color: transparent; box-shadow: none; }
.card-navy { background: var(--eb-navy); border-color: transparent; }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: var(--r-md);
  background: var(--eb-sky-100); color: var(--eb-blue); margin-bottom: var(--s-5);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.icon-tile.solid { background: var(--eb-blue); color: var(--eb-white); }
.icon-tile.yellow { background: var(--eb-yellow); color: var(--eb-navy); }

.media { border-radius: var(--r-lg); overflow: hidden; background: var(--eb-sky-100); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-5x4 { aspect-ratio: 5 / 4; }
.media-16x10 { aspect-ratio: 16 / 10; }

.check-list { list-style: none; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: var(--w-semibold); color: var(--eb-navy); }
.check-list svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--eb-blue); margin-top: 0.05em; }
.check-list.x li svg { color: var(--eb-ink-2); }
.on-dark .check-list li { color: var(--eb-white); }
.on-dark .check-list svg { color: var(--eb-yellow); }

.steps { list-style: none; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill);
  background: var(--eb-navy); color: var(--eb-white); font-weight: var(--w-heading); font-size: 1.125rem;
  margin-bottom: var(--s-5);
}

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-6) clamp(1.5rem, 1rem + 2vw, 3rem); }
/* Supplied client logos are white-on-transparent; render as dark silhouettes on light backgrounds */
.logo-strip img { height: 2.25rem; width: auto; max-width: 9rem; object-fit: contain; filter: brightness(0); opacity: 0.55; transition: opacity var(--dur); }
.logo-strip img:hover { opacity: 0.9; }
.on-dark .logo-strip img { filter: none; opacity: 0.8; }

.quote { position: relative; margin: 0; }
.quote blockquote { margin: 0; font-weight: var(--w-semibold); color: var(--eb-navy); font-size: 1.0625rem; line-height: 1.5; }
.quote .mark { width: 2rem; height: 2rem; color: var(--eb-sky); margin-bottom: var(--s-4); }
.quote figcaption { margin-top: var(--s-5); display: flex; align-items: center; gap: var(--s-3); }
.quote .avatar { width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill); background: var(--eb-sky-100); color: var(--eb-navy); font-weight: var(--w-heading); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.quote .who { font-weight: var(--w-bold); color: var(--eb-navy); font-size: var(--t-small); line-height: 1.3; }
.quote .role { color: var(--eb-ink-2); font-size: var(--t-small); }
.on-dark blockquote, .on-dark .who { color: var(--eb-white); }
.on-dark .role { color: rgba(255,255,255,0.75); }
.on-dark .mark { color: var(--eb-yellow); }
.on-dark .avatar { background: rgba(255,255,255,0.14); color: var(--eb-white); }

.stat { display: grid; gap: var(--s-1); }
.stat .num { font-weight: var(--w-heading); color: var(--eb-navy); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.stat .label { color: var(--eb-ink-2); font-size: var(--t-small); font-weight: var(--w-semibold); }

.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: var(--r-pill); background: var(--eb-sky-100); color: var(--eb-navy); font-size: var(--t-small); font-weight: var(--w-bold); }
.pill .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--eb-yellow); }

.rule { border: 0; border-top: 1px solid var(--eb-line); margin: 0; }
.on-dark .rule { border-color: rgba(255,255,255,0.16); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--eb-navy); color: var(--eb-white); padding-block: var(--s-16) var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.footer-brand img { height: 1.9rem; width: auto; margin-bottom: var(--s-5); }
.footer-brand address { font-style: normal; color: rgba(255,255,255,0.8); font-size: var(--t-small); line-height: 1.6; }
.footer-brand a { color: var(--eb-white); font-weight: var(--w-semibold); }
.footer-col h4 { color: var(--eb-white); font-size: var(--t-small); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.82); font-size: var(--t-small); font-weight: var(--w-body); }
.footer-col a:hover { color: var(--eb-yellow); }
.footer-bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.16); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--t-small); color: rgba(255,255,255,0.7); }
.footer-bottom a { color: rgba(255,255,255,0.85); }
@media (max-width: 64em) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 40em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); } .mt-10 { margin-top: var(--s-10); } .mt-12 { margin-top: var(--s-12); }
.mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
