/* Journey to Impact website styles.
   Brand source: auditos/01-agency/brand.md. Navy text, turquoise accents, coral for calls to action only. */

:root {
  --navy: #072248;
  --teal: #0097b2;
  --teal-dark: #007a91;
  --coral: #ff5757;
  --coral-dark: #e84444;
  --muted: #6d7480;
  --ground: #f7f9fb;
  --teal-wash: #e8f6f9;
  --white: #ffffff;
  --line: rgba(7, 34, 72, 0.12);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7, 34, 72, 0.06), 0 8px 28px rgba(7, 34, 72, 0.08);
  --max: 1120px;
  --read: 700px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.label {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.8rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin: 0 auto; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.band-ground { background: var(--ground); }
.band-teal { background: var(--teal-wash); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a:not(.btn) { color: #9fe3ef; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-dark); }
.nav .btn { padding: 10px 18px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--white);
         flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  font-size: 1rem; line-height: 1.2; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-dark); color: var(--white); }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.band-navy .btn-outline { border-color: #9fe3ef; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 1.6rem; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero .lede { font-size: 1.15rem; color: #2b3d5a; max-width: 38em; }
.hero-photo img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-photo.wide img { aspect-ratio: 4 / 3; }
.hero-graphic svg { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-graphic { max-width: 420px; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 360px; }
}

/* Grids and cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card.featured { border: 2px solid var(--teal); }
.grid-2 > .card, .grid-3 > .card { display: flex; flex-direction: column; }
.grid-2 > .card > .btn:last-child, .grid-3 > .card > .btn:last-child { margin-top: auto; align-self: flex-start; }
.card .who { font-size: 0.92rem; color: var(--muted); margin-top: -0.2em; }

.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.steps.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .steps.five { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px;
  border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-weight: 700;
}
.step h3 { font-size: 1.15rem; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-wash); border: 2px solid var(--teal); }
.problems li strong { color: var(--navy); }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.proof .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #9fe3ef; display: block; line-height: 1.1; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split img { max-width: 240px; } }

.path { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; font-weight: 700; margin: 8px 0 18px; }
.path span { background: var(--white); border: 2px solid var(--teal); border-radius: 999px; padding: 8px 18px; }
.path i { color: var(--teal); font-style: normal; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.tiles a { display: block; background: var(--teal-wash); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--navy); font-weight: 700; text-align: center; }
.tiles a:hover { background: var(--teal); color: var(--white); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }

.service { scroll-margin-top: 90px; }
.service + .service { border-top: 1px solid var(--line); }
.best-for { background: var(--ground); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 0 10px 10px 0; margin-top: 18px; }

/* Long-form reading (case study, blog, about) */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--teal); color: #2b3d5a; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97rem; min-width: 480px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--ground); }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
.filters button { font: inherit; font-size: 0.93rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--teal); background: var(--white); color: var(--teal-dark); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card img { aspect-ratio: 1472 / 832; object-fit: cover; width: 100%; background: var(--teal-wash); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal-dark); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; }
.post-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.post-hero img { border-radius: 16px; aspect-ratio: 1472 / 832; object-fit: cover; width: 100%; margin-bottom: 28px; background: var(--teal-wash); }
.series-nav { background: var(--ground); border-radius: 12px; padding: 16px 20px; font-size: 0.97rem; margin: 0 0 28px; }
.series-nav ol { margin: 6px 0 0; padding-left: 1.3em; }
.cta-box { background: var(--teal-wash); border-radius: var(--radius); padding: 28px; margin: 40px 0 28px; }
.cta-box h3 { margin-bottom: 0.3em; }
.author { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.97rem; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e8; padding: 48px 0 36px; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer img { height: 38px; width: auto; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.copyright { width: 100%; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; margin-top: 8px; color: #93a5bf; font-size: 0.88rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 50; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
