/* =========================================================
   Hunt Valley Church Worship — Auditions
   Brand tokens, layout, and components.
   ========================================================= */

:root {
  /* Palette matched to huntvalleychurch.org: signature blue #408FDE for
     links/buttons/accents, navy #4E5E7D as the deep supporting tone. */
  --brand:       #408FDE;
  --brand-dark:  #2F77C2;
  --navy:        #4E5E7D;
  --navy-deep:   #3D4A63;
  --blue-light:  #7FB0E8;
  --blue-pale:   #C6D6F5;
  --ink:         #26313C;
  --muted:       #5B6472;
  --bg:          #FFFFFF;
  --bg-alt:      #FAFAFA;
  --line:        #EAEAEA;
  --radius:      14px;
  --shadow:      0 10px 30px rgba(63, 74, 99, 0.08);
  --maxw:        920px;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
}

h3 { font-weight: 700; }

p { margin: 0 0 1em; }

a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover { color: var(--brand-dark); }

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

ul, ol { margin: 0; padding: 0; }

/* Visible, on-brand focus state everywhere */
:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -50px;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-narrow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-head {
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover {
  background: var(--blue-pale);
  color: var(--brand-dark);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brand); }

.btn-start {
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--maxw);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.5em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: cover;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner p {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Before you begin ---------- */
.note-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Journey timeline ---------- */
.timeline {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.75rem;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  /* connecting line */
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -2.75rem;
  width: 2px;
  background: var(--blue-light);
}

.timeline-step:last-child::before { display: none; }

.step-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.step-body h3 {
  margin-bottom: 0.35em;
  font-size: 1.25rem;
}

.step-body p {
  color: var(--muted);
  margin: 0;
}

.step-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.step-cta:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .timeline-step {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }
  .step-badge {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .timeline-step::before {
    left: 21px;
    top: 44px;
    bottom: -2.75rem;
  }
}

/* ---------- Songs ---------- */
.songs-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 700px;
}

.songs-list-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  margin: 1.75rem 0;
}

.songs-list-card h3 {
  margin-bottom: 0.2em;
  font-size: 1.1rem;
}

.songs-list-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.1em;
}

.songs-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.songs-list li {
  padding: 0.75rem 1rem;
  background: var(--blue-pale);
  border-radius: 10px;
  color: var(--navy-deep);
  font-weight: 700;
}

.songs-pco-note {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 700px;
}

/* ---------- FAQ ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--navy-deep);
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.05rem;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.15s ease;
}

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

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

/* ---------- Start / call to action ---------- */
.start-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.start-cta {
  margin: 0 0 2.5rem;
}

.form-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.req {
  color: var(--navy);
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--navy-deep);
}

.field-helper {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -0.1rem 0 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--blue-light);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-pale);
}

.field textarea { resize: vertical; }

.field input:invalid.touched,
.field textarea:invalid.touched {
  border-color: #c0574f;
}

.field-honeypot {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  min-height: 1.5em;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-status[data-state="error"] { color: #a5433a; }
.form-status[data-state="sending"] { color: var(--muted); }

.btn-submit {
  width: 100%;
}

.confirmation-card {
  text-align: center;
  padding: 2rem 1rem;
}

.confirmation-card h3 {
  font-size: 1.4rem;
}

.confirmation-card p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.upload-panel {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.upload-panel h3 {
  margin-bottom: 0.5em;
}

.upload-panel p {
  color: var(--navy-deep);
  opacity: 0.85;
  margin-bottom: 1.5em;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-upload {
  width: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 3rem 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-org {
  font-weight: 700;
  margin: 0;
}

.footer-contact a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-contact {
  margin: 0;
  opacity: 0.9;
}
