/* ==========================================================================
   Holy Redeemer Lutheran Church — shared stylesheet
   ========================================================================== */

:root {
  --maroon: #7a2733;
  --maroon-dark: #5a1c25;
  --maroon-darker: #3f1319;
  --gold: #c9a857;
  --gold-light: #e8d6a0;
  --cream: #faf6ef;
  --cream-dark: #f0e8d8;
  --charcoal: #2b2420;
  --text-body: #4a423c;
  --text-light: #ffffff;
  --border-soft: #e6dcc8;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(63, 19, 25, 0.12);
  --shadow-card: 0 4px 18px rgba(43, 36, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--maroon);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--maroon-darker);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--maroon);
  margin-bottom: 0.9em;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-head.left {
  margin: 0 0 2.6rem;
  text-align: left;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--maroon-darker);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--maroon-darker);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}

.btn-maroon {
  background: var(--maroon);
  color: var(--text-light);
  border-color: var(--maroon);
}

.btn-maroon:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: var(--text-light);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.97);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: saturate(180%) blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--maroon-darker);
}

.brand:hover {
  color: var(--maroon-darker);
}

.brand-logo {
  height: 72px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--maroon-darker);
}

.brand-text .sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}

@media (max-width: 480px) {
  .brand-text { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--maroon-darker);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, rgba(63,19,25,0.55), rgba(90,28,37,0.4)),
              url("../images/church-exterior.jpg") center/cover no-repeat;
  color: var(--text-light);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 90px;
  width: 100%;
}

.hero .eyebrow {
  color: var(--gold-light);
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

.hero h1 {
  color: #fff;
  max-width: 780px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  max-width: 620px;
  color: var(--gold-light);
  margin-bottom: 1em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 600px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

.page-hero {
  position: relative;
  padding: 130px 0 70px;
  background: linear-gradient(160deg, var(--overlay-1, rgba(63,19,25,0.88)), var(--overlay-2, rgba(90,28,37,0.8))), var(--bg-image, none) center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
}

.page-hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.page-hero .eyebrow { color: var(--gold-light); text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.page-hero p { color: rgba(255,255,255,0.95); max-width: 640px; margin: 0 auto; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }

/* ---------------- Service times strip ---------------- */

.times-strip {
  background: var(--maroon-darker);
  color: var(--text-light);
  padding: 26px 0;
}

.times-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.time-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.time-item .label {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.time-item .value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

/* ---------------- Cards / Grids ---------------- */

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  border-top: 3px solid var(--gold);
}

.card h3 { margin-bottom: 0.4em; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split.reverse .img-col { order: 2; }

/* ---------------- Photo strip ---------------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.photo-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ---------------- Quote / verse ---------------- */

.verse-block {
  text-align: center;
  padding: 60px 24px;
  background: var(--maroon);
  color: var(--text-light);
}

.verse-block blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  max-width: 760px;
  margin: 0 auto 0.5em;
}

.verse-block cite {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--maroon-darker);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1em;
}

.footer-grid a {
  color: rgba(255,255,255,0.85);
}

.footer-grid a:hover { color: var(--gold-light); }

.wels-badge {
  display: inline-block;
  margin-top: 14px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.wels-badge img {
  height: 34px;
  width: auto;
  display: block;
}

.wels-badge:hover {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--maroon-darker);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 5px;
}

.footer-links li,
.footer-contact li {
  list-style: none;
  margin-bottom: 0.6em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

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

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 0;
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}

.calendar-frame {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}

@media (max-width: 600px) {
  .calendar-frame { height: 500px; }
}

/* ---------------- Contact info list ---------------- */

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.info-list .ico {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 28px;
}

.info-list strong {
  display: block;
  color: var(--maroon-darker);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ---------------- Belief / list icons ---------------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding: 0.4em 0 0.4em 2em;
}

.check-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------------- FAQ ---------------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--gold);
  padding: 6px 28px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  margin: 0 -28px;
  padding-left: 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--maroon-darker);
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 14px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
}

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

.faq-item p {
  margin: 0 0 20px;
}

/* ---------------- Updated note (seasonal content) ---------------- */

.updated-note {
  display: block;
  font-size: 0.78rem;
  font-style: italic;
  color: #9a8f80;
  margin-top: 0.6em;
}

/* ---------------- Placeholder note (for missing images) ---------------- */

.img-note {
  font-size: 0.72rem;
  color: #9a8f80;
  text-align: center;
  margin-top: 4px;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .img-col { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 97px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-card);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-cta .btn-maroon { display: none; }

  .nav-toggle { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 220px; }
  .times-strip .container { flex-direction: column; align-items: center; text-align: center; }
}
