/*
Theme Name:   Power House Child
Theme URI:    https://powerhousewm.org
Description:  Power House World Ministries – NBUN Network Child Theme (based on Hello Elementor)
Author:       Power House World Ministries
Author URI:   https://powerhousewm.org
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  powerhouse-child
Tags:         ministry, church, elementor, nbun
*/

/* ─── BRAND TOKENS ──────────────────────────────────────── */
:root {
  --phwm-purple:      #3B0764;
  --phwm-purple-mid:  #6D28D9;
  --phwm-gold:        #F59E0B;
  --phwm-dark:        #0F0A1E;
  --phwm-dark-card:   #1a0a30;
  --phwm-cream:       #FFF8EE;
  --phwm-gray:        #374151;
  --phwm-gray-light:  #6B7280;
  --phwm-white:       #FFFFFF;

  --phwm-font-display: 'Playfair Display', Georgia, serif;
  --phwm-font-body:    'Inter', system-ui, sans-serif;

  --phwm-radius-sm: 6px;
  --phwm-radius-md: 12px;
  --phwm-radius-lg: 20px;
  --phwm-shadow:    0 4px 24px rgba(59,7,100,0.12);
  --phwm-shadow-lg: 0 8px 40px rgba(59,7,100,0.18);
}

/* ─── BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--phwm-font-body);
  color: var(--phwm-gray);
  background: var(--phwm-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phwm-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--phwm-purple);
}

a {
  color: var(--phwm-purple);
  transition: color 0.2s ease;
}
a:hover { color: var(--phwm-gold); }

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

/* ─── ANNOUNCEMENT MARQUEE ───────────────────────────────── */
.phwm-marquee-bar {
  background: var(--phwm-gold);
  color: var(--phwm-dark);
  font-family: var(--phwm-font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.phwm-marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ─── STICKY NAV ─────────────────────────────────────────── */
.site-header,
.elementor-location-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: var(--phwm-purple) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { background: var(--phwm-dark) !important; }

/* ─── NAV LINKS ──────────────────────────────────────────── */
.elementor-nav-menu a {
  font-family: var(--phwm-font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--phwm-white) !important;
  letter-spacing: 0.5px;
  transition: color 0.2s ease !important;
}
.elementor-nav-menu a:hover,
.elementor-nav-menu .current-menu-item > a {
  color: var(--phwm-gold) !important;
}
.current-menu-item > a {
  border-bottom: 2px solid var(--phwm-gold);
  padding-bottom: 2px;
}

/* ─── GIVE ONLINE BUTTON ─────────────────────────────────── */
.phwm-give-btn,
.elementor-button.phwm-give-btn {
  background: var(--phwm-gold) !important;
  color: var(--phwm-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--phwm-radius-sm) !important;
  padding: 10px 22px !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
}
.phwm-give-btn:hover { background: #d97706 !important; transform: translateY(-1px); }

/* ─── HERO SECTION ───────────────────────────────────────── */
.phwm-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--phwm-purple) 0%, var(--phwm-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.phwm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── SECTION TITLE STYLE ────────────────────────────────── */
.phwm-section-title {
  font-family: var(--phwm-font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--phwm-purple);
  text-align: center;
  margin-bottom: 12px;
}
.phwm-section-title.light { color: var(--phwm-white); }
.phwm-section-title.gold  { color: var(--phwm-gold); }

.phwm-section-subtitle {
  text-align: center;
  color: var(--phwm-gray-light);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.phwm-card {
  background: var(--phwm-white);
  border-radius: var(--phwm-radius-md);
  box-shadow: var(--phwm-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phwm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--phwm-shadow-lg);
}
.phwm-card-dark {
  background: var(--phwm-dark-card);
  color: var(--phwm-white);
}

/* ─── EVENT DATE BADGE ───────────────────────────────────── */
.phwm-date-badge {
  width: 64px;
  height: 64px;
  background: var(--phwm-gold);
  color: var(--phwm-dark);
  font-weight: 800;
  font-size: 20px;
  font-family: var(--phwm-font-display);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── SERMON THUMBNAIL ───────────────────────────────────── */
.phwm-img-placeholder,
.phwm-sermon-thumb {
  background: linear-gradient(135deg, var(--phwm-purple), var(--phwm-dark));
  min-height: 180px;
  border-radius: var(--phwm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 48px;
}

/* ─── MINISTRY ICON CARDS ────────────────────────────────── */
.phwm-ministry-card {
  background: var(--phwm-dark-card);
  border-radius: var(--phwm-radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid var(--phwm-gold);
}
.phwm-ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.2);
}
.phwm-ministry-card .icon { font-size: 40px; margin-bottom: 16px; }
.phwm-ministry-card h3 {
  font-family: var(--phwm-font-display);
  color: var(--phwm-white);
  font-size: 20px;
  margin-bottom: 10px;
}
.phwm-ministry-card p { color: #D1D5DB; font-size: 14px; line-height: 1.6; }

/* ─── CATEGORY PILL / BADGE ──────────────────────────────── */
.phwm-badge {
  display: inline-block;
  background: var(--phwm-gold);
  color: var(--phwm-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.phwm-badge.purple { background: var(--phwm-purple); color: var(--phwm-white); }

/* ─── NBUN BADGE ─────────────────────────────────────────── */
.phwm-nbun-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--phwm-gold);
  color: var(--phwm-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ─── NEWSLETTER STRIP ───────────────────────────────────── */
.phwm-newsletter-strip {
  background: var(--phwm-gold);
  padding: 80px 40px;
  text-align: center;
}
.phwm-newsletter-strip h2 {
  color: var(--phwm-dark);
  font-size: 38px;
  margin-bottom: 12px;
}
.phwm-newsletter-strip p { color: var(--phwm-dark); font-size: 17px; margin-bottom: 30px; }
.phwm-newsletter-strip input[type="email"] {
  padding: 14px 20px;
  border-radius: var(--phwm-radius-sm);
  border: none;
  font-size: 15px;
  width: min(360px, 100%);
  margin-right: 10px;
  outline: 2px solid transparent;
  transition: outline 0.2s ease;
}
.phwm-newsletter-strip input[type="email"]:focus { outline-color: var(--phwm-purple); }
.phwm-newsletter-strip button {
  background: var(--phwm-purple);
  color: var(--phwm-white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--phwm-radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.phwm-newsletter-strip button:hover { background: var(--phwm-dark); }

/* ─── TESTIMONIAL CARD ───────────────────────────────────── */
.phwm-testimonial {
  background: var(--phwm-white);
  border-radius: var(--phwm-radius-md);
  padding: 32px;
  box-shadow: var(--phwm-shadow);
  position: relative;
}
.phwm-testimonial::before {
  content: '\201C';
  font-size: 80px;
  color: var(--phwm-gold);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}
.phwm-testimonial blockquote {
  margin: 20px 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--phwm-gray);
  font-style: italic;
}
.phwm-testimonial cite { font-weight: 700; color: var(--phwm-purple); font-style: normal; }

/* ─── TIMELINE ───────────────────────────────────────────── */
.phwm-timeline { position: relative; padding: 0 0 0 40px; }
.phwm-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--phwm-gold), var(--phwm-purple));
  border-radius: 3px;
}
.phwm-timeline-item { position: relative; margin-bottom: 40px; }
.phwm-timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--phwm-gold);
  border: 3px solid var(--phwm-white);
  box-shadow: 0 0 0 3px var(--phwm-gold);
}
.phwm-timeline-year {
  font-family: var(--phwm-font-display);
  font-weight: 800;
  color: var(--phwm-gold);
  font-size: 18px;
  margin-bottom: 4px;
}
.phwm-timeline-desc { color: var(--phwm-gray); font-size: 15px; line-height: 1.6; }

/* ─── SPONSOR / ADVERTISING STRIP ───────────────────────── */
.phwm-sponsor-strip {
  background: var(--phwm-white);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}
.phwm-sponsor-box {
  flex-shrink: 0;
  width: 140px;
  height: 60px;
  background: #F3F4F6;
  border-radius: var(--phwm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 12px;
  font-weight: 600;
  border: 1px dashed #D1D5DB;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.phwm-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.phwm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BACK TO TOP ────────────────────────────────────────── */
#phwm-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--phwm-gold);
  color: var(--phwm-dark);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--phwm-shadow);
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#phwm-back-top.visible { opacity: 1; }
#phwm-back-top:hover { transform: translateY(-3px); }

/* ─── FORMS ──────────────────────────────────────────────── */
.elementor-form .elementor-field-group input,
.elementor-form .elementor-field-group select,
.elementor-form .elementor-field-group textarea {
  border-radius: var(--phwm-radius-sm) !important;
  border: 1px solid #D1D5DB !important;
  padding: 12px 16px !important;
  font-family: var(--phwm-font-body) !important;
  transition: border-color 0.2s ease !important;
}
.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group select:focus,
.elementor-form .elementor-field-group textarea:focus {
  border-color: var(--phwm-purple) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59,7,100,0.1) !important;
}
.elementor-form .elementor-button {
  border-radius: var(--phwm-radius-sm) !important;
  font-family: var(--phwm-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
}

/* ─── DIRECTORY CARDS ────────────────────────────────────── */
.phwm-dir-card {
  background: var(--phwm-white);
  border-radius: var(--phwm-radius-md);
  padding: 28px;
  box-shadow: var(--phwm-shadow);
  border-top: 4px solid var(--phwm-gold);
  transition: transform 0.2s ease;
}
.phwm-dir-card:hover { transform: translateY(-3px); }

/* ─── PRICING TABLE ──────────────────────────────────────── */
.phwm-price-card {
  background: var(--phwm-white);
  border-radius: var(--phwm-radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--phwm-shadow);
  border-top: 4px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.phwm-price-card:hover { transform: translateY(-5px); border-color: var(--phwm-gold); }
.phwm-price-card.featured { border-color: var(--phwm-gold); background: var(--phwm-purple); }
.phwm-price-card.featured h3,
.phwm-price-card.featured .price,
.phwm-price-card.featured p { color: var(--phwm-white) !important; }
.phwm-price-card .price {
  font-family: var(--phwm-font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--phwm-purple);
  line-height: 1;
  margin: 16px 0;
}
.phwm-price-card .period { font-size: 16px; color: var(--phwm-gray-light); }

/* ─── SERVICE SCHEDULE TABLE ─────────────────────────────── */
.phwm-schedule-table { width: 100%; border-collapse: collapse; }
.phwm-schedule-table th {
  background: var(--phwm-purple);
  color: var(--phwm-white);
  padding: 14px 20px;
  text-align: left;
  font-family: var(--phwm-font-display);
  font-size: 15px;
}
.phwm-schedule-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #E5E7EB;
  font-size: 15px;
  color: var(--phwm-gray);
}
.phwm-schedule-table tr:nth-child(even) td { background: var(--phwm-cream); }
.phwm-schedule-table tr:hover td { background: rgba(245,158,11,0.08); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer,
.elementor-location-footer {
  background: var(--phwm-dark) !important;
  color: #D1D5DB !important;
  font-family: var(--phwm-font-body) !important;
}
.site-footer a { color: #D1D5DB !important; transition: color 0.2s ease !important; }
.site-footer a:hover { color: var(--phwm-gold) !important; }
.phwm-footer-heading {
  font-family: var(--phwm-font-display);
  color: var(--phwm-gold) !important;
  font-size: 18px;
  margin-bottom: 16px;
}
.phwm-footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 32px 0;
}
.phwm-social-icons { display: flex; gap: 12px; }
.phwm-social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D1D5DB !important;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none !important;
}
.phwm-social-icon:hover { background: var(--phwm-gold); color: var(--phwm-dark) !important; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .elementor-column { width: 100% !important; }
  .phwm-hero h1 { font-size: 36px !important; }
  .phwm-sponsor-strip { padding: 30px 20px; }
  .phwm-newsletter-strip input[type="email"] { width: 100%; margin: 0 0 10px; }
}
@media (max-width: 480px) {
  .phwm-price-card { padding: 28px 20px; }
  .phwm-price-card .price { font-size: 36px; }
}
