/* ===================================================================
   PLAN YOUR VISIT — /plan-your-visit/
   Page-specific components. Built on the existing tokens in style.css
   (--navy, --red, --slate, --cream, --line, --radius) so this page
   reads as the same site. Containers 10px, buttons inherit 6px.

   The church's copy is one thought per line. Fragment stacks are set
   in a ~34rem measure so the short lines read as intentional.
   =================================================================== */

/* --- fragment stacks --------------------------------------------- */
.visit-lines { margin: 0; color: var(--slate); }
.visit-lines p { margin: 0.6rem 0 0; font-size: 1rem; line-height: 1.7; }
.visit-lines p:first-child { margin-top: 0; }

.visit-lines--hero {
  max-width: 34rem; margin-inline: auto; margin-top: 1.25rem;
}
.visit-lines--light { color: rgba(255, 255, 255, 0.9); }
/* the dark closer reuses .giving-cta-copy for spacing — restore the
   margin .visit-lines zeroes out */
.giving-cta-copy.visit-lines { margin: 1.35rem auto 2.25rem; }

.visit-narrow { max-width: 34rem; margin-inline: auto; }

/* the opening line of each answer — their copy leads with a short,
   flat answer before the detail ("Nothing weird." / "No.") */
.visit-lead {
  margin: 0 0 0.9rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 800;
  line-height: 1.35; color: var(--navy);
}
.head-block .visit-lead { margin-top: 1rem; }

/* --- the questions ---------------------------------------------- */
.visit-faq {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none; margin: 0; padding: 0;
}
.visit-faq > li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}

/* Collapsible answers — the same <details>/<summary> pattern as
   .about-gov-details on /about/, re-cut for a card in a grid rather than one
   wide panel. The padding moved off the <li> and onto the summary and panel
   so the whole header row is the click target, not just the words.

   The marker is a + that loses its vertical stroke when open, so it reads as
   a − . Driven off [open], which the browser sets itself — no JS, and the
   icon can't fall out of step with the panel. */
.visit-faq-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  cursor: pointer;
  list-style: none;
}
.visit-faq-summary::-webkit-details-marker { display: none; }
.visit-faq-summary .visit-q { margin: 0; }
.visit-faq-summary:hover .visit-q { color: var(--red); }
/* Keyboard focus lands on the summary; the browser's own focus ring stays,
   this just matches the hover colour so both routes look the same. */
.visit-faq-details:focus-within .visit-q { color: var(--red); }

.visit-faq-marker {
  position: relative; flex: none; display: block;
  width: 14px; height: 14px;
  color: var(--red);
}
.visit-faq-marker::before,
.visit-faq-marker::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor;
  transform-origin: center;
  translate: -50% -50%;
}
.visit-faq-marker::before { width: 14px; height: 2px; }
.visit-faq-marker::after { width: 2px; height: 14px; transition: transform 0.18s ease; }
.visit-faq-details[open] .visit-faq-marker::after { transform: scaleY(0); }

.visit-faq-panel {
  padding: 0 clamp(1.35rem, 2.2vw, 1.9rem) clamp(1.35rem, 2.2vw, 1.9rem);
}

@media (prefers-reduced-motion: reduce) {
  .visit-faq-marker::after { transition: none; }
}
.visit-q {
  margin: 0 0 1rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 800;
  line-height: 1.25; color: var(--navy);
}
@media (max-width: 48rem) { .visit-faq { grid-template-columns: 1fr; } }


/* --- what happens when I get there ------------------------------- */
.visit-steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.visit-steps > li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.visit-steps > li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 800;
}
.visit-step-copy { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--slate); }

/* One divided panel, matching the Kid Point check-in steps on /kids/
   (.kids-steps--flow). These two sections are the same idea on two pages —
   "here is what happens when you arrive" — so they should look the same.
   The number badge sits in normal flow rather than absolutely positioned, so
   it can't collide with the copy however many lines a step wraps to. */
.visit-steps--flow {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  gap: 0;
  box-shadow: 0 18px 40px -32px rgba(18, 19, 19, 0.5);
}
.visit-steps--flow > li {
  padding: 0 clamp(1.1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--line);
}
.visit-steps--flow > li:first-child { border-left: 0; }
.visit-steps--flow > li::before {
  position: static;
  margin-bottom: 0.9rem;
}

@media (max-width: 62rem) {
  .visit-steps { grid-template-columns: repeat(2, 1fr); }
  /* Vertical rules stop making sense once the steps wrap to a second row. */
  .visit-steps--flow { row-gap: clamp(1.5rem, 3vw, 2rem); }
  .visit-steps--flow > li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 34rem) {
  .visit-steps { grid-template-columns: 1fr; }
  .visit-steps--flow > li { border-left: 0; }
}

.visit-after-steps { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }

.visit-banner {
  aspect-ratio: 16 / 6; border-radius: 10px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 48rem) { .visit-banner { aspect-ratio: 3 / 2; } }

/* --- kids row ----------------------------------------------------- */
.about-pastor-body .visit-lead { margin-top: 1.1rem; }
.about-pastor-body .visit-lines { margin-top: 0; }
.visit-lines + .btn { margin-top: 1.75rem; }

/* --- campus cards: two actions, pinned to the card bottom --------- */
.campus-actions { margin-top: auto; display: grid; gap: 0.5rem; }

/* --- heads-up form ----------------------------------------------- */
.visit-form-card {
  background: #fff; border-radius: 10px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(18, 18, 19, 0.08);
}
.visit-form-note {
  margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--slate);
}
.visit-fields {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 1.75rem;
}
.visit-field { display: flex; flex-direction: column; gap: 0.4rem; }
.visit-field label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
}
.visit-field input,
.visit-field select {
  font-family: var(--font); font-size: 0.95rem; color: var(--ink);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.visit-field input:focus-visible,
.visit-field select:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.visit-form-actions { margin-top: 1.75rem; }

@media (max-width: 40rem) { .visit-fields { grid-template-columns: 1fr; } }
