:root {
  --ink: #17202a;
  --muted: #5d6874;
  --paper: #fffaf3;
  --white: #ffffff;
  --mint: #88d8b0;
  --teal: #0f8f8c;
  --coral: #ff7a59;
  --sun: #ffc857;
  --berry: #b95f89;
  --sky: #dff5ff;
  --line: rgba(23, 32, 42, 0.12);
  --shadow: 0 20px 50px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  align-items: center;
  background: rgba(255, 250, 243, 0.88);
  border-bottom: 1px solid transparent;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.08);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: Nunito, Inter, sans-serif;
  font-size: 1.16rem;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 0.78rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  color: rgba(23, 32, 42, 0.78);
}

.nav-button,
.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.nav-button,
.primary-button {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(255, 122, 89, 0.26);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transform: scaleX(-1);
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.98) 0%, rgba(255, 250, 243, 0.9) 35%, rgba(255, 250, 243, 0.18) 68%, rgba(255, 250, 243, 0.02) 100%),
    linear-gradient(0deg, rgba(23, 32, 42, 0.08), rgba(23, 32, 42, 0.08));
  inset: 0;
  position: absolute;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92svh;
  max-width: 720px;
  padding: 120px clamp(18px, 4vw, 56px) 76px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.service-tag {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Nunito, Inter, sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  margin-bottom: 0;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy {
  color: #34404c;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 640px;
}

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

.section-wrap {
  margin: 0 auto;
  max-width: 1180px;
  padding: 96px clamp(18px, 4vw, 56px);
}

.intro {
  align-items: start;
  background:
    linear-gradient(135deg, rgba(136, 216, 176, 0.24), rgba(255, 200, 87, 0.2)),
    var(--paper);
  display: grid;
  gap: 40px;
  grid-template-columns: 1.05fr 0.95fr;
  max-width: none;
  padding-left: max(clamp(18px, 4vw, 56px), calc((100vw - 1180px) / 2 + 56px));
  padding-right: max(clamp(18px, 4vw, 56px), calc((100vw - 1180px) / 2 + 56px));
}

.intro p:last-child {
  color: #394553;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  margin: 12px 0 0;
  max-width: 620px;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(23, 32, 42, 0.08);
  min-width: 0;
  overflow: hidden;
}

.service-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.service-card div {
  padding: 22px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-card:nth-child(1) .service-tag {
  color: var(--coral);
}

.service-card:nth-child(2) .service-tag {
  color: var(--berry);
}

.service-card:nth-child(3) .service-tag {
  color: var(--teal);
}

.service-card:nth-child(4) .service-tag {
  color: #6c7d00;
}

.community {
  background: var(--ink);
  color: var(--white);
}

.community h2,
.community h3 {
  color: var(--white);
}

.community p {
  color: rgba(255, 255, 255, 0.74);
}

.community-inner {
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.community-copy {
  align-self: center;
}

.mission-line {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  margin: 28px 0 0;
  padding-top: 24px;
}

.trust-list {
  display: grid;
  gap: 14px;
}

.pillar {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 24px;
}

.pillar span {
  align-items: center;
  background: rgba(255, 200, 87, 0.14);
  border: 1px solid rgba(255, 200, 87, 0.22);
  border-radius: 50%;
  color: var(--sun);
  display: inline-flex;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  margin-bottom: 0;
  width: 54px;
}

.pillar h3 {
  margin-bottom: 8px;
}

.pillar p {
  margin-bottom: 0;
}

.join {
  align-items: stretch;
  display: grid;
  gap: 30px;
  grid-template-columns: 1.2fr 0.8fr;
}

.join-copy {
  background: var(--sky);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 54px);
}

.join-copy p:last-child {
  font-size: 1.08rem;
  margin-top: 24px;
  max-width: 720px;
}

.signup-form {
  align-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 44px);
}

.form-row {
  display: grid;
  gap: 8px;
}

.website-field {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.form-row label,
.pet-options legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-row label span {
  color: var(--muted);
  font-weight: 600;
}

.form-row input {
  background: #fffdf9;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 143, 140, 0.12);
}

.pet-options {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.pet-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  padding: 0;
}

.pet-options label,
.consent-row {
  align-items: flex-start;
  color: #394553;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.pet-options input,
.consent-row input {
  accent-color: var(--teal);
  flex: 0 0 auto;
  margin-top: 3px;
}

.consent-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.form-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  margin-top: 2px;
  width: 100%;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  color: var(--coral);
  font-size: 0.92rem;
  font-weight: 700;
  margin: -4px 0 0;
  min-height: 1.3em;
}

.form-note {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.form-note a {
  color: var(--teal);
  font-weight: 800;
}

.modal[hidden] {
  display: none;
}

.modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 40;
}

.modal-backdrop {
  background: rgba(23, 32, 42, 0.58);
  inset: 0;
  position: absolute;
}

.modal-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  max-width: 520px;
  padding: clamp(28px, 5vw, 46px);
  position: relative;
  width: min(100%, 520px);
  z-index: 1;
}

.modal-card h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 16px;
}

.modal-close {
  align-items: center;
  background: #f3f5f6;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.6rem;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  padding: 28px clamp(18px, 4vw, 56px);
}

.site-footer span:first-child {
  color: var(--ink);
  font-family: Nunito, Inter, sans-serif;
  font-weight: 900;
}

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

  .intro,
  .community-inner,
  .join {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-button {
    min-height: 40px;
    padding: 0 16px;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    object-position: 54% 50%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 250, 243, 0.96) 0%, rgba(255, 250, 243, 0.84) 50%, rgba(255, 250, 243, 0.2) 100%),
      linear-gradient(0deg, rgba(23, 32, 42, 0.08), rgba(23, 32, 42, 0.08));
  }

  .hero-content {
    justify-content: flex-start;
    min-height: 760px;
    padding: 104px 18px 56px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .section-wrap {
    padding: 72px 18px;
  }

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

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

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}
