/*
Theme Name: LPH Church
Theme URI: https://lphrialto.org
Author: LPH Family Church
Description: A modern non-denominational Christian church theme for Love, Peace & Happiness Family Church
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lph-church
*/

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1D4ED8;
  --blue-dark: #1e3a8a;
  --blue-light: #EFF6FF;
  --blue-mid: #2563eb;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(0,0,0,0.1);
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { line-height: 1.7; }

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f4ff; color: var(--blue); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue-light); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ============================================================
   CARDS
============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* ============================================================
   NAVIGATION
============================================================ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-branding { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo-img {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.logo-text span { font-size: 11px; color: var(--text-muted); }

.site-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-navigation ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
  text-decoration: none;
}
.site-navigation ul li a:hover,
.site-navigation ul li.current-menu-item a {
  color: var(--text);
  background: var(--bg-alt);
}
.site-navigation ul li.menu-cta a {
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  font-weight: 600;
}
.site-navigation ul li.menu-cta a:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}
.hero-section .container { position: relative; z-index: 1; }
.hero-content { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #86efac;
}
.hero-content h1 { color: #fff; margin-bottom: 20px; font-size: clamp(36px, 5vw, 54px); }
.hero-content h1 .accent { opacity: 0.75; font-weight: 400; }
.hero-content p { font-size: 18px; opacity: 0.85; margin-bottom: 36px; max-width: 500px; line-height: 1.65; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }
.hero-stats {
  display: flex; gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-num { font-size: 30px; font-weight: 700; }
.hero-stat-label { font-size: 13px; opacity: 0.7; margin-top: 2px; }

/* ============================================================
   SERVICE TIMES
============================================================ */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(29,78,216,0.12); }
.service-day {
  font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.service-name { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.service-time { font-size: 26px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.service-location { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.service-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.service-zoom-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}
.service-zoom-link:hover { background: #dbeafe; text-decoration: none; }
.service-zoom-link svg { width: 14px; height: 14px; fill: var(--blue); flex-shrink: 0; }

/* ============================================================
   WELCOME / PASTOR
============================================================ */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.welcome-quote {
  font-size: 20px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 4px solid var(--blue);
  padding-left: 24px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.welcome-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.welcome-text strong { color: var(--text); }
.pastor-sig {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pastor-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.pastor-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.pastor-role { font-size: 13px; color: var(--text-muted); }

.welcome-visual {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 20px;
  padding: 48px 36px;
  color: #fff;
  text-align: center;
}
.welcome-visual .cross-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
  opacity: 0.9;
}
.welcome-visual p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
  font-style: italic;
}
.welcome-visual cite { display: block; margin-top: 12px; font-size: 14px; opacity: 0.7; font-style: normal; }

/* ============================================================
   MINISTRIES
============================================================ */
.ministry-card { text-align: left; }
.ministry-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ministry-icon svg { width: 24px; height: 24px; }
.icon-blue { background: var(--blue-light); }
.icon-blue svg { fill: var(--blue); }
.icon-green { background: #f0fdf4; }
.icon-green svg { fill: #16a34a; }
.icon-amber { background: #fffbeb; }
.icon-amber svg { fill: #d97706; }
.icon-purple { background: #f5f3ff; }
.icon-purple svg { fill: #7c3aed; }
.ministry-card h3 { font-size: 17px; margin-bottom: 8px; }
.ministry-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   RENEW PROCESS
============================================================ */
.renew-steps { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
.renew-step { flex: 1; min-width: 130px; text-align: center; padding: 24px 16px; position: relative; }
.renew-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -8px; top: 38px;
  color: var(--text-muted); font-size: 18px;
}
.renew-letter {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 2px solid #bfdbfe;
}
.renew-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.renew-step p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   GIVE & VOLUNTEER
============================================================ */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card { border-radius: var(--radius); padding: 40px 36px; }
.cta-card.blue-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
}
.cta-card.light-cta {
  background: var(--bg);
  border: 1px solid var(--border);
}
.cta-card h3 { font-size: 24px; margin-bottom: 10px; }
.cta-card.blue-cta p { opacity: 0.85; }
.cta-card.light-cta p { color: var(--text-muted); }
.cta-card p { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

/* ============================================================
   LOCATIONS
============================================================ */
.location-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.location-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.location-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.location-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.location-name { font-size: 17px; font-weight: 600; }
.location-address { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.location-hours { font-size: 13px; background: var(--bg-alt); border-radius: 8px; padding: 12px 16px; }
.location-hours div { padding: 3px 0; }
.location-hours strong { color: var(--blue); }
.location-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 13px; font-weight: 600;
  color: var(--blue);
}

/* ============================================================
   BELIEF SECTION
============================================================ */
.belief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.belief-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.belief-num {
  font-size: 11px; font-weight: 700;
  color: var(--blue); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}
.belief-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.belief-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 22px; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: var(--blue); }
.contact-detail strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-detail span, .contact-detail a { font-size: 13px; color: var(--text-muted); }

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
textarea { min-height: 130px; resize: vertical; }
.wpcf7-submit { background: var(--blue); color: #fff; padding: 13px 32px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.wpcf7-submit:hover { background: var(--blue-dark); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 72px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .footer-logo-icon {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand .footer-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.footer-brand .footer-logo-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h5 { color: #cbd5e1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 8px; transition: color 0.15s; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; }
.footer-cross { color: #60a5fa; font-size: 20px; }

/* ============================================================
   PAGE HERO
============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { opacity: 0.85; font-size: 17px; }
.breadcrumb { font-size: 13px; opacity: 0.7; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ============================================================
   ANNOUNCEMENTS BAR
============================================================ */
.announce-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
}
.announce-bar a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .welcome-grid,
  .contact-grid,
  .cta-grid,
  .grid-3,
  .grid-4,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .renew-step:not(:last-child)::after { display: none; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-navigation { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .site-navigation.open { display: block; }
  .site-navigation ul { flex-direction: column; gap: 4px; }
  .hero-content h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .cta-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
}
