/* ClearImpact Advisors — light pages, official wordmark,
   strategic-advising voice, fewer boxed cards. */

:root {
  --navy: #071825;
  --navy-mid: #0c2436;
  --brand: #126a9a;
  --brand-soft: #9ec7de;
  --gold: #7eb3d6;
  --gold-dim: #4f8fb3;
  --paper: #f6f8fa;
  --paper-2: #eef2f5;
  --ink: #0d1820;
  --ink-soft: #33414c;
  --mute: #5c6b76;
  --line: rgba(7, 24, 37, 0.1);
  --line-light: rgba(244, 247, 250, 0.16);
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(7, 24, 37, 0.1);
  --radius: 8px;
  --serif: "PT Serif", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
  --max: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --book-bar: 5.4rem;
  --book-bar-clearance: calc(var(--book-bar) + env(safe-area-inset-bottom, 0px) + 1.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#overview,
#organizations,
#challenge,
#help,
#impact,
#founder,
#contact {
  scroll-margin-top: 80px;
}

#impact .filters {
  margin: 0 0 0.4rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  padding-bottom: var(--book-bar-clearance);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.kicker.light {
  color: var(--gold);
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  margin: 0 0 1.2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 0.55rem;
}

.lede {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: rgba(246, 248, 250, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: rgba(13, 24, 32, 0.72);
  font-size: 0.9rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav .btn-gold,
.nav .btn-gold:hover {
  color: #fff;
}

.nav .btn-gold:hover {
  background: #0e5982;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.65rem 1.2rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--brand);
  color: #fff;
}

.btn-gold:hover {
  background: #0e5982;
}

.btn-ghost {
  border-color: rgba(238, 242, 246, 0.4);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle-icon {
  display: block;
  fill: currentColor;
}

.menu-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar-2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar-3 {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff;
  background: var(--navy);
  padding: 1.85rem 0 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      #071825 0%,
      rgba(7, 24, 37, 0.94) 42%,
      rgba(7, 24, 37, 0.42) 68%,
      rgba(7, 24, 37, 0.18) 100%
    ),
    url("https://images.squarespace-cdn.com/content/v1/68c64cfa5ef7505dc026f3ef/1758898771497-WK2DS0FF7NP2VJI93HD6/unsplash-image-Ng5tDxfpuzI.jpg?format=2500w")
      center right / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: start;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  padding-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 0.95rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .lede {
  color: rgba(238, 242, 246, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.hero-aside {
  display: grid;
  gap: 0.75rem;
}

.stat {
  margin: 0;
  padding: 0.75rem 0.95rem;
  background: rgba(7, 24, 37, 0.55);
  border: 1px solid rgba(238, 242, 246, 0.14);
  backdrop-filter: blur(10px);
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
}

.stat span {
  color: rgba(238, 242, 246, 0.78);
  font-size: 0.92rem;
}

.clients {
  position: relative;
  z-index: 1;
  padding: 1.1rem 0 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(7, 24, 37, 0.08);
  backdrop-filter: blur(12px);
}

.clients .kicker {
  margin-bottom: 0.7rem;
}

.logo-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem 1.5rem;
  align-items: center;
}

.logo-rail img {
  max-height: 42px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.72;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.logo-rail img:hover {
  opacity: 1;
  filter: none;
}

section {
  padding: clamp(4rem, 8vw, 6.2rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  margin-bottom: 2.6rem;
  align-items: end;
}

.section-head.invert .lede {
  color: rgba(238, 242, 246, 0.72);
}

.display-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--brand);
  opacity: 0.38;
  margin-bottom: 1rem;
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 2rem;
}

.open-item {
  padding-top: 1.1rem;
  border-top: 2px solid var(--brand);
}

.open-item p {
  margin: 0;
  color: var(--ink-soft);
}

.band-navy {
  background:
    linear-gradient(180deg, #0a1d2c 0%, #071825 100%);
  color: #fff;
}

.band-navy .display-num {
  color: var(--gold);
  opacity: 0.55;
}

.band-soft {
  background: var(--white);
}

.practice-rows {
  display: grid;
  gap: 0;
}

.practice-rows article {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-top: 1px solid rgba(238, 242, 246, 0.14);
}

.practice-rows article:last-child {
  border-bottom: 1px solid rgba(238, 242, 246, 0.14);
}

.practice-rows h3 {
  margin-top: 0.15rem;
}

.practice-rows p {
  margin: 0 0 0.85rem;
  color: rgba(238, 242, 246, 0.74);
}

.practice-rows ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-rows li {
  color: var(--gold);
  font-size: 0.88rem;
}

.founder {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3rem;
  align-items: start;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  filter: saturate(0.9);
}

.portrait figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  background: rgba(7, 24, 37, 0.86);
  color: #fff;
  font-size: 0.78rem;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.8rem 0 0;
  padding-top: 1.4rem;
  border-top: 2px solid var(--brand);
}

.proof p {
  margin: 0;
}

.proof b {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.proof span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.certs {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
}

.certs img {
  height: 64px;
  width: auto;
}

.cta {
  background: var(--navy-mid);
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cta .lede {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.4rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.7);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form button {
  justify-self: start;
  margin-top: 0.3rem;
}

.form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(238, 242, 246, 0.78);
}

.form-status.is-success {
  color: #b7e0c2;
}

.form-status.is-error {
  color: #f0b4b4;
}

.recaptcha-note {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(238, 242, 246, 0.52);
}

.recaptcha-note a {
  color: rgba(238, 242, 246, 0.78);
  text-decoration: underline;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 0;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.filter[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.study {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.study[hidden] {
  display: none;
}

.study-summary {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.study-summary:hover {
  background: transparent;
  color: var(--brand);
}

.study-summary > span:last-child {
  color: var(--brand);
  font-size: 0.86rem;
}

.study.is-open .study-summary > span:last-child {
  color: var(--gold-dim);
}

.study-summary img {
  width: 110px;
  height: 56px;
  object-fit: contain;
}

.study-summary small {
  display: block;
  color: var(--brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}

.study-body {
  display: none;
  padding: 0 0 1.5rem;
  border-top: 1px solid var(--line);
}

.study.is-open .study-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.3rem;
  padding-top: 1.3rem;
}

.study-body h4 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.study-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--navy);
  color: #fff;
  border-top: 3px solid var(--brand);
  box-shadow: 0 -10px 28px rgba(7, 24, 37, 0.18);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.book-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.book-bar-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.book-bar-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.book-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: none;
}

.btn-bar-secondary {
  border-color: rgba(238, 242, 246, 0.45);
  color: #fff;
  background: transparent;
}

.btn-bar-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(238, 242, 246, 0.7);
}

/* Header: solid dark fill so it matches the sticky-bar secondary button */
.site-header .btn-bar-secondary {
  background: var(--navy);
  border-color: rgba(238, 242, 246, 0.45);
  color: #fff;
}

.site-header .btn-bar-secondary:hover {
  background: #123247;
  border-color: rgba(238, 242, 246, 0.7);
  color: #fff;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  background: #041018;
  color: rgba(238, 242, 246, 0.68);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a:hover {
  color: var(--gold);
}

/* Badge may be hidden if the required disclosure text is shown near the form. */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .open-grid,
  .founder,
  .cta-grid,
  .proof,
  .study.is-open .study-body {
    grid-template-columns: 1fr;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 24, 37, 0.88) 0%, rgba(7, 24, 37, 0.78) 100%),
      url("https://images.squarespace-cdn.com/content/v1/68c64cfa5ef7505dc026f3ef/1758898771497-WK2DS0FF7NP2VJI93HD6/unsplash-image-Ng5tDxfpuzI.jpg?format=1600w")
        center / cover no-repeat;
  }

  .logo-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .practice-rows article {
    grid-template-columns: 3.4rem 1fr;
  }

  .book-bar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.75rem;
    padding: 0.7rem 0;
  }

  .book-bar-kicker {
    font-size: 1.1rem;
  }

  .book-bar-copy {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .book-bar-actions {
    width: 100%;
  }

  .book-bar-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  :root {
    --book-bar: 12rem;
  }
}

@media (max-width: 980px) {
  .study-summary {
    grid-template-columns: 80px 1fr auto;
    gap: 0.85rem;
    align-items: center;
  }

  .study-summary img {
    display: block;
    width: 80px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --book-bar: 13.5rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(100% + 0.5rem);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-actions {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .study-summary {
    grid-template-columns: 72px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 0;
  }

  .study-summary img {
    display: block !important;
    width: 72px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .study-summary > span:last-child {
    white-space: nowrap;
  }

  .brand-logo {
    height: 32px;
  }
}
