:root {
  --ink: #243a34;
  --forest: #3f5d52;
  --teal: #6d9d9a;
  --mist: #f3faef;
  --cream: #fbfbf6;
  --sky: #d9edf0;
  --clay: #b98567;
  --line: rgba(63, 93, 82, 0.18);
  --shadow: 0 18px 48px rgba(36, 58, 52, 0.13);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: clamp(150px, 18vw, 240px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  color: rgba(36, 58, 52, 0.82);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  padding: 0.45rem 0;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.hero {
  position: relative;
  min-height: min(570px, calc(100vh - 132px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("./assets/rural-telehealth-hero.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.88);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(26, 48, 42, 0.82) 0%, rgba(26, 48, 42, 0.62) 43%, rgba(26, 48, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(36, 58, 52, 0.18), rgba(36, 58, 52, 0.18));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  margin-left: clamp(1rem, 7vw, 6rem);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dcefed;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.55vw, 4.35rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--forest);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 1.8vw, 1.25rem);
}

.hero-actions,
.contact-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 10px 26px rgba(36, 58, 52, 0.18);
}

.hero .button.primary {
  background: #edf7ed;
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 5rem);
}

.intro-band {
  background:
    linear-gradient(135deg, rgba(217, 237, 240, 0.55), rgba(243, 250, 239, 0.9)),
    var(--mist);
}

.section-grid,
.pilot-layout,
.contact-card {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-copy p,
.section-heading p,
.pilot-layout p,
.contact-card p,
.partner-item p,
.card p {
  color: rgba(36, 58, 52, 0.78);
}

.section-copy p {
  font-size: 1.08rem;
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto 2.1rem;
  text-align: center;
}

.section-heading p {
  font-size: 1.08rem;
}

.cards {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

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

.card,
.partner-item,
.pilot-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(36, 58, 52, 0.08);
}

.card {
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.card-icon {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--sky);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
}

.pilot-band {
  background:
    linear-gradient(135deg, rgba(63, 93, 82, 0.96), rgba(109, 157, 154, 0.86)),
    var(--forest);
  color: white;
}

.pilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.pilot-band h2,
.pilot-band .section-kicker {
  color: white;
}

.pilot-band p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.pilot-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.pilot-panel div {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

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

.pilot-panel strong {
  margin-bottom: 0.25rem;
  color: white;
}

.pilot-panel span {
  color: rgba(255, 255, 255, 0.78);
}

.partner-list {
  width: min(1120px, 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.partner-item {
  padding: 1.35rem;
  border-left: 4px solid var(--clay);
}

.contact-band {
  background: var(--mist);
}

.contact-card {
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(217, 237, 240, 0.5)),
    white;
}

.contact-card > div {
  max-width: 690px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: rgba(36, 58, 52, 0.7);
  background: var(--cream);
}

.site-footer img {
  width: min(220px, 54vw);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 610px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(26, 48, 42, 0.86) 0%, rgba(26, 48, 42, 0.68) 56%, rgba(26, 48, 42, 0.5) 100%),
      linear-gradient(0deg, rgba(36, 58, 52, 0.18), rgba(36, 58, 52, 0.18));
  }

  .hero-content {
    margin: 0 auto;
  }

  h1 {
    max-width: 11ch;
  }

  .section-grid,
  .pilot-layout,
  .three-up,
  .partner-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand img {
    width: 168px;
  }

  .nav-links {
    gap: 0.1rem 0.75rem;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding: 3.4rem 0;
  }

  .hero-actions,
  .contact-card {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
