@import url('fonts.css');

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e3e9f3 100%);
  color: #222b3a;
  margin: 0;
  padding: 0;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 60vh;
  /* Remove background image, keep fallback color/gradient if desired */
  background: linear-gradient(rgba(34,43,58,0.7), rgba(34,43,58,0.7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  box-shadow: 0 4px 24px rgba(34,43,58,0.08);
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: url('../media/church.jpg') center/cover no-repeat;
  filter: grayscale(0.4) brightness(0.7);
}
.hero-bg-video.hide {
  display: none;
}
.hero.bg-fallback {
  background: linear-gradient(rgba(34,43,58,0.7), rgba(34,43,58,0.7)), url('../media/church.jpg') center/cover no-repeat;
}

.hero-content, .nav {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 32px 20px 24px 20px;
  background: rgba(34,43,58,0.55);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(34,43,58,0.10);
  max-width: 480px;
  margin: 32px auto 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 1px 0 #005866;
  /* Remove gradient for solid white text */
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #fff;
  background-clip: initial;
  margin-bottom: 0.5em;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 500;
  color: #e3e9f3;
  margin-bottom: 1.2em;
}

.nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,43,58,0.07);
  padding: 1.2rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 18px 18px;
}

.nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  color: #005866;
  text-decoration: none;
  padding: 10px 18px;
  display: block;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav ul li a:hover, .nav ul li a:focus {
  background: #e3e9f3;
  color: #007fa3;
}

.btn {
  background: linear-gradient(90deg, #005866 0%, #007fa3 100%);
  color: #fff;
  padding: 12px 28px;
  margin-top: 1rem;
  text-decoration: none;
  border-radius: 24px;
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn:hover, .btn:focus {
  background: linear-gradient(90deg, #007fa3 0%, #005866 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.03);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #2196f3;
  padding: 0.7em 1.5em;
  border-radius: 2em;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: #2196f3;
  color: #fff;
}

main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

section {
  margin-bottom: 60px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,43,58,0.06);
  padding: 32px 18px 28px 18px;
  margin-top: 32px;
}

section h2 {
  color: #005866;
  border-bottom: 2px solid #e3e9f3;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

footer {
  background: #222b3a;
  color: #fff;
  text-align: center;
  padding: 28px 0 18px 0;
  border-radius: 18px 18px 0 0;
  margin-top: 48px;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

/* --- Modernized Hero Section --- */
.hero-content.modern-left {
  max-width: 600px;
  margin-left: 4vw;
  margin-right: auto;
  text-align: left;
  background: rgba(34, 43, 58, 0.65);
  border-radius: 1.5em;
  padding: 2.5em 2.5em 2em 2.5em;
  box-shadow: 0 4px 32px rgba(34,43,58,0.10);
  position: relative;
  top: 2vw;
}
.hero-content.modern-left h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
.hero-content.modern-left p {
  font-size: 1.45rem;
  color: #e3e3e3;
  margin-bottom: 1.5em;
}
.hero-content.modern-left .btn {
  margin-right: 1em;
  margin-bottom: 0.5em;
}

.site-footer {
  background: #23272b;
  color: #fff;
  padding: 2.5em 0 0.5em 0;
  font-family: inherit;
  font-size: 1.05em;
}
.site-footer hr {
  margin: 0 0 2em 0;
  border: none;
  border-top: 3px solid #2196f3;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto 2em auto;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1 1 220px;
  min-width: 200px;
}
.footer-col h3 {
  font-size: 1.25em;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-col p, .footer-col a {
  color: #fff;
  margin: 0.2em 0;
  text-decoration: none;
  font-weight: 400;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 1em auto;
  padding-top: 1em;
  border-top: 1px solid #333a;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #2196f3;
}
.footer-social {
  display: flex;
  gap: 1em;
}
.footer-social a {
  display: inline-block;
  transition: transform 0.2s;
}
.footer-social a:hover {
  transform: scale(1.12);
}
.footer-social svg {
  display: block;
}
.footer-copyright {
  text-align: center;
  color: #bbb;
  font-size: 0.98em;
  margin-top: 1.5em;
}

/* Pastor image: larger, oval shape */
#about img[alt*="Pastor"] {
  max-width: 260px;
  width: 100%;
  aspect-ratio: 1.1/1;
  border-radius: 50% / 45%;
  box-shadow: 0 2px 16px rgba(34,43,58,0.14);
  margin-bottom: 1.2em;
  margin-top: 0.5em;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Embed container for videos */
.embed-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Newsletter link styles */
.newsletter-link {
  text-align: center;
  margin-top: 1rem;
}

.newsletter-link a {
  color: #004080;
  text-decoration: underline;
  font-weight: bold;
}

/* --- Animated Buttons --- */
.btn, button.btn {
  background: #2196f3;
  color: #fff;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
  will-change: background, color, box-shadow, transform;
}
.btn:hover, .btn:focus, button.btn:hover, button.btn:focus {
  background: #1976d2;
  color: #fff;
  box-shadow: 0 4px 16px rgba(33,150,243,0.12);
  transform: translateY(-2px) scale(1.04);
}
.btn:active, button.btn:active {
  background: #1565c0;
  color: #fff;
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #2196f3;
}
.btn-outline:hover, .btn-outline:focus {
  background: #2196f3;
  color: #fff;
}

/* --- Section Fade-in Animation --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.23,1.01,.32,1), transform 0.7s cubic-bezier(.23,1.01,.32,1);
  will-change: opacity, transform;
}
.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

/* --- Back to Top Button --- */
#back-to-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  background: #2196f3;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2em;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(33,150,243,0.18);
  cursor: pointer;
  z-index: 200;
  transition: background 0.2s, transform 0.2s;
}
#back-to-top:hover {
  background: #1565c0;
  color: #fff;
  transform: scale(1.1);
}

/* --- Responsive Layout --- */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: stretch;
  }
  section {
    padding: 1.5em 0.7em;
  }
  .hero-content {
    margin: 2em 1em 0 1em;
    padding: 1.5em 1em;
  }
}
@media (max-width: 700px) {
  nav ul {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1em;
    padding-bottom: 0.5em;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
  nav ul::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  nav li {
    display: inline-block;
    margin-right: 0.5em;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1em;
    align-items: flex-start;
  }
  .footer-main {
    gap: 1em;
  }
  .hero-content {
    max-width: 98vw;
    padding: 18px 4vw 18px 4vw;
  }
  section {
    padding: 18px 4vw 18px 4vw;
    margin-top: 18px;
  }
  .livestream iframe {
    height: 220px;
  }
}

.google-doc-embed {
  width: 816px;
  max-width: 100vw;
  overflow-x: auto;
  margin: auto;
  background: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(34,43,58,0.12);
  display: flex;
  justify-content: center;
}

.google-doc-embed iframe {
  display: block;
  background: #fff;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .google-doc-embed {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
  }
  .google-doc-embed iframe {
    width: 100vw;
    max-width: 100vw;
    height: 70vw; /* maintain aspect ratio */
  }
}
