/*
Theme Name: Z Teachers
Theme URI: https://zteachers.com/
Author: Z Teachers
Description: Professional foreign teacher recruitment website for Chinese schools.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: zteachers
*/

:root {
  --navy: #102235;
  --ink: #17212b;
  --muted: #627181;
  --line: #d9e1e8;
  --paper: #f6f8fa;
  --white: #ffffff;
  --teal: #0d7d7a;
  --teal-dark: #075d5b;
  --gold: #bb8a36;
  --blue: #245b88;
  --shadow: 0 22px 60px rgba(16, 34, 53, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(217, 225, 232, .88);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #344454;
  font-size: 13px;
  font-weight: 650;
}

.nav-cta,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--teal);
  color: var(--white);
  font-weight: 750;
  cursor: pointer;
}

.nav-links .nav-cta {
  padding: 0 14px;
  white-space: nowrap;
}

.btn.secondary {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(16, 34, 53, .22);
}

.hero {
  position: relative;
  min-height: 690px;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.page-hero {
  padding: 92px 0 78px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 34, 53, .96), rgba(16, 34, 53, .86)),
    url("assets/hero-campus.png");
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 20px;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(10, 25, 42, .92) 0%, rgba(10, 25, 42, .76) 38%, rgba(10, 25, 42, .24) 72%, rgba(10, 25, 42, .08) 100%),
    url("assets/hero-campus.png");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 78px 0 116px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #bde6e4;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  background: rgba(8, 20, 34, .66);
  backdrop-filter: blur(10px);
}

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

.metric {
  min-height: 106px;
  padding: 24px 26px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.metric:last-child {
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

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

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

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.16;
  letter-spacing: 0;
}

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

.grid-2,
.grid-3,
.grid-4,
.grid-5,
.split,
.two-col {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.split {
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  gap: 34px;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.panel,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 30px;
}

.card h3,
.panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.28;
}

.feature-card {
  border-top: 4px solid var(--teal);
}

.package-card {
  border-top: 4px solid var(--gold);
}

.latest-panel {
  padding: 30px;
}

.latest-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.latest-item:first-of-type {
  margin-top: 8px;
}

.latest-item strong {
  display: block;
  color: var(--navy);
  line-height: 1.35;
}

.latest-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.compact li {
  margin: 10px 0;
  font-size: 15px;
}

.compact li::before {
  top: 6px;
}

.card p,
.panel p,
.card li,
.panel li {
  color: var(--muted);
}

.card p {
  margin: 0;
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e6f3f2;
  color: var(--teal-dark);
  font-weight: 900;
}

.panel {
  padding: 36px;
}

.check-list,
.number-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.number-list li {
  position: relative;
  margin: 14px 0;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 5px #dff2f1;
}

.number-list {
  counter-reset: step;
}

.number-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.matrix-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.matrix-row {
  display: grid;
  grid-template-columns: .8fr 1.6fr 1.4fr;
  border-top: 1px solid var(--line);
}

.matrix-row:first-child {
  border-top: 0;
}

.matrix-row span {
  min-height: 74px;
  padding: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
}

.matrix-row span:first-child {
  border-left: 0;
  color: var(--navy);
  font-weight: 850;
}

.matrix-head {
  background: var(--navy);
}

.matrix-head span,
.matrix-head span:first-child {
  min-height: 54px;
  color: var(--white);
  font-weight: 850;
}

.tool-assessment {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 24px;
  align-items: stretch;
}

.tool-score-stack {
  display: grid;
  gap: 18px;
}

.tool-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.tool-score strong {
  display: block;
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 58px;
  line-height: 1;
}

.tool-score-bar {
  height: 10px;
  margin: 20px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf1;
}

.tool-score-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width .2s ease;
}

.tool-missing {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.tool-missing span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.tool-missing ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tool-missing li {
  margin: 4px 0;
}

.tool-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tool-checks label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.55;
}

.tool-checks input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.download-groups {
  display: grid;
  gap: 22px;
}

.tool-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.roadmap-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-card h3 {
  margin: 0;
  color: var(--navy);
}

.roadmap-card .number-list {
  margin-top: 4px;
}

.roadmap-card li {
  padding-left: 36px;
  color: var(--muted);
  line-height: 1.6;
}

.tool-standard {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  border-left: 4px solid var(--teal);
}

.tool-standard h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 24px;
}

.tool-standard p {
  margin: 0;
  color: var(--muted);
}

.tool-standard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-standard-list span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
  color: var(--navy);
  font-weight: 850;
  text-align: center;
}

.toolkit-download {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-top: 4px solid var(--teal);
}

.toolkit-download h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 26px;
}

.toolkit-download p {
  margin: 0;
  color: var(--muted);
}

.package-downloads {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

.package-download-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.package-download-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.package-download-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.package-download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.package-download-card .btn {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.tool-next-step {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  align-items: center;
  margin: 0 0 24px;
  border-left: 4px solid var(--navy);
}

.tool-next-step h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 24px;
}

.tool-next-step p {
  margin: 0;
  color: var(--muted);
}

.tool-next-actions {
  display: grid;
  gap: 12px;
}

.tool-next-actions .btn {
  width: 100%;
}

.download-card {
  padding: 0;
  overflow: hidden;
}

.download-card h3 {
  margin: 0;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: #f7fafb;
}

.download-list {
  display: grid;
}

.download-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.download-item:first-child {
  border-top: 0;
}

.download-item strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.download-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.service-gap {
  margin-top: 28px;
}

.archive-directory {
  margin-bottom: 28px;
}

.compact-actions {
  margin-top: 18px;
}

.compact-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd8e3;
  border-radius: 999px;
  color: #435466;
  background: #fbfcfd;
  font-size: 14px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal-dark);
  font-weight: 800;
}

.archive-filters,
.archive-usage,
.archive-search,
.archive-conversion {
  margin-bottom: 28px;
}

.archive-filters h2,
.archive-usage h2,
.archive-search h2,
.archive-conversion h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.archive-usage p,
.archive-conversion p {
  max-width: 900px;
  color: var(--muted);
}

.conversion-split {
  align-items: center;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.search-row input {
  flex: 1 1 320px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  font: inherit;
}

.result-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.result-note strong {
  color: var(--navy);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.mini-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5f6;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
}

.content-type-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.mini-tags.large {
  margin-bottom: 28px;
}

.mini-tags.large span {
  min-height: 34px;
  font-size: 14px;
}

.content-body {
  max-width: 850px;
  font-size: 18px;
}

.content-body h2,
.content-body h3 {
  color: var(--navy);
}

.content-body p {
  margin: 0 0 20px;
  color: #344454;
}

.content-body p br {
  display: block;
  content: "";
  margin-top: 8px;
}

.content-body strong {
  color: var(--navy);
}

.single .page-hero {
  padding-bottom: 64px;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.process-step {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step span {
  color: var(--gold);
  font-weight: 900;
}

.process-step h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 20px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.dark-band {
  background: var(--navy);
  color: var(--white);
}

.dark-band .section-head h2,
.dark-band .card h3 {
  color: var(--white);
}

.dark-band .section-head p,
.dark-band .card p,
.dark-band .card li {
  color: rgba(255, 255, 255, .74);
}

.dark-band .card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .15);
}

.quote {
  padding: 42px;
  background: var(--white);
  border-left: 5px solid var(--teal);
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.46;
  font-weight: 700;
}

.quote span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.form-panel {
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-box {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #c5dedc;
  background: #f1faf9;
  border-radius: 8px;
}

.contact-box strong,
.contact-box span {
  display: block;
}

.contact-box strong {
  color: var(--navy);
  font-size: 18px;
}

.contact-box span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.lead-success {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #b9dedc;
  background: #eef9f8;
  color: var(--teal-dark);
  border-radius: 8px;
  font-weight: 750;
}

.lead-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #e1c59a;
  background: #fff8ea;
  color: #805a16;
  border-radius: 8px;
  font-weight: 750;
}

.lead-source-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #cbd8e3;
  border-left: 4px solid var(--navy);
  background: #f7fafb;
  color: var(--muted);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 750;
  font-size: 14px;
}

.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-prep {
  margin-top: 44px;
}

.compact-head {
  max-width: 780px;
  margin-bottom: 22px;
}

.prep-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.prep-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 6px;
  background: #eef5f6;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.prep-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 21px;
}

.footer {
  padding: 44px 0;
  background: #081522;
  color: rgba(255, 255, 255, .72);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
}

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

.footer p {
  max-width: 740px;
  margin: 10px 0 0;
}

.footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, .72);
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 980px) {
  .nav {
    min-height: 64px;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding: 0 0 8px;
    gap: 10px;
    scrollbar-width: thin;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
  }

  .nav-links .nav-cta {
    min-height: 38px;
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .metrics-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .split,
  .two-col,
  .tool-assessment,
  .tool-checks,
  .tool-roadmap,
  .tool-standard,
  .toolkit-download,
  .package-downloads,
  .tool-next-step,
  .download-item,
  .process {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:last-child,
  .process-step {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .process-step {
    border-top-color: var(--line);
  }

  .matrix-row {
    grid-template-columns: 1fr;
  }

  .matrix-row span {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .matrix-row span:first-child {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .nav,
  .wrap,
  .hero-inner,
  .metrics-grid {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }

  .nav-links {
    gap: 8px;
  }

  .hero-inner {
    padding-top: 50px;
  }

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

  .hero-lede,
  .section-head p {
    font-size: 17px;
  }

  .section {
    padding: 64px 0;
  }

  .card,
  .panel,
  .form-panel,
  .quote {
    padding: 24px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}
