@import url("../styleguide/tokens.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--s8-font-sans);
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--surface);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: fixed;
  top: -4rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(245, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  border-radius: 8px;
  display: block;
  flex: 0 0 44px;
  height: 44px;
  object-fit: contain;
  width: 44px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e8eee9;
  color: var(--ink);
}

.language-link {
  border: 1px solid var(--line);
}

.nav-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: none;
  font-size: 1.3rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.image-hero {
  align-items: center;
  display: flex;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) var(--s8-page-gutter);
  position: relative;
}

.image-hero::after {
  background:
    linear-gradient(90deg, rgba(245, 247, 244, 1) 0%, rgba(245, 247, 244, 0.96) 50%, rgba(245, 247, 244, 0.58) 66%, rgba(245, 247, 244, 0.16) 86%),
    linear-gradient(180deg, rgba(245, 247, 244, 0) 76%, var(--paper) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-image {
  filter: drop-shadow(0 28px 58px rgba(31, 43, 36, 0.18));
  height: min(44vw, 34rem);
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  position: absolute;
  right: clamp(2rem, 8vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(44vw, 34rem);
  z-index: -2;
}

.hero-content {
  max-width: 760px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: 5.2rem;
  line-height: 0.95;
  margin: 0 0 1.2rem;
}

h2 {
  font-size: 2.55rem;
  line-height: 1.08;
  margin: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

.lead {
  color: #314139;
  font-size: 1.3rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: var(--surface);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-proof {
  border-top: 1px solid rgba(30, 48, 38, 0.18);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  list-style: none;
  margin: 2rem 0 0;
  max-width: 700px;
  padding: 1rem 0 0;
}

.hero-proof li {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 0.45rem;
}

.hero-proof li::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  width: 0.55rem;
}

.image-strip,
.section,
.ci-section,
.cta-band,
.legal-page {
  padding: var(--s8-section-y) var(--s8-page-gutter);
}

.image-strip {
  align-items: end;
  background: var(--surface);
  border-block: 1px solid var(--line);
  display: grid;
  gap: clamp(2rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
}

.image-strip-copy,
.section-heading,
.vertical-layout,
.ci-grid,
.status-copy {
  margin: 0 auto;
  max-width: 1180px;
}

.image-strip-copy {
  margin-right: 0;
}

.image-strip-copy p,
.section-heading p,
.ci-grid p,
.status-copy p,
.cta-band p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1rem 0 0;
}

.statement-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-left: 0;
}

.statement-list div {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.statement-list strong,
.statement-list span {
  display: block;
}

.statement-list strong {
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.statement-list span {
  color: var(--muted);
}

.brand-band {
  background: var(--ink);
  color: var(--surface);
  padding: clamp(4rem, 10vw, 8rem) var(--s8-page-gutter);
}

.brand-band-inner {
  margin: 0 auto;
  max-width: 1060px;
}

.brand-band p {
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 1rem;
}

.brand-band h2 {
  font-size: 3.25rem;
  max-width: 980px;
}

.section-heading {
  margin-bottom: 2rem;
}

.vertical-layout {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.vertical-primary,
.ci-panel,
.status-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vertical-primary {
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.vertical-primary span {
  color: var(--green);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.vertical-primary h3 {
  font-size: 2.4rem;
}

.vertical-primary p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1rem 0 0;
  max-width: 760px;
}

.vertical-list {
  display: grid;
  gap: 1rem;
}

.vertical-list p {
  align-items: center;
  background: #eef4ef;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  display: flex;
  font-weight: 700;
  margin: 0;
  min-height: 64px;
  padding: 1rem;
}

.vertical-list p:nth-child(2) {
  border-left-color: var(--green);
}

.vertical-list p:nth-child(3) {
  border-left-color: var(--blue);
}

.vertical-list p:nth-child(4) {
  border-left-color: var(--copper);
}

.ci-section {
  background: #eef3ef;
  border-block: 1px solid var(--line);
}

.ci-grid {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.ci-panel {
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.ci-panel strong,
.ci-panel span,
.ci-panel a {
  display: block;
}

.ci-panel strong {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.ci-panel span {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.status-section {
  background: var(--paper);
}

.status-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.cta-band {
  align-items: center;
  background: var(--ink);
  color: var(--surface);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.cta-band h2 {
  max-width: 760px;
}

.cta-band p {
  color: #dce5df;
  max-width: 820px;
}

.site-footer {
  align-items: center;
  background: #172019;
  color: #e8eee9;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer a {
  color: #e8eee9;
}

.legal-page {
  margin: 0 auto;
  max-width: 900px;
}

.legal-page h1 {
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1.05;
  overflow-wrap: normal;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  color: var(--muted);
}

.legal-note {
  font-size: 0.95rem;
}

.legal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 1.25rem;
}

.section-kicker {
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.text-link {
  color: var(--green);
  font-weight: 700;
}

.not-found {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(2rem, 8vw, 6rem);
}

.not-found h1 {
  font-size: 3rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 0.75rem 1rem 1rem;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav.page-nav {
    background: transparent;
    border-bottom: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    position: static;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav.page-nav a {
    width: auto;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2,
  .brand-band h2 {
    font-size: 2rem;
  }

  .image-hero {
    min-height: 760px;
  }

  .image-hero::after {
    background:
      linear-gradient(180deg, rgba(245, 247, 244, 0.98) 0%, rgba(245, 247, 244, 0.92) 50%, rgba(245, 247, 244, 0.18) 100%),
      linear-gradient(180deg, rgba(245, 247, 244, 0) 80%, var(--paper) 100%);
  }

  .hero-image {
    height: min(76vw, 24rem);
    opacity: 0.2;
    right: -4rem;
    top: 56%;
    width: min(76vw, 24rem);
  }

  .image-strip,
  .vertical-layout,
  .ci-grid {
    grid-template-columns: 1fr;
  }

  .image-strip-copy {
    margin-right: auto;
  }

  .cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  h1 {
    font-size: 2.85rem;
  }

  h2,
  .brand-band h2 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    display: grid;
  }

  .vertical-primary span {
    margin-bottom: 2.5rem;
  }
}
