/* First Christian Church of Yucca Valley — site styles */
:root {
  --plum: #512146;
  --plum-dark: #3a1833;
  --plum-soft: #6b2d5c;
  --gold: #ddb533;
  --gold-dark: #c49a28;
  --cream: #faf7f2;
  --warm-white: #fffdf9;
  --text: #1f1a1c;
  --text-muted: #5c5256;
  --border: #e8e0d8;
  --max: 1100px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(81, 33, 70, 0.12);
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-soft); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--plum-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.35em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--plum-dark);
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header — white so logo reads cleanly */
.site-header {
  background: #ffffff;
  color: var(--plum-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(81, 33, 70, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link img { height: 60px; width: auto; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--plum);
  color: var(--plum);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--plum);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--gold-dark);
  background: rgba(221, 181, 51, 0.15);
}
.main-nav a[aria-current="page"] {
  color: var(--plum-dark);
  background: rgba(81, 33, 70, 0.08);
}

.main-nav a.nav-cta {
  background: var(--gold);
  color: var(--plum-dark);
  margin-left: 0.25rem;
}
.main-nav a.nav-cta:hover {
  background: var(--gold-dark);
  color: #fff;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(81, 33, 70, 0.10);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .main-nav a {
    display: block;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    color: var(--plum);
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    color: var(--plum-dark);
    background: rgba(221, 181, 51, 0.18);
  }
  .main-nav a.nav-cta { margin-left: 0; text-align: center; color: var(--plum-dark); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn-primary {
  background: var(--gold);
  color: var(--plum-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--plum-dark); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: #fff; color: var(--plum); }
.btn-outline {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--plum-dark) 0%, var(--plum) 55%, var(--plum-soft) 100%);
  color: #fff;
  padding: 3.5rem 0 3.75rem;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .lede {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 38rem;
  opacity: 0.95;
  margin-bottom: 0.5em;
}
.hero .verse {
  font-style: italic;
  opacity: 0.88;
  max-width: 36rem;
  margin-bottom: 0.25em;
}
.hero .verse cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  margin-top: 0.35em;
  opacity: 0.85;
}
.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 1.05rem;
}
.hero-meta strong { color: var(--gold); font-weight: 700; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--cream); }
.section-plum {
  background: var(--plum);
  color: #fff;
}
.section-plum h2, .section-plum h3 { color: #fff; }
.section-plum a { color: var(--gold); }
.section-header {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.section-header p { color: var(--text-muted); }
.section-plum .section-header p { color: rgba(255,255,255,0.85); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.75rem;
}
.card a.card-link:hover { text-decoration: underline; }

.mission-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: center;
}
.mission-strip .pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(221,181,51,0.45);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}
.mission-strip .pill strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

/* Tables */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schedule-table th {
  background: var(--plum);
  color: #fff;
  font-weight: 600;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: rgba(81,33,70,0.03); }

@media (max-width: 640px) {
  .schedule-table, .schedule-table thead, .schedule-table tbody,
  .schedule-table th, .schedule-table td, .schedule-table tr { display: block; }
  .schedule-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .schedule-table tr { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .schedule-table td {
    border: none;
    padding: 0.25rem 1rem;
  }
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--plum);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.staff-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.staff-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}
.staff-card .role {
  color: var(--plum-soft);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.belief-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.belief-list li {
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  margin: 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.belief-list strong {
  display: block;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* Quote */
.quote-block {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.quote-block blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--plum-dark);
  line-height: 1.5;
}
.quote-block cite {
  font-style: normal;
  font-weight: 700;
  color: var(--plum);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--plum-dark);
}
.req { color: #a1284a; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(221,181,51,0.55);
  border-color: var(--gold);
}
textarea { min-height: 140px; resize: vertical; }
.form-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #1b5e20;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }

/* Steps / give */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--plum);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.zelle-box {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.zelle-box .email {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--plum);
  word-break: break-all;
}
.fund-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.fund-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--plum);
  text-align: center;
  margin: 0;
}

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.sermon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sermon-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--plum-dark), var(--plum-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
}
.sermon-card .body { padding: 1rem 1.15rem 1.25rem; }
.sermon-card h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.sermon-card a { text-decoration: none; }
.sermon-card a:hover h3 { color: var(--plum-soft); text-decoration: underline; }

/* Two column */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.2fr 1fr; }
  .split.reverse { grid-template-columns: 1fr 1.2fr; }
  .split.reverse > :first-child { order: 2; }
}

.info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.info-box h3 { margin-top: 0; }
.info-box dl { margin: 0; }
.info-box dt {
  font-weight: 700;
  color: var(--plum);
  margin-top: 0.85rem;
}
.info-box dt:first-child { margin-top: 0; }
.info-box dd { margin: 0.2rem 0 0; color: var(--text-muted); }

/* Page banner */
.page-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}
.page-banner p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--plum-dark);
  color: rgba(255,255,255,0.88);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.tag {
  display: inline-block;
  background: rgba(221,181,51,0.2);
  color: var(--plum-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.section-plum .tag {
  background: rgba(221,181,51,0.25);
  color: var(--gold);
}


/* Map embed */
.map-embed {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-list details {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq-list summary {
  font-weight: 700;
  color: var(--plum-dark);
  cursor: pointer;
}
.faq-list details[open] summary { margin-bottom: 0.5rem; }
.faq-list details p { margin-bottom: 0; color: var(--text-muted); }
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  margin: 0 0 0.85rem;
  font-style: italic;
  color: var(--text);
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--plum);
  font-size: 0.95rem;
}
.logo-link img.logo-photo {
  height: 60px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

/* Hero Sunday callout */
.hero-callout {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}
.hero-callout-label {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85em;
}
.hero-callout-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35em;
  color: #fff;
  line-height: 1;
}

/* Staff photo */
.staff-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

/* About family photo */
.about-photo-wrap {
  margin: 0;
}
.about-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Board members */
.board-list p {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.board-list p:last-child { margin-bottom: 0; }
