/* ============================================
   The Worship Room - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  background-color: #000;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fjalla One', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: #f3c242;
  line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 40px; }
h3 { font-size: 36px; }
h4 { font-size: 40px; }
h5 { font-size: 36px; }
h6 { font-size: 24px; }

p {
  margin-bottom: 1em;
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #f3c242;
  color: #000;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: transparent;
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
}

.site-logo img {
  height: 87px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-list li a {
  display: block;
  padding: 10px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: #f3c242;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

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

.mobile-nav-list {
  text-align: center;
}

.mobile-nav-list li {
  margin: 12px 0;
}

.mobile-nav-list li a {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  padding: 8px 16px;
  display: inline-block;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
  color: #f3c242;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 78px;
}

.hero-video {
  min-height: 110vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 16px;
}

.hero-title {
  font-family: 'Fjalla One', sans-serif;
  font-size: clamp(32px, 6vw, 64px);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.1;
}

/* --- Hero Video Background --- */
.hero-video {
  background: #000;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video-mobile {
  display: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
  }
}

.hero-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid #f3c242;
  color: #f3c242;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #f3c242;
  color: #000;
}

.btn-hero {
  border: 4px double #f3c242;
  border-radius: 8px;
  padding: 14px 40px;
  font-size: 16px;
  letter-spacing: 2px;
}

.btn-hero:hover {
  background: #f3c242;
  color: #000;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #f3c242;
  border-radius: 50%;
  color: #f3c242;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #f3c242;
  color: #000;
}

/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section-dark {
  background: #000;
}

.section-darker {
  background: #111;
}

.section-gold-bg {
  background: #f3c242;
  color: #000;
}

.section-gold-bg h2,
.section-gold-bg h3,
.section-gold-bg h4,
.section-gold-bg h6 {
  color: #000;
}

/* --- Get a Glimpse background video --- */
.glimpse-section {
  position: relative;
  overflow: hidden;
  padding: 163px 0;
  background: #111;
}

.glimpse-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000 url('../images/glimpse-poster.jpg') center / cover no-repeat;
}

.glimpse-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(1.4);
  border: 0;
  pointer-events: none;
}

.glimpse-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

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

.shape-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.shape-divider-top { top: 0; }
.shape-divider-bottom { bottom: 0; }

.shape-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

.shape-divider path { fill: #000; }

.hero-divider path { fill: #333; }

.header-divider path { fill: #141414; }

/* --- Image banner (Upcoming Events) --- */
.banner-section {
  position: relative;
  overflow: hidden;
  padding: 163px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

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

/* --- Stacked event date --- */
.event-date-stack {
  text-align: center;
  white-space: nowrap;
  font-family: 'Fjalla One', sans-serif;
  text-transform: uppercase;
  color: #f3c242;
}

.event-date-stack .ev-day {
  display: block;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.05;
}

.event-date-stack .ev-datenum {
  display: block;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.05;
}

/* --- Fade-in on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

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

.section-gold-bg .btn {
  border-color: #000;
  color: #000;
}

.section-gold-bg .btn:hover {
  background: #000;
  color: #f3c242;
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 24px;
}

.section-subtitle {
  font-family: 'Fjalla One', sans-serif;
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --- Parallax Wrapper (Who We Are + Live Events) --- */
.parallax-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: -66px;
  padding-bottom: 60px;
  z-index: 2;
}

/* --- Who We Are (Homepage) --- */
.who-we-are {
  position: relative;
  z-index: 2;
  padding: 0 16px 40px;
}

.who-we-are-card {
  width: 60%;
  margin: 0 auto;
  background: #000;
  text-align: center;
  padding: 50px 40px;
}

.who-we-are-card h2 {
  margin-bottom: 20px;
}

.who-we-are-card p {
  max-width: 700px;
  margin: 0 auto 24px;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col-text {
  padding: 20px 0;
}

.two-col-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Live Events Section --- */
.live-events-parallax {
  position: absolute;
  inset: 66px 0 -20% 0;
  background-size: 150%;
  background-position: 80% center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.live-events-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 585px;
}

.live-events-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px 60px calc((100vw - 1200px) / 2 + 16px);
  max-width: none;
}

@media (max-width: 1232px) {
  .live-events-text {
    padding-left: 16px;
  }
}

.live-events-text h4 {
  margin-bottom: 20px;
}

.live-events-image {
  position: relative;
  overflow: hidden;
}

.live-events-image img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Event Info Card --- */
.event-card {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.event-card-overlay {
  position: relative;
  width: 70%;
  margin: 30px auto 0;
  background: #000;
  padding: 50px 30px;
}

.event-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.event-date {
  font-family: 'Fjalla One', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  color: #f3c242;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-time {
  font-family: 'Fjalla One', sans-serif;
  font-size: clamp(18px, 2vw, 25px);
  color: #fff;
  white-space: nowrap;
}

.event-venue {
  font-family: 'Fjalla One', sans-serif;
  font-size: clamp(14px, 1.8vw, 21px);
  color: #fff;
  white-space: nowrap;
}

.event-card-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Map + Event Wrapper --- */
.map-event-wrapper {
  background: #333;
  padding: 40px 0;
}

/* --- Google Map Embed --- */
.map-container {
  width: 70%;
  height: 400px;
  overflow: hidden;
  margin: 0 auto;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Giving Section --- */
.giving-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 585px;
  background: #000;
}

.giving-image {
  position: relative;
  overflow: hidden;
}

.giving-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giving-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 50px;
  margin-left: -40px;
  position: relative;
  z-index: 1;
}

/* --- Contact Page --- */
.contact-info {
  padding: 40px;
}

.contact-info h3 {
  color: #000;
  margin-bottom: 16px;
  font-size: 32px;
}

.contact-info p {
  color: #000;
  font-size: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item i {
  color: #f3c242;
  font-size: 18px;
  margin-top: 4px;
}

.contact-item a {
  color: #000;
}

.contact-item a:hover {
  color: #f3c242;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-group label .required {
  color: #f3c242;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ccc;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: #333;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f3c242;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  padding: 10px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: #f3c242;
  border-color: #f3c242;
  color: #000;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-status {
  margin-top: 18px;
  min-height: 1.3em;
  font-weight: 600;
  text-align: center;
}

.recaptcha-note {
  max-width: 600px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.recaptcha-note a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

/* --- Event Log --- */
.event-log-entry {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.event-log-entry:last-child {
  border-bottom: none;
}

.event-log-entry h3 {
  font-size: 28px;
  margin-bottom: 4px;
}

.event-log-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  display: block;
}

.event-log-entry p {
  margin-bottom: 0.8em;
  line-height: 1.9;
}

/* --- Knowing Jesus Page --- */
.knowing-section h3 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid #f3c242;
  padding-bottom: 8px;
  display: inline-block;
}

.knowing-section p {
  margin-bottom: 1.2em;
}

.prayer-box {
  background: rgba(243, 194, 66, 0.08);
  border-left: 4px solid #f3c242;
  padding: 24px 28px;
  margin: 30px 0;
  font-style: italic;
  line-height: 2;
}

.prayer-box p {
  margin-bottom: 0.8em;
}

/* --- Jesus Is Alive Page --- */
.jia-info h6 {
  margin-bottom: 8px;
}

.jia-section {
  margin-bottom: 40px;
}

.jia-section h6 {
  margin-bottom: 16px;
}

.ticket-link {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Fjalla One', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  border: 2px solid #f3c242;
  color: #f3c242;
  transition: all 0.3s ease;
}

.ticket-link:hover {
  background: #f3c242;
  color: #000;
}

.video-placeholder {
  background: #222;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  padding: 60px 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 8px;
}

.video-placeholder p {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* --- Image Placeholders --- */
.image-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  min-height: 300px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* --- Footer --- */
.site-footer {
  background: #0a0a0a;
  padding: 50px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #f3c242;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-logo img {
  height: 118px;
  width: auto;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #f3c242;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #f3c242;
}

.footer-copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .nav-list {
    gap: 2px;
  }

  .nav-list li a {
    padding: 10px 8px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-video {
    min-height: 110vh;
  }

  /* Hide the GET A GLIMPSE video on mobile so the fallback poster shows */
  .glimpse-video iframe {
    display: none;
  }

  .site-logo img {
    height: 70px;
  }

  .hero-title {
    font-size: 32px;
  }

  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 26px; }
  h4 { font-size: 30px; }
  h5 { font-size: 26px; }
  h6 { font-size: 20px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .who-we-are-card {
    width: 90%;
    padding: 36px 24px;
  }

  .live-events-parallax {
    background-attachment: scroll;
  }

  .live-events-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .live-events-text {
    padding: 40px 16px;
    max-width: none;
    margin-left: 0;
  }

  .live-events-image {
    position: relative;
    height: 300px;
  }

  .giving-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .giving-image {
    height: 300px;
  }

  .giving-text {
    padding: 40px 16px;
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .section {
    padding: 40px 0;
  }

  .event-card-overlay {
    padding: 30px 16px;
  }

  .event-card-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .map-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 13px;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
