/* Eturnal Rest -- shared styles for the static info pages (about, contact, faq).
   Small and additive. Everything visual leans on tokens.css + base.css; this
   file only adds the few patterns those pages need (faq accordion, contact
   grid, step numbers). Keep page-agnostic helpers here. */

/* ---- shared layout helpers ---- */
.info-hero {
  max-width: 56ch;
}
.info-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.info-split {
  align-items: start;
  gap: var(--space-7);
}
.info-cta-row {
  justify-content: center;
}

/* ---- about: value + trust + step blocks ---- */
.info-value,
.info-trust {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.info-value:last-child,
.info-trust:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-value h3,
.info-trust h3 {
  margin-bottom: 0.3em;
}

.info-card-text {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
}
.info-step {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

/* ---- contact ---- */
.info-contact-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: var(--space-6);
}
.info-contact-aside .card__body {
  padding: var(--space-5);
}
.info-email {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.info-form-card .card__body {
  padding: var(--space-6);
}
.info-form-title {
  margin-bottom: 0.4em;
}
.info-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}
.info-form-error {
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 var(--space-4);
}
.info-form-note {
  font-size: 0.9rem;
  margin: var(--space-4) 0 0;
}

/* ---- faq accordion (built on <details>/<summary>) ---- */
.info-faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.info-q {
  border-bottom: 1px solid var(--line);
}
.info-q:last-child {
  border-bottom: 0;
}
.info-q > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background 0.15s var(--ease);
}
.info-q > summary::-webkit-details-marker {
  display: none;
}
.info-q > summary:hover {
  background: var(--cream);
}
.info-q > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  margin-top: -4px;
}
.info-q[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.info-q > summary:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: -3px;
}
.info-a {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-2);
}
.info-a p {
  line-height: 1.6;
}
.info-faq-help {
  background: var(--stone);
  border-color: var(--stone-2);
}

/* ---- responsive ---- */
@media (max-width: 820px) {
  .info-contact-grid {
    grid-template-columns: 1fr;
  }
  .info-split {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
@media (max-width: 720px) {
  .info-form-card .card__body {
    padding: var(--space-5);
  }
  .info-q > summary {
    font-size: 1.05rem;
    padding: var(--space-4);
  }
  .info-a {
    padding: 0 var(--space-4) var(--space-4);
  }
}

/* ============================================================
   OVERHAUL polish (2026-06-02): real brand, motion, native form.
   Additive; later rules win by source order.
   ============================================================ */

/* count-up numbers keep their width as they tick up */
.info-narrow .stat__num,
#er-about-stats .stat__num {
  font-variant-numeric: tabular-nums;
}

/* about: real cemetery photo strip (honest -- real Salesforce-hosted images) */
.info-photostrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.info-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-50);
  box-shadow: var(--shadow-sm);
}
.info-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}
.info-photo:hover img {
  transform: scale(1.06);
}
.info-photo.is-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.info-photo.is-placeholder span {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
}
.info-photo__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  background: linear-gradient(
    180deg,
    rgba(29, 55, 68, 0) 0%,
    rgba(29, 55, 68, 0.78) 100%
  );
}
.info-photo__cap small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.72rem;
}

/* contact aside: a small leading dot accent + email card lift */
.info-contact-aside .card__title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.info-contact-aside .card__title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue-500);
  flex: 0 0 auto;
}
.info-email {
  color: var(--blue-700);
}
.info-email:hover {
  color: var(--blue-600);
}

/* native contact form: honeypot is visually + AT hidden but present in DOM */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* status block lands on its own focusable region */
#cf-status:focus {
  outline: none;
}

/* faq: brand-blue chevrons + open-row tint, gentler hover */
.info-q > summary::after {
  border-right-color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}
.info-q[open] {
  background: var(--blue-50);
}
.info-q[open] > summary {
  color: var(--blue-800);
}
.info-q > summary:focus-visible {
  outline-color: var(--blue-500);
}

/* reveal-friendly faq: stagger rows subtly via per-item delay set inline */
@media (max-width: 720px) {
  .info-photostrip {
    grid-template-columns: repeat(2, 1fr);
  }
}
