/* SynchroFinance — shared stylesheet */
:root {
  --navy: #0D2260;
  --navy-deep: #011234;
  --green: #4DC98A;
  --green-dark: #2FA86B;
  --ink: #1B2437;
  --muted: #5A6478;
  --line: #E3E8F0;
  --bg-soft: #F5F8FC;
  --white: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); }
a:hover { color: var(--green-dark); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: var(--navy-deep); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  font-size: 1.35rem; font-weight: 700; color: var(--navy);
  text-decoration: none; letter-spacing: -0.01em;
}
.brand span { color: var(--green-dark); }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.site-nav a:hover { color: var(--green-dark); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--navy-deep); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Sections */
section { padding: 80px 0; }
.eyebrow {
  display: block; margin-bottom: 10px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-dark);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #D9E1F2; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--green); }
.section-dark .lead { color: #C3CEE6; }
.section-dark a:not(.btn) { color: var(--green); }

.hero { padding: 110px 0; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }

/* Grids and cards */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; border-top: 4px solid var(--green);
}
.card p { color: var(--muted); }
.card ul { margin: 16px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); }
.card li { padding: 3px 0; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.card a { font-weight: 600; text-decoration: none; }
.card h4 { margin: 18px 0 6px; font-size: 1rem; color: var(--navy); }

.stat { padding: 8px 0; }
.stat strong {
  display: block; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1;
  color: var(--green); margin-bottom: 8px;
}
.note { margin-top: 40px; max-width: 760px; }

.center { text-align: center; }
.center .lead, .center .btn-row { margin-left: auto; margin-right: auto; justify-content: center; }

/* Legal pages */
.legal { max-width: 800px; padding-top: 60px; padding-bottom: 80px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .updated { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEB9D1; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #AEB9D1; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer .brand { color: var(--white); }
.site-footer .brand span { color: var(--green); }
.copyright { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; margin: 0; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 72px 0; }
}

/* ---------- Images ---------- */
.brand img { display: block; height: 30px; width: auto; }
.site-footer .brand img { filter: brightness(0) invert(1); height: 28px; margin-bottom: 12px; }

.hero {
  background:
    linear-gradient(100deg, rgba(1,18,52,0.92) 0%, rgba(13,34,96,0.72) 55%, rgba(13,34,96,0.35) 100%),
    url("/images/hero-roads.webp") center / cover no-repeat;
  padding: 140px 0;
}

.section-deep { background: var(--navy-deep); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split img { display: block; margin: 0 auto; max-height: 440px; width: auto; }

.icon {
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; margin-bottom: 18px;
  border-radius: 14px; background: var(--navy-deep);
}
.icon img { width: 42px; height: 42px; object-fit: contain; }

/* Photo panels: text over a darkened photograph */
.photo-panel {
  position: relative; overflow: hidden; border-radius: 12px;
  min-height: 340px; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #E4EAF7; background-color: var(--navy-deep);
  background-size: cover; background-position: center;
}
.photo-panel::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,18,52,0.25) 0%, rgba(1,18,52,0.88) 72%);
}
.photo-panel > * { position: relative; }
.photo-panel p { margin: 0; }
.photo-panel .num {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--green); margin-bottom: 10px;
}
.photo-panel .panel-icon { width: 56px; height: 56px; margin-bottom: 14px; }
.photo-panel .stat-figure {
  display: block; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1;
  color: var(--green); margin-bottom: 8px;
}
.bg-bank    { background-image: url("/images/bank.webp"); }
.bg-capitol { background-image: url("/images/capitol.webp"); background-position: center 20%; }
.bg-plaque  { background-image: url("/images/plaque.webp"); }

.callout {
  position: relative; overflow: hidden; border-radius: 12px; margin-top: 24px; padding: 40px;
  display: flex; gap: 24px; align-items: center; color: #E4EAF7;
  background: linear-gradient(90deg, rgba(1,18,52,0.93), rgba(1,18,52,0.72)), url("/images/chess.webp") center / cover no-repeat;
}
.callout img { width: 60px; height: 60px; flex: none; }
.callout p { margin: 0; font-size: 1.1rem; max-width: 760px; }

/* Cards with a photo on top */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo > img.photo { display: block; width: 100%; height: 170px; object-fit: cover; }
.card-photo .card-body { padding: 24px 28px 28px; }
.card-photo .card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-photo .card-title img { width: 40px; height: 40px; }
.card-photo .card-title h3 { margin: 0; }

.diagram { display: block; margin: 0 auto 20px; max-height: 300px; width: auto; }
.card h4 { display: flex; align-items: center; gap: 10px; }
.card h4 img { width: 28px; height: 28px; }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .hero { padding: 90px 0; }
  .callout { flex-direction: column; align-items: flex-start; padding: 28px; }
}

/* Mission rows: full photo beside the text */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  margin-top: 32px; border-radius: 14px; overflow: hidden;
  background: var(--navy); color: #E4EAF7;
}
.feature-reverse .feature-photo { order: 2; }
.feature-photo { display: block; width: 100%; height: 100%; min-height: 340px; max-height: 420px; object-fit: cover; }
.feature-text { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-text p { font-size: 1.2rem; line-height: 1.55; margin: 0; }
.feature-text .num { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.12em; color: var(--green); margin-bottom: 12px; }
.feature-icon { width: 56px; height: 56px; margin-bottom: 16px; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-photo { order: 0; }
  .feature-photo { min-height: 220px; max-height: 260px; }
  .feature-text { padding: 28px; }
}
