/* Christ's Love Ministries International — shared styles */

:root {
  --green: #3f7652;
  --green-dark: #2e5a3e;
  --nav-blue: #18509e;
  --dark-red: #8b0000;
  --grey: #595959;
  --helv: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { font-family: var(--helv); }
a { text-decoration: none; color: inherit; }
img { border: 0; }

/* ---------- page canvas (fixed 1512 design width, centered) ---------- */
.canvas-wrap { width: 100%; overflow-x: hidden; }
.canvas { position: relative; width: 1512px; margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  width: 1512px;
  height: 135px;
  margin: 0 auto;
  background: linear-gradient(331deg, rgba(89, 89, 89, 0.39) 0%, #fff 52.36%);
  z-index: 500;
}
.site-header .brand {
  position: absolute; left: -43px; top: 30px;
  display: flex; align-items: center; gap: 14px;
}
.site-header .brand img { width: 94px; height: 69px; object-fit: contain; }
.site-header .brand span {
  width: 172px; font-size: 15px; font-weight: 700; line-height: 1.35;
  color: var(--green);
}
/* main menu */
.main-nav {
  position: absolute; left: 259px; top: 38px;
  display: flex; align-items: stretch;
  background: #fff;
  border: 2px solid #c33;
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.4), 0 14px 30px rgba(190, 55, 35, 0.65);
}
.main-nav > .nav-item { position: relative; }
.main-nav > .nav-item > a {
  display: flex; align-items: center; height: 52px;
  padding: 0 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--nav-blue); white-space: nowrap;
}
.main-nav > .nav-item > a:hover { color: #9c3b26; }
.main-nav > .nav-item.active > a { background: var(--green); color: #fff; }
/* dropdowns */
.main-nav .dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #3b5aa3;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 14px 0;
  z-index: 600;
}
.main-nav .nav-item:hover .dropdown { display: block; }
.main-nav .dropdown a {
  display: block; padding: 12px 24px;
  font-size: 17px; font-weight: 400; letter-spacing: 0.02em;
  color: #fff;
}
.main-nav .dropdown a:hover { background: var(--green); color: #fff; }

/* go live + socials */
.go-live {
  position: absolute; left: 1284px; top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 217px; height: 40px;
  background: var(--green-dark);
  border-bottom: 4px solid #c33;
  color: #fff; font-size: 16px; letter-spacing: 0.35em;
}
.go-live img { width: 24px; height: 24px; }
.socials { position: absolute; left: 1284px; top: 63px; display: flex; gap: 3px; }
.socials img { width: 52px; height: 52px; object-fit: contain; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; width: 1512px; height: 72px; margin: 0 auto;
  background: rgba(232, 230, 230, 0.72);
}
.site-footer .inner {
  position: absolute; left: 266px; top: 0; width: 980px; height: 72px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; color: var(--grey);
  text-align: center;
}
.site-footer .inner b { color: var(--dark-red); margin: 0 5px; font-weight: 700; }

/* ---------- WhatsApp bubble ---------- */
.wa-bubble {
  position: fixed; right: 20px; bottom: 24px; z-index: 1000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.wa-bubble svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- generated page content ---------- */
.pg { position: relative; width: 1512px; margin: 0 auto; overflow: hidden; }
.pg .el { position: absolute; }
.pg img.el { object-fit: cover; }
.pg .txt { white-space: pre-wrap; }
.pg video.el { object-fit: cover; }

/* ================= responsive ================= */

/* scale the fixed 1512px canvas down on smaller desktops/tablets (JS sets zoom) */

/* ---------- mobile (≤768px) ---------- */
.m-header, .m-page, .m-nav, .m-footer { display: none; }

@media (max-width: 768px) {
  .site-header, .pg, .site-footer + div { display: none !important; }
  .site-footer { display: none !important; }
  .canvas-wrap { width: 100%; }

  /* mobile header */
  .m-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(331deg, rgba(89,89,89,0.25) 0%, #fff 60%);
    position: sticky; top: 0; z-index: 900;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  }
  .m-header .m-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
  .m-header .m-brand img { width: 46px; height: 34px; object-fit: contain; }
  .m-header .m-brand span { font-size: 13px; font-weight: 700; color: var(--green); line-height: 1.25; max-width: 160px; }
  .m-header .m-right { display: flex; align-items: center; gap: 10px; }
  .m-header .m-golive {
    background: var(--green-dark); color: #fff; font-size: 12px; letter-spacing: 0.12em;
    padding: 8px 12px; border-bottom: 3px solid #c33; text-decoration: none; white-space: nowrap;
  }
  .m-header .m-burger {
    width: 40px; height: 40px; border: 2px solid #c33; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer;
  }
  .m-header .m-burger span { display: block; width: 20px; height: 2.5px; background: var(--nav-blue); }
  .m-nav {
    display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: #3b5aa3; z-index: 899; overflow-y: auto; padding: 10px 0 30px;
  }
  .m-nav.open { display: block; }
  .m-nav a {
    display: block; padding: 15px 24px; color: #fff; font-size: 17px; font-weight: 700;
    letter-spacing: 0.03em; border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .m-nav a.sub { padding-left: 44px; font-weight: 400; font-size: 16px; }
  .m-nav a:active { background: var(--green); }
  .m-nav .m-socials { display: flex; gap: 8px; padding: 18px 24px; }
  .m-nav .m-socials img { width: 42px; height: 42px; }

  /* mobile page content */
  .m-page { display: block; overflow-x: hidden; }
  .m-page .m-sec { padding: 4px 0 14px; }
  .m-page .m-sec.pad { padding: 14px 16px; }
  .m-page img.mi { width: 100%; height: auto; display: block; margin: 8px 0; }
  .m-page .m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
  .m-page .m-grid2 img { width: 100%; height: auto; display: block; margin: 0; }
  .m-page .m-txt { padding: 2px 16px; line-height: 1.45; }
  .m-page .m-row { padding: 8px 16px; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 14px; line-height: 1.5; }
  .m-page .m-row b { display: block; }
  .m-page iframe.mi { width: 100%; border: 0; display: block; margin: 8px 0; }
  .m-page video.mi { width: 100%; height: auto; display: block; margin: 8px 0; }
  .m-page .m-btn {
    display: inline-block; margin: 6px 16px; padding: 11px 22px;
    border: 1px solid rgb(174,15,15); color: rgb(174,15,15); font-size: 15px; text-decoration: none;
  }

  /* mobile footer */
  .m-footer {
    display: block; text-align: center; padding: 18px 12px;
    background: rgba(232,230,230,0.72); font-size: 12.5px; font-weight: 700; color: var(--grey);
  }
  .m-footer b { color: var(--dark-red); }
  .wa-bubble { width: 52px; height: 52px; right: 14px; bottom: 16px; }
}
@media (min-width: 769px) { .m-header, .m-page, .m-nav, .m-footer { display: none !important; } }
