:root {
  --ink-950: #081228;
  --ink-900: #0d1b3d;
  --ink-800: #132b59;
  --ink-700: #1a3a73;
  --ink-600: #2756a3;
  --paper-50: #f4f8ff;
  --paper-100: #e9f1ff;
  --paper-200: #d4e4ff;
  --cream-50: #fbf7ef;
  --cream-100: #f5ecd9;
  --accent-gold: #d69a2d;
  --accent-cyan: #5fd3f3;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(8, 18, 40, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: var(--ink-600);
}

a:hover,
a:focus {
  color: var(--ink-700);
}

.site-header {
  position: relative;
  z-index: 20;
}

.top-bar {
  background: silver;
  border-bottom: 1px solid rgba(19, 43, 89, 0.15);
}

.top-bar-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.9rem;
}

.top-bar a {
  display: inline-flex;
  color: var(--ink-800);
}

.top-bar a:hover,
.top-bar a:focus {
  color: var(--ink-600);
}

.top-bar-icon {
  width: 20px;
  height: 20px;
}

.brand-bar {
  background: var(--white);
  border-bottom: 1px solid var(--paper-200);
  transition: padding 0.2s ease;
}

.brand-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.brand-wrap h1 {
  margin: 0;
  font-size: 2.6rem;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  transition: font-size 0.2s ease;
}

.brand-wrap p {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
  overflow: hidden;
  max-height: 1.2rem;
  transition: max-height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
  opacity: 1;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

body.is-scrolled .brand-wrap {
  padding: 0.6rem 1rem;
}

body.is-scrolled .brand-wrap h1 {
  font-size: 1.6rem;
}

body.is-scrolled .brand-wrap p {
  max-height: 0;
  margin: 0;
  opacity: 0;
}

.main-nav {
  background: var(--paper-200);
  border-bottom: 1px solid rgba(19, 43, 89, 0.15);
}

.main-nav-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.main-nav a {
  display: block;
  text-decoration: none;
  text-align: center;
  background: transparent;
  padding: 0.54rem 0.75rem;
  color: var(--ink-800);
  font-weight: 600;
  border-top: 1.8px solid transparent;
  border-bottom: 1.8px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--ink-900);
  border-top-color: var(--ink-900);
  border-bottom-color: var(--ink-900);
}


main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1rem;
}

.hero,
.card,
.form-card {
  position: relative;
  background: var(--cream-50);
  padding: 1.6rem 1.4rem;
}

.hero::before,
.card::before,
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--accent-gold);
}

.hero h2,
section h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-top: 0;
  color: var(--ink-900);
}

section h3 {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-top: 0;
  color: var(--ink-900);
}

.scripture {
  position: relative;
  margin: 1rem 1.5rem 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--white);
}

.scripture::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--ink-600);
}

.scripture p {
  margin: 0 0 0.6rem;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-800);
}

.scripture p:last-of-type {
  margin-bottom: 0;
}

.scripture .verse-num {
  font-size: 0.7rem;
  font-weight: 700;
  font-style: normal;
  font-family: "Source Sans 3", Arial, sans-serif;
  vertical-align: top;
  margin-right: 0.25rem;
  color: var(--accent-gold);
}

.scripture cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.grid {
  display: grid;
  gap: 1rem;
}

.ministry-grid {
  display: grid;
  gap: 1rem;
}

.ministry-feature {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--paper-50);
  padding: 1.2rem;
  margin-top: 1rem;
}

.ministry-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ministry-copy p {
  color: var(--ink-800);
  margin-bottom: 0;
}

@media (min-width: 820px) {
  .ministry-feature {
    grid-template-columns: 1fr 1fr;
  }

  .ministry-feature.reverse .ministry-media {
    order: 2;
  }

  .ministry-feature.reverse .ministry-copy {
    order: 1;
  }
}

.card p,
.hero p,
li {
  color: var(--ink-800);
}

ul {
  padding-left: 1.25rem;
}

.service-times {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.service-times li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 4px solid var(--accent-gold);
}

.service-time {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  white-space: nowrap;
}

.service-name {
  font-size: 0.95rem;
  color: var(--ink-800);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-weight: 600;
  color: var(--ink-900);
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-200);
  background: var(--white);
  color: var(--ink-900);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-family: "Source Sans 3", Arial, sans-serif;
  background: var(--ink-700);
  color: var(--white);
  cursor: pointer;
}

button:hover,
button:focus {
  background: var(--ink-600);
}

.site-footer {
  margin-top: 2rem;
  background: var(--ink-900);
  border-top: 1px solid rgba(212, 228, 255, 0.2);
}

.footer-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col {
  flex: 1;
}

.footer-col p,
.footer-col address {
  margin: 0.15rem 0 0;
}

.footer-wrap h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: "Barlow Condensed", Arial, sans-serif;
  color: var(--paper-50);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.75rem;
  word-spacing: -0.15em;
  font-weight: 700;
}

.footer-sep {
  margin: 0 0.6rem;
}

.small {
  font-size: 0.95rem;
  color: var(--paper-200);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  font-style: italic;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--paper-200);
}

.social-icon {
  width: 48px;
  height: 48px;
  vertical-align: middle;
}

@media (min-width: 820px) {
  .footer-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-col:last-child {
    text-align: right;
  }

  .main-nav ul {
    flex-direction: row;
    justify-content: center;
  }

  .main-nav a {
    padding: 0.54rem 1.25rem;
  }

  .grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ministry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .brand-wrap h1 {
    font-size: 1.15rem;
  }

  .main-nav a {
    font-size: 0.95rem;
  }
}
