/*
Theme Name: Miracle Outreach Ministry International
Theme URI: https://miracleoutreachministry.org
Author: Miracle Outreach Ministry
Author URI: https://miracleoutreachministry.org
Description: Custom WordPress theme for Miracle Outreach Ministry International church website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miracle-outreach
Tags: church, ministry, religious, purple, gold
*/

/* ===========================
   ROOT VARIABLES - Church Colors
   =========================== */
:root {
  --purple: #7b2cbf;
  --gold: #d4af37;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #6b7280;
  --gray-dark: #374151;
}

/* ===========================
   GLOBAL STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

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

/* ===========================
   HEADER STYLES
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.church-seal {
  /* Increased header logo from 60px to 100px for better visibility */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* Added object-fit to prevent distortion and maintain circular shape */
  object-fit: cover;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.site-tagline {
  font-size: 0.75rem;
  color: #d1d5db;
  margin: 0;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--gold);
}

.btn-donate {
  background-color: var(--purple);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-donate:hover {
  background-color: #6a1fa7;
}

/* ===========================
   HERO SLIDER
   =========================== */
.hero-slider {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Ensure first slide is always visible by default */
.slide:first-child {
  opacity: 1;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 900px;
  /* Increased z-index to ensure content stays above overlay and images */
  z-index: 15;
  /* Hide content by default - only show on active slides */
  opacity: 0;
  transition: opacity 0.5s ease;
  /* Content visibility now controlled by parent .slide opacity */
}

/* Show content only on active slides */
.slide.active .slide-content {
  opacity: 1;
}

.slide-seal {
  /* Reduced slider seal from 200px to 75px for better proportion */
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide-title {
  font-size: 3.75rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.slide-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.slide-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  /* Added z-index and position to ensure buttons display above slider images */
  position: relative;
  /* Increased z-index to keep buttons visible above all slider elements */
  z-index: 20;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Added display, z-index, and !important declarations to override WordPress defaults */
  display: inline-block;
}

.btn-primary {
  background-color: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #6a1fa7;
}

.btn-secondary {
  background-color: var(--gold);
  color: var(--black);
}

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

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  width: 2rem;
  background-color: var(--gold);
}

/* ===========================
   SECTION STYLES
   =========================== */
.section {
  padding: 4rem 2rem;
}

.section-alt {
  background-color: var(--gray-light);
}

.section-purple {
  background: linear-gradient(to bottom, rgba(123, 44, 191, 0.05), var(--white));
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--gold);
  margin: 0 auto 1rem;
}

/* ===========================
   CARD STYLES
   =========================== */
.card {
  background-color: var(--white);
  border: 2px solid rgba(123, 44, 191, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

/* ===========================
   GALLERY
   =========================== */
.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===========================
   FORMS
   =========================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(123, 44, 191, 0.3);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 3rem 2rem;
}

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

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

.footer-title {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-text {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-text.italic {
  font-style: italic;
}

.footer-link {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .site-title {
    font-size: 1rem;
  }

  .site-tagline {
    display: none;
  }

  .hero-slider {
    height: 600px;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center {
  text-align: center;
}
.text-purple {
  color: var(--purple);
}
.text-gold {
  color: var(--gold);
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mt-4 {
  margin-top: 2rem;
}
