:root {
  /* Paleta tomada del logotipo APFI: verde institucional y ambar/dorado. */
  --green-950: #062f21;
  --green-850: #123f2b;
  --green-700: #2f7040;
  --green-100: #e7f1e9;
  --amber-500: #f0a040;
  --amber-600: #d5863e;
  --brown-600: #b07030;
  --ink: #171b19;
  --text: #424a44;
  --muted: #68736c;
  --line: #e7e4dc;
  --paper: #f7f6f1;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 37, 27, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.flyer-modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-950);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

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

.flyer-modal[hidden] {
  display: none !important;
}

.flyer-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(240, 160, 64, 0.2), transparent 34%),
    rgba(4, 31, 22, 0.78);
  backdrop-filter: blur(8px);
}

.flyer-modal__panel {
  position: relative;
  width: min(92vw, 840px, calc(100vh - 52px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(4, 31, 22, 0.42);
}

.flyer-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-950);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(6, 47, 33, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(4, 31, 22, 0.18);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.flyer-modal__close:hover,
.flyer-modal__close:focus-visible {
  color: var(--white);
  background: var(--green-950);
  transform: translateY(-1px);
  outline: none;
}

.flyer-modal__close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.flyer-modal__image {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(17, 28, 22, 0.08);
}

.brand-strip {
  color: var(--white);
  background: var(--green-950);
}

.brand-strip__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 6px;
  background: var(--white);
  border-radius: var(--radius);
}

.brand__copy {
  min-width: 0;
}

.brand__copy strong {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand__copy span {
  display: block;
  max-width: 680px;
  margin-top: 6px;
  font-size: clamp(0.86rem, 2vw, 1rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.savings-access {
  position: relative;
}

.savings-access__toggle,
.savings-login button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--green-950);
  background: var(--amber-500);
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.savings-access__toggle svg,
.savings-login button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.savings-access__toggle:hover,
.savings-access__toggle:focus-visible,
.savings-login button:hover,
.savings-login button:focus-visible {
  background: var(--white);
  transform: translateY(-1px);
}

.savings-login {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 15;
  width: 318px;
  display: grid;
  gap: 9px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(231, 228, 220, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(4, 31, 22, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.savings-access.is-open .savings-login {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.savings-login::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid rgba(231, 228, 220, 0.95);
  border-top: 1px solid rgba(231, 228, 220, 0.95);
  transform: rotate(45deg);
}

.savings-login__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  margin-bottom: 2px;
}

.savings-login__title {
  color: var(--green-950);
  font-size: 1.03rem;
  font-weight: 900;
  line-height: 1.1;
}

.savings-login .savings-login__help {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  margin: 0;
  color: var(--green-950);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f4 100%);
  border: 1px solid rgba(6, 47, 33, 0.14);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(6, 47, 33, 0.1);
  cursor: help;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.savings-login .savings-login__help svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.savings-login .savings-login__help:hover,
.savings-login .savings-login__help:focus,
.savings-login .savings-login__help:focus-visible {
  color: var(--white);
  background: var(--green-950);
  border-color: var(--green-950);
  box-shadow: 0 12px 26px rgba(6, 47, 33, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.savings-login__tooltip {
  position: absolute;
  top: -2px;
  right: calc(100% + 12px);
  width: min(286px, calc(100vw - 48px));
  display: grid;
  gap: 9px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(180deg, #073522 0%, #052719 100%);
  border: 1px solid rgba(240, 160, 64, 0.32);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(4, 31, 22, 0.32);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.savings-login__tooltip::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #073522;
  border-top: 1px solid rgba(240, 160, 64, 0.32);
  border-right: 1px solid rgba(240, 160, 64, 0.32);
  transform: rotate(45deg);
}

.savings-login__tooltip span {
  display: block;
}

.savings-login__tooltip b {
  display: block;
  margin-bottom: 1px;
  color: var(--amber-500);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.savings-login__tooltip-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
}

.savings-login__tooltip-example {
  width: fit-content;
  padding: 5px 8px;
  color: var(--green-950);
  background: var(--amber-500);
  border-radius: 6px;
  font-weight: 900;
}

.savings-login .savings-login__help:hover + .savings-login__tooltip,
.savings-login .savings-login__help:focus + .savings-login__tooltip,
.savings-login .savings-login__help:focus-visible + .savings-login__tooltip,
.savings-login .savings-login__help.is-active + .savings-login__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.savings-login label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.savings-login input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.savings-login input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(240, 160, 64, 0.18);
}

.savings-login button {
  width: 100%;
  margin-top: 4px;
}

.savings-login__forgot {
  justify-self: center;
  color: var(--green-950);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--amber-500);
  padding-bottom: 3px;
  transition: color 180ms ease, border-color 180ms ease;
}

.savings-login__forgot:hover,
.savings-login__forgot:focus-visible {
  color: var(--amber-700);
  border-color: var(--green-700);
}

.header-tools__link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--white);
  border-radius: 6px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.header-tools__link svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-tools__link--brand svg {
  fill: currentColor;
  stroke: none;
}

.header-tools__link:hover,
.header-tools__link:focus-visible {
  color: var(--white);
  background: var(--amber-500);
  transform: translateY(-2px);
}

.main-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(231, 228, 220, 0.72);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 34px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--amber-500);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--green-700);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease;
}

.nav-cta {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 12px 25px rgba(47, 112, 64, 0.18);
}

.nav-cta svg,
.button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button--primary:hover,
.button--primary:focus-visible {
  background: var(--amber-500);
  color: var(--green-950);
  transform: translateY(-2px);
}

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

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
}

.menu-toggle__lines::before {
  transform: translateY(-7px);
}

.menu-toggle__lines::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  transform: translateY(-2px) rotate(-90deg);
}

.hero {
  position: relative;
  overflow: hidden;
  height: clamp(620px, calc(100vh - 168px), 820px);
  min-height: 620px;
  background: var(--green-950);
}

.hero-slider__track {
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 760ms ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide[aria-hidden="true"] {
  pointer-events: none;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 246, 241, 0.98) 0%,
      rgba(247, 246, 241, 0.94) 34%,
      rgba(247, 246, 241, 0.62) 56%,
      rgba(6, 47, 33, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(6, 47, 33, 0.26) 0%, transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 47, 33, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(6, 47, 33, 0.05) 0 1px, transparent 1px 100%);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000 0%, #000 47%, transparent 76%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(64px, 8vw, 108px) 0 112px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green-700);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-kicker span {
  display: inline-block;
  padding: 4px 8px;
  color: var(--white);
  background: var(--green-700);
  border-radius: 4px;
}

.hero h1,
.hero h2,
.section-heading h2,
.about__content h2,
.contact-band h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5.8vw, 5.35rem);
}

.hero__lead {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

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

.button--primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 14px 30px rgba(47, 112, 64, 0.18);
}

.button--ghost {
  color: var(--green-950);
  background: var(--white);
  border-color: rgba(6, 47, 33, 0.18);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  color: var(--white);
  background: var(--green-950);
  transform: translateY(-2px);
}

.hero-slider__ui {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.hero-slider.is-single-slide .hero-slider__ui {
  display: none;
}

.hero-slider__arrows,
.hero-slider__dots {
  pointer-events: auto;
}

.hero-slider__arrows {
  display: flex;
  gap: 10px;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(17, 28, 22, 0.16);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  color: var(--green-950);
  background: var(--amber-500);
  transform: translateY(-2px);
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 28, 22, 0.14);
}

.slider-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(6, 47, 33, 0.24);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.slider-dot.is-active {
  width: 52px;
  background: var(--green-700);
}

.section {
  padding: clamp(70px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.about__content h2,
.contact-band h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(17, 28, 22, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(240, 160, 64, 0.7);
  box-shadow: 0 20px 42px rgba(17, 28, 22, 0.12);
  transform: translateY(-5px);
}

.service-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: var(--radius);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.22;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--green-700);
  font-weight: 900;
  transition: color 180ms ease;
}

.service-card a:hover,
.service-card a:focus-visible {
  color: var(--amber-600);
}

.programs {
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

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

.service-card--compact {
  min-height: auto;
}

.program-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.program-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}

.program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--amber-500);
  border-radius: 50%;
}

.about {
  background: var(--paper);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about__media {
  position: relative;
  min-height: 430px;
  padding: clamp(28px, 5vw, 44px);
  color: var(--white);
  background: var(--green-950);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__media::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 38px solid rgba(240, 160, 64, 0.42);
  border-radius: 50%;
}

.about__stamp {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--amber-500);
  border-radius: var(--radius);
  font-size: 1.45rem;
  font-weight: 900;
}

.about__media h2 {
  position: relative;
  z-index: 1;
  margin: 72px 0 0;
  max-width: 440px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.about__media p {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.about__content > p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.value-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.value-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.value-item span {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  background: var(--amber-500);
  border-radius: 50%;
}

.value-item span::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  margin: 8px auto 0;
  border-left: 2px solid var(--green-950);
  border-bottom: 2px solid var(--green-950);
  transform: rotate(-45deg);
}

.value-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.06rem;
}

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

.contact-band {
  padding: 42px 0;
  background: var(--green-950);
}

.contact-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-band .section-kicker {
  color: rgba(255, 255, 255, 0.86);
}

.contact-band .section-kicker span {
  color: var(--green-950);
  background: var(--amber-500);
}

.contact-band h2 {
  max-width: 700px;
  color: var(--white);
}

.contact-band .button--primary {
  flex: 0 0 auto;
  color: var(--green-950);
  background: var(--amber-500);
  box-shadow: none;
}

.contact-band .button--primary:hover,
.contact-band .button--primary:focus-visible {
  color: var(--green-950);
  background: var(--white);
}

body.contact-modal-open {
  overflow: hidden;
}

dialog.contact-modal:not([open]) {
  display: none;
}

dialog.contact-modal {
  position: fixed;
  inset: 0;
  width: min(94vw, 680px);
  max-width: 680px;
  max-height: min(88vh, 760px);
  margin: auto;
  padding: 0 !important;
  color: var(--text);
  background: transparent !important;
  border: 0 !important;
  outline: none;
  overflow: visible;
}

dialog.contact-modal::backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 160, 64, 0.18), transparent 32%),
    rgba(4, 31, 22, 0.76);
  backdrop-filter: blur(8px);
}

.contact-modal > .contact-modal__panel {
  position: relative;
  width: 100%;
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 30px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  border: 1px solid rgba(6, 47, 33, 0.12);
  border-top: 5px solid var(--amber-500);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(4, 31, 22, 0.38);
}

.contact-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-950);
  cursor: pointer;
  background: var(--green-100);
  border: 1px solid rgba(47, 112, 64, 0.18);
  border-radius: var(--radius);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.contact-modal__close:hover,
.contact-modal__close:focus-visible {
  color: var(--white);
  background: var(--green-950);
  transform: translateY(-2px);
}

.contact-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.contact-modal__header {
  max-width: 560px;
  padding-right: 52px;
  margin-bottom: 22px;
}

.contact-modal__header h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-modal__header p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.contact-form__field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form__field span {
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-form input {
  min-height: 46px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--white);
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(47, 112, 64, 0.14);
}

.contact-form__wide,
.contact-form__status,
.contact-form__submit {
  grid-column: 1 / -1;
}

.contact-form__trap,
.contact-form__trap[hidden] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.contact-form__status {
  padding: 12px 14px;
  color: var(--green-950);
  font-weight: 800;
  background: var(--green-100);
  border: 1px solid rgba(47, 112, 64, 0.2);
  border-radius: var(--radius);
}

.contact-form__status.is-error {
  color: #7b1f18;
  background: #fff0ee;
  border-color: rgba(123, 31, 24, 0.22);
}

.contact-form__status.is-success {
  color: var(--green-950);
  background: #edf7ee;
  border-color: rgba(47, 112, 64, 0.26);
}

.contact-form__submit {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  border: 0;
  cursor: pointer;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #041f16;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr);
  gap: 36px;
  padding: 58px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: var(--white);
  font-weight: 900;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 5px;
  background: var(--white);
  border-radius: 6px;
}

.site-footer p {
  max-width: 460px;
  margin: 18px 0 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1rem;
}

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

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--amber-500);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(239, 163, 52, 0.7);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a[aria-label*="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.footer__bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

@media (max-width: 1020px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-strip__inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .savings-login {
    width: min(318px, calc(100vw - 32px));
  }

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

  .hero {
    height: 680px;
    min-height: 680px;
  }

  .hero-slide__image {
    object-position: 64% center;
  }
}

@media (max-width: 860px) {
  .brand-strip__inner {
    min-height: 82px;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .brand__copy span {
    max-width: 420px;
  }

  .header-tools {
    display: none;
  }

  .savings-login {
    width: min(318px, calc(100vw - 32px));
  }

  .nav-inner {
    position: relative;
    min-height: 66px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: grid;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 36px rgba(17, 28, 22, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-list.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list a {
    width: 100%;
    padding: 10px 8px;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero {
    height: 650px;
    min-height: 650px;
  }

  .hero-slide__shade {
    background:
      linear-gradient(
        90deg,
        rgba(247, 246, 241, 0.98) 0%,
        rgba(247, 246, 241, 0.92) 58%,
        rgba(247, 246, 241, 0.58) 100%
      ),
      linear-gradient(0deg, rgba(6, 47, 33, 0.3) 0%, transparent 48%);
  }

  .hero-slide__content {
    padding: 58px 0 112px;
  }

  .hero h1,
  .hero h2 {
    max-width: 640px;
    font-size: clamp(2.4rem, 10vw, 4.35rem);
  }

  .hero-slider__ui {
    bottom: 22px;
  }

  .contact-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand__copy strong {
    font-size: 1.45rem;
  }

  .brand__copy span {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .nav-cta {
    max-width: 190px;
  }

  .nav-cta svg {
    display: none;
  }

  .header-actions {
    justify-content: stretch;
  }

  .savings-access,
  .savings-access__toggle {
    width: 100%;
  }

  .savings-login {
    left: 0;
    right: 0;
    width: 100%;
  }

  .savings-login__tooltip {
    top: calc(100% + 12px);
    right: -2px;
  }

  .savings-login__tooltip::before {
    top: -6px;
    right: 13px;
    border-right: 0;
    border-left: 1px solid rgba(240, 160, 64, 0.32);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero {
    height: 680px;
    min-height: 680px;
  }

  .hero-slide__image {
    object-position: 70% center;
  }

  .hero-slide__shade {
    background:
      linear-gradient(
        90deg,
        rgba(247, 246, 241, 0.98) 0%,
        rgba(247, 246, 241, 0.94) 68%,
        rgba(247, 246, 241, 0.72) 100%
      ),
      linear-gradient(0deg, rgba(6, 47, 33, 0.34) 0%, transparent 50%);
  }

  .hero-slide__content {
    padding: 44px 0 138px;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-slider__ui {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .slider-dot {
    width: 28px;
  }

  .slider-dot.is-active {
    width: 42px;
  }

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

  .service-card {
    min-height: 270px;
  }

  .about__media {
    min-height: 360px;
  }

  .about__media h2 {
    margin-top: 54px;
  }

  dialog.contact-modal {
    width: min(calc(100vw - 20px), 680px);
    max-height: calc(100vh - 20px);
  }

  .contact-modal > .contact-modal__panel {
    max-height: calc(100vh - 20px);
    padding: 24px 18px 18px;
  }

  .contact-modal__close {
    top: 12px;
    right: 12px;
  }

  .contact-modal__header {
    padding-right: 46px;
  }

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

@media (max-width: 460px) {
  .savings-login button {
    width: 100%;
  }
}

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