:root {
  --primary: #b98545;
  --primary-dark: #8e602f;
  --navy: #10252c;
  --navy-light: #173a43;
  --cream: #f8f5ee;
  --white: #ffffff;
  --text: #263238;
  --muted: #667479;
  --border: #e3e1dc;
  --shadow: 0 20px 55px rgba(15, 37, 44, 0.12);
  --transition: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: "Playfair Display", serif;
  line-height: 1.15;
}

.container {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 24px;
  width: 100%;
}

.section {
  padding-block: 110px;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.03em;
  min-height: 52px;
  padding: 13px 25px;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--primary);
  color: var(--white);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 25px rgba(185, 133, 69, 0.28);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.button-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.button-dark {
  background: var(--navy);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--navy);
}

.section-heading {
  margin: 0 auto 55px;
  max-width: 680px;
  text-align: center;
}

.section-heading h2,
.heading-row h2 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.section-heading.light h2,
.section-heading.light > p:last-child {
  color: var(--white);
}

/* Header */

.header {
  left: 0;
  padding-block: 18px;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background var(--transition),
    padding var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
  z-index: 1000;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 6px 30px rgba(10, 30, 36, 0.1);
  padding-block: 10px;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.logo {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 11px;
  position: relative;
  z-index: 1002;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 680px) {
  .logo-img {
    height: 38px;
  }
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.header.scrolled .logo {
  color: var(--navy);
}

.header.scrolled .logo-img {
  mix-blend-mode: multiply;
  filter: none;
}

.logo-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  font-family: serif;
  font-size: 1.5rem;
  height: 43px;
  justify-content: center;
  width: 43px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(10deg) scale(1.05);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.logo strong,
.logo small {
  display: block;
  line-height: 1.15;
}

.logo strong {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.logo small {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  margin-top: 4px;
  text-transform: uppercase;
}

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

.nav-menu > a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.83rem;
  font-weight: 600;
  position: relative;
}

.header.scrolled .nav-menu > a {
  color: var(--navy);
}

.nav-menu > a:not(.nav-button)::after {
  background: var(--primary);
  bottom: -7px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
  width: 100%;
}

.nav-menu > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu .nav-button {
  background: var(--primary);
  color: var(--white);
  padding: 11px 18px;
  transition: background var(--transition), transform var(--transition);
}

.nav-menu .nav-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  position: relative;
  width: 42px;
  z-index: 1002;
}

.menu-button span {
  background: var(--white);
  height: 2px;
  left: 8px;
  position: absolute;
  transition: var(--transition);
  width: 26px;
}

.header.scrolled .menu-button span {
  background: var(--navy);
}

.menu-button span:nth-child(1) {
  top: 12px;
}

.menu-button span:nth-child(2) {
  top: 20px;
}

.menu-button span:nth-child(3) {
  top: 28px;
}

.menu-button.active span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  align-items: center;
  background:
    url("https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?auto=format&fit=crop&w=1800&q=85")
    center / cover no-repeat;
  color: var(--white);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding-block: 140px 100px;
  position: relative;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(9, 31, 38, 0.96) 0%,
      rgba(9, 31, 38, 0.82) 45%,
      rgba(9, 31, 38, 0.35) 100%
    );
  inset: 0;
  position: absolute;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 8vw, 6.8rem);
  letter-spacing: -0.045em;
  max-width: 760px;
}

.hero h1 span {
  color: var(--primary);
  display: block;
  font-style: italic;
}

.hero-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 28px 0 35px;
  max-width: 570px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.service-banner {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 18px;
  margin-top: 58px;
  max-width: 620px;
  padding: 18px 22px;
  transition: transform var(--transition), background var(--transition);
}

.service-banner:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.service-icon {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
  transition: transform var(--transition);
}

.service-banner:hover .service-icon {
  transform: rotate(15deg);
}

.service-banner small,
.service-banner strong {
  display: block;
}

.service-banner small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.service-banner a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: auto;
}

.hero-shape {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  position: absolute;
}

.hero-shape-one {
  animation: rotateShape 18s linear infinite;
  height: 400px;
  right: -130px;
  top: 120px;
  width: 400px;
}

.hero-shape-two {
  animation: floatShape 7s ease-in-out infinite;
  bottom: -160px;
  height: 330px;
  left: 45%;
  width: 330px;
}

.scroll-indicator {
  bottom: 28px;
  height: 35px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 22px;
  z-index: 2;
}

.scroll-indicator::before {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  content: "";
  inset: 0;
  position: absolute;
}

.scroll-indicator span {
  animation: scrollDot 1.8s infinite;
  background: var(--white);
  border-radius: 50%;
  height: 4px;
  left: 9px;
  position: absolute;
  top: 7px;
  width: 4px;
}

.hero-animation {
  animation: heroReveal 900ms both;
}

.hero h1 {
  animation-delay: 120ms;
}

.hero-description {
  animation-delay: 250ms;
}

.hero-buttons {
  animation-delay: 380ms;
}

.service-banner {
  animation-delay: 520ms;
}

/* Updates / Video */

.updates-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 154, 82, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(45, 125, 110, 0.14), transparent 50%),
    #071418;
  position: relative;
  overflow: hidden;
}

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

.updates-section .section-heading h2 span {
  color: #efd29d;
  font-style: italic;
}

.updates-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.updates-video {
  margin-inline: auto;
  max-width: 760px;
}

.updates-video-stage {
  align-items: center;
  background:
    linear-gradient(160deg, rgba(201, 154, 82, 0.1), transparent 40%),
    linear-gradient(340deg, rgba(45, 125, 110, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 34px;
  grid-template-columns: 260px 1fr;
  padding: clamp(20px, 4vw, 36px);
}

.updates-video-frame {
  background: #000;
  box-shadow:
    0 0 0 1px rgba(201, 154, 82, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  width: 100%;
}

.updates-video-frame video {
  display: block;
  height: auto;
  width: 100%;
}

.updates-video-caption {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coming-soon-badge {
  align-items: center;
  background: rgba(201, 154, 82, 0.12);
  border: 1px solid rgba(201, 154, 82, 0.4);
  color: #efd29d;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.18em;
  padding: 9px 16px;
  text-transform: uppercase;
  width: fit-content;
}

.coming-soon-badge .dot {
  animation: badgePulse 1.8s ease-in-out infinite;
  background: #c99a52;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.updates-video-caption h3 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-style: italic;
  line-height: 1.3;
}

.updates-video-caption > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.updates-button {
  background: #c99a52;
  color: #071418;
  width: fit-content;
}

.updates-button:hover {
  background: #efd29d;
  box-shadow: 0 12px 25px rgba(201, 154, 82, 0.28);
}

@media (max-width: 680px) {
  .updates-video-stage {
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .updates-video-frame {
    margin-inline: auto;
    max-width: 280px;
  }

  .updates-button {
    width: 100%;
  }
}

/* Welcome */

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

.two-column {
  align-items: center;
  display: grid;
  gap: 85px;
  grid-template-columns: 1fr 1fr;
}

.image-composition {
  min-height: 570px;
  position: relative;
}

.main-image {
  height: 520px;
  overflow: hidden;
  width: 88%;
}

.main-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
  width: 100%;
}

.main-image:hover img {
  transform: scale(1.04);
}

.image-decoration {
  border: 2px solid var(--primary);
  height: 82%;
  left: 40px;
  position: absolute;
  top: 55px;
  width: 82%;
  z-index: -1;
  transition: transform 600ms ease;
}

.image-composition:hover .image-decoration {
  transform: translate(8px, 8px);
}

.experience-card {
  align-items: center;
  background: var(--navy);
  bottom: 0;
  color: var(--white);
  display: flex;
  gap: 15px;
  max-width: 245px;
  padding: 22px;
  position: absolute;
  right: 0;
  transition: transform var(--transition);
}

.experience-card:hover {
  transform: translateY(-5px);
}

.experience-card strong {
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
}

.experience-card span {
  font-size: 0.82rem;
  line-height: 1.4;
}

.floating-card {
  animation: floatingCard 4s ease-in-out infinite;
}

.welcome-content h2 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 25px;
}

.welcome-content h2 span {
  color: var(--primary);
  display: block;
  font-style: italic;
}

.welcome-content > p {
  color: var(--muted);
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  gap: 15px;
  transition: transform var(--transition);
}

.feature-item:hover {
  transform: translateX(8px);
}

.feature-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

.check-icon {
  align-items: center;
  background: rgba(185, 133, 69, 0.14);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  flex-shrink: 0;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
  transition: background var(--transition), transform var(--transition);
}

.feature-item:hover .check-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--primary);
}

/* Services */

.services-section {
  background: var(--white);
}

.service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  border: 1px solid var(--border);
  padding: 44px 30px;
  position: relative;
  text-align: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.service-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-14px);
}

.service-card.featured:hover {
  transform: translateY(-22px);
}

.service-card.featured h3 {
  color: var(--white);
}

.popular-label {
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 13px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  top: 0;
}

.card-icon {
  align-items: center;
  background: rgba(185, 133, 69, 0.12);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: 1.4rem;
  height: 62px;
  justify-content: center;
  margin: 0 auto 25px;
  width: 62px;
  transition: transform var(--transition), background var(--transition);
}

.service-card:hover .card-icon {
  transform: scale(1.1) rotate(10deg);
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.45rem;
}

.service-time {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 14px 0;
}

.service-card > p:not(.service-time) {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.service-card.featured > p:not(.service-time) {
  color: rgba(255, 255, 255, 0.68);
}

.service-card > span {
  border-top: 1px solid var(--border);
  display: block;
  font-size: 0.76rem;
  padding-top: 18px;
}

.service-card.featured > span {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Ministries */

.ministries-section {
  background: var(--navy);
}

.ministry-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
}

.ministry-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ministry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.ministry-card img {
  height: 270px;
  object-fit: cover;
  transition: transform 650ms ease;
  width: 100%;
}

.ministry-card:hover img {
  transform: scale(1.07);
}

.ministry-gallery {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.ministry-gallery img {
  height: 180px;
  width: 100%;
}

.ministry-gallery img:first-child {
  grid-column: 1 / -1;
  height: 200px;
}

.ministry-content {
  padding: 28px;
}

.ministry-content > span,
.sermon-content > span {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ministry-content h3 {
  font-size: 1.55rem;
  margin: 8px 0 13px;
}

.ministry-content p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.ministry-content a {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color var(--transition);
}

.ministry-content a:hover {
  color: var(--primary);
}

/* Sermons */

.heading-row {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.sermon-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
}

.sermon-card {
  background: var(--cream);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.sermon-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.sermon-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.sermon-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
  width: 100%;
}

.sermon-card:hover .sermon-image img {
  transform: scale(1.06);
}

.play-button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  bottom: 18px;
  color: var(--white);
  display: flex;
  height: 54px;
  justify-content: center;
  position: absolute;
  right: 18px;
  text-decoration: none;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  width: 54px;
}

.play-button:hover {
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(16, 37, 44, 0.4);
  transform: scale(1.1);
}

.sermon-youtube-link {
  color: var(--primary);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 12px;
  transition: color var(--transition), transform var(--transition);
}

.sermon-youtube-link:hover {
  color: var(--navy);
  transform: translateX(4px);
}

.sermon-content {
  padding: 25px;
}

.sermon-content h3 {
  font-size: 1.35rem;
  margin: 9px 0 15px;
}

.sermon-content p {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Events */

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

.event-list {
  background: var(--white);
}

.event-item {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 28px;
  grid-template-columns: 90px 1fr auto;
  padding: 27px 32px;
  transition:
    background var(--transition),
    padding-left var(--transition);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-item:hover {
  background: #fcfaf5;
  padding-left: 42px;
}

.event-date {
  border-right: 1px solid var(--border);
  text-align: center;
}

.event-date span {
  color: var(--primary);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.event-date strong {
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.event-information p,
.event-information span {
  color: var(--muted);
  font-size: 0.78rem;
}

.event-information h3 {
  font-size: 1.35rem;
  margin: 5px 0;
}

.event-item > a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Giving */

.give-section {
  align-items: center;
  background:
    url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
  color: var(--white);
  display: flex;
  min-height: 540px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.give-background {
  background: rgba(10, 34, 40, 0.87);
  inset: 0;
  position: absolute;
}

.give-content {
  max-width: 700px;
  padding-block: 90px;
  position: relative;
  z-index: 2;
}

.give-content h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.3rem);
}

.give-content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
  margin: 22px auto 30px;
  max-width: 600px;
}

/* Giving widget */

.giving-widget {
  background: var(--white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  color: var(--text);
  margin: 50px auto 0;
  max-width: 640px;
  padding: 0;
  text-align: left;
}

.giving-payment-methods {
  border-bottom: 1px solid var(--border);
  display: flex;
}

.giving-method {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  padding: 18px 12px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}

.giving-method::after {
  background: var(--primary);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transition: transform var(--transition);
  width: 100%;
}

.giving-method.is-active {
  color: var(--navy);
}

.giving-method.is-active::after {
  transform: scaleX(1);
}

.giving-method-icon {
  align-items: center;
  background: rgba(185, 133, 69, 0.12);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: 1rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.giving-form {
  padding: 26px;
}

.giving-step {
  margin-bottom: 26px;
}

.giving-quick-row {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.6fr 1fr;
}

.giving-quick-row .giving-step {
  margin-bottom: 0;
}

.giving-step-title {
  color: var(--navy);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.giving-amounts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.giving-amount {
  background: var(--cream);
  border: 2px solid var(--border);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 8px;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.giving-amount:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.giving-amount.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.giving-custom {
  margin-top: 12px;
}

.giving-custom label {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.giving-frequency {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.giving-frequency-option {
  background: var(--cream);
  border: 2px solid var(--border);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.giving-frequency-option.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.giving-select {
  appearance: none;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  padding: 13px;
  width: 100%;
}

.giving-form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.giving-form-group {
  margin-bottom: 14px;
}

.giving-form-group label {
  color: var(--navy);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.giving-form-group input {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 12px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  width: 100%;
}

.giving-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(185, 133, 69, 0.12);
}

.giving-card-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.giving-card-badge {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
}

.giving-anonymous label {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 8px;
}

.giving-anonymous input {
  accent-color: var(--primary);
  height: 16px;
  width: 16px;
}

.giving-submit {
  margin-top: 6px;
  width: 100%;
}

.giving-message {
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
}

.giving-secure-note {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 14px;
  text-align: center;
}

.cashapp-box {
  background: var(--cream);
  padding: 28px;
  text-align: center;
}

.cashapp-logo {
  align-items: center;
  background: #00d632;
  border-radius: 12px;
  color: var(--white);
  display: inline-flex;
  font-size: 2rem;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  margin-bottom: 18px;
  width: 62px;
}

.cashapp-box > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.cashapp-details {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 22px;
  padding: 16px;
}

.cashapp-details p {
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  justify-content: space-between;
  padding: 5px 0;
}

.cashapp-details strong {
  color: var(--navy);
}

.cashapp-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-top: 16px;
}

.cashapp-note a {
  color: var(--primary);
  font-weight: 700;
}

.hidden {
  display: none;
}

/* Contact */

.contact-grid {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-content h2 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  margin-bottom: 22px;
}

.contact-content > p {
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 22px;
  margin-top: 35px;
}

.contact-details > div {
  display: flex;
  gap: 15px;
  transition: transform var(--transition);
}

.contact-details > div:hover {
  transform: translateX(8px);
}

.contact-details > div > span {
  align-items: center;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 43px;
  justify-content: center;
  width: 43px;
  transition: background var(--transition), transform var(--transition);
}

.contact-details > div:hover > span {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.contact-details p {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-details p a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-details p a:hover {
  color: var(--navy);
}

.contact-details strong {
  color: var(--navy);
  display: block;
}

.contact-form {
  background: var(--cream);
  box-shadow: var(--shadow);
  padding: 42px;
}

.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  color: var(--navy);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  padding: 13px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(185, 133, 69, 0.12);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  font-size: 0.85rem;
  margin-top: 15px;
}

/* Footer */

.footer {
  background: #091c22;
  color: rgba(255, 255, 255, 0.67);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  gap: 45px;
  grid-template-columns: 1.5fr 0.7fr 1fr 0.7fr;
  padding-bottom: 55px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-logo .logo-img {
  height: 45px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.footer-grid > div > p {
  font-size: 0.86rem;
  max-width: 320px;
}

.footer h3 {
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-grid > div > a {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 10px;
  transition: color var(--transition), transform var(--transition);
}

.footer-grid > div > a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  height: 38px;
  justify-content: center;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
  width: 38px;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  padding-block: 22px;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

/* Scroll animations */

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 850ms ease,
    transform 850ms ease;
}

.reveal {
  transform: translateY(45px);
}

.reveal-left {
  transform: translateX(-55px);
}

.reveal-right {
  transform: translateX(55px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Keyframe animations */

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateShape {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }
}

@keyframes floatingCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(17px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Responsive design */

/* ─── Responsive Design ──────────────────────────────── */

@media (max-width: 960px) {
  .menu-button {
    display: block;
  }

  .nav-menu {
    align-items: flex-start;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 90px 35px 40px;
    pointer-events: none;
    position: fixed;
    transform: translateY(-20px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-menu.active,
  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu > a,
  .header.scrolled .nav-menu > a {
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    padding: 8px 0;
  }

  .nav-menu .nav-button {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    margin-top: 20px;
    padding: 13px 22px;
  }

  .menu-button.active span,
  .header.scrolled .menu-button.active span,
  .menu-button.is-open span,
  .header.scrolled .menu-button.is-open span {
    background: var(--white);
  }

  .two-column,
  .contact-grid {
    gap: 60px;
    grid-template-columns: 1fr;
  }

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

  .service-card.featured {
    transform: none;
  }

  .service-card.featured:hover {
    transform: translateY(-8px);
  }

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

@media (max-width: 768px) {
  /* Container */
  .container {
    width: calc(100% - 36px);
    max-width: 480px;
  }

  /* Section spacing */
  .section {
    padding: 45px 0;
  }

  /* Typography */
  h1 {
    font-size: clamp(2.4rem, 10vw, 5.5rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.7rem);
  }

  p {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
  }

  /* Header */
  header,
  .navbar {
    min-height: 70px;
  }

  .logo-img {
    max-height: 44px;
    width: auto;
  }

  /* Hero */
  .hero {
    min-height: 620px;
    height: auto;
    padding: 110px 20px 45px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 0.95;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-shape-one {
    height: 250px;
    right: -100px;
    top: 100px;
    width: 250px;
  }

  .hero-shape-two {
    height: 200px;
    width: 200px;
  }

  /* Service banner */
  .service-banner,
  .hero-service-card {
    width: 100%;
    padding: 16px;
    min-height: 0;
    height: auto;
  }

  .service-banner h3,
  .hero-service-card h3 {
    font-size: 1.35rem;
  }

  .service-banner a {
    margin-left: 0;
  }

  /* Images - regular content */
  .section-image,
  .welcome-image,
  .ministry-image,
  .sermon-image,
  .image-composition,
  .main-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
  }

  /* Family photos - keep visible, no crop */
  .family-photo img,
  .family-card img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  /* Updates section */
  .updates-section {
    padding: 45px 20px;
  }

  .updates-section h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.05;
  }

  .updates-section p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Video */
  .video-wrapper,
  .video-container,
  .updates-video-frame {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .video-wrapper video,
  .video-wrapper iframe,
  .video-container video,
  .video-container iframe,
  .updates-video-frame video {
    width: 100%;
    height: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
  }

  /* Grids - single column */
  .service-grid,
  .ministry-grid,
  .sermon-grid,
  .event-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Cards */
  .service-card,
  .ministry-card,
  .sermon-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Ministry images */
  .ministry-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .ministry-gallery img {
    height: 140px;
  }

  .ministry-gallery img:first-child {
    height: 160px;
  }

  /* Sermon thumbnails */
  .sermon-card .sermon-image,
  .sermon-image {
    height: 190px;
  }

  .sermon-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
  }

  /* Events */
  .event-item {
    align-items: start;
    grid-template-columns: 65px 1fr;
    padding: 22px 18px;
  }

  .event-item > a {
    grid-column: 2;
  }

  /* Giving */
  .give-section {
    min-height: auto;
  }

  .give-content {
    padding-block: 60px;
  }

  .giving-widget {
    max-width: 100%;
  }

  .giving-quick-row {
    grid-template-columns: 1fr;
  }

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

  .giving-form-row {
    grid-template-columns: 1fr;
  }

  .giving-form {
    padding: 20px;
  }

  /* Contact */
  .contact-form {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Heading row */
  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  /* Image composition */
  .image-composition {
    min-height: auto;
  }

  .main-image {
    height: auto;
    max-height: 280px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  section {
    padding: 38px 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero {
    min-height: 560px;
    padding: 90px 16px 36px;
  }

  .video-wrapper,
  .video-container,
  .updates-video-frame {
    max-width: 100%;
  }

  .video-wrapper video,
  .video-wrapper iframe,
  .video-container video,
  .video-container iframe,
  .updates-video-frame video {
    max-height: 210px;
  }

  .service-card,
  .ministry-card,
  .sermon-card {
    max-width: 100%;
  }

  .give-content {
    padding-block: 45px;
  }

  .giving-form {
    padding: 16px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .event-item {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

.church-verse {
  border-left: 3px solid var(--primary);
  margin-top: 32px;
  max-width: 620px;
  padding: 10px 0 10px 20px;
}

.church-verse p {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-style: italic;
}

.church-verse strong {
  color: var(--primary);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-top: 8px;
  text-transform: uppercase;
}

.mission-section {
  background: var(--primary);
  color: var(--white);
  padding-block: 90px;
  text-align: center;
}

.mission-content {
  max-width: 850px;
}

.mission-section .eyebrow {
  color: var(--navy);
}

.mission-section h2 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 22px;
}

.mission-section p:last-child {
  font-size: 1.05rem;
  margin-inline: auto;
  max-width: 700px;
}

/* ROOTED317 PURPOSE */

.purpose-section {
  padding: 120px 8%;
  background: #0F172A;
  color: white;
}

.section-title {
  text-align: center;
  max-width: 850px;
  margin: auto;
  margin-bottom: 70px;
}

.section-subtitle {
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C79A4B;
  font-weight: 700;
}

.section-title h2 {
  font-size: 58px;
  margin: 15px 0;
  font-family: serif;
}

.section-title p {
  font-size: 19px;
  color: #d6d6d6;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 35px;
}

.purpose-card {
  background: white;
  color: #222;
  padding: 40px;
  border-radius: 20px;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.purpose-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.purpose-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #C79A4B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 25px;
  transition: transform 0.4s, background 0.4s;
}

.purpose-card:hover .purpose-icon {
  transform: scale(1.1) rotate(10deg);
  background: #8e602f;
}

.purpose-card h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #0F172A;
}

.purpose-card p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
}

.purpose-card blockquote {
  border-left: 4px solid #C79A4B;
  padding-left: 20px;
  font-style: italic;
  color: #666;
}

.purpose-card span {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #C79A4B;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 42px;
  }
}

/* ROOTED317 CINEMATIC PURPOSE EXPERIENCE */

.rooted-purpose {
  --rooted-gold: #c99a52;
  --rooted-gold-light: #efd29d;
  --rooted-dark: #071418;
  --rooted-green: #102c29;
  --rooted-white: #ffffff;
  --rooted-muted: rgba(255, 255, 255, 0.7);

  background: var(--rooted-dark);
  color: var(--rooted-white);
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.rooted-purpose *,
.rooted-purpose *::before,
.rooted-purpose *::after {
  box-sizing: border-box;
}

.rooted-purpose__video,
.rooted-purpose__fallback,
.rooted-purpose__overlay,
.rooted-purpose__texture {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.rooted-purpose__video {
  object-fit: cover;
  opacity: 0.38;
  z-index: 0;
}

.rooted-purpose__fallback {
  background:
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat;
  z-index: -1;
}

.rooted-purpose__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 16, 19, 0.97) 0%,
      rgba(4, 16, 19, 0.86) 45%,
      rgba(4, 16, 19, 0.45) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 16, 19, 0.52) 0%,
      rgba(4, 16, 19, 0.1) 45%,
      rgba(4, 16, 19, 0.85) 100%
    );
  z-index: 1;
}

.rooted-purpose__texture {
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );

  background-size: 70px 70px;
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 20%,
      black 80%,
      transparent
    );
  z-index: 2;
}

.rooted-purpose__glow {
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.rooted-purpose__glow--one {
  animation: rootedGlowOne 10s ease-in-out infinite;
  background: var(--rooted-gold);
  height: 360px;
  right: -160px;
  top: 10%;
  width: 360px;
}

.rooted-purpose__glow--two {
  animation: rootedGlowTwo 12s ease-in-out infinite;
  background: #2d7d6e;
  bottom: -180px;
  height: 420px;
  left: 32%;
  width: 420px;
}

.rooted-purpose__topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 32px clamp(24px, 5vw, 80px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.rooted-purpose__brand {
  align-items: center;
  color: var(--rooted-white);
  display: inline-flex;
  gap: 13px;
  text-decoration: none;
}

.rooted-purpose__brand-cross {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  font-size: 1.3rem;
  height: 44px;
  justify-content: center;
  width: 44px;
  transition: transform 0.3s ease;
}

.rooted-purpose__brand:hover .rooted-purpose__brand-cross {
  transform: rotate(10deg);
}

.rooted-purpose__brand strong,
.rooted-purpose__brand small {
  display: block;
  line-height: 1.1;
}

.rooted-purpose__brand strong {
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.rooted-purpose__brand small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  margin-top: 6px;
  text-transform: uppercase;
}

.rooted-purpose__counter {
  align-items: center;
  display: flex;
  font-size: 0.75rem;
  gap: 10px;
  letter-spacing: 0.16em;
}

.rooted-purpose__counter-line {
  background: rgba(255, 255, 255, 0.35);
  height: 1px;
  width: 42px;
}

.rooted-purpose__slides {
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 5;
}

.rooted-purpose__slide {
  align-items: center;
  display: flex;
  height: 100%;
  inset: 0;
  opacity: 0;
  padding:
    120px
    clamp(24px, 9vw, 150px)
    110px;
  pointer-events: none;
  position: absolute;
  transform: scale(1.04);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
  width: 100%;
}

.rooted-purpose__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  visibility: visible;
}

.rooted-purpose__content {
  max-width: 850px;
  position: relative;
  z-index: 4;
}

.rooted-purpose__content--center {
  margin-inline: auto;
  max-width: 980px;
  text-align: center;
}

.rooted-purpose__eyebrow,
.rooted-purpose__number,
.rooted-purpose__description,
.rooted-purpose__scripture,
.rooted-purpose__secondary-reference,
.rooted-purpose__opening-line,
.rooted-purpose__start,
.rooted-purpose__vision-text,
.rooted-purpose__cta {
  opacity: 0;
  transform: translateY(30px);
}

.rooted-purpose__slide h2 {
  color: var(--rooted-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 16px 0 30px;
  max-width: 950px;
  opacity: 0;
  transform: translateY(45px);
}

.rooted-purpose__slide h2 span {
  color: var(--rooted-gold-light);
  display: block;
  font-style: italic;
}

.rooted-purpose__slide.is-active .rooted-purpose__eyebrow,
.rooted-purpose__slide.is-active .rooted-purpose__number,
.rooted-purpose__slide.is-active h2,
.rooted-purpose__slide.is-active .rooted-purpose__description,
.rooted-purpose__slide.is-active .rooted-purpose__scripture,
.rooted-purpose__slide.is-active .rooted-purpose__secondary-reference,
.rooted-purpose__slide.is-active .rooted-purpose__opening-line,
.rooted-purpose__slide.is-active .rooted-purpose__start,
.rooted-purpose__slide.is-active .rooted-purpose__vision-text,
.rooted-purpose__slide.is-active .rooted-purpose__cta {
  animation: rootedContentReveal 900ms forwards;
}

.rooted-purpose__slide.is-active .rooted-purpose__eyebrow {
  animation-delay: 100ms;
}

.rooted-purpose__slide.is-active .rooted-purpose__number {
  animation-delay: 50ms;
}

.rooted-purpose__slide.is-active h2 {
  animation-delay: 180ms;
}

.rooted-purpose__slide.is-active .rooted-purpose__description,
.rooted-purpose__slide.is-active .rooted-purpose__intro,
.rooted-purpose__slide.is-active .rooted-purpose__vision-text {
  animation-delay: 330ms;
}

.rooted-purpose__slide.is-active .rooted-purpose__scripture {
  animation-delay: 480ms;
}

.rooted-purpose__slide.is-active .rooted-purpose__secondary-reference,
.rooted-purpose__slide.is-active .rooted-purpose__opening-line {
  animation-delay: 620ms;
}

.rooted-purpose__slide.is-active .rooted-purpose__start,
.rooted-purpose__slide.is-active .rooted-purpose__cta {
  animation-delay: 750ms;
}

.rooted-purpose__number {
  color: var(--rooted-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  margin-bottom: 20px;
}

.rooted-purpose__eyebrow {
  color: var(--rooted-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.rooted-purpose__intro,
.rooted-purpose__description,
.rooted-purpose__vision-text {
  color: var(--rooted-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  max-width: 690px;
}

.rooted-purpose__intro {
  opacity: 0;
  transform: translateY(30px);
}

.rooted-purpose__content--center .rooted-purpose__vision-text {
  margin: 0 auto 18px;
  max-width: 780px;
}

.rooted-purpose__opening-line {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-top: 35px;
  max-width: 680px;
}

.rooted-purpose__opening-line > span {
  background: var(--rooted-gold);
  height: 1px;
  flex-shrink: 0;
  width: 65px;
}

.rooted-purpose__opening-line p {
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  line-height: 1.7;
}

.rooted-purpose__scripture {
  border-left: 2px solid var(--rooted-gold);
  margin: 38px 0 0;
  max-width: 720px;
  padding: 7px 0 7px 25px;
}

.rooted-purpose__scripture p {
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.65;
}

.rooted-purpose__scripture cite {
  color: var(--rooted-gold-light);
  display: block;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 15px;
  text-transform: uppercase;
}

.rooted-purpose__scripture--center {
  border-left: 0;
  border-top: 1px solid rgba(201, 154, 82, 0.7);
  margin: 35px auto 0;
  max-width: 720px;
  padding: 25px 0 0;
}

.rooted-purpose__secondary-reference {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  margin-top: 25px;
}

.rooted-purpose__secondary-reference strong {
  color: var(--rooted-gold-light);
  margin-left: 7px;
}

.rooted-purpose__start,
.rooted-purpose__cta {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(239, 210, 157, 0.7);
  color: var(--rooted-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 18px;
  letter-spacing: 0.12em;
  margin-top: 42px;
  padding: 17px 23px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 300ms ease,
    border-color 300ms ease,
    color 300ms ease,
    transform 300ms ease;
}

.rooted-purpose__start:hover,
.rooted-purpose__cta:hover {
  background: var(--rooted-gold);
  border-color: var(--rooted-gold);
  color: var(--rooted-dark);
  transform: translateY(-3px);
}

.rooted-purpose__start span,
.rooted-purpose__cta span {
  font-size: 1rem;
}

.rooted-purpose__symbol {
  color: rgba(239, 210, 157, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15rem, 32vw, 35rem);
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  user-select: none;
  z-index: 1;
}

.rooted-purpose__large-word {
  bottom: -4vw;
  color: rgba(255, 255, 255, 0.025);
  font-size: clamp(8rem, 21vw, 23rem);
  font-weight: 800;
  left: 3%;
  letter-spacing: -0.09em;
  line-height: 0.8;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  user-select: none;
}

.rooted-purpose__progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  right: clamp(25px, 4vw, 70px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.rooted-purpose__progress-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 3px;
}

.rooted-purpose__progress-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateX(8px);
  transition:
    opacity 250ms ease,
    transform 250ms ease;
}

.rooted-purpose__progress-dot {
  background: rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  height: 6px;
  transition:
    background 300ms ease,
    height 300ms ease,
    box-shadow 300ms ease;
  width: 6px;
}

.rooted-purpose__progress-button:hover .rooted-purpose__progress-label,
.rooted-purpose__progress-button.is-active .rooted-purpose__progress-label {
  opacity: 1;
  transform: translateX(0);
}

.rooted-purpose__progress-button.is-active {
  color: var(--rooted-gold-light);
}

.rooted-purpose__progress-button.is-active .rooted-purpose__progress-dot {
  background: var(--rooted-gold);
  box-shadow: 0 0 18px rgba(201, 154, 82, 0.8);
  height: 28px;
}

.rooted-purpose__controls {
  align-items: center;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  left: clamp(24px, 5vw, 80px);
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  z-index: 30;
}

.rooted-purpose__control {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.68rem;
  gap: 10px;
  letter-spacing: 0.15em;
  padding: 10px 0;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.rooted-purpose__control:hover {
  color: var(--rooted-gold-light);
}

.rooted-purpose__control:disabled {
  cursor: default;
  opacity: 0.25;
}

.rooted-purpose__instruction {
  align-items: center;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  flex-direction: column;
  font-size: 0.6rem;
  gap: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rooted-purpose__mouse {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  height: 28px;
  position: relative;
  width: 17px;
}

.rooted-purpose__mouse span {
  animation: rootedMouseScroll 1.8s infinite;
  background: var(--rooted-gold-light);
  border-radius: 50%;
  height: 3px;
  left: 6px;
  position: absolute;
  top: 5px;
  width: 3px;
}

.rooted-purpose__mobile-hint {
  bottom: 28px;
  color: rgba(255, 255, 255, 0.45);
  display: none;
  font-size: 0.62rem;
  left: 50%;
  letter-spacing: 0.15em;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 30;
}

/* Animations */

@keyframes rootedContentReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rootedGlowOne {
  0%,
  100% {
    opacity: 0.18;
    transform: translate(0, 0) scale(1);
  }

  50% {
    opacity: 0.34;
    transform: translate(-80px, 55px) scale(1.15);
  }
}

@keyframes rootedGlowTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(75px, -65px);
  }
}

@keyframes rootedMouseScroll {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Tablet */

@media (max-width: 1000px) {
  .rooted-purpose__slide {
    padding-left: 7vw;
    padding-right: 100px;
  }

  .rooted-purpose__symbol {
    opacity: 0.55;
    right: -3%;
  }

  .rooted-purpose__progress {
    right: 25px;
  }

  .rooted-purpose__progress-label {
    display: none;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .rooted-purpose {
    min-height: 720px;
  }

  .rooted-purpose__topbar {
    padding: 22px 20px;
  }

  .rooted-purpose__brand-cross {
    height: 37px;
    width: 37px;
  }

  .rooted-purpose__brand strong {
    font-size: 0.82rem;
  }

  .rooted-purpose__brand small {
    font-size: 0.52rem;
  }

  .rooted-purpose__counter {
    font-size: 0.64rem;
  }

  .rooted-purpose__counter-line {
    width: 25px;
  }

  .rooted-purpose__slide {
    align-items: flex-start;
    overflow-y: auto;
    padding:
      115px
      25px
      100px;
  }

  .rooted-purpose__content {
    margin-block: auto;
  }

  .rooted-purpose__slide h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
    margin-bottom: 22px;
  }

  .rooted-purpose__intro,
  .rooted-purpose__description,
  .rooted-purpose__vision-text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .rooted-purpose__scripture {
    margin-top: 28px;
    padding-left: 18px;
  }

  .rooted-purpose__scripture p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .rooted-purpose__secondary-reference {
    line-height: 1.6;
    margin-top: 20px;
  }

  .rooted-purpose__symbol {
    bottom: 40px;
    font-size: 15rem;
    opacity: 0.32;
    right: -25px;
    top: auto;
    transform: rotate(-8deg);
  }

  .rooted-purpose__large-word {
    bottom: 70px;
    font-size: 8rem;
    opacity: 0.6;
  }

  .rooted-purpose__progress {
    bottom: 62px;
    flex-direction: row;
    gap: 9px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }

  .rooted-purpose__progress-button {
    padding: 2px;
  }

  .rooted-purpose__progress-dot {
    height: 5px;
    width: 5px;
  }

  .rooted-purpose__progress-button.is-active .rooted-purpose__progress-dot {
    height: 5px;
    width: 25px;
  }

  .rooted-purpose__controls {
    display: none;
  }

  .rooted-purpose__mobile-hint {
    display: block;
  }

  .rooted-purpose__opening-line {
    align-items: flex-start;
  }

  .rooted-purpose__opening-line > span {
    margin-top: 12px;
    width: 35px;
  }

  .rooted-purpose__start,
  .rooted-purpose__cta {
    margin-top: 30px;
  }
}

/* Very small screens */

@media (max-width: 390px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 520px;
  }

  .section {
    padding: 32px 0;
  }

  .rooted-purpose__slide h2 {
    font-size: 2.2rem;
  }

  .rooted-purpose__scripture {
    margin-top: 16px;
  }

  .rooted-purpose__secondary-reference {
    display: none;
  }
}

/* Accessibility */

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

  .rooted-purpose__video {
    display: none;
  }

  .rooted-purpose__eyebrow,
  .rooted-purpose__number,
  .rooted-purpose__slide h2,
  .rooted-purpose__description,
  .rooted-purpose__scripture,
  .rooted-purpose__secondary-reference,
  .rooted-purpose__opening-line,
  .rooted-purpose__start,
  .rooted-purpose__vision-text,
  .rooted-purpose__cta,
  .rooted-purpose__intro {
    opacity: 1;
    transform: none;
  }
}
