/*
Theme Name: Millrock Theme
Theme URI: 
Author: Developed
Author URI: 
Description: A custom theme for Millrock Baptist Church with a navy blue color scheme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: millrock
*/

/* --- CSS Variables & Resets --- */
:root {
  --navy-blue: #0B3B60;
  --navy-blue-hover: #07263d;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f1f1f1;
  --gray-dark: #333333;
}

body, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Ramabhadra', sans-serif;
  font-weight: bold;
}

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

/* --- Utilities --- */
.text-navy { color: var(--navy-blue); }
.bg-navy { background-color: var(--navy-blue); color: var(--white); }
.bg-black { background-color: var(--black); color: var(--white); }
.bg-white { background-color: var(--white); color: var(--black); }
.bg-gray { background-color: var(--gray-light); color: var(--black); }
.text-center { text-align: center; }
.padding-large { padding: 64px 16px; }
.padding-small { padding: 16px; }
.margin-bottom { margin-bottom: 24px; }
.full-width { width: 100%; display: block; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--navy-blue);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--navy-blue-hover);
  color: white;
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--navy-blue);
  color: var(--navy-blue);
}
.btn-outline:hover {
  background-color: var(--navy-blue);
  color: white;
}
.btn-black {
  background-color: var(--black);
  color: white;
}
.btn-black:hover {
  background-color: #222;
}
.btn-giving {
  background-color: var(--navy-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: white;
}
.btn-giving:hover {
  background-color: var(--navy-blue-hover);
}

/* --- Layout Grid --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.col {
  flex: 1;
  padding: 16px;
}
.col-half {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 16px;
}
.col-third {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  padding: 16px;
}
@media (max-width: 768px) {
  .col, .col-half, .col-third {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  height: 100px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo-link {
  display: flex;
  align-items: center;
}
.site-logo {
  width: auto;
  max-width: 280px;
  max-height: 75px;
  object-fit: contain;
}
.nav-giving {
  padding-left: 20px;
  display: flex;
  align-items: center;
}
.logo-text {
  font-family: 'Times New Roman', serif;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.1;
  color: var(--black);
}

.nav-desktop {
  display: flex;
  align-items: center;
}
.nav-link {
  padding: 16px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
}
.nav-link:hover {
  background-color: var(--gray-light);
}
.nav-mobile-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-mobile-btn { display: block; }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--navy-blue);
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.mobile-nav-overlay a {
  display: block;
  padding: 20px;
  text-align: center;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 160px);
  min-height: 600px;
  margin-top: 80px;
  background: #000;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active {
  opacity: 1;
}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25); /* Lightened to match New Pilgrim */
  z-index: 2;
}
.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 800px;
}
.slide-title {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.slide-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  color: black;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}
.slider-btn:hover {
  background: rgba(255,255,255,0.6);
  color: black;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* --- Info Bar --- */
.info-bar {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 0;
  padding: 0;
}
.info-time, .info-location {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  gap: 24px;
  color: white;
}
.info-time {
  background-color: #ba2d15;
}
.info-location {
  background-color: var(--black);
}
.info-icon {
  flex-shrink: 0;
}
.info-text {
  text-align: left;
}
.info-text h3 {
  margin: 0;
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.info-text p {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-weight: normal;
}
.info-bar-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.info-bar-subtitle {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: bold;
}
.info-bar-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.info-bar-buttons .btn-outline {
  border-color: var(--navy-blue);
  color: var(--navy-blue);
}


/* --- Blocks --- */
.welcome-block {
  background-color: var(--white);
  color: var(--black);
}
.welcome-img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.welcome-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.stay-connected-block {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
}
.grid-block {
  display: flex;
  flex-wrap: wrap;
}
.grid-item {
  flex: 1;
  min-width: 300px;
  height: 400px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-item::before {
  content: "";
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.5);
}
.grid-item-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 40px 16px;
}

/* --- WP Dropdown Menus --- */
.nav-desktop-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop-menu > li {
  position: relative;
}
.nav-desktop-menu a {
  display: block;
  padding: 16px 20px;
  font-weight: 700;
  text-transform: capitalize;
  font-size: 16px;
  color: var(--navy-blue);
  transition: background-color 0.2s;
}
.nav-desktop-menu a:hover {
  background-color: var(--gray-light);
}
/* Sub-menu styling */
.nav-desktop-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
}
.nav-desktop-menu .menu-item-has-children:hover > .sub-menu {
  display: block;
}
.nav-desktop-menu .sub-menu li {
  border-bottom: 1px solid #f1f1f1;
}
.nav-desktop-menu .sub-menu a {
  padding: 12px 16px;
  font-size: 13px;
  text-transform: none;
  font-weight: normal;
}
.nav-desktop-menu .sub-menu a:hover {
  background-color: var(--navy-blue);
  color: var(--white);
}

/* Mobile Submenu Expansion */
.mobile-nav-overlay .menu-item-has-children > a::after {
  content: ' \25BC';
  font-size: 12px;
}
.mobile-nav-overlay .sub-menu {
  display: block;
  background: rgba(0,0,0,0.1);
  padding: 0;
  list-style: none;
}
.mobile-nav-overlay .sub-menu a {
  font-size: 15px;
  padding: 15px;
  font-weight: normal;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- Mobile Specific Tweaks --- */
@media (max-width: 768px) {
  .info-bar {
    flex-direction: column;
  }
  .slide-title {
    font-size: 2.5rem;
  }
  .slide-subtitle {
    font-size: 1.2rem;
  }
  .info-bar-buttons {
    flex-direction: column;
    width: 100%;
  }
  .info-bar-buttons .btn {
    width: 100%;
  }
}

