/* ===========================================================================
   San Diego Partnership Churches
   Clean, dependency-free rebuild of the original landing page.
   =========================================================================== */

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

:root {
  --ink: #000;
  --line: #000;
  --card: #ffffff;
  --hover: #efefef;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

html { font-size: 19px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Assistant', sans-serif;
  color: var(--ink);
  line-height: 1.25;
  -webkit-text-size-adjust: 100%;
  word-wrap: break-word;

  /* Soft, washed-out background photo — matches the original */
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url('../images/bg.jpg') center / cover no-repeat fixed #fff;
}

/* ----- Layout --------------------------------------------------------------*/

.page {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 0.875rem;
}

.inner {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.inner > * + * { margin-top: 1rem; }

/* ----- Header --------------------------------------------------------------*/

.logo {
  width: 15rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.title {
  margin: 0.75rem auto 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 0 0.5rem #fff;
}

.tagline {
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

.divider {
  border: 0;
  width: 13rem;
  height: 1px;
  margin: 1.25rem auto;
  background: var(--line);
}

.section-label {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ----- Accordion (church list) --------------------------------------------*/

.accordion {
  width: 100%;
  max-width: 500px;
  margin: 0.75rem auto 0;
  padding: 1rem;
  background: var(--card);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.accordion-item + .accordion-item { margin-top: 0.25rem; }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 200ms ease-in-out;
}

.accordion-header:hover { background: var(--hover); }
.accordion-header:focus-visible { outline: 2px solid #2a6; outline-offset: 2px; }

.accordion-caret {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 1rem;
  background-image: linear-gradient(to top right, transparent 50%, #727272 50%);
  transform: rotate(-45deg);
  transition: transform 250ms ease;
}

.accordion-item.is-open .accordion-caret { transform: rotate(135deg); }

.accordion-body {
  height: 0;
  overflow: hidden;
  transition: height 350ms ease;
}

.accordion-content {
  padding: 0 1rem 1rem;
  line-height: 1.5;
}

.accordion-content a { color: inherit; }

/* ----- Map -----------------------------------------------------------------*/

.map-label { margin-top: 1.5rem; }

#map {
  width: 100%;
  max-width: 500px;
  height: 360px;
  margin: 0.75rem auto 0;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  background: #e8e8e8;
}

/* Popups */
.leaflet-popup-content { font-family: 'Assistant', sans-serif; line-height: 1.45; }
.leaflet-popup-content strong { font-size: 1.02rem; }
.leaflet-popup-content a { color: #1a5; }

/* ----- "Not in San Diego?" -------------------------------------------------*/

.elsewhere-label { margin-bottom: 0.75rem; }

.button {
  display: inline-block;
  padding: 0.78rem 1.25rem;
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.button:hover { background: #000; color: #fff; }

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

@media (max-width: 480px) {
  html { font-size: 18px; }
  .title { font-size: 2rem; }
  .button { display: block; }
}

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