/* ============================================================
   SEOKWANG CHURCH — styles.css
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --navy-800: #162447;
  --navy-900: #0f1d3a;
  --navy-950: #091226;
  --cream-50:  #faf6ef;
  --cream-100: #f3ead9;
  --cream-200: #e8dcc3;
  --gold-400:  #d4b478;
  --gold-500:  #c9a564;
  --gold-600:  #b08a4f;
  --gold-700:  #8c6c3a;
  --ink-500:   #6a6a6a;
  --ink-700:   #3a3a3a;
  --ink-900:   #1a1a1a;

  --font-sans:  "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", "Times New Roman", serif;

  --max-w-xl:  80rem;  /* 1280px — generous outer cap */
  --max-w-6xl: 72rem;  /* 1152px */
  --max-w-5xl: 64rem;  /* 1024px */
  --max-w-4xl: 56rem;  /* 896px  */
  --max-w-2xl: 42rem;  /* 672px  */
  --px: 1.25rem;       /* horizontal page padding */
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; scroll-padding-top: 4.5rem; height: 100%; }
body  { font-family: var(--font-sans); background: var(--cream-50); color: var(--ink-900);
        min-height: 100%; display: flex; flex-direction: column; line-height: 1.65; }
main  { flex: 1; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
iframe { border: 0; display: block; }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
.font-serif  { font-family: var(--font-serif); }
.font-sans   { font-family: var(--font-sans); }
.text-xs     { font-size: 0.75rem; }
.text-sm     { font-size: 0.875rem; }
.text-base   { font-size: 1rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }
.text-2xl    { font-size: 1.5rem; }
.text-3xl    { font-size: 1.875rem; }
.text-4xl    { font-size: 2.25rem; }
.text-5xl    { font-size: 3rem; }
.tracking-wide    { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.2em; }
.tracking-sermon  { letter-spacing: 0.3em; }
.uppercase   { text-transform: uppercase; }
.italic      { font-style: italic; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.75; }

/* Decorative gold underline rule */
.gold-rule::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold-600);
  margin-top: 0.75rem;
}
.gold-rule-center::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold-600);
  margin: 0.75rem auto 0;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w-6xl);
  margin-inline: auto;
  padding-inline: var(--px);
}
.container--md  { max-width: var(--max-w-5xl); }
.container--4xl { max-width: var(--max-w-4xl); }
.container--2xl { max-width: var(--max-w-2xl); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.87);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-200);
}
.navbar__inner {
  max-width: var(--max-w-6xl);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gold-600);
  transition: color 0.2s;
}
.navbar__logo:hover { color: var(--gold-700); }
.navbar__logo-icon { flex-shrink: 0; }
.navbar__logo-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.navbar__nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  transition: color 0.2s;
  position: relative;
}
.navbar__link:hover { color: var(--navy-900); }
.navbar__link.is-active { color: var(--navy-900); }
.navbar__link.is-active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-600);
}
.navbar__controls { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy-900);
  border: 1px solid var(--cream-200);
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--gold-600); color: var(--gold-700); }
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-right: -0.5rem;
  color: var(--navy-900);
}

/* === MOBILE DRAWER === */
.mobile-drawer {
  position: fixed;
  inset: 4rem 0 0 0;
  z-index: 40;
  background: var(--cream-50);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0;
}
.mobile-drawer__link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-200);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mobile-drawer__link.is-active { color: var(--navy-900); }
.mobile-drawer__dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold-600);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
}
.carousel {
  position: absolute;
  inset: 0;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.carousel__slide.is-active { opacity: 1; }
.hero__duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--gold-500) 100%);
  mix-blend-mode: color;
}
.hero__wash {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 58, 0.55);
}
.hero__vignette-top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 33%;
  background: linear-gradient(to bottom, rgba(9, 18, 38, 0.7), transparent);
}
.hero__vignette-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(243, 234, 217, 0.15) 60%, var(--cream-50));
}
/* Animated rays overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/pattern-rays.svg");
  background-size: 1200px auto;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  animation: ray-drift 18s ease-in-out infinite alternate;
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max-w-4xl);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: 6rem 8rem;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-400);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero__rule {
  width: 3rem;
  height: 1px;
  background: var(--gold-500);
  margin-inline: auto;
  margin-bottom: 1.5rem;
  transform: scaleX(0);
  transform-origin: center;
  animation: rule-grow 0.8s ease 0.5s forwards;
}
.hero__desc {
  color: rgba(243, 234, 217, 0.95);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.75;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
.btn--gold {
  background: var(--gold-600);
  color: #fff;
}
.btn--gold:hover { background: var(--gold-700); }
.btn--outline-light {
  border: 1px solid rgba(243, 234, 217, 0.4);
  color: var(--cream-50);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn--navy {
  background: var(--navy-900);
  color: var(--cream-50);
}
.btn--navy:hover { background: var(--navy-800); }
.btn--outline-navy {
  border: 1px solid var(--cream-200);
  color: var(--navy-900);
}
.btn--outline-navy:hover { border-color: var(--gold-600); color: var(--gold-700); }

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section { padding-block: 5rem; padding-inline: var(--px); }
.section--lg { padding-block: 6rem; }
.section--cream { background: var(--cream-50); }
.section--cream-100 { background: var(--cream-100); }
.section--tinted {
  background: rgba(243, 234, 217, 0.5);
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
.section__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--navy-900);
}

/* ============================================================
   VERSE SECTION (home)
   ============================================================ */
.verse-section { text-align: center; }
.verse-section__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  color: var(--navy-900);
  line-height: 1.65;
  font-style: italic;
}
.verse-section__ref {
  margin-top: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* ============================================================
   SERVICE TIMES (home)
   ============================================================ */
.service-header { text-align: center; margin-bottom: 3rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--cream-200);
}
.service-item {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
.service-item:nth-child(even) { border-right: none; }
.service-item:nth-child(3),
.service-item:nth-child(4) { border-bottom: none; }
.service-item__name {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-size: 1.0625rem;
  line-height: 1.4;
}
.service-item__time {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-500);
  letter-spacing: 0.03em;
}

/* ============================================================
   SERMON SECTION (home + sermons page)
   ============================================================ */
.sermon-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.view-all-link {
  font-size: 0.875rem;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  align-self: flex-start;
}
.view-all-link:hover { color: var(--gold-700); }
.sermon-featured {
  display: grid;
  gap: 2rem;
}
.sermon-video-wrap {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  outline: 1px solid rgba(15, 29, 58, 0.1);
}
.sermon-video-wrap iframe { width: 100%; height: 100%; }
.sermon-meta { padding-top: 0; }
.sermon-meta__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.sermon-meta__sep { margin-inline: 0.5rem; color: var(--cream-200); }
.sermon-meta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-900);
  margin-top: 0.75rem;
  line-height: 1.35;
}
.sermon-meta__pastor {
  font-size: 0.875rem;
  color: var(--ink-500);
  margin-top: 0.25rem;
}

/* === Sermon archive grid === */
.sermon-archive-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.sermon-archive-heading h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-900);
  white-space: nowrap;
}
.sermon-archive-heading__rule { flex: 1; height: 1px; background: var(--cream-200); }
.sermon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
}
.sermon-card { transition: transform 0.4s ease; }
.sermon-card:hover { transform: translateY(-4px); }
.sermon-card__video {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  outline: 1px solid rgba(15, 29, 58, 0.1);
  transition: outline-color 0.4s, box-shadow 0.4s;
}
.sermon-card:hover .sermon-card__video {
  outline-color: rgba(176, 138, 79, 0.5);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.sermon-card__video iframe { width: 100%; height: 100%; }
.sermon-card__date {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.sermon-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-top: 0.5rem;
  line-height: 1.4;
  transition: color 0.2s;
}
.sermon-card:hover .sermon-card__title { color: var(--gold-700); }
.sermon-card__pastor { font-size: 0.75rem; color: var(--ink-500); margin-top: 0.25rem; }

/* ============================================================
   ANNOUNCEMENT SECTION (home + announcements page)
   ============================================================ */
.announcement-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.announcement-card {
  background: var(--cream-50);
  padding: 2rem;
  border-left: 2px solid var(--gold-600);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.5s, border-left-width 0.3s, transform 0.3s;
}
.announcement-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-left-width: 4px;
  transform: translateY(-2px);
}
.announcement-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.announcement-card__badge { color: var(--gold-700); font-weight: 500; }
.announcement-card__date { color: var(--ink-500); }
.announcement-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}
.announcement-card__body { color: var(--ink-700); line-height: 1.75; }

/* === Announcements list page === */
.announcement-list { }
.announcement-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid var(--cream-200);
}
.announcement-item:first-child { border-top: none; }
.announcement-item__aside {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
  padding-top: 0.25rem;
  min-width: 5rem;
}
.announcement-item__pin { font-weight: 500; margin-bottom: 0.25rem; }
.announcement-item__date { color: var(--ink-500); display: block; }
.announcement-item__title {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.announcement-item__body { color: var(--ink-700); line-height: 1.75; }

/* ============================================================
   LOCATION SECTION (home)
   ============================================================ */
.location-grid {
  display: grid;
  gap: 3rem;
}
.location-info__dl { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.location-info__dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.25rem;
}
.location-info__dd { color: var(--ink-700); }
.location-info__dd a:hover { color: var(--gold-700); }
.location-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Photo card with duotone overlay */
.photo-card {
  position: relative;
  min-height: 28rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}
.photo-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}
.photo-card__duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--gold-500) 100%);
  mix-blend-mode: color;
}
.photo-card__wash { position: absolute; inset: 0; background: rgba(15, 29, 58, 0.3); }
.photo-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 18, 38, 0.85), transparent 60%);
}
.photo-card__text {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2rem;
  color: var(--cream-50);
}
.photo-card__service-label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-400);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.photo-card__service-time {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.photo-card__rule { width: 2.5rem; height: 1px; background: var(--gold-500); margin-bottom: 1.25rem; }
.photo-card__welcome { color: rgba(243, 234, 217, 0.9); font-size: 0.875rem; line-height: 1.75; max-width: 22rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { max-width: var(--max-w-2xl); margin-inline: auto; padding-inline: var(--px); padding-block: 4rem 5rem; }
.contact-intro { text-align: center; margin-bottom: 3rem; }
.contact-intro__desc { margin-top: 1.5rem; color: var(--ink-700); line-height: 1.75; max-width: 36rem; margin-inline: auto; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(106, 106, 106, 0.6); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 1px var(--gold-600);
}
.form-textarea { resize: none; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6a6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-submit {
  width: 100%;
  background: var(--navy-900);
  color: var(--cream-50);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding: 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, opacity 0.2s;
}
.form-submit:hover:not(:disabled) { background: var(--navy-800); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note {
  font-size: 0.75rem;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.7;
}
.form-error { font-size: 0.875rem; color: #b91c1c; }
.form-space { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-success {
  background: var(--cream-100);
  border-left: 2px solid var(--gold-600);
  padding: 2.5rem;
  text-align: center;
}
.contact-success__icon { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold-700); margin-bottom: 0.75rem; }
.contact-success__title { font-family: var(--font-serif); font-size: 1.375rem; color: var(--navy-900); }
.contact-success__sub { font-size: 0.875rem; margin-top: 0.75rem; color: var(--ink-700); }
.contact-success__btn {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.contact-success__btn:hover { color: var(--gold-700); }
.hidden { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--cream-100);
  border-top: 1px solid var(--cream-200);
  color: var(--ink-700);
  margin-top: auto;
}
.footer__inner {
  max-width: var(--max-w-6xl);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: 3.5rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.625rem; color: var(--gold-700); }
.footer__brand-name { font-family: var(--font-serif); font-size: 1.0625rem; color: var(--navy-900); }
.footer__tagline { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-700); max-width: 20rem; }
.footer__col-title {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.75rem;
}
.footer__service-list { display: flex; flex-direction: column; gap: 0.375rem; }
.footer__service-item { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.footer__service-name { color: var(--ink-900); }
.footer__service-time { color: var(--ink-500); }
.footer__contact-list { display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; }
.footer__contact-list a:hover { color: var(--gold-700); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-200);
  font-size: 0.75rem;
  color: var(--ink-500);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__soli {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-700);
}

/* ============================================================
   PAGE HEADERS (inner pages)
   ============================================================ */
.page-header { padding-block: 4rem 5rem; padding-inline: var(--px); }
.page-header__inner {
  max-width: var(--max-w-6xl);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-header__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-header__right { align-self: flex-start; }
.page-header__desc { margin-top: 1.25rem; color: var(--ink-500); max-width: 28rem; }
.page-inner { max-width: var(--max-w-6xl); margin-inline: auto; padding-inline: var(--px); padding-bottom: 5rem; }
.page-inner--4xl { max-width: var(--max-w-4xl); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes ray-drift {
  from { transform: translateX(-12px) scale(1);   opacity: 0.14; }
  to   { transform: translateX(12px)  scale(1.03); opacity: 0.22; }
}
@keyframes rule-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fade-up 0.9s ease forwards; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.35s; }
.fade-up-4 { animation-delay: 0.5s; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children — delay via --stagger-delay CSS var set inline */
.stagger-left {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity  0.7s ease var(--stagger-delay, 0ms),
    transform 0.7s ease var(--stagger-delay, 0ms);
}
.reveal.is-visible .stagger-left { opacity: 1; transform: translateX(0); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
}
.sr-only {
  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 */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy-900);
  color: var(--cream-50);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.875rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .hero__cta { flex-direction: row; }
  .form-row  { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .navbar__nav { display: flex; }
  .menu-btn    { display: none; }

  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-item { border-bottom: none; }
  .service-item:nth-child(even) { border-right: 1px solid var(--cream-200); }
  .service-item:last-child { border-right: none; }

  .sermon-featured { grid-template-columns: 3fr 2fr; }
  .sermon-meta { padding-top: 1.5rem; }

  .sermon-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .view-all-link { align-self: auto; }

  .location-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .photo-card    { min-height: 30rem; }

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

  .page-header__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .page-header__right { align-self: auto; }
}

@media (min-width: 1024px) {
  .sermon-grid { grid-template-columns: repeat(3, 1fr); }
  .announcement-item { gap: 2.5rem; }
  .announcement-item__aside { min-width: 6rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero__rule   { animation: none; transform: scaleX(1); }
  .fade-up,
  .reveal,
  .stagger-left {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .carousel__slide { transition: none; }
}
