/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --color-ink: #243f38;
  --color-text: #33413d;
  --color-muted: #66736f;
  --color-green: #5fae3e;
  --color-green-dark: #2f6749;
  --color-blue: #2f7fbd;
  --color-aqua: #8bd5df;
  --color-yellow: #f6cf5f;
  --color-orange: #f58b23;
  --color-lilac: #eee8f8;
  --color-soft: #f6fbf8;
  --color-surface: #ffffff;
  --shadow-soft: 0 18px 50px rgba(28, 64, 55, 0.13);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #fffafc;
  font-family: Avenir, "Avenir Next", Montserrat, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(47, 127, 189, 0.45);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--color-ink);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  margin-bottom: 1.35rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 252, 0.94);
  border-bottom: 1px solid rgba(47, 103, 73, 0.1);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-ink);
  text-decoration: none;
}

.brand__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.brand__text {
  display: grid;
  line-height: 1;
}

.brand__name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__place {
  color: var(--color-green-dark);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  color: #40504b;
  font-size: 0.98rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-green-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
  color: #ffffff;
  background: linear-gradient(180deg, #82c84c, var(--color-green));
  box-shadow: 0 12px 28px rgba(95, 174, 62, 0.28);
}

.button--secondary {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(36, 63, 56, 0.45);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 6rem 0 7rem;
}

.hero::before,
.hero::after,
.page-hero::before,
.cta-band::before {
  position: absolute;
  right: -8%;
  left: -8%;
  z-index: -1;
  height: 190px;
  content: "";
  border-radius: 50%;
  opacity: 0.75;
  transform: rotate(-4deg);
}

.hero::before {
  top: 0;
  background: linear-gradient(100deg, rgba(139, 213, 223, 0.5), rgba(246, 207, 95, 0.35), rgba(255, 255, 255, 0));
}

.hero::after {
  bottom: -80px;
  background: linear-gradient(100deg, rgba(139, 213, 223, 0.55), rgba(95, 174, 62, 0.22), rgba(245, 139, 35, 0.28));
}

.hero__grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero h1 span,
.hero h1 {
  max-width: 740px;
}

.lead {
  color: #30433e;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.65;
}

.eyebrow {
  color: var(--color-green-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__media {
  position: relative;
}

.hero__media img,
.image-frame img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero__media img {
  aspect-ratio: 1.25;
  object-fit: cover;
}

.hero__media::after,
.image-frame::after {
  position: absolute;
  right: -20px;
  bottom: -22px;
  width: 72%;
  height: 34%;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(139, 213, 223, 0.5), rgba(95, 174, 62, 0.24));
  border-radius: 50%;
}

.section {
  padding: 6rem 0;
}

.section--intro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(246, 251, 248, 0.85));
}

.section--soft {
  background: var(--color-soft);
}

.split--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.image-frame {
  position: relative;
}

.image-frame img {
  aspect-ratio: 1.4;
  object-fit: cover;
}

.image-frame--oval img {
  border-radius: 48% 52% 48% 52%;
}

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

.card-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.two-column,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.value-panel,
.contact-card,
.program-list article {
  min-height: 100%;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 103, 73, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(28, 64, 55, 0.08);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
}

.service-card__icon--green {
  background: linear-gradient(135deg, #9ed343, var(--color-green-dark));
}

.service-card__icon--blue {
  background: linear-gradient(135deg, var(--color-aqua), var(--color-blue));
}

.service-card__icon--orange {
  background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

.page-hero::before {
  bottom: -90px;
  background: linear-gradient(90deg, rgba(139, 213, 223, 0.48), rgba(246, 207, 95, 0.3), rgba(95, 174, 62, 0.2));
}

.page-hero__inner {
  max-width: 840px;
}

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

.program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.check-list li,
.number-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-green);
  content: "v";
  font-weight: 900;
}

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

.number-list li {
  counter-increment: process;
}

.number-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-blue);
  content: counter(process) ".";
  font-weight: 800;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: var(--color-ink);
}

.cta-band::before {
  top: -120px;
  background: linear-gradient(90deg, rgba(139, 213, 223, 0.3), rgba(246, 207, 95, 0.24), rgba(95, 174, 62, 0.18));
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2,
.cta-band .eyebrow {
  color: #ffffff;
}

.cta-band h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.site-footer {
  padding: 4rem 0;
  color: #dfe9e4;
  background: #1f342e;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .brand {
  color: #ffffff;
}

.site-footer .brand__place,
.site-footer h2 {
  color: #b7df77;
}

.site-footer h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0.55rem;
}

.contact-card dl {
  display: grid;
  gap: 1.2rem;
  margin: 0;
}

.contact-card dt {
  color: var(--color-green-dark);
  font-weight: 800;
}

.contact-card dd {
  margin: 0;
}

.contact-card--accent {
  background: linear-gradient(135deg, rgba(139, 213, 223, 0.24), rgba(246, 207, 95, 0.18), #ffffff);
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .site-header__cta {
    margin-left: auto;
  }

  .hero__grid,
  .split,
  .split--reverse,
  .card-grid,
  .two-column,
  .contact-grid,
  .site-footer__grid,
  .program-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 4rem;
  }

  .hero__content {
    max-width: none;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header__inner {
    min-height: auto;
  }

  .brand__mark {
    width: 52px;
    height: 52px;
  }

  .brand__name {
    font-size: 1.22rem;
  }

  .brand__place {
    font-size: 0.78rem;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.3rem;
  }

  .site-header__cta {
    width: 100%;
  }

  h1 {
    font-size: 2.55rem;
  }

  .actions,
  .cta-band__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-card,
  .value-panel,
  .contact-card,
  .program-list article {
    padding: 1.25rem;
  }
}
