/* ==========================================================================
   Risen Savior Lutheran Church — shared stylesheet
   Piedmont, Oklahoma  |  LCMS
   Palette: navy #1a2d4f · gold #b8922a · cream #f2ede6 · sky #a8c8e0
   Type:    Cinzel (headings) · EB Garamond (body) · Cormorant Garamond (verse)
   ========================================================================== */

:root {
  --navy: #1a2d4f;
  --navy-light: #243d6a;
  --navy-deep: #0f1c30;
  --gold: #b8922a;
  --gold-light: #c9a96e;
  --gold-pale: #e8d5a3;
  --sky: #a8c8e0;
  --sky-light: #d4e8f5;
  --cream: #f2ede6;
  --cream-dark: #e8e0d4;
  --stone: #8b7355;
  --ink: #2a3f60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--navy);
  font-size: 18px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); }

/* ----- Skip link (accessibility) ----------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy);
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ----- Navigation -------------------------------------------------------- */
nav.site-nav {
  background: var(--navy);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.nav-brand {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-brand:hover { color: var(--gold-pale); }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  color: var(--sky);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.5rem 0.6rem;
  display: block;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--gold-light); }
.nav-links a[aria-current="page"] { color: var(--gold); border-bottom: 2px solid var(--gold); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gold-light); margin: 5px 0; transition: all 0.3s;
}
.nav-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--sky);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(168,200,224,0.12);
  display: block;
}
.nav-mobile a:hover { color: var(--gold-light); background: rgba(255,255,255,0.04); }
.nav-mobile a[aria-current="page"] { color: var(--gold); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ----- Notice banner ----------------------------------------------------- */
.notice-banner {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 0.8rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ----- Home hero --------------------------------------------------------- */
.hero {
  background: var(--navy);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, #243d6a 0%, var(--navy) 70%);
}
.hero > * { position: relative; }
.hero-ornament {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.hero-ornament::before, .hero-ornament::after {
  content: ''; height: 1px; width: 40px; background: var(--gold); opacity: 0.6;
}
.hero-logo {
  width: 150px; height: 150px; border-radius: 50%;
  border: 2px solid var(--gold);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-light);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .h1-main {
  display: block;
  font-family: 'Cinzel', serif; color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500;
  letter-spacing: 0.04em; line-height: 1.2; margin-bottom: 0.4rem;
}
.hero h1 .h1-sub {
  display: block;
  font-family: 'Cinzel', serif; color: var(--sky);
  font-size: clamp(0.85rem, 2vw, 1.05rem); font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.hero-divider { width: 80px; height: 1px; background: var(--gold); margin: 0 auto 1.5rem; }
.hero-verse {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-pale);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  max-width: 600px; margin: 0 auto 0.4rem;
}
.hero-ref { color: var(--sky); font-size: 0.85rem; letter-spacing: 0.12em; }

/* Service strip — service time + address above the fold */
.hero-service {
  margin: 2rem auto 0;
  max-width: 640px;
  border-top: 1px solid rgba(184,146,42,0.5);
  border-bottom: 1px solid rgba(184,146,42,0.5);
  padding: 1.25rem 1rem;
}
.hero-service .hs-time {
  font-family: 'Cinzel', serif; color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.25rem); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.4rem;
}
.hero-service .hs-where { color: var(--sky-light); font-size: 0.98rem; line-height: 1.6; }
.hero-service .hs-where a { color: var(--sky-light); }
.hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ----- Interior page header ---------------------------------------------- */
.page-hero {
  background: var(--navy);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, #243d6a 0%, var(--navy) 75%);
}
.page-hero > * { position: relative; }
.page-hero h1 {
  font-family: 'Cinzel', serif; color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 500;
  letter-spacing: 0.03em; line-height: 1.25;
}
.page-hero .hero-divider { margin: 1.25rem auto; }
.page-hero-sub {
  color: var(--sky-light); font-size: 1.02rem;
  max-width: 620px; margin: 0 auto; line-height: 1.75;
}

/* ----- Breadcrumb -------------------------------------------------------- */
.breadcrumb {
  max-width: 900px; margin: 0 auto; padding: 1rem 2rem 0;
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone);
}
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--navy); }

/* ----- Sections ---------------------------------------------------------- */
section { padding: 3.5rem 2rem; max-width: 900px; margin: 0 auto; }
.section-label {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
h2.section-title, h3.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 500;
  color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3;
}
h3.sub-title {
  font-family: 'Cinzel', serif; font-size: 1.02rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--navy);
  margin: 2rem 0 0.5rem;
}
.rule { width: 50px; height: 2px; background: var(--gold); margin: 1rem 0 1.75rem; }
.rule.centered { margin: 1rem auto 1.75rem; }
.section-body { font-size: 1.05rem; color: var(--ink); line-height: 1.85; }
.section-body p { margin-bottom: 1.2rem; }
.section-body ul { margin: 0 0 1.2rem 1.25rem; }
.section-body li { margin-bottom: 0.5rem; }
.section-body em.verse {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--stone);
}
.full-divider { border: none; border-top: 1px solid var(--cream-dark); max-width: 900px; margin: 0 auto; }

/* ----- Buttons ----------------------------------------------------------- */
.btn-gold, .btn-outline, .btn-navy {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 0.85rem 2rem; cursor: pointer;
  text-decoration: none; display: inline-block; border-radius: 0;
  transition: all 0.2s; font-weight: 600; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--sky-light); border-color: var(--sky); }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: var(--cream); }
.btn-navy.primary { background: var(--navy); color: var(--cream); }
.btn-navy.primary:hover { background: var(--navy-light); }

/* ----- Card grids -------------------------------------------------------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.card {
  border: 1px solid var(--cream-dark); border-left: 3px solid var(--gold);
  padding: 1.5rem; background: #fff;
}
.card h3, .card h4 {
  font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--navy); margin-bottom: 0.6rem; text-transform: uppercase;
}
.card p { font-size: 0.95rem; color: #3a4f70; line-height: 1.7; margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.card a.card-link:hover { color: var(--gold); }

/* ----- Highlight / info panel -------------------------------------------- */
.panel-navy {
  background: var(--navy); border: 1px solid var(--gold);
  padding: 2.25rem; text-align: center; margin-top: 2rem;
}
.panel-navy .panel-label {
  font-family: 'Cinzel', serif; color: var(--gold); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.panel-navy .panel-headline {
  font-family: 'Cinzel', serif; color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 500;
  letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.panel-navy .panel-time {
  font-family: 'Cormorant Garamond', serif; color: var(--gold-pale);
  font-size: 1.25rem; font-style: italic; margin-bottom: 1.25rem;
}
.panel-divider { width: 50px; height: 1px; background: var(--gold); margin: 0 auto 1.25rem; opacity: 0.6; }
.panel-navy .panel-eyebrow {
  font-family: 'Cinzel', serif; color: var(--sky); font-size: 9px;
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.panel-navy .panel-venue {
  font-family: 'Cinzel', serif; color: var(--gold-light);
  font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 0.4rem;
}
.panel-navy .panel-address { color: var(--sky-light); font-size: 0.95rem; line-height: 1.65; }
.panel-navy .panel-address a { color: var(--sky-light); }
.panel-navy .panel-note {
  color: rgba(168,200,224,0.75); font-size: 0.9rem; font-style: italic;
  margin-top: 1.25rem; line-height: 1.7;
}

.panel-cream {
  background: #fff; border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--sky); padding: 1.5rem; margin: 2rem 0;
}
.panel-cream p { font-size: 0.98rem; color: var(--ink); margin-bottom: 0.75rem; }
.panel-cream p:last-child { margin-bottom: 0; }

/* Placeholder marker — remove these blocks once real content is in */
.placeholder {
  background: #fffbe8; border: 1px dashed var(--gold);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: 0.95rem; color: #6b5a1f;
}
.placeholder strong { font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-bottom: 0.35rem; }

/* ----- Service times table ----------------------------------------------- */
.times-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; background: #fff; }
.times-table caption {
  text-align: left; font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 0.75rem;
}
.times-table th, .times-table td {
  border: 1px solid var(--cream-dark); padding: 0.9rem 1rem;
  text-align: left; font-size: 1rem; color: var(--ink);
}
.times-table thead th {
  font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--cream-dark); color: var(--navy);
}
.times-table tbody th {
  font-family: 'EB Garamond', Georgia, serif; font-weight: 400;
  color: var(--navy); background: #fff; width: 45%;
}
.times-table td strong { color: var(--navy); }

/* ----- Map --------------------------------------------------------------- */
.map-frame { margin-top: 2rem; border: 1px solid var(--cream-dark); line-height: 0; }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ----- Directions -------------------------------------------------------- */
.directions { margin-top: 2rem; }
.directions .direction-block {
  border-top: 1px solid var(--cream-dark); padding: 1.25rem 0;
}
.directions .direction-block:last-child { border-bottom: 1px solid var(--cream-dark); }
.directions h3 {
  font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem;
}
.directions p { font-size: 1rem; color: var(--ink); line-height: 1.8; }

/* ----- Contact form (Zoho) ----------------------------------------------- */
.contact-block { background: var(--navy); color: var(--cream); padding: 3.5rem 2rem; text-align: center; }
.contact-block .section-label { color: var(--gold-light); }
.contact-block h2.section-title { color: #fff; }
.contact-block .rule { background: var(--gold); margin: 1rem auto 1.75rem; }
.contact-block > p { color: var(--sky-light); max-width: 520px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.8; }
.contact-form { max-width: 520px; margin: 0 auto; display: grid; gap: 1rem; text-align: left; }
.contact-form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .field-group { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-form label {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sky); display: block; margin-bottom: 0.3rem;
}
.contact-form label em { color: var(--gold); font-style: normal; margin-left: 2px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(168,200,224,0.2);
  border-bottom: 1px solid rgba(168,200,224,0.5);
  color: #fff; padding: 0.75rem 1rem;
  font-family: 'EB Garamond', Georgia, serif; font-size: 1rem;
  border-radius: 0; outline: none; transition: border-color 0.2s, background 0.2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(168,200,224,0.35); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.1); }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form-submit { text-align: center; margin-top: 0.5rem; }
.form-success {
  display: none; text-align: center; padding: 1.5rem;
  border: 1px solid var(--gold); color: var(--gold-pale);
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  font-style: italic; margin-top: 1rem;
}
.form-error {
  display: none; text-align: center; padding: 1rem;
  border: 1px solid var(--gold-light); color: var(--gold-pale);
  font-size: 0.95rem; margin-top: 1rem;
}
@media (max-width: 500px) { .contact-form .name-row { grid-template-columns: 1fr; } }

/* ----- Giving ------------------------------------------------------------ */
.give-block {
  background: var(--cream-dark); padding: 3rem 2rem; text-align: center;
  border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
}
.give-block .section-label { color: var(--stone); }
.give-block h2.section-title { color: var(--navy); }
.give-block .rule { margin: 1rem auto 1.75rem; }
.give-block p { max-width: 540px; margin: 0 auto 1.25rem; color: var(--ink); font-size: 1rem; line-height: 1.8; }
.give-options { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.give-district-note { font-size: 0.85rem; color: var(--stone); font-style: italic; margin-top: 0.75rem; }

/* ----- CTA strip --------------------------------------------------------- */
.cta-strip { background: var(--navy); padding: 3rem 2rem; text-align: center; }
.cta-strip h2 {
  font-family: 'Cinzel', serif; color: #fff; font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: 0.04em; margin-bottom: 0.75rem;
}
.cta-strip p { color: var(--sky-light); max-width: 560px; margin: 0 auto 1.75rem; font-size: 1rem; }
.cta-strip .hero-cta { margin-top: 0; }

/* ----- Footer ------------------------------------------------------------ */
footer.site-footer {
  background: var(--navy-deep); color: var(--sky);
  text-align: center; padding: 2.75rem 2rem 2rem;
  border-top: 2px solid var(--gold);
}
footer.site-footer .footer-name {
  font-family: 'Cinzel', serif; color: var(--gold-light);
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
footer.site-footer address {
  font-style: normal; font-size: 1rem; line-height: 1.8;
  color: var(--sky-light); margin-bottom: 1.25rem;
}
footer.site-footer address a { color: var(--sky-light); text-decoration: none; border-bottom: 1px solid rgba(168,200,224,0.35); }
footer.site-footer address a:hover { color: var(--gold-light); }
footer.site-footer .footer-nav { margin-bottom: 1.25rem; }
footer.site-footer .footer-nav a {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sky); text-decoration: none;
  padding: 0 0.6rem; display: inline-block; line-height: 2;
}
footer.site-footer .footer-nav a:hover { color: var(--gold-light); }
footer.site-footer .footer-social a {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-light); text-decoration: none;
  padding: 0 0.6rem;
}
footer.site-footer .footer-social { margin-bottom: 1rem; }
footer.site-footer .footer-lcms {
  color: rgba(168,200,224,0.6); font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  margin-top: 1rem; line-height: 1.9;
}

/* ----- Small screens ----------------------------------------------------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 2.75rem 1.25rem; }
  .hero { padding: 2.5rem 1.25rem 2.5rem; }
  .page-hero { padding: 2.25rem 1.25rem 2rem; }
  .breadcrumb { padding: 1rem 1.25rem 0; }
  .panel-navy { padding: 1.5rem 1.25rem; }
  .times-table th, .times-table td { padding: 0.7rem 0.6rem; font-size: 0.95rem; }
}
