/* =========================================================
   Disciple Parish — Celestial Church of Christ
   Stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy: #10213f;
  --navy-deep: #0a1730;
  --gold: #c8a24a;
  --gold-light: #e3c780;
  --ivory: #faf6ec;
  --white: #ffffff;
  --gray-bg: #f5f4f0;
  --text-dark: #1c2536;
  --text-muted: #5a6272;

  --font-heading: "Cinzel", serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1180px;
  --radius: 14px;
  --shadow-soft: 0 18px 40px rgba(16, 33, 63, 0.12);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Navigation ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 72px;
  width: 72px;
  object-fit: contain;
}

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

.brand-line--main {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-line--sub {
  font-size: 0.78rem;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 23, 48, 0.72) 0%,
    rgba(10, 23, 48, 0.55) 45%,
    rgba(10, 23, 48, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 140px 24px 80px;
  animation: fade-up 0.9s ease both;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  color: var(--gold-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.hero-mission {
  color: var(--ivory);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- Section heading ---------- */
.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin: 0 0 26px;
}

.section-heading--light {
  color: var(--white);
}

/* ---------- Welcome ---------- */
.welcome {
  background: var(--white);
  padding: 100px 0;
}

.welcome-lead {
  max-width: 680px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.7;
}

.welcome-body {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  border-top: 3px solid var(--gold);
}

.card-heading {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Worship ---------- */
.worship {
  background: var(--navy);
  padding: 100px 0;
}

.card-grid--dark .service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  height: 100%;
}

.service-name {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.service-day {
  color: var(--white);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.service-time {
  color: var(--ivory);
  margin: 0;
  opacity: 0.85;
}

/* ---------- Connect ---------- */
.connect {
  background: var(--white);
  padding: 100px 0 110px;
}

.connect-list {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e6e2d8;
}

.connect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  border-bottom: 1px solid #e6e2d8;
}

.connect-label {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.connect-value {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.connect-link {
  transition: color var(--transition);
}

.connect-link:hover,
.connect-link:focus-visible {
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--ivory);
  text-align: center;
  padding: 40px 24px;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
}

/* ---------- Fade-in animation ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav-menu.is-open {
    max-height: 260px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-content {
    padding: 130px 20px 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }

  .btn {
    text-align: center;
  }

  .connect-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

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