/*
Theme Name: Legacy Irrigation and Plumbing
Theme URI: https://www.legacyirrigationandplumbing.co.ke
Author: Codex
Author URI: https://openai.com
Description: A modern WordPress theme for Legacy Irrigation and Plumbing Services in Kitengela.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legacy-irrigation
Tags: custom-logo, custom-menu, featured-images, block-styles, one-column, responsive-layout
*/

:root {
  --legacy-green: #00bf62;
  --legacy-green-dark: #007a45;
  --legacy-blue: #0297c7;
  --legacy-blue-deep: #075a83;
  --legacy-ink: #071713;
  --legacy-muted: #52605b;
  --legacy-line: #dcece7;
  --legacy-soft: #eefaf5;
  --legacy-white: #ffffff;
  --legacy-glow: 0 20px 60px rgba(0, 191, 98, 0.18);
  --legacy-shadow: 0 18px 45px rgba(7, 23, 19, 0.12);
  --legacy-radius: 8px;
  --legacy-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 236, 231, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.legacy-alert {
  background: linear-gradient(90deg, var(--legacy-ink), #063225 48%, var(--legacy-blue-deep));
  color: var(--legacy-white);
  font-size: 0.86rem;
}

.legacy-alert .legacy-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  text-align: center;
}

.legacy-alert strong {
  color: #8effbf;
  font-weight: 800;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-branding img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.site-branding__text {
  display: grid;
  line-height: 1.05;
}

.site-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-description {
  color: var(--legacy-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: var(--legacy-radius);
  color: #17372f;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--legacy-soft);
  color: var(--legacy-green-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--legacy-line);
  border-radius: var(--legacy-radius);
  background: var(--legacy-white);
  color: var(--legacy-ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}

.legacy-button,
.wp-block-button__link,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--legacy-radius);
  background: linear-gradient(135deg, var(--legacy-green), var(--legacy-blue));
  color: var(--legacy-white);
  box-shadow: 0 14px 28px rgba(2, 151, 199, 0.2);
  font-weight: 900;
  cursor: pointer;
}

.legacy-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.legacy-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.legacy-button--dark {
  background: var(--legacy-ink);
  box-shadow: none;
}

.legacy-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 120px);
  background:
    linear-gradient(90deg, rgba(7, 23, 19, 0.92) 0%, rgba(7, 23, 19, 0.74) 48%, rgba(7, 23, 19, 0.18) 100%),
    url("assets/images/drip-irrigation-field.jpg") center / cover no-repeat;
  color: var(--legacy-white);
}

.legacy-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  content: "";
  background: linear-gradient(0deg, #f7fbf9, transparent);
  pointer-events: none;
}

.legacy-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 120px);
  padding: 72px 0 118px;
}

.legacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #9af0c5;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--legacy-green);
}

.legacy-hero h1,
.legacy-section h2,
.entry-title {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.legacy-hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 950;
}

.legacy-hero h1 span {
  color: var(--legacy-green);
}

.legacy-hero__copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: #d8ebe4;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.legacy-hero__actions,
.legacy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.legacy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 620px;
}

.legacy-stat {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--legacy-radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.legacy-stat strong {
  display: block;
  color: #8effbf;
  font-size: 1.8rem;
  line-height: 1;
}

.legacy-stat span {
  display: block;
  margin-top: 6px;
  color: #dcece7;
  font-size: 0.82rem;
  font-weight: 800;
}

.legacy-hero__card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--legacy-radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--legacy-glow);
  backdrop-filter: blur(16px);
}

.legacy-hero__card img {
  width: 100%;
  border-radius: var(--legacy-radius);
  background: #020706;
}

.legacy-section {
  padding: 92px 0;
}

.legacy-section--tight {
  padding-top: 46px;
}

.legacy-section--dark {
  background: radial-gradient(circle at top left, rgba(0, 191, 98, 0.2), transparent 34%), #071713;
  color: var(--legacy-white);
}

.legacy-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.legacy-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
}

.legacy-section__lead {
  margin: 0;
  color: var(--legacy-muted);
  font-size: 1.04rem;
}

.legacy-section--dark .legacy-section__lead {
  color: #bad3cb;
}

.legacy-biodigester {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: stretch;
}

.legacy-panel {
  border: 1px solid var(--legacy-line);
  border-radius: var(--legacy-radius);
  background: var(--legacy-white);
  box-shadow: var(--legacy-shadow);
}

.legacy-panel--image {
  overflow: hidden;
  min-height: 420px;
}

.legacy-panel--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-panel--content {
  padding: clamp(28px, 4vw, 52px);
}

.legacy-panel--content h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
}

.legacy-checks,
.legacy-service-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.legacy-checks li,
.legacy-service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.legacy-checks li::before,
.legacy-service-list li::before {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 191, 98, 0.13);
  color: var(--legacy-green-dark);
  content: ">";
  font-size: 0.78rem;
  font-weight: 900;
}

.legacy-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legacy-service {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border: 1px solid rgba(220, 236, 231, 0.9);
  border-radius: var(--legacy-radius);
  background: var(--legacy-white);
  box-shadow: 0 12px 28px rgba(7, 23, 19, 0.07);
}

.legacy-service img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.legacy-service__body {
  padding: 20px;
}

.legacy-service h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.18;
}

.legacy-service p {
  margin: 0;
  color: var(--legacy-muted);
  font-size: 0.94rem;
}

.legacy-why {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.legacy-why__item {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--legacy-radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.legacy-why__item strong {
  display: block;
  margin-bottom: 10px;
  color: #8effbf;
  font-size: 1.5rem;
}

.legacy-why__item span {
  color: #dcece7;
  font-weight: 800;
}

.legacy-about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.legacy-logo-frame {
  padding: 18px;
  border: 1px solid var(--legacy-line);
  border-radius: var(--legacy-radius);
  background:
    linear-gradient(var(--legacy-white), var(--legacy-white)) padding-box,
    linear-gradient(135deg, rgba(0, 191, 98, 0.8), rgba(2, 151, 199, 0.78)) border-box;
  box-shadow: var(--legacy-shadow);
}

.legacy-logo-frame img {
  width: 100%;
  border-radius: calc(var(--legacy-radius) - 2px);
}

.legacy-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.legacy-contact-card {
  border-radius: var(--legacy-radius);
  padding: clamp(28px, 4vw, 46px);
  background: var(--legacy-white);
  box-shadow: var(--legacy-shadow);
}

.legacy-contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.legacy-contact-card dt {
  color: var(--legacy-green-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-contact-card dd {
  margin: 3px 0 0;
  color: var(--legacy-ink);
  font-weight: 800;
}

.legacy-cta {
  border-radius: var(--legacy-radius);
  padding: clamp(30px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(0, 191, 98, 0.92), rgba(2, 151, 199, 0.92)),
    url("assets/images/irrigation-products.png") center / cover no-repeat;
  color: var(--legacy-white);
}

.legacy-cta h2 {
  max-width: 800px;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

.site-footer {
  background: #05100d;
  color: #dcece7;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.65fr));
  gap: 30px;
  padding: 60px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--legacy-white);
  line-height: 1.12;
}

.site-footer p,
.site-footer li {
  color: #adc6be;
}

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

.site-footer a:hover {
  color: #8effbf;
}

.site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  color: #91aaa2;
  font-size: 0.9rem;
}

.content-area {
  padding: 70px 0;
}

.entry-content,
.entry-summary {
  color: var(--legacy-muted);
}

.post-card {
  margin-bottom: 24px;
  border: 1px solid var(--legacy-line);
  border-radius: var(--legacy-radius);
  padding: 28px;
  background: var(--legacy-white);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-navigation {
    position: relative;
  }

  .main-navigation ul {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    display: none;
    width: min(310px, calc(100vw - 40px));
    border: 1px solid var(--legacy-line);
    border-radius: var(--legacy-radius);
    padding: 10px;
    background: var(--legacy-white);
    box-shadow: var(--legacy-shadow);
  }

  .main-navigation.is-open ul {
    display: grid;
  }

  .main-navigation a {
    width: 100%;
  }

  .legacy-hero__grid,
  .legacy-section__head,
  .legacy-biodigester,
  .legacy-about,
  .legacy-contact-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .legacy-hero__grid {
    min-height: auto;
  }

  .legacy-hero__card {
    max-width: 520px;
  }

  .legacy-services,
  .legacy-why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .legacy-container {
    width: min(100% - 24px, var(--legacy-width));
  }

  .site-description,
  .site-header .legacy-button {
    display: none;
  }

  .site-header__row {
    min-height: 70px;
  }

  .site-branding img {
    width: 54px;
    height: 54px;
  }

  .legacy-hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.6rem);
  }

  .legacy-hero__grid {
    padding: 46px 0 92px;
  }

  .legacy-stats,
  .legacy-services,
  .legacy-why {
    grid-template-columns: 1fr;
  }

  .legacy-section {
    padding: 64px 0;
  }
}

/* Digitax-inspired visual refinement: lighter SaaS surfaces, crisp green accents, and product-style geometry. */
:root {
  --legacy-green: #39e162;
  --legacy-green-dark: #1dca48;
  --legacy-blue: #45bfdd;
  --legacy-blue-deep: #16687c;
  --legacy-ink: #012f33;
  --legacy-muted: #5e5e5e;
  --legacy-line: #e5e7eb;
  --legacy-soft: #f6f6f6;
  --legacy-white: #ffffff;
  --legacy-shadow: 0 20px 50px rgba(1, 47, 51, 0.08);
  --legacy-glow: 0 26px 70px rgba(57, 225, 98, 0.22);
  --legacy-radius: 12px;
  --legacy-width: 1240px;
}

body {
  background: var(--legacy-white);
  font-family: Sora, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

* {
  letter-spacing: 0 !important;
}

.site-header {
  border-bottom-color: rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.92);
}

.legacy-alert {
  background: var(--legacy-soft);
  color: var(--legacy-ink);
  font-size: 0.78rem;
}

.legacy-alert strong,
.legacy-alert a {
  color: #11842e;
}

.site-header__row {
  min-height: 76px;
}

.site-branding img {
  width: 58px;
  height: 58px;
}

.site-title {
  font-size: 0.92rem;
  font-weight: 800;
}

.site-description {
  color: #898989;
  font-size: 0.7rem;
  font-weight: 500;
}

.main-navigation a {
  color: #202020;
  font-size: 0.82rem;
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: #eafcee;
  color: #11842e;
}

.legacy-button,
.wp-block-button__link,
.comment-form .submit {
  min-height: 44px;
  border-radius: 999px;
  background: #2ba044;
  color: #ffffff;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.legacy-button:hover,
.wp-block-button__link:hover {
  background: #11842e;
}

.legacy-button--ghost {
  border: 1px solid #d5d5d5;
  background: #ffffff;
  color: #012f33;
}

.legacy-button--ghost:hover {
  border-color: #39e162;
  background: #eafcee;
  color: #012f33;
}

.legacy-button--dark {
  background: #012f33;
}

.legacy-hero {
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(246, 246, 246, 0.96), rgba(246, 246, 246, 0.8)),
    url("assets/images/drip-irrigation-field.jpg") center / cover no-repeat;
  color: var(--legacy-ink);
}

.legacy-hero::after {
  display: none;
}

.legacy-hero__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.82fr);
  min-height: 720px;
  padding: 112px 0 86px;
}

.legacy-eyebrow {
  margin-bottom: 18px;
  color: #2ba044;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legacy-eyebrow::before {
  width: 22px;
  background: #39e162;
}

.legacy-hero h1 {
  max-width: 780px;
  color: #08080c;
  font-size: clamp(3.2rem, 6.4vw, 5.7rem);
  font-weight: 800;
  line-height: 1.08;
}

.legacy-hero h1 span {
  color: #757b8a;
  font-style: italic;
  font-weight: 300;
}

.legacy-hero__copy {
  max-width: 650px;
  color: #4d4d4d;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.legacy-stats {
  max-width: 590px;
  gap: 10px;
}

.legacy-stat {
  border-color: #e5e7eb;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(1, 47, 51, 0.05);
}

.legacy-stat strong {
  color: #11842e;
  font-size: 1.55rem;
}

.legacy-stat span {
  color: #4d4d4d;
  font-size: 0.76rem;
  font-weight: 600;
}

.legacy-hero__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 80px rgba(1, 47, 51, 0.18);
  backdrop-filter: blur(20px);
}

.legacy-hero__card::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(57, 225, 98, 0.35);
  border-radius: 22px;
  content: "";
  pointer-events: none;
}

.legacy-hero__card img {
  min-height: 500px;
  border-radius: 22px;
  object-fit: cover;
}

.legacy-section {
  padding: 104px 0;
}

.legacy-section--tight {
  padding-top: 72px;
}

.legacy-section:nth-of-type(even) {
  background: #f6f6f6;
}

.legacy-section--dark {
  background: #012f33;
}

.legacy-section__head {
  align-items: start;
  margin-bottom: 44px;
}

.legacy-section h2 {
  color: #08080c;
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.legacy-section--dark h2 {
  color: #ffffff;
}

.legacy-section__lead {
  color: #5e5e5e;
  line-height: 1.75;
}

.legacy-section--dark .legacy-section__lead {
  color: #c9f0d1;
}

.legacy-panel,
.legacy-service,
.legacy-contact-card,
.legacy-logo-frame {
  border-color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(1, 47, 51, 0.07);
}

.legacy-panel--image {
  min-height: 460px;
  border-radius: 28px 28px 12px 12px;
}

.legacy-panel--content h3 {
  color: #08080c;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  font-weight: 700;
}

.legacy-checks li::before,
.legacy-service-list li::before {
  background: #eafcee;
  color: #11842e;
}

.legacy-services {
  gap: 18px;
}

.legacy-service {
  min-height: 310px;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.legacy-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(1, 47, 51, 0.11);
}

.legacy-service img {
  height: 162px;
}

.legacy-service__body {
  padding: 22px;
}

.legacy-service h3 {
  color: #202020;
  font-size: 1.04rem;
  font-weight: 700;
}

.legacy-service p {
  color: #5e5e5e;
  font-size: 0.88rem;
}

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

.legacy-why__item {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.legacy-why__item strong {
  color: #83ec9d;
  font-weight: 700;
}

.legacy-why__item span {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
}

.legacy-about {
  gap: 56px;
}

.legacy-logo-frame {
  padding: 14px;
  background: #ffffff;
}

.legacy-contact-card h2 {
  margin-bottom: 28px;
}

.legacy-contact-card dt {
  color: #11842e;
  font-size: 0.72rem;
}

.legacy-contact-card dd {
  color: #202020;
  font-weight: 600;
}

.legacy-cta {
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(57, 225, 98, 0.92), rgba(69, 191, 221, 0.84)),
    url("assets/images/irrigation-products.png") center / cover no-repeat;
}

.legacy-cta h2 {
  color: #012f33;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f6f6f6;
  color: #202020;
}

.site-footer h2,
.site-footer h3 {
  color: #08080c;
}

.site-footer p,
.site-footer li,
.site-info {
  color: #5e5e5e;
}

.site-footer a:hover {
  color: #11842e;
}

.site-info {
  border-top-color: #e5e7eb;
}

.post-card {
  border-color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(1, 47, 51, 0.07);
}

@media (max-width: 980px) {
  .legacy-hero__grid {
    min-height: auto;
    padding: 78px 0;
  }

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

@media (max-width: 640px) {
  .legacy-hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .legacy-hero__card img {
    min-height: 360px;
  }

  .legacy-section {
    padding: 72px 0;
  }
}
