/* ============================================================
   Universal Church Saint Lucia — PWA App Styles v3.0
   Light Gray Theme | Lato + Roboto | List Layout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --bg:           #f0f2f5;
  --card:         #ffffff;
  --header-bg:    #0b1e3d;
  --navy:         #0b1e3d;
  --red:          #c0392b;
  --red-dark:     #a93226;
  --blue:         #0367bf;
  --blue-dark:    #025fa8;
  --text-1:       #0b1e3d;
  --text-2:       #4a5568;
  --text-3:       #8892a4;
  --border:       rgba(0,0,0,0.08);
  --shadow:       0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.1);
  --font-head:    'Roboto', sans-serif;
  --font-body:    'Lato', sans-serif;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
}

/* ── Reset ── */
.church-app-page *, .church-app-page *::before, .church-app-page *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

body.church-app-template {
  background: var(--bg) !important;
  padding: 0 !important; margin: 0 !important;
}

.church-app-page {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ── App Header (navy) ── */
.app-header {
  background: var(--header-bg);
  padding: 14px 18px 16px;
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 100;
}

.app-identity {
  display: flex; align-items: center; gap: 13px;
}

.app-logo {
  width: 58px; height: 58px; border-radius: 13px;
  object-fit: contain; flex-shrink: 0;
}

.app-church-name {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 900;
  color: #ffffff; line-height: 1.15;
}

.app-tagline {
  font-size: 10.5px; color: rgba(255,255,255,0.6);
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700; margin-top: 5px;
  font-family: var(--font-body);
}

/* Inner header */
.app-header-inner {
  display: flex; align-items: center; gap: 12px;
}

.app-back-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,0.9);
  font-size: 20px; flex-shrink: 0; transition: background 0.15s;
}

.app-back-btn:hover { background: rgba(255,255,255,0.2); }

.app-page-title {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700; color: #ffffff;
}

/* ── Listen Live Button ── */
.listen-live-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; background: var(--red);
  border-radius: var(--radius-lg); padding: 14px 20px;
  text-decoration: none; margin-top: 14px; transition: background 0.15s;
}

.listen-live-btn:hover { background: var(--red-dark); }

.ll-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}

.ll-label { font-size: 17px; font-weight: 900; color: #fff; line-height: 1.2; font-family: var(--font-head); }
.ll-sub   { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 700; font-family: var(--font-body); }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: livepulse 1.4s ease-in-out infinite;
}

@keyframes livepulse { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ── App Body ── */
.app-body { padding: 16px 14px 90px; }

.section-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
  margin: 0 0 12px 4px; font-family: var(--font-head);
}

/* ── LIST LAYOUT BUTTONS ── */
.app-list { display: flex; flex-direction: column; gap: 10px; }

.app-btn {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.app-btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: rgba(192,57,43,0.2);
}

.app-btn.red-btn {
  background: var(--red);
  border-color: var(--red);
  margin-top: 4px;
}

.app-btn.red-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.app-btn.red-btn .btn-label { color: #fff; }
.app-btn.red-btn .btn-sub   { color: rgba(255,255,255,0.85); }
.app-btn.red-btn .btn-arrow { color: rgba(255,255,255,0.6); }

.btn-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}

.btn-text { flex: 1; }

.btn-label {
  font-size: 17px; font-weight: 700;
  color: var(--text-1); line-height: 1.2;
  font-family: var(--font-head); display: block;
}

.btn-sub {
  font-size: 13px; color: var(--text-2);
  font-weight: 400; margin-top: 3px;
  font-family: var(--font-body); display: block;
}

.btn-arrow {
  color: var(--text-3); font-size: 20px; flex-shrink: 0;
}

/* Icon colours */
.ic-bg-red    { background: rgba(192,57,43,0.1);  color: #c0392b; }
.ic-bg-gray   { background: rgba(74,85,104,0.1);  color: #4a5568; }
.ic-bg-green  { background: rgba(39,174,96,0.1);  color: #27ae60; }
.ic-bg-blue   { background: rgba(3,103,191,0.1);  color: #0367bf; }
.ic-bg-amber  { background: rgba(243,156,18,0.1); color: #e67e22; }
.ic-bg-teal   { background: rgba(26,188,156,0.1); color: #16a085; }
.ic-bg-purple { background: rgba(155,89,182,0.1); color: #8e44ad; }
.ic-bg-navy   { background: rgba(11,30,61,0.1);   color: #0b1e3d; }
.ic-bg-pink   { background: rgba(236,72,153,0.1); color: #c0392b; }
.ic-bg-white  { background: rgba(0,0,0,0.05);     color: #4a5568; }

/* ── Info Cards ── */
.info-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 15px 16px; margin-bottom: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 13px;
}

.info-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0;
}

.info-text h4 { color: var(--text-1); font-size: 15px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-head); }
.info-text p  { color: var(--text-2); font-size: 13px; line-height: 1.55; font-family: var(--font-body); }

/* ── Intro Box ── */
.intro-box {
  background: var(--card); border-radius: var(--radius-md);
  padding: 15px 16px; border-left: 4px solid var(--red);
  margin-bottom: 16px; box-shadow: var(--shadow);
}

.intro-box.blue { border-left-color: var(--blue); }
.intro-box p { font-size: 14px; color: var(--text-2); line-height: 1.65; font-family: var(--font-body); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-2); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 7px;
  font-family: var(--font-head);
}

.form-input, .form-textarea {
  width: 100%; background: var(--card);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 10px; padding: 13px 15px;
  color: var(--text-1); font-size: 16px;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-input:focus, .form-textarea:focus { border-color: var(--blue); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: none; height: 100px; }

.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  font-size: 13px; font-weight: 700; padding: 7px 15px;
  border-radius: 20px; border: 1.5px solid var(--border);
  color: var(--text-2); cursor: pointer;
  background: var(--card); transition: all 0.1s;
  font-family: var(--font-body);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pill:has(input:checked)      { background: var(--red);  color: #fff; border-color: var(--red); }
.pill.blue:has(input:checked) { background: var(--blue); color: #fff; border-color: var(--blue); }
.pill input { display: none; }

/* ── Submit Buttons ── */
.btn-submit {
  display: block; width: 100%; border: none;
  border-radius: var(--radius-lg); padding: 16px;
  color: #fff; font-size: 16px; font-weight: 700;
  font-family: var(--font-head); cursor: pointer;
  margin-top: 6px; text-align: center; text-decoration: none;
  transition: background 0.15s; box-shadow: var(--shadow-md);
}

.btn-submit.red  { background: var(--red);  }
.btn-submit.red:hover  { background: var(--red-dark); }
.btn-submit.blue { background: var(--blue); }
.btn-submit.blue:hover { background: var(--blue-dark); }

/* ── Service Cards ── */
.svc-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 16px 18px; margin-bottom: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}

.svc-card.featured { border-left: 4px solid var(--red); }

.svc-day  { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; font-family: var(--font-head); }
.svc-name { font-size: 17px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; font-family: var(--font-head); }

.svc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.svc-row:last-child { margin-bottom: 0; }
.svc-row i { font-size: 17px; flex-shrink: 0; }
.svc-row .time-tag { font-size: 12px; font-weight: 700; min-width: 75px; color: var(--text-3); font-family: var(--font-body); }
.svc-row .time-val { font-size: 15px; color: var(--text-1); font-weight: 700; font-family: var(--font-head); }

.svc-badge {
  font-size: 10px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 1px; text-transform: uppercase;
  margin-left: auto; flex-shrink: 0; font-family: var(--font-head);
}

.badge-red  { background: rgba(192,57,43,0.1);  color: var(--red); }
.badge-blue { background: rgba(3,103,191,0.1);  color: var(--blue); }
.badge-gold { background: rgba(212,175,55,0.1); color: #b7860b; }

/* ── Ministry Cards ── */
.min-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 15px 18px; margin-bottom: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 13px;
  text-decoration: none; transition: all 0.15s;
}

.min-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.min-badge {
  width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; flex-shrink: 0;
  font-family: var(--font-head);
}

.min-text h4 { color: var(--text-1); font-size: 15px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-head); }
.min-text p  { color: var(--text-2); font-size: 12.5px; line-height: 1.4; font-family: var(--font-body); }
.min-arrow   { margin-left: auto; color: var(--text-3); font-size: 22px; flex-shrink: 0; }

/* ── Phone Strip ── */
.phone-strip {
  background: var(--card); border-radius: var(--radius-md);
  padding: 15px 18px; display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  text-decoration: none; margin-top: 4px;
}

.phone-strip i    { font-size: 24px; color: var(--blue); flex-shrink: 0; }
.phone-strip span { font-size: 15px; color: var(--text-1); font-weight: 700; font-family: var(--font-head); }

/* ── Content Wrapper (Events, Listen Live, etc.) ── */
.app-content-wrap {
  background: var(--card); border-radius: var(--radius-md);
  padding: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.app-content-wrap,
.app-content-wrap p,
.app-content-wrap li,
.app-content-wrap span,
.app-content-wrap div {
  color: var(--text-1) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.app-content-wrap h1,
.app-content-wrap h2,
.app-content-wrap h3,
.app-content-wrap h4 {
  color: var(--text-1) !important;
  font-family: var(--font-head) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  margin-top: 20px !important;
}

.app-content-wrap a { color: var(--blue) !important; }
.app-content-wrap img { max-width: 100% !important; border-radius: 10px !important; margin: 10px 0 !important; }

/* ── Form Success ── */
.form-success {
  background: rgba(39,174,96,0.08); border: 1.5px solid rgba(39,174,96,0.3);
  border-radius: var(--radius-md); padding: 18px;
  text-align: center; margin-bottom: 16px; display: none;
}

.form-success.visible { display: block; }
.form-success h3 { color: #27ae60; font-size: 17px; margin-bottom: 6px; font-family: var(--font-head); }
.form-success p  { color: var(--text-2); font-size: 14px; line-height: 1.5; }

/* ── Bottom Nav ── */
.app-nav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  display: flex; justify-content: space-around;
  padding: 10px 0 20px; z-index: 100;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: var(--text-3); font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; transition: color 0.15s;
  font-family: var(--font-head);
}

.nav-item i { font-size: 24px; }
.nav-item.active { color: var(--red); }
.nav-item:hover  { color: var(--red); }

/* ── Responsive ── */
@media (min-width: 480px) {
  .church-app-page {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ============================================================
   v3.1 Fixes — May 2026
   ============================================================ */

/* Fix: Inner page title — WHITE, Lato font */
.app-page-title {
  font-family: 'Lato', sans-serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

/* Fix: Back arrow — WHITE */
.app-back-btn {
  color: #ffffff !important;
}
.app-back-btn i { color: #ffffff !important; }

/* Fix: Plan Your Visit button text — WHITE not blue */
.btn-submit.red,
.btn-submit.red:visited,
a.btn-submit.red {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Fix: Events page — remove blank space at top */
.app-body { padding-top: 12px !important; }
.app-content-wrap { margin-top: 0 !important; padding-top: 0 !important; }
.app-content-wrap > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }

/* Fix: Listen Live page — override dark Elementor backgrounds */
.app-content-wrap .elementor-section,
.app-content-wrap .elementor-column,
.app-content-wrap .e-con,
.app-content-wrap .elementor-widget-wrap,
.app-content-wrap [data-element_type="section"],
.app-content-wrap [data-element_type="container"],
.app-content-wrap .elementor-container {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Fix: Listen Live — make ALL text dark and readable */
.app-content-wrap,
.app-content-wrap p,
.app-content-wrap h1,
.app-content-wrap h2,
.app-content-wrap h3,
.app-content-wrap h4,
.app-content-wrap span,
.app-content-wrap div,
.app-content-wrap li,
.app-content-wrap a {
  color: #0b1e3d !important;
  font-family: 'Lato', sans-serif !important;
}

.app-content-wrap h1,
.app-content-wrap h2,
.app-content-wrap h3,
.app-content-wrap h4 {
  font-weight: 700 !important;
  font-size: 17px !important;
  margin-bottom: 10px !important;
}

.app-content-wrap a { color: #0367bf !important; }

/* Fix: Living Faith On-Air logo — CENTERED */
.app-content-wrap img {
  display: block !important;
  margin: 12px auto !important;
  max-width: 100% !important;
  border-radius: 10px !important;
}

/* Fix: Radio player widget — keep its own styling but center it */
.app-content-wrap .elementor-widget-html,
.app-content-wrap iframe,
.app-content-wrap audio,
.app-content-wrap [class*="radio"],
.app-content-wrap [class*="player"] {
  display: block !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Fix: Elementor text alignment reset for content */
.app-content-wrap .elementor-widget-text-editor,
.app-content-wrap .elementor-text-editor {
  color: #0b1e3d !important;
  text-align: left !important;
}

.app-content-wrap .elementor-widget-heading .elementor-heading-title {
  color: #0b1e3d !important;
  text-align: center !important;
}

/* ── v3.2 Gallery additions ── */
.ic-bg-purple { background: rgba(139,92,246,0.12); color: #7c3aed; }

/* ── v3.3 Fixes ── */

/* Events page — remove blank space at top */
.app-content-wrap .elementor-section:first-child,
.app-content-wrap .e-con:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.app-content-wrap .elementor-widget:first-child,
.app-content-wrap .elementor-widget-container:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove any hero/banner image at top of content pages */
.app-content-wrap .elementor-section:first-child img {
  display: none !important;
}

/* ── v3.4 Fixes ── */

/* Events — hide the decorative wave/banner first section */
.app-content-wrap .elementor-section:first-child {
  display: none !important;
}

/* Bare gallery page — hide title headings */
.gallery-bare-content .elementor-widget-heading:first-of-type {
  display: none !important;
}
