/* Design tokens extracted from original site */
:root {
  /* Colors */
  --color-primary: #155eac;
  --color-accent: #11a279;
  --color-white: #fffefe;
  --color-gray-light: #ededed;
  --color-text: #000;

  /* Typography */
  --font-family: 'Poppins', sans-serif;

  /* Logo: 44.376px, weight 600, letter-spacing 2.66256px */
  --logo-size: 44.376px;
  --logo-weight: 600;
  --logo-spacing: 2.66256px;
  --logo-line-height: 62.1264px;

  /* Nav: 21.912px, weight 400 */
  --nav-size: 21.912px;
  --nav-weight: 400;
  --nav-line-height: 39.4416px;
  --nav-padding-y: 2.1912px;

  /* Hero H2: 37.464px, weight 400, line-height 49.7222px */
  --hero-h2-size: 37.464px;
  --hero-h2-weight: 400;
  --hero-h2-line-height: 49.7222px;

  /* Body: 20.184px, weight 300, line-height 36.3312px */
  --body-size: 20.184px;
  --body-weight: 300;
  --body-line-height: 36.3312px;

  /* Smaller body text: 18.456px */
  --body-small-size: 18.456px;
  --body-small-line-height: 33.2208px;

  /* Layout - exact extracted values */
  --header-height: 148.5px;
  --header-inner-height: 62.125px;
  --max-width: 1500px;
  --gutter: 57.59375px;
  --nav-item-gap: 17.265625px;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Header - exact positioning */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-primary);
  z-index: 100;
}

/* Green border bar at bottom of header */
.header-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  border-bottom: 10px solid var(--color-accent);
  pointer-events: none;
}

.header-inner {
  height: var(--header-inner-height);
  margin-top: 43.1875px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: var(--logo-size);
  font-weight: var(--logo-weight);
  letter-spacing: var(--logo-spacing);
  line-height: var(--logo-line-height);
  color: var(--color-white);
  text-decoration: none;
}

nav {
  display: flex;
  gap: var(--nav-item-gap);
}

nav a {
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  line-height: var(--nav-line-height);
  color: var(--color-white);
  text-decoration: none;
  padding: var(--nav-padding-y) 0;
  display: flex;
  align-items: center;
  height: 43.8125px;
}

nav a.active {
  background-image: linear-gradient(var(--color-white), var(--color-white));
  background-size: 1px 1px;
  background-position: 0 calc(100% - 2.1912px);
  background-repeat: repeat-x;
}

/* Hamburger menu - hidden on desktop */
.hamburger {
  display: none;
}

/* Responsive - Mobile first, then scale up */

/* Mobile: < 800px - hamburger menu, uses vw-based scaling */
@media (max-width: 799px) {
  :root {
    /* Header scales: ~73px at 300px, ~135px at 768px → roughly 12-18vw range */
    --header-height: max(73px, min(18vw, 135px));
    --logo-size: max(28px, 4.5vw);
    --logo-spacing: 0.28vw;
    --logo-line-height: 1.4;
    --hero-h2-size: max(24px, 4vw);
    --hero-h2-line-height: 1.33;
    --gutter: 4vw;
  }

  nav {
    display: none;
  }

  header .header-inner {
    margin-top: 0 !important;
    height: var(--header-height) !important;
    padding: 0 17px !important;
    justify-content: space-between;
    align-items: center;
  }

  .logo a {
    font-size: var(--logo-size) !important;
    line-height: 1 !important;
    letter-spacing: var(--logo-spacing) !important;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    position: relative;
    padding: 10px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
  }

  /* Mobile nav when open */
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    padding: 20px;
    gap: 15px;
  }

  nav.open a {
    color: var(--color-white);
    font-size: 18px;
  }

  .hero {
    height: auto;
    padding-top: var(--header-height);
    padding-bottom: 40px;
  }

  .hero .content-wrapper {
    height: auto;
  }

  .section-content {
    height: auto;
    padding: 40px 17px;
  }

  .two-col {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 30px;
    padding: 0 !important;
  }

  .image-col {
    order: 2;
    width: 100%;
    text-align: right;
  }

  .content-col {
    order: 1;
  }

  .image-col img {
    width: auto;
    max-width: 90%;
    display: inline-block;
    object-fit: contain;
    margin-left: auto;
  }

  .section-perspective {
    padding: 40px 17px;
  }

  .perspective-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 30px;
  }

  .sdoh-info-box {
    padding: 20px;
  }

  .quote-section {
    height: auto;
    padding: 40px 17px;
  }

  .domain-boxes {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .domain-box {
    width: 70%;
    max-width: 180px;
    min-height: 60px;
    padding: 12px 15px;
  }

  .mission {
    height: auto;
    padding: 40px 15px !important;
  }

  .mission h2 {
    font-size: max(20px, 5vw) !important;
    line-height: 1.4 !important;
    text-align: center;
  }

  footer {
    height: auto;
    padding: 40px 17px;
  }
}

/* Tablet: 768px - 799px (still mobile nav but larger) */
@media (min-width: 768px) and (max-width: 799px) {
  .image-col img {
    max-width: 230px;
  }
}

/* Desktop: hide hamburger, show nav */
@media (min-width: 800px) {
  .hamburger {
    display: none !important;
  }
}

/* Small tablet/desktop: 800px - 1023px */
@media (min-width: 800px) and (max-width: 1023px) {
  :root {
    --header-height: 100.7px;
    --logo-size: 33.36px;
    --logo-spacing: 2px;
    --hero-h2-size: 29.04px;
    --gutter: 36px;
  }

  .header-inner {
    margin-top: 19px;
  }

  .two-col {
    grid-template-columns: 2fr 1fr;
  }

  .image-col img {
    width: 100%;
    object-fit: contain;
  }
}

/* Small desktop: 1024px - 1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  :root {
    --header-height: 111.7px;
    --logo-size: 35.89px;
    --logo-spacing: 2.15px;
    --hero-h2-size: 30.97px;
    --gutter: 41px;
  }

  .header-inner {
    margin-top: 25px;
  }
}

/* Medium desktop: 1200px - 1439px */
@media (min-width: 1200px) and (max-width: 1439px) {
  :root {
    --header-height: 127.27px;
    --logo-size: 39.48px;
    --logo-spacing: 2.37px;
    --hero-h2-size: 33.72px;
    --gutter: 48px;
  }

  .header-inner {
    margin-top: 32px;
  }
}

/* Large desktop: 1600px+ */
@media (min-width: 1600px) {
  :root {
    --gutter: 100px;
  }
}

/* Extra large desktop: 2000px+ */
@media (min-width: 2000px) {
  :root {
    --gutter: 8vw;
  }
}

/* Main content */
main {
  /* No padding - hero handles header offset */
}

/* Section base */
section {
  width: 100%;
}

.section-inner {
  padding: 0 var(--gutter);
}

/* Hero section - matches original exactly */
.hero {
  background-color: var(--color-white);
  height: 295.375px;
  padding-top: var(--header-height);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  align-items: center;
}

.hero .content-wrapper {
  height: 146.875px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero h2 {
  font-size: var(--hero-h2-size);
  font-weight: var(--hero-h2-weight);
  line-height: var(--hero-h2-line-height);
  text-align: center;
  margin: 0;
}

/* Content sections */
.section-gray {
  background-color: var(--color-gray-light);
}

.section-white {
  background-color: var(--color-white);
}

.section-green {
  background-color: var(--color-accent);
}

/* Section 1 - two column */
.section-content {
  padding-top: 78.9375px;
  padding-bottom: 60px;
  overflow: hidden;
}

.two-col {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 0 var(--gutter);
}

.content-col p {
  margin-bottom: 15px;
}

.content-col p:last-child {
  margin-bottom: 0;
}

.image-col {
  display: flex;
  justify-content: flex-end;
}

.image-col img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

/* Section 2 - shift in perspective */
.section-perspective {
  background-color: var(--color-white);
  padding: 60px var(--gutter) 80px;
}

.perspective-grid {
  display: grid;
  grid-template-columns: 1.77fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.perspective-content {
  background-color: #ededed;
  padding: 40px;
  font-size: 18.456px;
  line-height: 33.2208px;
}

.perspective-content h2 {
  font-size: 37.464px;
  font-weight: 400;
  line-height: 49.7222px;
  margin-bottom: 30px;
}

.perspective-content p {
  margin-bottom: 15px;
}

.sdoh-info-box {
  background-color: #d1e4f5;
  padding: 26px;
  font-size: 18.456px;
  line-height: 33.2208px;
}

.sdoh-info-box p {
  margin-bottom: 15px;
}

.sdoh-info-box ul {
  margin: 15px 0;
  padding-left: 25px;
}

.sdoh-info-box li {
  margin-bottom: 8px;
}

.sdoh-info-box p {
  margin-bottom: 15px;
}

.sdoh-info-box ul {
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.sdoh-info-box li {
  font-size: 18.456px;
  padding-left: 5px;
}

.sdoh-info-box li::marker {
  font-size: 12px;
}

.sdoh-info-box li {
  margin-bottom: 10px;
}

.sdoh-info-box strong {
  font-weight: 700;
}

section h2 {
  font-size: var(--hero-h2-size);
  font-weight: var(--hero-h2-weight);
  line-height: var(--hero-h2-line-height);
  margin-bottom: 30px;
}

section p {
  margin-bottom: 15px;
}

section p:last-child {
  margin-bottom: 0;
}

/* Section 3 - Quote (green) */
.quote-section {
  padding: 50px 100px 60px;
  text-align: center;
  color: var(--color-white);
}

.quote-section h2 {
  font-style: normal;
  color: var(--color-white);
}

.quote-section p {
  color: var(--color-white);
}

.quote-section p:first-of-type {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.domain-boxes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.domain-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 30px;
  min-width: 150px;
  max-width: 200px;
  min-height: 150px;
  text-decoration: underline;
  color: var(--color-primary);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: var(--body-line-height);
  text-align: center;
  background-color: var(--color-white);
}

.domain-title {
  text-decoration: underline;
}

.domain-arrow {
  text-decoration: underline;
}

/* Section 4 - Mission */
.mission {
  padding: 80px 224.5625px;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Footer (Section 5) */
footer {
  background-color: var(--color-white);
  height: 462.625px;
  padding-top: 39.46875px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.footer-company {
  margin-bottom: 20px;
}

.footer-company .company-name {
  font-size: var(--body-size);
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.footer-company .tagline {
  font-size: var(--body-small-size);
  font-weight: var(--body-weight);
}

.footer-nav {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-nav a {
  font-size: var(--body-small-size);
  font-weight: var(--body-weight);
  color: var(--color-text);
  text-decoration: underline;
}

.footer-contact {
  margin-bottom: 20px;
  font-size: var(--body-small-size);
}

.footer-contact a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-copyright {
  font-size: var(--body-small-size);
}

/* ==================== */
/* About Page Styles    */
/* ==================== */

/* About Header - same layout as perspective section */
.about-header {
  background-color: var(--color-white);
  padding: 60px var(--gutter) 80px;
  padding-top: calc(var(--header-height) + 60px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.77fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.about-intro {
  background-color: var(--color-gray-light);
  padding: 40px;
  font-size: 18.456px;
  line-height: 33.2208px;
}

.about-intro h2 {
  font-size: 37.464px;
  font-weight: 400;
  line-height: 49.7222px;
  margin-bottom: 30px;
}

.about-intro p {
  margin-bottom: 15px;
}

.about-quote {
  background-color: #d1e4f5;
  padding: 26px;
  font-size: 18.456px;
  line-height: 33.2208px;
}

.about-quote .quote-text {
  margin-bottom: 15px;
}

.about-quote .quote-source {
  font-size: 14px;
  line-height: 1.5;
}

/* Michael Knapp Section - white box on gray, same width as about-grid */
.michael-section {
  background-color: var(--color-white);
  padding: 0 var(--gutter) 60px;
}

.michael-content {
  background-color: var(--color-gray-light);
  padding: 40px;
}

.michael-content h2 {
  font-size: var(--hero-h2-size);
  font-weight: var(--hero-h2-weight);
  line-height: var(--hero-h2-line-height);
  margin-bottom: 25px;
}

.michael-content p {
  font-size: var(--body-small-size);
  line-height: var(--body-small-line-height);
  margin-bottom: 20px;
}

.michael-content a {
  color: var(--color-primary);
  text-decoration: none;
}

.michael-content a:hover {
  text-decoration: underline;
}

/* Research Section - blue background around boxes */
.research-section {
  background-color: var(--color-primary);
  padding: 0 var(--gutter) 60px;
}

.research-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 50px var(--gutter);
}

.research-header h2 {
  font-size: var(--hero-h2-size);
  font-weight: var(--hero-h2-weight);
  line-height: var(--hero-h2-line-height);
  margin-bottom: 20px;
  color: var(--color-white);
}

.research-header p {
  font-size: var(--body-small-size);
  line-height: var(--body-small-line-height);
  color: var(--color-white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background-color: var(--color-white);
}

.project-box {
  background-color: var(--color-gray-light);
  padding: 50px 40px;
  border: 5px solid var(--color-primary);
}

.project-box h4 {
  font-size: var(--body-small-size);
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.4;
}

.project-box p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.project-box .project-link {
  text-align: center;
  font-size: 16px;
  margin-top: 20px;
}

.project-box .project-link a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* About page responsive */
@media (max-width: 1023px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 799px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-intro,
  .about-quote {
    padding: 30px 20px;
  }

  .michael-section {
    padding: 40px 17px;
  }

  .michael-content {
    padding: 30px 20px;
  }

  .research-header {
    padding: 30px 17px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-box {
    padding: 20px;
  }
}
