/* Volunteer Home Solution - high-conversion landing theme
   Navy trust base + one consistent green action color, shimmering CTAs. */

:root {
  --navy-950: #061a33;
  --navy-900: #0a2342;
  --navy-800: #0f3159;
  --navy-700: #164577;
  --ink: #0f2038;
  --muted: #4b5d73;
  --line: #dbe4ef;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --cta: #16a34a;
  --cta-deep: #117a37;
  --cta-glow: rgba(22, 163, 74, 0.38);
  --gold: #f7b733;
  --shadow: rgba(10, 35, 66, 0.14);

  /* Variables consumed by form.css (thank-you panel, base inputs). */
  --accent: #16a34a;
  --accent-dark: #117a37;
  --accent-soft: rgba(22, 163, 74, 0.12);
  --on-accent: #ffffff;
  --text: #0f2038;
  --border: #dbe4ef;
  --panel: #ffffff;
  --panel-strong: #f4f7fb;
  --success: #16a34a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: #ffffff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--ink);
}

p {
  margin: 0;
}

.wrap {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* ---------- Top bar + header ---------- */

.top-highlight {
  background: var(--navy-950);
  color: #dbe8f7;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy-900);
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
}

.brand-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Buttons (single CTA color site-wide, with shimmer) ---------- */

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.84rem 1.3rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-small {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

.btn-large {
  padding: 1.05rem 2rem;
  font-size: 1.08rem;
}

.btn-cta,
.intake-card #submitBtn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--cta-deep) 0%, var(--cta) 100%);
  background-size: 100% 100%;
  box-shadow: 0 10px 24px var(--cta-glow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  animation: ctaGlow 2.4s ease-in-out infinite;
  transition: transform 0.16s ease;
}

.btn-cta:hover,
.intake-card #submitBtn:hover {
  transform: translateY(-2px);
}

.btn-cta::after,
.intake-card #submitBtn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 55%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 35%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-130%) skewX(-18deg);
  animation: ctaSweep 2.6s ease-in-out infinite;
}

/* z-index:-1 sits behind text but above the button background thanks to isolation:isolate. */

.intake-card #submitBtn.is-primed {
  animation: ctaGlowStrong 1.4s ease-in-out infinite;
}

.intake-card #submitBtn.is-primed::after {
  animation-duration: 1.5s;
}

.intake-card #submitBtn.click-engaged {
  transform: translateY(1px) scale(0.99);
}

.intake-card #submitBtn:disabled {
  opacity: 0.7;
  cursor: progress;
}

@keyframes ctaSweep {
  0% {
    transform: translateX(-130%) skewX(-18deg);
  }

  55%,
  100% {
    transform: translateX(310%) skewX(-18deg);
  }
}

@keyframes ctaGlow {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.3);
  }

  50% {
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.55);
  }
}

@keyframes ctaGlowStrong {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.42);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 16px 38px rgba(22, 163, 74, 0.7);
    transform: scale(1.015);
  }
}

/* ---------- Hero ---------- */

.hero {
  color: #ffffff;
  padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(2rem, 5vw, 3.6rem);
  background:
    linear-gradient(100deg, rgba(6, 26, 51, 0.96) 0%, rgba(10, 35, 66, 0.9) 52%, rgba(15, 49, 89, 0.72) 100%),
    url("https://images.unsplash.com/photo-1570129477492-45c003edd2be?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
}

.hero-main {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.hero-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e8f1fb;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
}

.hero-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.05rem, 4.9vw, 3.5rem);
  letter-spacing: -0.015em;
}

.hero h1 .hl {
  color: var(--gold);
}

.hero-copy {
  color: #c9d9ea;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
}

.hero-points {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.hero-points li {
  position: relative;
  padding-left: 2rem;
  color: #ffffff;
  font-weight: 700;
}

.hero-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cta);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-proof {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9cce0;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-proof b {
  display: block;
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

/* ---------- Form card ---------- */

.intake-card {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
  scroll-margin-top: 90px;
}

.card-head {
  padding: 1.2rem 1.4rem 1.05rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-bottom: 4px solid var(--cta);
}

.card-kicker {
  color: #8ee0a8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intake-card .intake-form-title {
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
}

.simple-lead-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.4rem 1.3rem;
}

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

.simple-form-grid .full-width {
  grid-column: 1 / -1;
}

.intake-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.intake-card .opt {
  color: #7a8aa0;
  font-weight: 600;
}

.intake-card input,
.intake-card select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #cbd7e5;
  border-radius: 12px;
  background: #f8fafd;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.intake-card input::placeholder {
  color: #93a1b4;
}

.intake-card input:focus,
.intake-card select:focus {
  outline: none;
  border-color: var(--cta);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

/* Continuation meter */

.continuation-meter {
  display: grid;
  gap: 0.45rem;
}

.continuation-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e4ecf5;
  overflow: hidden;
}

.continuation-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cta-deep), #34d27a);
  transition: width 0.3s ease;
}

.continuation-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.continuation-step {
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #6b7c92;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.22rem 0.4rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.continuation-step.active {
  border-color: var(--cta);
  color: var(--cta-deep);
  background: rgba(22, 163, 74, 0.08);
}

.continuation-step.done {
  border-color: var(--cta);
  background: var(--cta);
  color: #ffffff;
}

.continuation-copy {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

/* Form footer */

.simple-form-footer {
  display: grid;
  gap: 0.7rem;
  margin: 0.1rem 0 0;
}

.urgency-note {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #fff7e1;
  border: 1px solid #f6dd9a;
  color: #7a5400;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.simple-form-footer .actions {
  display: block;
  width: 100%;
}

.intake-card #submitBtn {
  width: 100%;
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
}

.intake-card .status-message {
  min-height: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #6b7c92;
  font-size: 0.78rem;
  text-align: center;
}

/* Thank-you state */

.intake-card .thank-you-panel {
  padding: 2rem 1.5rem 1.8rem;
}

.intake-card .thank-you-badge {
  background: var(--cta);
  color: #ffffff;
}

.intake-card .thank-you-panel h2 {
  color: var(--ink);
}

.intake-card .thank-you-copy {
  color: var(--muted);
}

.intake-card .thank-you-contact {
  border: 1px solid var(--line);
  background: var(--bg);
}

.intake-card .thank-you-contact-label {
  color: var(--ink);
}

.intake-card .thank-you-contact-link {
  color: var(--cta-deep);
}

/* ---------- Promise strip ---------- */

.strip {
  background: var(--navy-900);
  color: #ffffff;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
  padding: 0.95rem 0;
}

.strip-grid p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.strip-ico {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--cta);
  font-size: 0.75rem;
  font-weight: 900;
}

/* ---------- Content sections ---------- */

.section {
  padding: clamp(2.6rem, 6vw, 4.6rem) 0;
}

.section-alt {
  background: var(--bg);
}

.section-kicker {
  text-align: center;
  color: var(--cta-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--navy-900);
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0.8rem auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

/* How it works */

.steps {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(10, 35, 66, 0.07);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 6px 14px rgba(10, 35, 66, 0.28);
}

.step h3 {
  font-size: 1.18rem;
  color: var(--navy-900);
}

.step p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* Trust cards */

.trust-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.trust-card {
  padding: 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(10, 35, 66, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(10, 35, 66, 0.12);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: var(--cta-deep);
  background: rgba(22, 163, 74, 0.12);
}

.trust-card h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.trust-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* FAQ */

.faq-wrap {
  max-width: 820px;
}

.faq-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cta-deep);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item[open] {
  border-color: #b9e3c8;
  box-shadow: 0 8px 20px rgba(10, 35, 66, 0.06);
}

.faq-item p {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
}

/* Final CTA */

.final-cta {
  color: #ffffff;
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.final-cta h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.final-cta p {
  margin-top: 0.4rem;
  color: #c9d9ea;
  font-size: 1.05rem;
}

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: #9fb4cc;
  padding: 1.4rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  color: #ffffff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  color: #9fb4cc;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.mobile-sticky-cta {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .intake-card {
    justify-self: center;
    max-width: 560px;
  }

  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 84px;
  }

  .top-highlight {
    font-size: 0.78rem;
    line-height: 1.34;
  }

  .brand {
    font-size: 0.95rem;
  }

  .btn-small {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

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

  .simple-lead-form {
    padding: 1rem 1rem 1.2rem;
  }

  .hero-proof {
    gap: 0.6rem 1.2rem;
  }

  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 14px;
    padding: 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-sticky-cta.is-hidden {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
