/*
Theme Name: N4H Forest
Theme URI: http://15.156.6.156/
Author: Codex
Description: Custom editorial WordPress theme for North American Institute for Nature Human Health.
Version: 1.0.1
Text Domain: n4h-forest
*/

:root {
  --canopy: #0b1b16;
  --forest: #174838;
  --moss: #2f7b5c;
  --leaf: #9bd36a;
  --lichen: #e8f2d2;
  --mist: #f4f7ef;
  --ink: #1f2b27;
  --muted: #60706a;
  --line: rgba(11, 27, 22, .14);
  --white: #ffffff;
  --gold: #d4a849;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(11, 27, 22, .94);
  color: var(--lichen);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(232,242,210,.35);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(155,211,106,.8), rgba(47,123,92,.6) 44%, rgba(11,27,22,.8) 74%);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  max-width: 170px;
  color: rgba(232,242,210,.78);
  font-size: 11px;
  line-height: 1.25;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(232,242,210,.86);
  font-size: 14px;
  font-weight: 700;
}

.main-nav li {
  display: block;
  list-style: none;
}

.main-nav a {
  padding: 28px 0;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--leaf);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  width: 210px;
  border: 1px solid rgba(232,242,210,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 6px 10px 14px;
  background: transparent;
  color: var(--white);
  font: inherit;
}

.search-form input::placeholder {
  color: rgba(232,242,210,.62);
}

.search-form button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--leaf);
  cursor: pointer;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--canopy);
  font-size: 14px;
  font-weight: 800;
}

.pill-button:hover {
  background: #b8e47f;
}

.mobile-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(11,27,22,.95) 0%, rgba(11,27,22,.82) 44%, rgba(11,27,22,.25) 100%),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: var(--lichen);
}

.hero-inner {
  display: grid;
  align-content: center;
  gap: 26px;
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 96px 0 128px;
}

.eyebrow {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 7vw, 98px);
  line-height: .94;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(232,242,210,.9);
  font-size: 21px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(232,242,210,.42);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
}

.hero-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(232,242,210,.18);
  background: rgba(11,27,22,.82);
}

.hero-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-stat {
  padding: 28px 26px;
  border-right: 1px solid rgba(232,242,210,.14);
}

.hero-stat:first-child {
  border-left: 1px solid rgba(232,242,210,.14);
}

.hero-stat strong {
  display: block;
  color: var(--white);
  font-size: 20px;
}

.hero-stat span {
  color: rgba(232,242,210,.76);
  font-size: 14px;
}

.section {
  padding: 94px 0;
}

.section.dark {
  background: var(--canopy);
  color: var(--lichen);
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.dark .section-heading p,
.dark .kicker {
  color: rgba(232,242,210,.74);
}

.kicker {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.split-media {
  min-height: 520px;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=82") center / cover;
}

.lead {
  color: var(--muted);
  font-size: 20px;
}

.feature-grid,
.topic-grid,
.news-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.topic-card,
.news-card,
.team-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.feature-card {
  min-height: 340px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,239,.98));
}

.feature-card h3,
.topic-card h3,
.news-card h3,
.team-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.1;
}

.feature-card p,
.topic-card p,
.news-card p,
.team-card p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--leaf);
  font-size: 24px;
  font-weight: 900;
}

.topic-card {
  min-height: 270px;
  padding: 26px;
}

.topic-card:nth-child(1),
.topic-card:nth-child(4) {
  background: var(--forest);
  color: var(--lichen);
}

.topic-card:nth-child(1) p,
.topic-card:nth-child(4) p {
  color: rgba(232,242,210,.76);
}

.image-band {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(11,27,22,.18), rgba(11,27,22,.78)),
    url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.impact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--leaf);
  background: rgba(255,255,255,.07);
  color: rgba(232,242,210,.9);
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.news-card-body {
  padding: 24px;
}

.meta {
  display: block;
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cta-band {
  padding: 78px 0;
  background: var(--forest);
  color: var(--lichen);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.cta-inner h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.cta-inner p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(232,242,210,.78);
  font-size: 18px;
}

.site-footer {
  background: var(--canopy);
  color: rgba(232,242,210,.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 16px;
  color: var(--white);
}

.footer-inner ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(232,242,210,.12);
  padding: 22px 0;
  color: rgba(232,242,210,.56);
  font-size: 13px;
}

.page-hero {
  padding: 110px 0 70px;
  background: var(--canopy);
  color: var(--lichen);
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(232,242,210,.78);
  font-size: 20px;
}

.page-content {
  padding: 74px 0;
}

.page-content h2 {
  margin-top: 44px;
  font-size: 36px;
  line-height: 1.1;
}

.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 18px;
}

.page-content a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wp-block-columns {
  gap: 28px;
}

.wp-block-column {
  min-width: 0;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 6px 0 12px;
    white-space: nowrap;
  }

  .search-form {
    width: 180px;
  }

  .section-heading,
  .split,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .topic-grid,
  .news-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    width: min(100% - 24px, 1180px);
    gap: 12px;
    min-height: auto;
    padding: 12px 0 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-subtitle {
    max-width: 150px;
    font-size: 10px;
  }

  .header-actions {
    width: 100%;
    order: 2;
    gap: 8px;
  }

  .search-form {
    flex: 1;
    height: 40px;
  }

  .search-form input {
    padding-left: 12px;
    font-size: 14px;
  }

  .header-actions .pill-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    order: 3;
    overflow: visible;
    padding: 2px 0 4px;
    font-size: 12px;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 4px;
    border: 1px solid rgba(232,242,210,.14);
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    line-height: 1.05;
    text-align: center;
    white-space: normal;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero {
    background-position: 62% center;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    gap: 18px;
    padding: 58px 0 54px;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 13vw, 56px);
    line-height: .98;
  }

  .hero p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions,
  .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pill-button,
  .outline-button {
    width: 100%;
    min-height: 46px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 28px;
  }

  .section-heading h2,
  .page-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.03;
  }

  .section-heading p,
  .lead,
  .page-hero p {
    font-size: 16px;
  }

  .split {
    gap: 30px;
  }

  .split-media {
    min-height: 310px;
  }

  .feature-card,
  .topic-card {
    min-height: auto;
    padding: 22px;
  }

  .feature-card h3,
  .topic-card h3,
  .news-card h3,
  .team-card h3 {
    font-size: 22px;
  }

  .feature-icon {
    margin-bottom: 18px;
  }

  .image-band {
    min-height: 320px;
    background-position: center;
  }

  .cta-inner {
    gap: 18px;
  }

  .footer-inner {
    width: min(100% - 28px, 1180px);
    gap: 28px;
    padding: 46px 0;
  }

  .page-hero {
    padding: 70px 0 46px;
  }

  .page-content {
    padding: 48px 0;
  }

  .hero-strip-inner,
  .feature-grid,
  .topic-grid,
  .news-grid,
  .team-grid,
  .impact-list {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    position: static;
  }

  .hero-stat,
  .hero-stat:first-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(232,242,210,.14);
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 390px) {
  .brand-subtitle {
    display: none;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 40px;
  }
}
