/* ============================================================
   Liberty World Ministries — Global Stylesheet
   lworld.org/css/global.css
   ============================================================
   Sections:
   1.  Variables
   2.  Reset & Base
   3.  Typography
   4.  Animations
   5.  Navbar
   6.  Hero
   7.  Cards
   8.  Footer
   9.  Store — General
   10. Store — Category Grid
   11. Store — Music Grid
   12. Store — Mission Grid
   13. Store — Utility
   14. CyrusArt — Featured Section
   15. CyrusArt — Connect Teaser
   16. Contact Cards
   ============================================================ */


/* ── 1. Variables ────────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:       #1a1a2e;
  --navy2:      #0f3460;
  --blue:       #0044aa;
  --blue-dark:  #003388;
  --gold:       #c9a84c;
  --goldd:      #b8933a;
  --orange:     #ff6b35;
  --orange-dark:#ff5520;

  /* UI */
  --bg:         #f8f6f1;
  --bg-light:   #f0f2f5;
  --white:      #ffffff;
  --muted:      #666666;
  --border:     #dde1e7;
  --danger:     #c0392b;
  --success:    #27ae60;

  /* Typography */
  --font-main:  'Segoe UI', Arial, sans-serif;
}


/* ── 2. Reset & Base ─────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background: var(--white);
}


/* ── 3. Typography ───────────────────────────────────────────── */
.lead        { font-size: 1.25rem; }
blockquote   { border-left: 5px solid var(--danger); padding-left: 20px; }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }


/* ── 4. Animations ───────────────────────────────────────────── */
.animate-fade-in {
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── 5. Navbar ───────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  min-height: 70px;
}
.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: white !important;
}
.navbar-brand small {
  display: block;
  font-size: .6rem;
  opacity: .85;
}
.nav-link {
  color: rgba(255,255,255,.9) !important;
  padding: .6rem 1rem !important;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.25) !important;
  color: white !important;
}
.dropdown-menu {
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  border: none;
}
.btn-donate {
  background: rgba(255,255,255,.2) !important;
  border: 1px solid rgba(255,255,255,.4) !important;
}
.navbar .container-fluid { flex-wrap: wrap !important; }
.navbar-toggler {
  border: 2.5px solid rgba(255,255,255,.9) !important;
  padding: 9px 11px;
}

/* Legacy nav (lwm.css) — kept for pages not yet on Bootstrap */
header {
  background: var(--blue);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.hdr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}
.logo small {
  display: block;
  font-size: .7rem;
  font-weight: normal;
  color: white;
  opacity: .95;
}
#menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
nav > ul {
  list-style: none;
  display: flex;
  gap: .5rem;
  align-items: center;
}
nav > ul > li { position: relative; }
nav > ul > li > a {
  color: white;
  text-decoration: none;
  padding: .7rem 1rem;
  display: block;
  border-radius: 4px;
  transition: background .2s;
}
nav > ul > li > a:hover { background: rgba(255,255,255,.15); }
.drop { position: relative; }
.drop > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  border-radius: 4px;
  padding: .5rem 0;
  display: none;
  z-index: 100;
  list-style: none;
}
.drop:hover > ul,
.drop.keep-open > ul { display: block; }
.drop ul li a {
  color: #222;
  background: white;
  padding: .7rem 1.2rem;
  display: block;
  text-decoration: none;
}
.drop ul li a:hover { background: #f0f0f0; color: var(--blue); }
.submenu-desc {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-top: .2rem;
  font-weight: normal;
}
.donate { background: var(--orange); font-weight: bold; }
.donate:hover { background: var(--orange-dark); }

@media (max-width: 768px) {
  #menu-btn { display: block; }
  nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--blue);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
  }
  nav.show { max-height: 100vh; overflow-y: auto; }
  nav > ul { flex-direction: column; gap: 0; }
  nav > ul > li > a { padding: 1rem 20px; border-radius: 0; }
  .drop > ul {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.15);
    padding: 0;
    margin: 0;
    display: none;
  }
  .drop.open > ul { display: block; }
  .drop ul li a {
    color: white !important;
    background: transparent;
    padding: .8rem 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    line-height: 1.4;
    font-weight: 500;
  }
  .drop ul li a:hover { background: rgba(255,255,255,.2); }
  .submenu-desc {
    display: block !important;
    font-size: .75rem !important;
    color: rgba(255,255,255,.8) !important;
    margin-top: .3rem !important;
    font-weight: normal !important;
    font-style: italic;
    line-height: 1.3;
  }
}


/* ── 6. Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}


/* ── 7. Cards ────────────────────────────────────────────────── */
.cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  text-align: center;
}
.card h3 { color: var(--blue); margin: 1rem 0; }
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
}


/* ── 8. Footer ───────────────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}
.f-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
footer h4    { color: white; margin-bottom: 1rem; }
footer a     { color: white; }


/* ── 9. Store — General ──────────────────────────────────────── */
.s-hero {
  background: linear-gradient(135deg, rgba(26,26,46,.97), rgba(15,52,96,.93));
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}
.s-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.18), transparent 70%);
  pointer-events: none;
}
.gline {
  width: 55px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1.4rem;
  border-radius: 2px;
}
.s-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 800;
  margin-bottom: .7rem;
}
.s-hero p {
  font-size: 1.02rem;
  opacity: .85;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hbtns {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-g {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 800;
  border-radius: 8px;
  padding: .7rem 1.6rem;
  text-decoration: none;
  display: inline-block;
  transition: .2s;
}
.btn-g:hover  { background: var(--goldd); transform: translateY(-2px); }
.btn-ow {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 8px;
  padding: .65rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  transition: .2s;
}
.btn-ow:hover { border-color: var(--gold); transform: translateY(-2px); }

.sec     { padding: 3.5rem 0; }
.sec-w   { background: #fff; }
.sec-bg  { background: var(--bg); }
.sec-nv  { background: var(--navy); color: #fff; }

.sh            { margin-bottom: 1.8rem; }
.sh h2         { font-size: 1.55rem; font-weight: 800; color: var(--navy); margin-bottom: .3rem; }
.sh.lt h2      { color: #fff; }
.sh p          { color: var(--muted); font-size: .93rem; }
.sh.lt p       { color: rgba(255,255,255,.75); }
.gbar          { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: .7rem; }


/* ── 10. Store — Category Grid ───────────────────────────────── */
.cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 1.2rem; }
.cc {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  transition: .2s;
}
.cc:hover  { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.cb        { padding: 1.6rem 1.2rem; text-align: center; color: #fff; }
.ci        { font-size: 2.4rem; margin-bottom: .55rem; }
.cn        { font-size: .97rem; font-weight: 800; }
.cs        { font-size: .76rem; opacity: .8; margin-top: .2rem; }


/* ── 11. Store — Music Grid ──────────────────────────────────── */
.mg { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.2rem; }
.mt {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 1.65rem 1.4rem;
  text-align: center;
  transition: .2s;
}
.mt:hover  { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.mti       { font-size: 2.1rem; margin-bottom: .55rem; }
.mtag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .68rem;
  font-weight: 800;
  padding: .18rem .65rem;
  border-radius: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.mt h3     { font-size: .97rem; font-weight: 800; color: #fff; margin-bottom: .3rem; }
.mt p      { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: .9rem; line-height: 1.5; }
.btn-tl {
  display: inline-block;
  background: transparent;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold);
  border-radius: 7px;
  padding: .42rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.btn-tl:hover { background: var(--gold); color: var(--navy) !important; }


/* ── 12. Store — Mission Grid ────────────────────────────────── */
.mig { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 1.4rem; }
.mi        { text-align: center; }
.mi .icon  { font-size: 1.9rem; margin-bottom: .45rem; display: block; }
.mi h4     { font-size: .9rem; font-weight: 800; color: var(--navy); margin-bottom: .22rem; }
.mi p      { font-size: .78rem; color: var(--muted); line-height: 1.5; }


/* ── 13. Store — Utility ─────────────────────────────────────── */
.va { text-align: center; margin-top: 1.8rem; }
.btn-va {
  display: inline-block;
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: .6rem 1.9rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.btn-va:hover          { background: var(--navy); color: #fff !important; }
.btn-va.lt             { color: #fff !important; border-color: rgba(255,255,255,.5); }
.btn-va.lt:hover       { background: rgba(255,255,255,.15); border-color: #fff; }
.note-box {
  text-align: center;
  margin-top: 1.8rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.note-box p { color: var(--muted); font-size: .85rem; margin: 0; }


/* ── 14. CyrusArt — Featured Section ────────────────────────── */
.cyrusart-feature {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.cyrusart-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.cyrusart-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.cyrusart-text          { flex: 1; min-width: 280px; }
.cyrusart-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .75rem;
  color: #fff;
}
.cyrusart-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.3rem;
}
.cyrusart-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}
.cyrusart-highlights li {
  padding: .38rem 0;
  color: rgba(255,255,255,.75);
  font-size: .93rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cyrusart-highlights li:last-child { border-bottom: none; }
.cyrusart-actions       { display: flex; gap: .85rem; flex-wrap: wrap; }
.btn-ca-primary {
  background: var(--gold);
  color: var(--navy) !important;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: .92rem;
  transition: .2s;
  display: inline-block;
}
.btn-ca-primary:hover   { background: var(--goldd); transform: translateY(-2px); }
.btn-ca-secondary {
  background: transparent;
  color: #fff !important;
  padding: .68rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border: 2px solid rgba(255,255,255,.4);
  transition: .2s;
  display: inline-block;
}
.btn-ca-secondary:hover { border-color: var(--gold); transform: translateY(-2px); }
.cyrusart-image         { flex: 0 0 360px; max-width: 100%; }
.cyrusart-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  display: block;
}
.cyrusart-image-caption {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-top: .6rem;
  font-style: italic;
}

@media (max-width: 720px) {
  .cyrusart-content  { flex-direction: column-reverse; }
  .cyrusart-image    { flex: 1 1 100%; }
}


/* ── 15. CyrusArt — Connect Teaser ──────────────────────────── */
.ca-connect-teaser {
  background: var(--bg);
  border-top: 3px solid var(--gold);
  padding: 2.8rem 0;
}
.ca-connect-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ca-connect-text        { flex: 1; min-width: 260px; }
.ca-connect-text h2     { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.ca-connect-text p      { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0; }
.ca-connect-action      { text-align: center; flex-shrink: 0; }
.btn-ca-connect {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-ca-connect:hover   { background: var(--navy2); transform: translateY(-2px); }
.ca-connect-note        { font-size: .75rem; color: var(--muted); margin-top: .55rem; margin-bottom: 0; font-style: italic; }

@media (max-width: 620px) {
  .ca-connect-inner  { flex-direction: column; text-align: center; }
  .ca-connect-action { width: 100%; }
  .btn-ca-connect    { width: 100%; }
}


/* ── 16. Contact Cards ───────────────────────────────────────── */
.lwm-contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.lwm-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  padding: 1rem 1.2rem;
  min-width: 240px;
  flex: 1;
}
.lwm-contact-avatar     { flex-shrink: 0; }
.lwm-contact-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.lwm-contact-initials {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lwm-contact-info       { flex: 1; min-width: 0; }
.lwm-contact-name       { font-weight: 800; font-size: .95rem; color: var(--navy); margin-bottom: .1rem; }
.lwm-contact-title      { font-size: .78rem; color: #888; margin-bottom: .3rem; }
.lwm-contact-email a,
.lwm-contact-phone a    { font-size: .82rem; color: var(--navy2); text-decoration: none; }
.lwm-contact-email a:hover,
.lwm-contact-phone a:hover { text-decoration: underline; }
.lwm-contact-email      { margin-bottom: .15rem; }
