/*
Theme Name: Led By God
Theme URI: https://ledbygodproductions.com
Author: Led By God Productions and Management
Description: Custom theme for Led By God Productions and Management. Community Based. God Centered. Life Empowerment.
Version: 1.12
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lbg-theme
*/

/* ===== Led By God Productions and Management — site styles ===== */
:root {
  --bg: #ffffff;
  --soft: #faf7f0;
  --cream: #f4eedf;
  --gold: #c9a227;
  --gold-dark: #8a6d12;
  --gold-light: #f7efd6;
  --black: #111111;
  --ink: #1d1d1d;
  --muted: #5f5a52;
  --line: #ece5d4;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(17, 17, 17, 0.07);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.7; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; font-weight: 700; color: var(--black); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
p + p { margin-top: .9rem; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section:not(.elementor-section) { padding: 88px 0; }
.soft { background: var(--soft); }
.dark { background: var(--black); color: #e9e4d6; }
.dark h2, .dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.dark .lead { color: #cfc8b6; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.gold { color: var(--gold-dark); }
.ph { background: #fff3c4; border-radius: 4px; padding: 0 3px; color: var(--ink); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.logo img { height: 50px; width: auto; }
.logo-badge {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: var(--gold);
  border: 2px solid var(--gold); display: none; place-items: center; font-weight: 800; font-size: .72rem;
}
.logo-text { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.logo-text small { display: block; font-family: "Nunito", sans-serif; font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--black); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; transition: transform .15s, background .15s, color .15s;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--black) !important; }
.btn-gold:hover { background: #b8921c; }
.btn-dark { background: var(--black); color: #fff !important; }
.btn-line { border-color: var(--black); color: var(--black); background: transparent; }
.dark .btn-line { border-color: #fff; color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.center .btn-row { justify-content: center; }

/* ===== Photos (local image first, then original-site image, then gradient fallback) ===== */
.photo {
  border-radius: var(--radius); background-color: var(--cream);
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.photo::after { /* fallback pattern sits under images */
  content: ""; position: absolute; inset: 0; z-index: -1;
}

/* ===== Hero ===== */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--gold-dark); }
.hero .lead { margin-top: 20px; }
.est {
  display: inline-block; margin-top: 26px; font-weight: 700; color: var(--muted); font-size: .95rem;
  border-left: 3px solid var(--gold); padding-left: 12px;
}
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.collage .photo:first-child { grid-row: span 2; }
.collage .photo { box-shadow: var(--shadow); }

/* Page hero */
.page-hero { padding: 80px 0 56px; background: var(--soft); text-align: center; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin: 14px auto 0; }

/* ===== Pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pillar { padding: 38px 32px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .num { font-family: "Playfair Display", serif; font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; display: block; }
.pillar p { color: var(--muted); }

/* ===== Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--gold-light);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px;
}
.card p { color: var(--muted); }
.dark .card { background: #1b1b1b; border-color: #2c2c2c; box-shadow: none; }
.dark .card p { color: #bdb6a4; }
.dark .card .icon { background: #2a2414; }

/* Banner */
.banner {
  border-radius: 28px; padding: 56px 48px; background: var(--black); color: #e9e4d6;
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
  border: 1px solid #2c2c2c; position: relative; overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(201,162,39,.18);
}
.banner h2 { color: #fff; }
.banner p { color: #cfc8b6; }

/* Founders */
.founders { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.founder { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px; }
.founder .initial { width: 44px; height: 44px; border-radius: 50%; background: var(--black); color: var(--gold); display: grid; place-items: center; font-family: "Playfair Display", serif; font-weight: 700; }
.founder strong { display: block; line-height: 1.2; }
.founder span { font-size: .85rem; color: var(--muted); }

/* Logo meaning */
.meaning { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.meaning div { background: var(--soft); border-radius: 16px; padding: 20px 22px; border: 1px solid var(--line); }
.meaning strong { font-family: "Playfair Display", serif; font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ===== Events ===== */
.event-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.event-feature .photo { border-radius: 0; min-height: 340px; }
.event-feature .body { padding: 40px; }
.tag { display: inline-block; background: var(--gold-light); color: var(--gold-dark); font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.coming {
  border: 2px dashed var(--gold); border-radius: var(--radius); padding: 48px 32px; text-align: center; background: #fff;
}
.coming .icon { font-size: 2.2rem; margin-bottom: 10px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; aspect-ratio: 1 / 1; border-radius: var(--radius); }
.gallery button.wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .gallery button.wide { aspect-ratio: 2 / 1; } }
.gallery .photo { width: 100%; height: 100%; transition: transform .25s; }
.gallery button:hover .photo { transform: scale(1.02); }
.video-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: var(--shadow); }
.video-wrap video { width: 100%; display: block; max-height: 620px; background: #000; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 12px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--black); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; }
.contact-item a { text-decoration: none; font-weight: 700; }
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #ddd3bd; border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: var(--soft); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.form-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: #cfc8b6; padding: 64px 0 28px; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: var(--gold); margin-bottom: 12px; font-size: 1.1rem; }
.site-footer a { color: #e9e4d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 6px; }
.footer-tag { font-family: "Playfair Display", serif; font-style: italic; color: #fff; font-size: 1.15rem; margin: 8px 0; }
.copyright { border-top: 1px solid #2e2e2e; margin-top: 40px; padding-top: 20px; font-size: .88rem; text-align: center; color: #8f8878; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .grid-2, .contact-grid, .event-feature { grid-template-columns: 1fr; }
  .grid-3, .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: #fff; padding: 20px 16px 24px; gap: 16px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .logo-text { font-size: .95rem; }
  .logo img { height: 42px; }
  .collage { grid-template-rows: 160px 160px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button.wide { grid-column: span 2; }
  .meaning { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section:not(.elementor-section) { padding: 64px 0; }
  .banner { padding: 40px 24px; }
  .event-feature .body { padding: 28px 24px; }
}

/* About page flyer: show the whole image, no cropping */
.about-flyer { width: 100%; max-width: 460px; height: auto; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Facebook videos and photos (Showcase page) */
.fb-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.fb-reel { aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: var(--shadow); }
.fb-reel iframe, .fb-photo iframe { width: 100%; height: 100%; border: 0; display: block; }
.fb-photo iframe { max-width: 350px; }
.fb-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.fb-photo { height: 470px; display: flex; justify-content: center; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 960px) { .fb-reels, .fb-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .fb-reels, .fb-photos { grid-template-columns: 1fr; }
  .fb-reel { max-width: 380px; width: 100%; margin-inline: auto; }
}

/* ===== Cross-device fixes (iPhone/iPad Safari, Android, small phones) ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.site-header { -webkit-backdrop-filter: blur(8px); }
.contact-grid > *, .grid-2 > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.contact-item a, .site-footer a { overflow-wrap: anywhere; }
.tag { font-size: .75rem; }
.video-note { display: none; text-align: center; padding: 40px 20px; color: #e9e4d6; }
.video-wrap.no-video video { display: none; }
.video-wrap.no-video .video-note { display: block; }
.video-note a { color: var(--gold); font-weight: 800; }
@media (max-width: 760px) {
  .logo-text small { font-size: .7rem; letter-spacing: .1em; }
  .nav-links { gap: 0; max-height: calc(100vh - 78px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
  .nav-toggle { width: 48px; height: 48px; }
}
@media (max-width: 360px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 24px); }
  .logo-text { font-size: .85rem; }
  .logo img { height: 38px; }
  .btn { padding: 12px 22px; }
  .card, .pillar { padding: 24px 20px; }
  .banner { padding: 32px 18px; }
}

/* About: founders' LegalShield card */
.ls-card { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.ls-card img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.ls-card p { color: var(--muted); }
.ls-note { margin-top: 14px; font-size: .85rem; font-style: italic; }

/* Resources page */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.res-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .15s, border-color .15s; }
.res-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.res-card h3 { font-size: 1.15rem; }
.res-card h3 span { color: var(--gold-dark); font-size: .9em; }
.res-card p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .res-grid { grid-template-columns: 1fr; }
  .ls-card { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .ls-card img { margin: 0 auto; width: 140px; height: 140px; }
  .ls-card .btn-row { justify-content: center; }
  .ls-card .eyebrow::before { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) { .nav-links { gap: 16px; } .nav-links a { font-size: .92rem; } }
@media (max-width: 960px) and (min-width: 761px) { .nav-links > li:last-child { display: none; } }

/* Cleaned-up logo in header */
.logo img { height: 60px; }
@media (max-width: 760px) { .logo img { height: 48px; } }

/* WPForms contact form: match the site's look */
.card .wpforms-container { margin: 0 !important; }
.card .wpforms-field-label { font-family: "Nunito", sans-serif; font-weight: 800 !important; color: var(--ink) !important; }
.card .wpforms-form input, .card .wpforms-form select, .card .wpforms-form textarea {
  max-width: 100% !important; border: 1px solid #ddd3bd !important; border-radius: 12px !important;
  background: var(--soft) !important; font-family: "Nunito", sans-serif !important; font-size: 1rem !important; }
.card .wpforms-form button[type="submit"] {
  background: var(--gold) !important; color: var(--black) !important; border: 0 !important; border-radius: 999px !important;
  padding: 14px 28px !important; font-weight: 800 !important; font-family: "Nunito", sans-serif !important; height: auto !important; }
.card .wpforms-form button[type="submit"]:hover { background: #b8921c !important; }
/* Events: email list signup */
#updates { scroll-margin-top: 90px; }
.updates-signup { padding-bottom: 24px !important; }
.updates-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--soft); border: 2px solid var(--gold); border-radius: 24px; padding: 40px; }
@media (max-width: 760px) { .updates-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 18px; } }

/* Showcase: latest Facebook videos (widescreen) */
.fb-reels .fb-reel { aspect-ratio: 16 / 9; max-width: none; }

/* Showcase: featured Facebook video under the comedy show photos */
.fb-feature { max-width: 560px; margin: 40px auto 0; aspect-ratio: 560 / 314; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: var(--shadow); }
.fb-feature iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Home: VIP list signup */
#vip { scroll-margin-top: 90px; }

/* WordPress menu (Appearance > Menus) and Elementor compatibility */
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--gold-dark); }
.elementor-page main > .entry-content, .elementor-page main { padding: 0; }
.elementor img { display: inline-block; }
/* WordPress editor content on generic pages */
.entry-content > * + * { margin-top: 1rem; }
.entry-content img { height: auto; border-radius: 12px; }
