
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lexend", Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .highlight {
  font-family: "Protest Strike", Arial, Helvetica, sans-serif;
  letter-spacing: 0.1rem;
}

h2 {
  font-size: 2rem;
  color:#000;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* LAYOUT UTILITIES */
.row {
  max-width: 1000px;
  margin: auto;
}

/* HEADER */
header {
  background-color: #fff;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 1.8rem;
  padding: 1rem 0 0.5rem;
  color: #222;
}

#headerLogo {
  max-width: 90%;
  width: 450px;
  margin: 1rem auto;
  display: block;
}

/* NAVBAR */
nav {
  background-color: #d2b100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.6rem 0;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.2s;
}

nav a:hover {
  color: #a81e1e;
}

/* Hide mobile button on desktop */
#mobileMenuBtn {
  display: none;
  background: none;
  border: none;
  color: #000;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
}

/* HERO */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;

  background: url("../Images/Bible.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #3a2f2f;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h2, .hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.hero-content p.local-seo {
  font-size: 1rem;
  margin-bottom: .5rem;
}

/* MAP + SEARCH */
#mapAndResults {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#map {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Search Controls (new version kept) */
.search-controls-horizontal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.inputs-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-group { flex: 7; }
.radius-group { flex: 3; }

.location-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.location-wrapper input,
.radius-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.loc-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #a81e1e;
  transition: color 0.2s;
}

.loc-btn svg {
  display: block;
}

.loc-btn:hover {
  color: #7a0f0f;
}

.search-btn {
  align-self: center;
  padding: 10px 20px;
  font-size: 16px;
}

.loading-spin {
  animation: spin 1s linear infinite;
  display: block;
}

@keyframes spin {
  to { transform: rotate(270deg); }
}


/* BUTTONS */
.btn {
  display: inline-block;
  background-color: #d2b100;
  border: 2px solid #d2b100;
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 1rem;
}

.btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #3a2f2f;
}

.btn.secondary {
  background-color: rgba(0, 0, 0, 0.1);
  color: #3a2f2f;
  border: 2px solid #d2b100;
}

.btn.secondary:hover {
  background-color: #d2b100;
  color: #fff;
}

.btn.dark {
  background-color: rgba(0, 0, 0, 0.3);
  color: #222;
  border: 2px solid #222;
}

.btn.dark:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/*Sorting Controls*/
#sortingControls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 10px auto;
  max-width: 700px;
  padding: 0 10px;
}

#sortingControls label {
  font-weight: bold;
  font-size: 0.95rem;
}

#sortingControls select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}


/* CHURCH GRID */
.church-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.church-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.church-card .info {
  padding: 1rem;
  flex-grow: 1;
}

.church-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem;
}

#placeholder {
  font-style: italic;
  color: #555;
}

/* SECTIONS */
/* Mission */
#mission {
  background-color: #000;
}
#mission h2 {
  color:#d2b100;
}

/*Seo block*/


.local-info h2 {
  margin-bottom: 1rem;
}

/* Get Involved */
#get-involved {
  text-align: center;
  padding: 2rem 10%;
}
.highlight { color:#a81e1e; }

#get-involved h2 {
  margin: 1rem 0 0.6rem 0;
}

#get-involved p.scripture {
  margin: 1rem 0;
}

#get-involved .search-controls-horizontal {
  flex-direction: row;
  align-items: center;
  justify-content: center;

  margin: 1.5rem auto;
}

#get-involved .search-btn {
  margin-top: 0;
}

/* Gold Section */
.gold-section, .black-section {
  padding: 4rem 10%;
  text-align: center;
}

.gold-section {
  background-color: #d2b100;
  color: #222;
}

.black-section {
  background-color: #000;
  color:white;
}

.black-section h2 {
  color:#d2b100;
}

.gold-section p, .black-section p {
  max-width: 700px;
  margin: 0.5rem auto;
  line-height: 1.6;
}

.gold-section p {
  color: #000;
}

.black-section p {
  color:white;
}

/* Beliefs */
.beliefs-section {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 4rem 10%;
  z-index: 1;
}

.beliefs-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
}

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

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

.belief-card {
  background:#a81e1e;
  color:#fff;
  padding:1.2rem;
  border-radius:10px;
  font-weight:bold;
  line-height:1.4;
  transition:transform 0.3s, box-shadow 0.3s;
}

.belief-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ---------------------------
   FOUNDER: image left / text right
   --------------------------- */
.founder {
  background-color: #000;
  color: #fff;
  padding: 4rem 10%;
  text-align: left;
}

.founder h2 {
  color: #d2b100;
  text-align: center;
  margin-bottom: 2rem;
}

/* layout container: image + first paragraph */
.founder-flex {
  display: flex;
  align-items: flex-start; /* top-align text with image */
  gap: 2rem;
  flex-wrap: nowrap; /* keep side-by-side on wide screens */
  max-width: 1000px;
  margin: 0 auto 1.5rem auto;
}

/* fixed, constrained image on the left */
.founder-img {
  flex: 0 0 250px;      /* fixed width */
  max-width: 250px;     /* protect from growing */
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255,255,255,0.15);
}


/* the second standalone paragraph below the .founder-flex */
#founder p {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0f0f0;
}

/* paragraph to the right of image */
.founder-flex > p {
  flex: 1 1 0;
  line-height: 1.7;
  color: #f0f0f0;
  margin: 0; /* control spacing in block */
}



/* ensure image doesn't stretch in odd cases */
.founder-img[src=""] {
  display: none;
}

/* Responsive breakpoint: collapse to vertical on small screens */
@media (max-width: 768px) {
  .founder-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #founder p {
    text-align: center;
  }
  .founder-flex > p {
    max-width: 680px;
  }
  .founder-img {
    max-width: 70%;
    flex: 0 0 auto;
  }
}

/* ---------------------------
   CONTACT: form styling and spacing
   --------------------------- */
#contact {
  text-align: center;
  padding: 4rem 10%;
}

/* constrain the form and stack inputs */
#contact form {
  max-width: 480px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* inputs and textarea full width with consistent styling */
#contact input[type="text"],
#contact input[type="email"],
#contact textarea,
#signupSection input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: #222;
  resize: vertical;
}

/* focus states */
#contact input:focus,
#contact textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(210,177,0,0.12);
  border-color: #d2b100;
}

/* submit button alignment and spacing */
#contact form .btn[type="submit"],
#contact form button[type="submit"] {
  align-self: center; /* center the button */
  margin-top: 0.5rem;
  padding: 0.9rem 1.6rem;
}

#contact #contactDisclaimer {
  font-size: 0.85rem;
  color: #555;
  margin-top: 1rem;
  font-style: italic;
}

#contact #contactDisclaimer a {
  font-size: 0.8rem;
  color: #d2b100;
  margin-top: 1rem;
  font-style: italic;
}

/* on small screens make submit full width */
@media (max-width: 600px) {
  #contact form .btn[type="submit"],
  #contact form button[type="submit"] {
    width: 100%;
    align-self: stretch;
  }
  .founder-flex > p {
    text-align: center;
  }
}



/*Terms and Privacy Sections*/
#terms, #privacy {
  max-width: 800px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  line-height: 1.6;
  color: #333;
}

#terms h3, #privacy h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #a81e1e;
}

#terms p , #privacy p {
  margin-left: 1rem;
}

#terms ul, #privacy ul {
  margin-left: 3rem;
}

.regularHeading {
  padding: 5rem 2rem;
  background-color: #222;

  display: flex;
  
}

.regularHeading .row {
  display: flex;
  justify-content: flex-start;
}

.regularHeading h2{
  color:#ddd;
  
}

/*Sign Up Section*/
#signupSection {
    background: #d2b100;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

#signupSection #signupMainContent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: auto;
}

#signupSection p {
    margin-right: 2rem;
    flex: 1;
    font-weight: 500;
}

/* Right side layout */
#signupForm {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* Match your contact input styling */
#signupForm input {
    width: auto;
    margin-right: 1rem;
}

#signupSection .btn {
  margin-top: 0;
}


/* Confirmation message under whole section */
#signupSection #signupMessage {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

#signupMainContent h2 {
  margin: 1rem 0;
}

/*Thanks page*/
#thanks {
  height: 80vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url("../Images/Bible.webp");
  background-size: cover;
  background-position: center center;
  
}

#thanks h2 {
  color:#222;
}


/* FOOTER */
footer {
  background-color:#222;
  color:#fff;
  text-align:center;
  padding:2rem 1rem;
  font-size:0.9rem;
}

footer .footer-locations {
  margin-bottom: .5rem;
}

.socials {
  display:flex;
  justify-content:center;
  gap:20px;
  margin:1rem 0;
}

.socials a {
  color:#d2b100;
  font-size:1.3rem;
}

footer .socials a svg {
  width: 32px;
  height: 32px;
}


#termsLinks {
  margin-top: 1rem;
}

#termsLinks a {
  color:#d2b100;
  margin: 0 0.8rem;
  text-decoration: underline;
}



/* RESPONSIVE */
@media (max-width: 1000px) {
  .church-grid {
    grid-template-columns: repeat(2, minmax(250px,1fr));
  }
}

@media (max-width: 900px) {
  .belief-grid {
    grid-template-columns: repeat(2,1fr);
  }

  #signupMainContent {
    flex-direction: column;
  } 
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .founder-flex {
    flex-direction: column;
  }

  #get-involved .search-controls-horizontal {
    flex-direction: column;
  }
  
  /* Turn yellow bar into a centered flex bar */
  nav {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* centers hamburger horizontally */
    align-items: center;        /* centers it vertically */
    padding: 0.6rem 0;
  }

  /* Show hamburger */
  #mobileMenuBtn {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #000;
    cursor: pointer;
    padding: 0;
    line-height: 0;
  }

  #mobileMenuBtn svg {
    display: block;
    width: 36px;
    height: 36px;
  }

  


  /* Hide the row wrapping your <ul> so it behaves vertically */
  nav .row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Hide menu by default */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.5rem;
  }

  /* Show when nav gets .open */
  nav.open ul {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(0,0,0,0.15);
  }
}



@media (max-width: 600px) {
  .inputs-row {
    flex-direction: column;
  }
  .church-grid {
    grid-template-columns: 1fr;
  }
  .belief-grid {
    grid-template-columns:1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  footer .socials a svg {
    width: 48px;
    height: 48px;
  }
}
