/* Homepage styles stay separate from article and membership layouts. */
[data-page="home"] .container {
  width: min(100% - 80px, 1200px);
}

[data-page="home"] .site-header {
  background: #fff;
}

[data-page="home"] #main {
  --home-green: #31584c;
  --home-muted: #59666b;
  --home-line: #d6dfda;
  color: #203b38;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f5f6f3;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  z-index: -2;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: -1;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-block: 62px;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #8b6b29;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-kicker::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: currentColor;
}

.home-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: #192e4b;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-lead {
  max-width: 650px;
  margin: 0;
  color: #4b575e;
  font-size: 16px;
  line-height: 1.85;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 30px;
}

.home-button-primary {
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid #bc9544;
  border-radius: 4px;
  background: #c5a054;
  color: #182838;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.home-button-primary:hover {
  background: #d1af68;
  border-color: #a78135;
  box-shadow: none;
  transform: translateY(-2px);
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 1px solid #aeb9b5;
  color: #203b38;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 180ms ease, border-color 180ms ease;
}

.home-text-link span {
  font-size: 21px;
  font-weight: 400;
}

.home-text-link:hover {
  color: #89671e;
  border-color: #89671e;
}

.home-brand-visual {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.home-brand-visual .hero-logo {
  width: 100%;
  max-width: 270px;
  justify-self: center;
}

.home-brand-visual > span {
  color: #232e5c;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
}

.home-values {
  border-block: 1px solid #e3e7e2;
  background: #fff;
}

.home-values ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-block: 0;
  padding: 20px 0;
}

.home-values li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 18px;
  color: #5f6965;
  font-size: 13px;
  text-align: center;
}

.home-values li + li {
  border-left: 1px solid #e3e7e2;
}

.home-values li::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  background: #a88845;
  transform: rotate(45deg);
}

.home-section {
  padding-block: 88px;
}

.home-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 100px;
  align-items: start;
}

.home-heading {
  margin: 0;
  color: #1c3444;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-about-copy,
.home-partnership-copy {
  padding-top: 37px;
}

.home-about-copy > p,
.home-partnership-copy > p {
  margin-bottom: 20px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.9;
}

.home-purpose {
  background: #eef3ef;
}

.home-purpose .home-kicker {
  color: var(--home-green);
}

.home-purpose .home-heading {
  color: #25483c;
}

.home-section-copy {
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.85;
}

.home-priority {
  border-bottom: 1px solid var(--home-line);
}

.home-priority:first-child {
  border-top: 1px solid var(--home-line);
}

.home-priority summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 17px;
  list-style: none;
  color: #28483e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.home-priority summary::-webkit-details-marker {
  display: none;
}

.home-priority summary:hover {
  color: #7d621f;
}

.home-number {
  color: #8b7035;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.home-plus {
  position: relative;
  width: 14px;
  height: 14px;
}

.home-plus::before,
.home-plus::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 1px;
  background: currentColor;
}

.home-plus::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.home-priority[open] .home-plus::after {
  transform: rotate(0);
}

.home-priority p {
  margin: -2px 30px 22px 42px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.8;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.home-section-head .home-section-copy {
  max-width: 390px;
  margin: 0 0 4px;
}

.home-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

.home-direction {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid #e0e5e2;
}

.home-direction .home-number {
  padding-top: 5px;
}

.home-direction h3 {
  margin-bottom: 12px;
  color: #243b4a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
}

.home-direction p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.85;
}

.home-partnership {
  border-top: 1px solid #e0e5e2;
  background: #f6f7f8;
}

.home-partnership-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--home-green);
  font-size: 13px;
}

.home-partnership-note::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

[data-page="home"] .site-footer {
  background: #fff;
  border-top: 1px solid #dfe5e2;
}

[data-page="home"] .footer-title {
  color: #243b4a;
  font-weight: 500;
}

[data-page="home"] .footer-main p,
[data-page="home"] .footer-main a,
[data-page="home"] .footer-main span,
[data-page="home"] .footer-bottom {
  color: #63706d;
  font-size: 13px;
}

[data-page="home"] .footer-main a:hover {
  color: #8b6b29;
}

[data-page="home"] .footer-bottom,
[data-page="home"] .socials a {
  border-color: #dfe5e2;
}

[data-page="home"] :is(a, summary, button):focus-visible {
  outline: 2px solid #31584c;
  outline-offset: 5px;
}

@media (max-width: 1240px) {
  [data-page="home"] .mobile-panel:not(.is-open) {
    visibility: hidden;
  }

  .home-hero-inner {
    gap: 36px;
    grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr);
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .home-two-column {
    gap: 56px;
  }
}

@media (max-width: 900px) {
  [data-page="home"] .container {
    width: calc(100% - 48px);
  }

  .home-hero-inner {
    gap: 28px;
    padding-block: 48px;
  }

  .home-hero h1 {
    font-size: 33px;
  }

  .home-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .home-brand-visual > span {
    font-size: 20px;
  }

  .home-section {
    padding-block: 64px;
  }

  .home-two-column {
    gap: 36px;
  }

  .home-heading {
    font-size: 28px;
  }

  .home-direction-grid {
    column-gap: 36px;
  }

  .home-priority summary {
    gap: 10px;
    font-size: 15px;
  }

  .home-priority p {
    margin-left: 36px;
  }
}

@media (max-width: 720px) {
  [data-page="home"] .container {
    width: calc(100% - 40px);
  }

  [data-page="home"] .header-inner {
    width: calc(100% - 28px);
  }

  .home-hero-inner,
  .home-two-column,
  .home-direction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-inner {
    padding-block: 36px 40px;
  }

  .home-hero::before {
    background: rgba(255, 255, 255, 0.92);
  }

  .home-brand-visual {
    display: none;
  }

  .home-hero h1 {
    font-size: 29px;
    line-height: 1.26;
    margin-bottom: 20px;
  }

  .home-kicker {
    font-size: 10px;
    margin-bottom: 18px;
    gap: 8px;
  }

  .home-kicker::before {
    flex-basis: 18px;
  }

  .home-actions {
    gap: 16px 22px;
    margin-top: 24px;
  }

  .home-button-primary {
    min-height: 46px;
    padding: 11px 17px;
    font-size: 13px;
  }

  .home-text-link {
    gap: 12px;
    font-size: 13px;
  }

  .home-values ul {
    gap: 8px;
    padding-block: 16px;
  }

  .home-values li {
    gap: 0;
    padding: 0 3px;
    font-size: 10px;
    line-height: 1.6;
  }

  .home-values li::before {
    display: none;
  }

  .home-section {
    padding-block: 48px;
  }

  .home-two-column {
    gap: 26px;
  }

  .home-heading {
    font-size: 27px;
  }

  .home-about-copy,
  .home-partnership-copy {
    padding-top: 0;
  }

  .home-about-copy > p,
  .home-partnership-copy > p {
    font-size: 14px;
  }

  .home-section-copy {
    margin-top: 18px;
    font-size: 14px;
  }

  .home-section-head {
    display: block;
    margin-bottom: 28px;
  }

  .home-section-head .home-section-copy {
    margin-top: 18px;
  }

  .home-direction {
    gap: 12px;
    padding-block: 24px;
  }

  .home-direction h3 {
    font-size: 18px;
  }

  [data-page="home"] .footer-main {
    gap: 30px;
    padding-block: 40px;
  }
}

@media (max-width: 360px) {
  .home-hero h1 {
    font-size: 25px;
  }

  .home-actions {
    gap: 14px;
  }

  .home-button-primary {
    padding-inline: 12px;
    font-size: 12px;
  }

  .home-text-link {
    gap: 8px;
    font-size: 12px;
  }
}
