/* =========================================================
   MATTHEW KVAMME — DESIGN SYSTEM
   Brand: deep navy, red accent, sharp typographic contrast.
   ========================================================= */

/* -------- Tokens -------- */
:root {
  --navy: #0F2A4A;
  --navy-deep: #081A30;
  --navy-mid: #1B3A66;
  --red: #C8102E;
  --red-dark: #A30E26;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --grey-50: #F5F6F8;
  --grey-100: #EDEFF2;
  --grey-200: #DCE0E6;
  --grey-400: #9AA3B0;
  --grey-600: #4B5563;
  --grey-800: #1F2937;
  --black: #0A0A0A;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --max-w: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --shadow-sm: 0 1px 2px rgba(8,26,48,.06), 0 1px 3px rgba(8,26,48,.04);
  --shadow-md: 0 4px 12px rgba(8,26,48,.08), 0 2px 4px rgba(8,26,48,.04);
  --shadow-lg: 0 24px 48px rgba(8,26,48,.16), 0 8px 16px rgba(8,26,48,.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --t-fast: 150ms ease;
  --t-med: 250ms ease;
  --t-slow: 450ms cubic-bezier(.2,.7,.2,1);
}

/* -------- Reset -------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--white);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; }

/* -------- Typography -------- */
h1,h2,h3,h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.split-name {
  display: block;
  line-height: .95;
}
.split-name .first {
  display: block;
  font-weight: 200;
  letter-spacing: .04em;
}
.split-name .last {
  display: block;
  font-weight: 900;
  letter-spacing: -.02em;
}
.tagline {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--navy);
}
.tagline .dot { color: var(--red); margin: 0 .15em; }
p.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--grey-800);
  max-width: 65ch;
}

/* -------- Layout -------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-dark {
  background: var(--navy);
  color: var(--off-white);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: #FF4D63; }

/* -------- Header / Nav -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--grey-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo .nav-name { font-size: .95rem; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
  position: relative;
  padding: .25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: var(--white) !important;
  padding: .65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .85rem;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--red-dark); color: var(--white) !important; }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px; height: 32px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.is-open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: .5rem 0;
  letter-spacing: .04em;
  text-transform: none;
  font-size: .95rem;
}
.btn-ghost:hover { color: var(--red); }
.btn-ghost::after { content: " →"; transition: transform var(--t-fast); display: inline-block; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8,26,48,.85) 0%, rgba(15,42,74,.7) 50%, rgba(195,16,46,.45) 100%),
    radial-gradient(circle at 30% 70%, var(--navy-mid), var(--navy-deep));
  color: var(--white);
}
.hero::before {
  /* SVG cyclist silhouette as backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' fill='none'><g opacity='.18' stroke='%23ffffff' stroke-width='1.2'><circle cx='280' cy='420' r='95'/><circle cx='560' cy='420' r='95'/><path d='M280 420 L380 280 L500 280 L560 420'/><path d='M380 280 L420 220 L500 220'/><path d='M420 220 L460 180'/><path d='M460 180 L500 220 L560 220'/></g></svg>");
  background-position: center 60%;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}
.hero::after {
  /* sweeping accent curves like the card */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(200,16,46,.35), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(15,42,74,.4), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem var(--gutter) 7rem;
  width: 100%;
}
.hero-monogram { width: 100px; height: 100px; margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--white);
  margin: 1rem 0 1.5rem;
}
.hero h1 .first { color: rgba(255,255,255,.85); }
.hero h1 .last { color: var(--white); }
.hero-rule {
  display: flex;
  height: 4px;
  width: 240px;
  margin: 1.5rem 0;
}
.hero-rule .navy { flex: 1; background: var(--navy-mid); }
.hero-rule .red { flex: 1; background: var(--red); }
.hero-role {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.hero-role .sprinter { color: #FF4D63; }
.hero-tagline {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.hero-tagline .dot { color: var(--red); margin: 0 .25em; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  z-index: 3;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.4);
  margin: .5rem auto 0;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Page hero (smaller, for sub-pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--navy-mid) 0%, var(--navy-mid) 50%, var(--red) 50%, var(--red) 100%);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero .eyebrow { color: #FF4D63; }

/* -------- Curve divider -------- */
.curve-divider {
  display: block;
  width: 100%;
  height: auto;
}

/* -------- Cards / Grid -------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}
.feature-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--grey-200);
}
.feature-card .num {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature-card p { color: var(--grey-600); margin: 0; font-size: .95rem; }

/* -------- Sections / story blocks -------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.split-visual {
  aspect-ratio: 4/5;
  background: var(--navy);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.split-visual.silhouette {
  background:
    linear-gradient(180deg, var(--navy-mid), var(--navy-deep));
}
.split-visual.silhouette::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500' fill='none'><g stroke='%23ffffff' stroke-width='1.5' opacity='.35'><circle cx='130' cy='370' r='75'/><circle cx='290' cy='370' r='75'/><path d='M130 370 L210 230 L270 230 L290 370'/><path d='M210 230 L240 180 L290 180'/><path d='M240 180 L270 150'/></g></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80% auto;
}
.split-visual::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-mid) 50%, var(--red) 50%);
}

/* -------- Pull quote -------- */
.pullquote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--navy);
  border-left: 4px solid var(--red);
  padding: 1rem 0 1rem 2rem;
  max-width: 60ch;
  letter-spacing: -.01em;
}
.pullquote-attribution {
  display: block;
  margin-top: 1.5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--grey-600);
}

/* -------- Stats -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat .label {
  margin-top: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.stat .accent { color: var(--red); }

/* -------- Support / donation tiers -------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.tier {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.tier:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}
.tier.featured {
  border-color: var(--red);
  position: relative;
}
.tier.featured::before {
  content: "MOST IMPACTFUL";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  padding: .25rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  white-space: nowrap;
}
.tier h3 {
  font-size: 1.1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .5rem;
}
.tier .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin: 1rem 0;
}
.tier .price small {
  font-size: .9rem;
  font-weight: 600;
  color: var(--grey-600);
  letter-spacing: .05em;
}
.tier ul {
  list-style: none;
  padding: 0; margin: 1.5rem 0 2rem;
  flex: 1;
}
.tier ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .65rem;
  font-size: .95rem;
  color: var(--grey-800);
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 8px; height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}
.tier .btn { width: 100%; justify-content: center; }

/* -------- Donation categories (specific buckets) -------- */
.bucket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.bucket {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  transition: all var(--t-med);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.bucket:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.bucket .icon {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
  font-weight: 800;
}
.bucket strong { color: var(--navy); font-size: 1rem; }
.bucket span { color: var(--grey-600); font-size: .85rem; }

/* -------- Wishlist (Amazon-style) -------- */
.wishlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.wishlist-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.wishlist-item:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}
.wishlist-img {
  aspect-ratio: 1/1;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-400);
  font-size: 2.5rem;
  margin-bottom: .75rem;
}
.wishlist-name {
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  margin: 0;
}
.wishlist-meta {
  font-size: .8rem;
  color: var(--grey-600);
  margin: .25rem 0 .75rem;
}
.wishlist-price {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}
.wishlist-item .btn {
  margin-top: auto;
  padding: .55rem 1rem;
  font-size: .8rem;
  justify-content: center;
}

/* -------- FAQ -------- */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.faq-cat {
  padding: .5rem 1rem;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-800);
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--t-fast);
}
.faq-cat:hover, .faq-cat.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.faq-section { margin-bottom: 3rem; }
.faq-section h2 {
  font-size: 1.5rem;
  letter-spacing: .04em;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 1rem;
}
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.25rem 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.faq-q .chev {
  width: 16px; height: 16px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform var(--t-med);
  flex-shrink: 0;
}
.faq-item.is-open .faq-q .chev { transform: rotate(-135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
  color: var(--grey-800);
}
.faq-a > div {
  padding-bottom: 1.5rem;
  max-width: 70ch;
  line-height: 1.7;
}
.faq-item.is-open .faq-a {
  max-height: 1000px;
}

/* -------- Forms -------- */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}
.form-row {
  display: grid;
  gap: .4rem;
}
.form-row label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: .8rem 1rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--grey-800);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,42,74,.1);
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note {
  font-size: .85rem;
  color: var(--grey-600);
}

/* -------- Footer -------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: var(--red); }
.footer-brand .tagline { color: rgba(255,255,255,.7); }
.footer-brand p { max-width: 30ch; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* -------- Chatbot widget -------- */
.chat-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  transition: transform var(--t-fast), background var(--t-fast);
}
.chat-fab:hover { background: var(--red-dark); transform: scale(1.05); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  opacity: .6;
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(600px, calc(100vh - 2rem));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 70;
  border: 1px solid var(--grey-100);
}
.chat-panel.is-open { display: flex; }
.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.chat-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: .04em;
}
.chat-header .meta {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.chat-close {
  background: transparent;
  color: var(--white);
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  width: 28px; height: 28px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--grey-50);
}
.chat-msg {
  max-width: 85%;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-msg.bot {
  background: var(--white);
  color: var(--grey-800);
  align-self: flex-start;
  border: 1px solid var(--grey-100);
  border-bottom-left-radius: 2px;
}
.chat-msg.user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-disclaimer {
  font-size: .7rem;
  color: var(--grey-600);
  text-align: center;
  padding: .25rem .75rem .5rem;
  background: var(--grey-50);
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .25rem 1.25rem .75rem;
  background: var(--grey-50);
}
.chat-suggestion {
  font-size: .75rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--navy);
  padding: .35rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.chat-suggestion:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.chat-input {
  border-top: 1px solid var(--grey-100);
  background: var(--white);
  display: flex;
  gap: .5rem;
  padding: .75rem;
}
.chat-input input {
  flex: 1;
  font: inherit;
  padding: .6rem .9rem;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  outline: none;
}
.chat-input input:focus { border-color: var(--navy); }
.chat-input button {
  background: var(--red);
  color: var(--white);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-input button:hover { background: var(--red-dark); }
.chat-input button:disabled { background: var(--grey-200); cursor: not-allowed; }
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: .75rem 1rem;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 2px;
  align-self: flex-start;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grey-400);
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* -------- Utility -------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.text-muted { color: var(--grey-600); }
.text-red { color: var(--red); }
.divider-bar {
  display: inline-flex;
  height: 4px;
  width: 80px;
  margin: 1rem 0 1.5rem;
}
.divider-bar .navy { flex: 1; background: var(--navy-mid); }
.divider-bar .red { flex: 1; background: var(--red); }

/* -------- Responsive -------- */
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 1rem var(--gutter);
    border-bottom: 1px solid var(--grey-100);
  }
  .nav.is-open .nav-links a {
    padding: .75rem 0;
    border-bottom: 1px solid var(--grey-100);
  }
  .nav.is-open .nav-cta {
    display: inline-flex;
    margin-top: 1rem;
    align-self: flex-start;
  }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 80vh; }
}
