/* Sensemaking Lab - main stylesheet
   Recreated from sensemakinglab.io (Squarespace) for static hosting.
   Palette: blue #0057A0, yellow #FFCC33, light #F8F8F8.
   Original fonts bc-novatica-cyr / omnes-pro (Adobe) replaced with
   Google Fonts Poppins / Quicksand. */

:root {
  --blue: #0057A0;
  --blue-dark: #004a88;
  --yellow: #FFCC33;
  --light: #F8F8F8;
  --white: #ffffff;
  --black: #000000;
  --heading-font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
  --radius: 6.4px;
  --max-width: 1480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 19px;
  line-height: 1.4;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.1;
}
h1 { font-size: 49.8px; }
h2 { font-size: 39px; }
h3 { font-size: 37.5px; }
h4 { font-size: 22.1px; }

p { margin: 1rem 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5vw;
}

/* Header */
.site-header { background: #fff; position: relative; z-index: 100; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; max-width: var(--max-width); margin: 0 auto;
  padding: 24px 5vw; min-height: 118px;
}
.site-logo img { height: 64px; width: auto; }
.site-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: 16px; color: #000; text-decoration: none; padding-bottom: 3px; }
.site-nav a:hover, .site-nav a.active { text-decoration: underline; text-underline-offset: 5px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 28px; line-height: 1; }

/* Hero */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden; background-size: cover; background-position: center; color: #fff;
}
.hero--short { min-height: 44vh; }
.hero .hero-circle {
  position: absolute; left: -28vw; top: 50%; transform: translateY(-50%);
  width: 105vh; height: 105vh; min-width: 780px; min-height: 780px;
  border-radius: 50%; background: rgba(0, 87, 160, 0.82);
}
.hero--short::before { content: ''; position: absolute; inset: 0; background: rgba(0, 40, 80, 0.35); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero--short .hero-content { max-width: none; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero p { color: #fff; max-width: 640px; }
.hero-buttons { display: flex; gap: 1.2rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body-font); font-size: 16px;
  text-decoration: none; border-radius: var(--radius); padding: 18px 32px;
  transition: opacity .2s ease; text-align: center;
}
.btn:hover { opacity: .85; }
.btn-yellow { background: var(--yellow); color: #000; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-blue { background: var(--blue); color: #fff; }

/* Sections */
.section { padding: 90px 0; }
.section--light { background: var(--light); }
.section--white { background: #fff; }
.section--blue { background: var(--blue); color: #fff; }
.section--image { background-size: cover; background-position: center; position: relative; color: #fff; }
.section--image .overlay-blue { position: absolute; inset: 0; background: rgba(0, 87, 160, 0.78); }
.section--image > .container { position: relative; z-index: 2; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.eyebrow-badge { width: 120px; margin-bottom: 1.5rem; }

/* Collage */
.collage { position: relative; padding-bottom: 3rem; }
.collage .photo-main { border-radius: 24px; width: 88%; }
.collage .photo-overlap { position: absolute; right: 0; bottom: 0; width: 55%; border-radius: 24px; border: 6px solid #fff; }
.collage .shape { position: absolute; left: -30px; top: -30px; width: 90px; z-index: 0; }

/* Accordion */
.accordion { margin-top: 1.5rem; }
.accordion details { border-top: 1px solid rgba(0,0,0,.35); padding: 1.1rem 0; }
.accordion details:last-child { border-bottom: 1px solid rgba(0,0,0,.35); }
.accordion summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; font-family: var(--heading-font); font-weight: 600;
  font-size: 22.1px; color: var(--blue);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--blue); }
.accordion details[open] summary::after { content: '\2212'; }
.accordion .accordion-body { padding-top: .8rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 3rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 2rem 1.6rem; text-align: center;
}
.card .card-photo { border-radius: 4px; margin: -2rem -1.6rem 1.4rem; width: calc(100% + 3.2rem); max-width: none; }
.card h3 {
  font-size: 26px; margin: 0 auto 1rem; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.10); padding: .8rem 1rem;
}
.card p { font-size: 17.5px; margin: 0; }
.card .icon-circle {
  width: 190px; height: 190px; border-radius: 50%; background: #F5B62F;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem;
}
.card .icon-circle img { width: 110px; }
.card h4 { font-size: 26px; margin-bottom: 1rem; color: #000; }

.section-cta { text-align: center; margin-top: 3.5rem; }
.accent-blue { color: var(--blue); }
.text-center { text-align: center; }

.mission-band p { font-weight: 700; font-size: 21px; max-width: 900px; }

/* Services page rows */
.service-row { padding: 90px 0; }
.service-row h2 { margin-bottom: 1.4rem; }

/* Team */
.team-member { padding: 80px 0; }
.team-member .portrait { border-radius: 16px; width: 100%; max-width: 420px; margin: 0 auto; }
.team-member h3 { color: var(--blue); font-size: 30px; margin-bottom: 1.2rem; }

/* Blog */
.blog-list { display: grid; gap: 4rem; margin: 4rem 0; }
.blog-item { max-width: 820px; margin: 0 auto; text-align: center; }
.blog-item img { border-radius: 8px; margin-bottom: 1.6rem; }
.blog-meta { font-size: 15px; color: #444; margin-bottom: .8rem; }
.blog-meta a { color: #444; }
.blog-item h2 a { color: #000; text-decoration: none; }
.blog-item h2 a:hover { text-decoration: underline; }
.read-more { display: inline-block; margin-top: 1rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

.post { max-width: 780px; margin: 0 auto; padding: 70px 5vw; }
.post h1 { font-size: 42px; margin-bottom: 1rem; }
.post .post-meta { color: #555; font-size: 15.5px; margin-bottom: 2.4rem; }
.post .post-meta a { color: var(--blue); }
.post h2 { font-size: 28px; margin: 2.4rem 0 .6rem; }
.post a { color: var(--blue); }
.post ol, .post ul { margin: 1rem 0 1rem 1.6rem; }
.post li { margin: .5rem 0; }
.post .tags { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.post .tags a { font-size: 14px; color: #333; text-decoration: none; background: var(--light); padding: .35rem .8rem; border-radius: 999px; }
.post .refs p { font-size: 16.5px; }

/* Clients */
.client-entry { margin: 2.6rem 0; }
.client-entry h3 { font-size: 23px; font-family: var(--body-font); font-weight: 700; margin-bottom: .6rem; }

/* Contact */
.contact-email { font-size: 20px; margin-top: 2rem; }
.contact-email a { color: var(--blue); font-weight: 600; }
.divider { border: 0; border-top: 1px solid rgba(0,0,0,.2); margin: 2.5rem 0; }

/* Footer */
.site-footer { background: var(--blue); color: #fff; padding: 70px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.site-footer h3 { color: #fff; font-size: 30px; }
.site-footer h4 { color: var(--yellow); margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; }
.footer-links li { margin: .4rem 0; }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: 15px; color: rgba(255,255,255,.85);
}

/* Responsive */
@media (max-width: 1000px) {
  h1 { font-size: 38px; }
  h2 { font-size: 31px; }
  h3 { font-size: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1.2rem 5vw 2rem;
    gap: 1rem; box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .site-nav.open { display: flex; }
  .hero { min-height: 70vh; }
  .hero .hero-circle { left: -60vw; width: 150vw; height: 150vw; }
}

/* === Accuracy fixes (v2) === */
/* Blue headings on light sections, per original theme */
.section--light h2, .section--white h2, .section--hex h2 { color: var(--blue); }

/* Light hexagon-texture section (Squarespace bright-inverse on bg25) */
.section--hex {
  background: #fff url('../images/bg-blue-texture.jpg') center / cover no-repeat;
  color: #000;
}

/* Contact Us nav button */
.site-nav .nav-btn {
  background: var(--blue); color: #fff;
  border-radius: 8px; padding: 14px 22px;
}
.site-nav .nav-btn:hover, .site-nav .nav-btn.active { text-decoration: none; opacity: .9; }

/* Centered short heroes */
.hero--short .hero-content { text-align: center; }

/* Photo frame: dots pattern + blue rounded accent, as on original Services */
.photo-frame { position: relative; padding: 26px; }
.photo-frame img { position: relative; z-index: 2; border-radius: 10px; width: 100%; }
.photo-frame::before {
  content: ''; position: absolute; z-index: 1;
  top: 0; left: 0; width: 60%; height: 55%;
  background: url('../images/dot-shape.png') repeat left top / 220px;
  transform: translate(-14px, -14px);
}
.photo-frame::after {
  content: ''; position: absolute; z-index: 0;
  top: 14%; right: -14px; width: 46%; height: 80%;
  background: var(--blue); border-radius: 18px;
}
.photo-frame--left::after { right: auto; left: -14px; }
.photo-frame--left::before { left: auto; right: 0; transform: translate(14px, -14px); }
