/* Shared base styles */
@import url('colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fq-font-body); color: var(--fq-ink-2); background: #fff; -webkit-font-smoothing: antialiased; }
section[id], #top { scroll-margin-top: 88px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Skip-to-main-content. Off-screen until it receives keyboard focus, then
   slides in at the top-left so it's the first thing tabbed-keyboard users
   land on after page load. */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--fq-ink);
  color: #fff;
  font-family: var(--fq-font-body);
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(28,44,68,0.18);
  transition: top .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--fq-blue);
  outline-offset: 2px;
}
/* Browsers don't move keyboard focus to a hash target unless tabindex is set;
   we set tabindex="-1" on <main id="main">, so suppress its focus ring. */
main:focus,
main:focus-visible { outline: none; }

/* ── Fade-in helper ────────────────────────────────── */
/* The inline <script> in index.html adds `js-on` to <html> before first
   paint, so elements with `.fade-in` start hidden with no flash. Without
   JS (or if the script failed) we keep them visible. */
html.js-on .fade-in { opacity: 0; transition: opacity 0.55s ease; }
html.js-on .fade-in.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html.js-on .fade-in { opacity: 1; transition: none; }
}

/* ── Shared Header ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--fq-border);
}
.nav-logo img { height: 56px; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 600;
  color: var(--fq-ink); cursor: pointer;
  padding: 8px 0; position: relative;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--fq-blue); }
.nav-links a.active { color: var(--fq-blue); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--fq-blue);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: all .15s ease;
}
.btn-primary { background: var(--fq-blue); color: #fff; }
.btn-primary:hover { background: #1a4fbe; }
.btn-secondary { background: transparent; color: var(--fq-blue-deep); box-shadow: inset 0 0 0 1px var(--fq-border-strong); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--fq-blue-deep); background: var(--fq-blue-tint); }
.btn-coral { background: var(--fq-red); color: #fff; }
.btn-coral:hover { background: #d94730; }
.btn-ghost { color: var(--fq-blue); padding: 8px 0; }
.btn-ghost:hover { color: var(--fq-blue-light); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ── Eyebrow ───────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fq-font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fq-blue);
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: currentColor; display: inline-block;
}

/* ── Display heads ─────────────────────────────────────────── */
.display {
  font-family: var(--fq-font-display);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--fq-ink);
  margin: 0;
}
.display em {
  font-style: normal;
  color: var(--fq-blue-deep);
  font-weight: 500;
}
.h1 { font-family: var(--fq-font-display); font-weight: 500; font-size: 48px; line-height: 1.08; letter-spacing: -0.02em; color: var(--fq-ink); margin: 0; }
.h2 { font-family: var(--fq-font-display); font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; color: var(--fq-ink); margin: 0; }
.h3 { font-family: var(--fq-font-display); font-weight: 600; font-size: 26px; line-height: 1.2; color: var(--fq-ink); margin: 0; }
.h4 { font-family: var(--fq-font-display); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--fq-ink); margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--fq-ink-2); margin: 0; }
.body { font-size: 15px; line-height: 1.6; color: var(--fq-ink-2); margin: 0; }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--fq-ink-3); margin: 0; }
.micro { font-size: 12px; line-height: 1.5; color: var(--fq-ink-3); letter-spacing: 0.02em; margin: 0; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 96px 48px; }
.section-sm { padding: 64px 48px; }
.section-tint { background: var(--fq-blue-tint); }
.section-ink { background: var(--fq-ink); color: #fff; }
.section-ink .h2, .section-ink .h3, .section-ink .h4, .section-ink .display { color: #fff; }
.section-ink .body, .section-ink .lead { color: rgba(255,255,255,0.78); }

/* ── Icon badge ───────────────────────────────────────────── */
.icon-badge {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fq-blue);
  flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
.icon-badge-sm { width: 36px; height: 36px; }
.icon-badge-sm svg { width: 18px; height: 18px; }
.icon-badge-lg { width: 64px; height: 64px; }
.icon-badge-lg svg { width: 28px; height: 28px; }

/* ── Hairline section head ──────────────────────────────────── */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .h2 { margin-bottom: 16px; }
.section-head .lead { color: var(--fq-ink-3); }

/* ── Utility ─────────────────────────────────────────────── */
.max-1180 { max-width: 1180px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Photo placeholder — explicitly marked */
.photo-placeholder {
  position: relative;
  background: linear-gradient(135deg, #e8eef9 0%, #d3dff0 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: rgba(28, 44, 68, 0.35);
}
.photo-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px; left: 12px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  color: var(--fq-ink-3);
  padding: 4px 8px; border-radius: 4px;
  font-weight: 600;
}
.photo-placeholder svg {
  width: 44px; height: 44px; opacity: 0.4;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

/* Footer */
.footer { background: var(--fq-ink); color: rgba(255,255,255,0.7); padding: 72px 48px 28px; }
.footer-top { display: grid; grid-template-columns: 1fr 2.4fr; gap: 60px; padding-bottom: 40px; max-width: 1180px; margin: 0 auto; }
.footer-brand img { height: 52px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { max-width: 280px; font-size: 14px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h5 { font-family: var(--fq-font-display); font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-cols a { display: block; font-size: 13px; color: rgba(255,255,255,0.7); padding: 5px 0; cursor: pointer; }
.footer-cols a:hover { color: #fff; }
.footer-bot {
  max-width: 1180px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.footer-bot .heart { color: var(--fq-red-heart); }

/* Animated counter base */
.counter { font-variant-numeric: tabular-nums; }
