/* Valor Senior Care — shared styles
   Palette: navy / maroon / beige — from the Valor Care flyer. Mobile-first, desktop nav visible. */

:root {
  --forest: #1a2744;
  --forest-deep: #0d1628;
  --forest-mid: #2c4a7c;
  --sage: #8a93a6;
  --sage-pale: #efe6da;
  --cream: #f4ece2;
  --paper: #fffaf4;
  --ink: #141414;
  --muted: #5a5348;
  --line: #d8cfc3;
  --red: #8e1d38;
  --focus: #1a2744;
  --shadow: 0 10px 30px rgba(13, 22, 40, 0.08);
  --radius: 14px;
  --max: 1120px;
  --header-h: 4.5rem;
  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--forest-mid); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.18;
  color: var(--forest-deep);
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--forest-mid);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  margin-right: auto;
}
.brand img, .brand svg {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  padding: 0.7rem 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--sage-pale);
}
.site-nav a[aria-current="page"] { color: var(--forest); }

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  background: var(--forest);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header-call:hover { background: var(--forest-deep); color: #fff !important; }
.header-help { display: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    margin-right: 0.5rem;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a {
    padding: 0.45rem 0.7rem;
    border: 0;
    border-radius: 8px;
    font-size: 0.98rem;
  }
  .site-nav a:hover { background: var(--sage-pale); }
  .header-help {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.45rem 0.95rem;
    border: 2px solid var(--forest);
    color: var(--forest) !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
  }
  .header-help:hover { background: var(--forest); color: #fff !important; }
  .wordmark { font-size: 1.12rem; }
  .brand img, .brand svg { width: 52px; height: 52px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--forest); color: #fff !important; }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { background: transparent; color: var(--forest) !important; border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: #fff !important; }
.btn-light { background: #fff; color: var(--forest-deep) !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.25rem 0 0; }

/* Hero */
.hero {
  padding: 1.75rem 0 2.4rem;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.6rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.band-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.4rem;
  box-shadow: var(--shadow);
}
.band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band-video {
  max-width: 52rem;
  margin: 0 auto 1.4rem;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  background: #1a2744;
}
.band-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .band-video video { display: none; }
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .hero { padding: 2.6rem 0 3.2rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
}

.trust {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.trust div {
  background: var(--sage-pale);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--forest-deep);
  font-size: 0.95rem;
}
@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section { padding: 2.4rem 0; }
.section-alt { background: var(--paper); }
.section-forest {
  background: var(--forest-deep);
  color: #e8efe4;
}
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest p, .section-forest li { color: #d5e0d0; }
.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); }

.cards {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--cream); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card a.more {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.6rem;
}
@media (min-width: 720px) {
  .cards.cols-2 { grid-template-columns: 1fr 1fr; }
  .cards.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .cards.cols-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.2rem 4.4rem;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(5) { grid-column: 1 / -1; max-width: 36rem; }
}

/* Team */
.team-grid {
  display: grid;
  gap: 1.2rem;
}
.person {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.2rem;
}
.person h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0.85rem 0 0.1rem;
}
.person .role {
  color: var(--forest-mid);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.portrait {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sage-pale);
  margin: 0;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.portrait-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, var(--forest) 0%, var(--forest-deep) 72%, var(--red) 160%);
}
.portrait-mark {
  font-family: var(--serif);
  font-size: 5.25rem;
  font-weight: 650;
  color: var(--cream);
  line-height: 1;
}
.caption { font-size: 0.88rem; color: var(--muted); margin-top: 0.55rem; }
@media (min-width: 800px) {
  .team-grid { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
}

/* Cities */
.city {
  display: grid;
  gap: 0.4rem;
}
.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .split.photo-first .copy { order: 2; }
}

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--forest-deep);
}
.faq details p { margin: 0.6rem 0 0.2rem; color: var(--muted); }

/* Form */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 0.95rem; }
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
}
label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.hint { font-weight: 500; color: var(--muted); font-size: 0.88rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c5cec0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
}
.check input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.sms-copy { font-size: 0.92rem; line-height: 1.45; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 0.4rem; }
.mailto { font-weight: 650; }

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: #d7e2d4;
  padding: 2.4rem 0 6.5rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.4rem;
}
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.4rem; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav a { text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.fine {
  font-size: 0.88rem;
  color: #b7c4b3;
  margin-top: 1.4rem;
  max-width: 46rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer { padding-bottom: 2.6rem; }
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(13, 22, 40, 0.96);
  border-top: 1px solid #2a4a3a;
}
.mobile-cta a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.mobile-cta .call { background: #fff; color: var(--forest-deep); }
.mobile-cta .help { background: var(--forest-mid); color: #fff; }
@media (min-width: 960px) {
  .mobile-cta { display: none; }
}

/* Legal / thank-you */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6rem; }
.notice {
  background: var(--sage-pale);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.page-hero { padding: 2rem 0 0.5rem; }
.page-hero p { max-width: 40rem; color: var(--muted); font-size: 1.1rem; }

.list-plain { list-style: none; padding: 0; }
.list-plain li { padding: 0.25rem 0; }

/* Hero Call should out-contrast the smaller header pill */
.hero .btn-primary {
  background: var(--forest-deep);
  color: #fff !important;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  box-shadow: 0 8px 22px rgba(13, 22, 40, 0.22);
}
.hero .btn-primary:hover { background: #0a1a13; }
.hero .btn-ghost { border-width: 2px; }


/* Header order: brand | nav | call | help on desktop; brand | call | menu on mobile */
.header-inner { position: relative; }
.brand { order: 1; }
.header-call { order: 2; }
.nav-toggle { order: 3; }
.header-help { order: 4; }
.site-nav { order: 5; width: 100%; }
@media (min-width: 960px) {
  .brand { order: 1; margin-right: 0.5rem; }
  .site-nav { order: 2; width: auto; margin-right: auto; }
  .header-call { order: 3; }
  .header-help { order: 4; }
  .site-nav li:last-child { display: none; }
}
.btn-on-dark {
  border-color: #fff !important;
  color: #fff !important;
}
.btn-on-dark:hover { background: #fff; color: var(--forest-deep) !important; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 420px) {
  .header-call { font-size: 0.86rem; padding-inline: 0.7rem; }
}

/* Tagline: readable serif italic, maroon, still distinct from headlines */
.script {
  font-family: "Playfair Display", "Iowan Old Style", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--red);
  line-height: 1.3;
}
.hero .script {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  display: block;
  margin: 0 0 0.5rem;
}
.header-call,
.btn-primary,
.hero .btn-primary {
  background: var(--red);
}
.header-call:hover,
.btn-primary:hover,
.hero .btn-primary:hover {
  background: #6f152b;
}
.hero .btn-primary {
  box-shadow: 0 8px 22px rgba(142, 29, 56, 0.28);
}
.kicker { color: var(--red); }

/* Phone-width header + sticky bar */
@media (max-width: 420px) {
  .wordmark span { display: none; }
  .header-call { font-size: 0.8rem; padding-inline: 0.65rem; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
}
.mobile-cta { border-top-color: #2a3148; }
.mobile-cta .help { background: var(--red); color: #fff; }
@media (max-width: 959px) {
  body { padding-bottom: 4.6rem; }
}

/* Clear the sticky Call bar on first paint */
@media (max-width: 959px) {
  .hero { padding-bottom: 6.25rem; }
  .hero .script { font-size: clamp(1.25rem, 5.2vw, 1.7rem); }
  .lede { margin-bottom: 0.6rem; }
  .trust { margin-top: 1rem; padding-bottom: 0.25rem; }
  .page-hero { padding-bottom: 1.25rem; }
  main > .section:first-of-type { padding-bottom: 5.75rem; }
  body { padding-bottom: 5.75rem; }
}
