:root {
  --blue: #1877f2;
  --blue-2: #0f5ad0;
  --red: #ff0000;
  --red-dark: #cc0000;
  --red-tint: rgba(255, 0, 0, 0.08);
  --white: #ffffff;
  --alt: #f4f6f8;
  --text: #1e2a35;
  --muted: #5b6874;
  --line: #dde3e9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.accent { color: var(--red-dark); }

h1, h2, h3 { font-family: 'Sora', 'Inter', system-ui, sans-serif; line-height: 1.2; color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--blue); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--blue); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--blue); border-radius: 8px;
  color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem;
}
.brand-text { font-weight: 600; line-height: 1.15; }
.brand-text small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; gap: 28px; }
.nav a { color: var(--blue); font-weight: 500; font-size: 0.92rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); border-color: var(--red); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue); margin: 5px 0; }

/* Photo slots: a tinted panel with a label shows until a real photo loads */
.photo {
  position: relative; overflow: hidden; margin: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}
.photo::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero */
.hero { padding: 72px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--red-dark); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 600; margin-bottom: 18px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 22px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.hero-media { position: relative; }
.photo-hero { aspect-ratio: 4 / 5; }
.hero-badge {
  position: absolute; left: -24px; bottom: 36px;
  background: var(--red); color: #fff;
  padding: 16px 24px; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(14, 79, 176, 0.25);
}
.hero-badge strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem; line-height: 1.1; }
.hero-badge span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Facts band */
.facts-band { background: var(--blue); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 28px 20px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.facts li:first-child { padding-left: 0; }
.facts li:last-child { border-right: 0; }
.facts strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem; color: #fff; }
.facts span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.75); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--alt); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 18px; max-width: 760px; }
.section-intro { color: var(--muted); max-width: 720px; margin-bottom: 40px; font-size: 1.05rem; }
.sub-heading { font-size: 1.35rem; margin: 56px 0 22px; }
.note { color: var(--muted); font-size: 0.92rem; max-width: 760px; margin: -8px 0 22px; }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--blue); font-weight: 600; }
.card p { color: var(--muted); }
.card.small { padding: 24px; }
.card.accented { border-left: 4px solid var(--red); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-copy .section-intro { margin-bottom: 28px; }
.checks { list-style: none; margin-bottom: 8px; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); font-weight: 500; }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 8px;
  display: grid; place-items: center; width: 22px; height: 22px;
  background: var(--red-tint); color: var(--red-dark); border-radius: 50%;
  font-size: 0.8rem; font-weight: 700;
}
.stack { position: relative; padding-bottom: 8px; }
.photo-wide { aspect-ratio: 3 / 2; }
.photo-medium {
  width: 62%; aspect-ratio: 4 / 3; margin: -56px 0 0 auto;
  border: 6px solid var(--white);
  box-shadow: 0 12px 30px rgba(14, 79, 176, 0.18);
}
.vm { margin-top: 56px; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.values li { border: 1px solid var(--blue); color: var(--blue); padding: 9px 20px; border-radius: 6px; font-weight: 500; font-size: 0.92rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.services-grid .section-intro { margin-bottom: 0; }
.service-list { list-style: none; counter-reset: svc; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.service-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 0; }
.service-list .num { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--red-dark); }
.service-list h3 { font-size: 1.05rem; font-weight: 600; }
.info-grid { margin-top: 28px; }
.outlook { margin-top: 40px; }
.outlook p { color: var(--muted); max-width: 820px; margin-bottom: 14px; font-size: 0.95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 1px solid var(--line); color: var(--blue); padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; }

/* Wide photo banner */
.banner { position: relative; }
.photo-banner { border-radius: 0; aspect-ratio: 21 / 8; min-height: 240px; }
.banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 4% 32px;
  background: linear-gradient(to top, rgba(14, 79, 176, 0.88), rgba(14, 79, 176, 0));
  color: #fff; font-family: 'Sora', sans-serif; font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 600;
}
.banner figcaption span { display: block; max-width: 1160px; margin: 0 auto; width: 92%; }

/* Network */
.partner h4 { color: var(--blue); font-size: 1.02rem; }
.partner p { font-size: 0.82rem; color: var(--red-dark); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.affiliates { list-style: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.affiliates li {
  display: grid; grid-template-columns: 90px 1.2fr 1.6fr; gap: 18px; align-items: baseline;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.affiliates li:last-child { border-bottom: 0; }
.affiliates li:nth-child(odd) { background: var(--alt); }
.affiliates .year { font-family: 'Sora', sans-serif; color: var(--red-dark); font-weight: 700; }
.affiliates .name { color: var(--blue); font-weight: 600; }
.affiliates .what { color: var(--muted); font-size: 0.93rem; }
.affiliates li.self { background: var(--red-tint); }

/* Contact */
.section-dark { background: var(--blue); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: rgba(255, 255, 255, 0.85); }
.section-dark .section-intro { color: rgba(255, 255, 255, 0.78); margin-bottom: 28px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-cards .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); border-left: 4px solid var(--red); }
.contact-cards h4 { color: #fff; }
.contact-cards p, .contact-cards a { color: #fff; word-break: break-word; }
.contact-cards a:hover { color: #fff; }

/* Footer */
.site-footer { background: #0e4fb0; padding: 32px 0; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.site-footer .disclaimer { margin-top: 8px; font-size: 0.78rem; max-width: 760px; margin-left: auto; margin-right: auto; opacity: 0.85; }

/* Tablet */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-hero { aspect-ratio: 4 / 3; }
  .hero-badge { left: 16px; bottom: 16px; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding-left: 0; }
  .facts li:nth-child(2) { border-right: 0; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav { gap: 20px; }
}

/* Mobile */
@media (max-width: 800px) {
  .grid.two, .grid.four { grid-template-columns: 1fr; }
  .affiliates li { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .photo-banner { aspect-ratio: 16 / 9; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .nav.open { max-height: 340px; }
  .nav a { padding: 16px 4%; border-bottom: 1px solid var(--line); }
  .hero { padding: 44px 0 52px; }
  .section { padding: 68px 0; }
  .service-list li { padding: 16px 18px; grid-template-columns: 44px 1fr; }
}