/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #5c8b94; /* Light blue-gray from original */
  --secondary-color: #002d36; /* Dark teal from original */
  --accent-color: #5c8b94; /* Medium blue from original - corrected */
  --text-color: #0c0c0c;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #000000;

  --font-primary: "Oxygen", sans-serif;
  --font-secondary: "Frank Ruhl Libre", serif;

  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  --text-fontSize: 15px;
  --text-lineHeight: 1.5em;
  --header-height: 60px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background: white;
  overscroll-behavior: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--secondary-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.25rem; /* 20px equivalent */
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bg-light);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: var(--text-light);
  overflow: hidden;
  padding-left: 15%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("./images/church_exterior.png") center/cover;
  z-index: -1;

  /* Smooth zoom effect - slowly zooms in and out */
  animation: kenBurns 30s ease-in-out infinite alternate;
}

/* Simple zoom animation - zooms in and out */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-content {
  z-index: 1;
  max-width: 600px;
  padding: 0 20px;
}

.hero-title {
  font-family: "Poppins", var(--font-secondary);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.hero-description {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Info Cards Section */
.info-cards {
  background: var(--accent-color);
  padding: 5rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-shadow: 0px 0px 1px black, 0px 0px 3px black, 0px 0px 6px black;
  background: linear-gradient(
    to top,
    rgba(0, 45, 54, 0.95) 0%,
    rgba(0, 45, 54, 0.7) 55%,
    transparent 75%
  );
  color: var(--text-light);
  text-align: center;
}

.card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.card p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Card background images */
.who-we-are-bg {
  background-image: url("./images/who-we-are.jpg");
}
.sermons-bg {
  background-image: url("./images/sermons.jpg");
}
/* works fine */
.we-believe-bg {
  background-image: url("./images/we-believe.jpg");
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 32px;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #001a20;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Plan Your Visit Page Styles */

/* Plan-Your-Visit Hero */
.visit-hero {
  background: var(--accent-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  padding: 2rem 0;
}

.visit-content {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  /* align-items: start; */
  /* center and cap width */
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.visit-text {
  max-width: none;
}

.visit-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.visit-intro {
  font-family: "Oxygen", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.visit-description {
  font-family: "Oxygen", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.visit-map {
  align-self: center;
  display: flex;
  justify-content: center;
  /* align-items: flex-start; */
  /* padding-top: 2rem; */
}

.visit-map iframe {
  width: 100%;
  max-width: 100%;
  height: clamp(300px, 50vh, 600px);
  border: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.visit-main {
  padding-top: 60px;
  /* min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column; */
}

/* Pastors Section */
.pastors {
  background: var(--primary-color);
  padding: 5rem 0;
  text-align: center;
}
/* Subtle Divider between Sections */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 45, 54, 0.3),
    transparent
  );
  margin: 0 auto;
  width: 66%;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.pastors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.pastor-card {
  background: rgba(0, 45, 54, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
}

.pastor-card h3 {
  font-family: var(--font-primary);
  color: var(--text-light);
  margin-bottom: 1rem;
}

.pastor-names {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.pastor-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}

.pastor-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Contact Section */
.contact {
  background: var(--primary-color);
  padding: 5rem 0;
  color: var(--text-light);
}

.contact .section-title {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
}

.contact-content {
  max-width: 66%;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-info a {
  color: var(--text-light);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--primary-color);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1rem;
  font-family: var(--font-primary);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group select {
  cursor: pointer;
}

.form-group option {
  background: var(--secondary-color);
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--secondary-color);
  padding: 2rem 0;
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.footer-section p {
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary-color);
}

/* Main content area for interior pages */
.main-content {
  /* padding-top: 70px; */
  min-height: auto;
  background: none;
}

/* About Us Page Styles */
.about-section {
  background: var(--accent-color);
  padding: 5rem 0;
  color: var(--text-color);
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-image {
  border-radius: 17px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.about-title {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-section-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.about-description {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
}

/* What We Believe Page Styles */

/* Beliefs Section */
.beliefs-section {
  background: var(--accent-color);
  padding: 5rem 0;
  color: var(--text-light);
}

.beliefs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.beliefs-text {
  max-width: 600px;
}

.beliefs-title {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.beliefs-intro {
  font-family: "Oxygen", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: rgba(0, 0, 0, 0.9);
}

.beliefs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.beliefs-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  font-family: "Oxygen", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.95);
}

.beliefs-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.beliefs-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4rem;
}

.beliefs-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.confession-link {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.confession-link p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.confession-link a {
  color: var(--text-light);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.confession-link a:hover {
  color: var(--primary-color);
}
/* ----------------------------------
   Sermons Page Styles
---------------------------------- */

.sermons-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 0;
  height: 100vh;
  max-height: 760px;
}

.sermons-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./images/bible_nature.jpg") center/cover;
  z-index: -1;
}

.sermons-hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  position: relative;
  top: -40px;
}

.sermons-title {
  font-family: "Oxygen", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--text-light);
}

.sermons-info-box {
  background: rgba(12, 12, 12, 0.75);
  border-radius: 10px;
  padding: 1rem 2rem;
  margin: 0 auto;
  max-width: min(90%, 800px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sermons-text {
  font-size: 1.375rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: var(--text-light);
}

.sermons-btn {
  background: rgba(33, 150, 243, 0.75);
  color: var(--text-light);
  border-radius: 32px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: none;
}

.sermons-btn:hover {
  background: rgba(33, 150, 243, 0.9);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sermons-hero {
    height: 600px;
    padding: 100px 20px 50px;
  }

  .sermons-info-box {
    padding: 2rem 1.5rem;
    margin: 0 20px;
  }

  .sermons-text {
    font-size: 1.125rem;
  }

  .visit-hero {
    min-height: auto; /* drop the forced full-screen behavior */
    padding: 4rem 0; /* adjust vertical breathing as desired */
  }
}

@media (max-width: 480px) {
  .sermons-hero {
    height: 500px;
  }

  .sermons-info-box {
    padding: 1.5rem 1rem;
  }

  .sermons-text {
    font-size: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pastors-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* About Us responsive */
  .about-images {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-section {
    padding: 3rem 0;
  }

  /* Beliefs responsive */
  .beliefs-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .beliefs-title {
    font-size: 2rem;
  }

  .beliefs-section {
    padding: 3rem 0;
  }

  .beliefs-image {
    order: -1; /* Move image above text on mobile */
  }

  .beliefs-list li {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

/* Hide toggle button by default */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    background: var(--secondary-color);
    padding: 0.75rem 0;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

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

  /* Plan Your Visit — tablet/mobile */
  .visit-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .visit-title {
    font-size: 2rem;
  }

  .visit-map {
    order: -1; /* move map above text */
  }

  .visit-map iframe {
    height: 300px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .info-cards,
  .pastors,
  .contact {
    padding: 3rem 0;
  }

  .card-content,
  .pastor-card {
    padding: 1.5rem;
  }

  /* Plan Your Visit — small phones */
  .visit-title {
    font-size: 1.75rem;
  }

  .visit-intro {
    font-size: 1.125rem;
  }

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

  .visit-map iframe {
    height: 250px;
  }

  /* About Us mobile */
  .about-title {
    font-size: 1.75rem;
  }

  .about-section-title {
    font-size: 1.125rem;
  }

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

  .about-image img {
    height: 250px;
  }

  /* Beliefs mobile */
  .beliefs-title {
    font-size: 1.75rem;
  }

  .beliefs-intro {
    font-size: 1rem;
  }

  .beliefs-list li {
    font-size: 0.95rem;
  }

  .confession-link p {
    font-size: 1rem;
  }
}
/* Mobile nav + Sermons‐hero tweaks */
@media (max-width: 768px) {
  /* Nav: logo left, burger right */
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }

  /* Show toggle, hide menu until open */
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    z-index: 999;
  }
  .nav-menu.open {
    display: flex;
  }

  /* Hero adjustments */
  .sermons-hero {
    height: 80vh;
    /* push content down just below header */
    padding-top: calc(var(--header-height, 60px) + 20px);
  }
}
@media (max-width: 900px) {
  .sermons-hero {
    /* on narrow/tall screens: fill the viewport */
    height: 100vh;
  }
}
@media (orientation: portrait) {
  .sermons-hero {
    height: 100vh;
    max-height: none;
  }
}
