/* ============================================
   Water and the Word Ministries — shared styles
   ============================================ */

:root {
  /* Exact brand colors pulled from the live site's Elementor global kit */
  --cyan: #05cfe3;         /* --e-global-color-primary */
  --cyan-dark: #04b3c4;
  --orange: #fb7400;       /* custom global orange */
  --orange-dark: #dd6600;
  --secondary: #54595f;    /* --e-global-color-secondary */
  --ink: #222222;
  --gray: #4c4c4c;         /* --e-global-color-text */
  --light-bg: #f4f4f4;     /* --e-global-color (light gray) */
  --black: #0d0d0d;
  --white: #ffffff;
  --radius: 4px;
  --max-width: 1300px;     /* matches .elementor-container max-width */
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif; /* stand-in for the site's custom "droid bold" */
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Social strip (above top bar) ---------- */

.top-social-bar {
  background: var(--black);
}

.top-social-inner {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 7px 24px;
}

.top-social-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  opacity: .85;
  transition: opacity .15s, transform .15s ease;
}

.top-social-inner a:hover {
  opacity: 1;
  transform: translateY(-1px);
  color: var(--cyan);
}

.top-social-inner .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--black);
  font-size: .72rem;
  font-weight: 800;
}

/* ---------- Top bar / nav ---------- */

.topbar {
  background: var(--cyan);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
  padding: 6px 0;
}

.brand .logo-dot {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform .35s ease;
}

.brand:hover .logo-dot {
  transform: rotate(-8deg) scale(1.08);
}

.brand .brand-name { display: none; } /* the live site shows only the mark in the nav, name in footer */

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: .92rem;
}

nav.main-nav.nav-left { justify-content: flex-end; }
nav.main-nav.nav-right { justify-content: flex-start; }

nav.main-nav a {
  position: relative;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, transform .15s ease;
  white-space: nowrap;
}

nav.main-nav a:hover { transform: translateY(-2px); }

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.nav-extras {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
}

.nav-right-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--black);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 18px 30px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-align: center;
  text-transform: uppercase;
  font-size: .92rem;
}

.btn:hover { background: var(--orange-dark); transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn:active { transform: translateY(1px); }
.btn { transition: background .15s, transform .2s ease, box-shadow .2s ease; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

/* ---------- Page header banner (About/Events/etc.) ---------- */

.page-header {
  background: var(--cyan);
  padding: 70px 24px;
  text-align: center;
}

.page-header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}

/* ---------- Promo banner (home) ---------- */

.promo-banner {
  display: block;
  overflow: hidden;
  background: linear-gradient(270deg, var(--cyan), var(--orange), var(--cyan-dark), var(--orange-dark));
  background-size: 400% 400%;
  animation: promoGradient 6s ease infinite;
  text-decoration: none;
  white-space: nowrap;
}

.promo-track {
  display: inline-flex;
  width: max-content;
  animation: promoScroll 16s linear infinite;
}

.promo-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 40px;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.shirt-emoji {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  animation: shirtWiggle 1.4s ease-in-out infinite;
}

@keyframes promoGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes promoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shirtWiggle {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner, .promo-track, .shirt-emoji {
    animation: none;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: linear-gradient(120deg, #1c1c1c 0%, #333 60%, #444 100%);
  color: var(--white);
  overflow: hidden;
  padding: 60px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 420px;
  min-width: 300px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: .92;
  margin-bottom: 26px;
}

.hero-photo {
  flex: 1 1 320px;
  max-width: 420px;
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-content h1 { animation: heroFadeIn .8s ease both; }
.hero-content p { animation: heroFadeIn .8s ease .15s both; }
.hero-content .btn { animation: heroFadeIn .8s ease .3s both; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section framing ---------- */

section { padding: 64px 0; }

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cyan-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
  width: 340px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}

.section-divider span {
  color: var(--orange);
  font-weight: 700;
  display: inline-block;
  animation: spinPlus 5s linear infinite;
}

@keyframes spinPlus {
  0%, 80% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.section-sub {
  text-align: center;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Devotional callout box ---------- */

.devo-box {
  background: rgba(5, 207, 227, 0.54);
  border-radius: 20px;
  box-shadow: 0 0 18px 0 rgb(251, 116, 1);
  padding: 44px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: devoGlow 3.5s ease-in-out infinite;
}

@keyframes devoGlow {
  0%, 100% { box-shadow: 0 0 18px 0 rgba(251, 116, 1, .55); }
  50% { box-shadow: 0 0 34px 6px rgba(251, 116, 1, .85); }
}

.devo-box h3 {
  color: var(--orange-dark);
  letter-spacing: .05em;
  margin-top: 0;
}

.devo-box .byline {
  margin-top: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--light-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0,0,0,.14);
}

.card .card-photo {
  height: 190px;
  background: #999 center/cover;
  overflow: hidden;
}

.card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.card:hover .card-photo img { transform: scale(1.08); }

.card .card-body { padding: 22px; }

.card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p { color: var(--gray); margin: 0; font-size: .95rem; }

.event-card .card-photo { height: 210px; background: #7a7a7a; overflow: hidden; }
.event-card .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Product / shop cards ---------- */

.product-card {
  background: var(--light-bg);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

.product-card .card-photo {
  height: 200px;
  background: #e2e2e2;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.size-select {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: var(--gray);
  font-family: inherit;
  font-size: .9rem;
}

.product-card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.product-card:hover .card-photo img { transform: scale(1.1) rotate(1deg); }

.product-card h4 { margin: 0 0 6px; font-size: 1rem; }
.product-card .price { color: var(--orange); font-weight: 700; margin-bottom: 14px; }

.product-scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.product-scroller .product-card {
  min-width: 220px;
  scroll-snap-align: start;
}

/* ---------- Forms ---------- */

.form-box {
  max-width: 560px;
  margin: 0 auto;
}

.form-box input,
.form-box textarea,
.form-box select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font-family: inherit;
  font-size: .95rem;
}

.form-box textarea { min-height: 130px; resize: vertical; }

/* ---------- Cause / mission note ---------- */

.note-orange {
  color: var(--orange-dark);
  text-align: center;
  max-width: 780px;
  margin: 30px auto 0;
  font-size: .95rem;
}

/* ---------- Two-column feature (Uganda partners, etc.) ---------- */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.feature-split .photo {
  background: #ccc;
  border-radius: 6px;
  min-height: 320px;
  overflow: hidden;
}

.feature-split .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-split h3 { color: var(--cyan-dark); margin-top: 0; }

.photo-tile {
  background: #ccc;
  border-radius: 6px;
  overflow: hidden;
  min-height: 220px;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Dark band (radio / podcast strip) ---------- */

.dark-band {
  background: #111;
  color: #eee;
  padding: 70px 0;
  text-align: center;
}

.dark-band h2 { color: var(--orange); }
.dark-band p { color: #ccc; max-width: 720px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */

footer {
  background: var(--black);
  color: #bbb;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }

.footer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
}

.social-row { display: flex; gap: 10px; margin: 18px 0; }

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.social-row a:hover { background: var(--orange); color: var(--black); }

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  background: #1e1e1e;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: .85rem;
  letter-spacing: .03em;
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .page-header h1 { font-size: 2.2rem; }
}

@media (max-width: 900px) {
  .topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 24px;
  }
  nav.main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; order: 3; }
  .nav-right-wrap { order: 2; gap: 12px; flex-wrap: wrap; }
  .brand { order: 0; }
  .menu-toggle { display: block; order: 1; }

  /* When the hamburger is toggled, reveal both nav lists stacked */
  .topbar-inner.menu-open nav.main-nav { display: flex; }
  .topbar-inner.menu-open .nav-right-wrap { flex-direction: column; align-items: flex-start; width: 100%; }
}

/* ---------- Scroll-reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view .reveal-child:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in-view .reveal-child:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in-view .reveal-child:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in-view .reveal-child:nth-child(4) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view, .card, .product-card, .btn, .hero-photo img,
  .hero-content h1, .hero-content p, .hero-content .btn,
  .devo-box, .section-divider span, .logo-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Fire intro (homepage splash) ---------- */

html.intro-lock, html.intro-lock body {
  overflow: hidden;
  height: 100%;
}

.fire-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #0d0d0d;
  transition: opacity .7s ease, transform .8s cubic-bezier(.6,0,.3,1);
}

.fire-intro.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.fire-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, #ffcf5c 0%, #fb7400 22%, #c23d00 42%, #3a0e00 65%, #0d0d0d 85%);
  animation: fireFlicker 2.4s ease-in-out infinite;
}

@keyframes fireFlicker {
  0%, 100% { opacity: 1; filter: brightness(1) saturate(1); }
  25% { opacity: .96; filter: brightness(1.08) saturate(1.1); }
  50% { opacity: 1; filter: brightness(.96) saturate(.95); }
  75% { opacity: .98; filter: brightness(1.05) saturate(1.05); }
}

.ember {
  position: absolute;
  bottom: -20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0%, #ffb347 45%, transparent 80%);
  opacity: 0;
  animation-name: emberRise;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes emberRise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: .5; }
  100% { transform: translate(var(--drift, 20px), -115vh) scale(.2); opacity: 0; }
}

.fire-intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.fire-intro-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px 14px rgba(251, 116, 1, .75), 0 0 90px 30px rgba(255, 159, 0, .35);
  animation: fireLogoPulse 1.6s ease-in-out infinite;
}

@keyframes fireLogoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px 14px rgba(251, 116, 1, .75), 0 0 90px 30px rgba(255, 159, 0, .35); }
  50% { transform: scale(1.06); box-shadow: 0 0 55px 20px rgba(251, 116, 1, .9), 0 0 120px 40px rgba(255, 159, 0, .5); }
}

.fire-intro-title {
  margin-top: 22px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  animation: fireFadeUp 1s ease both .2s;
}

.fire-intro-sub {
  margin-top: 10px;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  animation: fireFadeUp 1s ease both .4s;
}

@keyframes fireFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fire-intro { display: none !important; }
}
