/* ═══════════════════════════════════════════════════════════════════
   TitleShield — Site-wide Fixes
   Addresses: section gaps, nav contrast, empty sections, overlaps
═══════════════════════════════════════════════════════════════════ */

/* ── Fix excessive section spacing ── */
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-lg { padding: 72px 0; }
.section-xl { padding: 88px 0; }

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-sm { padding: 24px 0; }
  .section-lg { padding: 48px 0; }
  .section-xl { padding: 56px 0; }
}

/* ── Fix nav text contrast ── */
.site-nav, .navbar {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13,27,62,0.1) !important;
}

.nav-link, .navbar .nav-links a {
  color: #1A1A1A !important;
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover, .navbar .nav-links a:hover {
  color: var(--color-navy, #0D1B3E) !important;
}

.nav-logo-text, .navbar .nav-logo span {
  color: #0D1B3E !important;
  font-weight: 700;
}

/* ── Fix old navbar class compatibility ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.navbar .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar .nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0D1B3E;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar .nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #0D1B3E;
}

.btn-login {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 150ms ease;
}

.btn-login:hover {
  background: #F4F2EE;
  color: #0D1B3E;
}

/* ── Fix page-hero spacing for pages using inline hero ── */
.page-hero {
  min-height: 240px !important;
  padding-top: 72px !important;
  padding-bottom: 48px !important;
}

/* ── Fix empty-looking sections ── */
/* Prevent sections with no content from creating huge gaps */
section:empty { display: none; }
.section-header { margin-bottom: 40px; }

/* ── Fix overlapping text issues ── */
* { box-sizing: border-box; }

p { margin-bottom: 0; }
p + p { margin-top: 16px; }

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── Fix contact/compliance/for-owners large gaps ── */
.contact-grid,
.compliance-grid,
.owners-grid {
  gap: 32px;
}

/* Reduce excessive padding on inline-styled sections */
[style*="padding:80px"],
[style*="padding: 80px"] {
  padding: 56px 0 !important;
}

[style*="padding:96px"],
[style*="padding: 96px"] {
  padding: 64px 0 !important;
}

/* ── Fix hero on dark background — ensure text visible ── */
.home-hero h1,
.home-hero .hero-headline {
  color: #ffffff !important;
}

.home-hero p,
.home-hero .hero-sub {
  color: rgba(255,255,255,0.80) !important;
}

/* ── Blog link in nav ── */
.nav-link[href="blog.html"],
.nav-link[href="../blog.html"] {
  color: #374151;
}

/* ── Fix mobile nav showing on desktop ── */
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
}

@media (max-width: 820px) {
  .navbar .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Ensure consistent main content spacing ── */
main { padding-top: 0; }

/* ── Remove excessive margin from stacked elements ── */
.reveal + .reveal { margin-top: 0; }

/* ── Fix compliance page credential blocks ── */
.badge-credential {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(13,27,62,0.06);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #0D1B3E;
  margin: 4px 4px 4px 0;
}

/* ── Footer fix ── */
.site-footer, .footer {
  margin-top: 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 32px;
}

/* ── Fix for-owners page gaps ── */
.for-owners-hero { min-height: 280px; }

/* ── General link color fix ── */
a { color: inherit; }
a:hover { color: var(--color-gold, #C9A84C); }

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE FIXES v2 — All page issues
═══════════════════════════════════════════════════════════════ */

/* ── Gold tagline ── */
.hero-tagline-secondary {
  color: #C9A84C !important;
  font-style: italic;
  font-weight: 500;
}

/* ── Page headers — force visibility ── */
.page-hero h1,
.page-hero h2,
.site-hero h1,
[class*="hero"] h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── For Owners / FAQ / Contact — hero background ── */
.page-hero {
  background: linear-gradient(135deg, #0D1B3E 0%, #1B2F5A 100%) !important;
  min-height: 220px !important;
  display: flex;
  align-items: center;
  padding-top: 80px !important;
  padding-bottom: 40px !important;
}

/* ── Section headings — ensure dark/visible on light bg ── */
.section-heading,
h2.section-heading {
  color: #0D1B3E !important;
}

/* ── Fix For Owners page large gaps ── */
.for-owners-section .section,
.faq-section .section,
.contact-section .section {
  padding: 48px 0 !important;
}

/* ── Fix dead space / empty sections ── */
section:empty,
.section:empty,
div:empty:not([class*="icon"]):not([class*="logo"]):not([class*="hamburger"]):not([class*="overlay"]) {
  display: none !important;
}

/* ── Reduce inline padding overrides ── */
[style*="padding: 80px"] { padding: 56px 0 !important; }
[style*="padding:80px"]  { padding: 56px 0 !important; }
[style*="padding: 96px"] { padding: 64px 0 !important; }
[style*="padding: 120px"]{ padding: 72px 0 !important; }

/* ── Fix FAQ accordion gaps ── */
.faq-item, .accordion-item {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #E8E4DE;
}

/* ── Contact page fix ── */
.contact-card, .contact-grid {
  gap: 24px !important;
}

/* ── Fix nav on all pages ── */
.navbar, .site-nav {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important;
}

.navbar .nav-links a,
.site-nav .nav-link,
.nav-link {
  color: #1A1A1A !important;
  font-weight: 500 !important;
}

.nav-logo-text,
.navbar .nav-logo span {
  color: #0D1B3E !important;
  font-weight: 700 !important;
}

/* ── Remove duplicate disclaimer boxes on calculator ── */
#slot-calculator-section > .container > div:nth-child(3) {
  display: none !important;
}

/* ── Fix image not showing — ensure img tags render ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-placeholder, [class*="illustration"]:not(:has(img)) {
  background: linear-gradient(135deg, #F4F2EE, #E8E4DE);
  min-height: 200px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Fix for-owners page specific gaps ── */
.owners-hero { min-height: 240px; }

/* ── Compliance page ── */
.compliance-hero { min-height: 240px; }

/* ── Footer credential badges — remove numbers, keep labels ── */
.footer-credential-badge {
  border: 1px solid rgba(201,168,76,0.2);
  padding: 6px 12px;
  font-size: 11px;
}

/* ── Callout brand style ── */
.callout-brand {
  background: #FAF8F4;
  border-left: 3px solid #C9A84C;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-style: italic;
  color: #374151;
}

/* ── Trust strip / credential strip ── */
.trust-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* ── Stats bar ── */
.stats-bar {
  padding: 32px 0 !important;
}

/* ── Step cards ── */
.steps-horizontal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .steps-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .steps-horizontal { grid-template-columns: 1fr; }
}

.step-card {
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 12px;
  text-align: center;
}

.step-number-bg {
  font-size: 36px;
  font-weight: 700;
  color: rgba(13,27,62,0.08);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 8px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #0D1B3E;
  margin-bottom: 8px;
}

.step-body {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   FIXES v3 — Nav active states, spacing, contact
═══════════════════════════════════════════════════ */

/* ── Active nav state ── */
.nav-link.active,
.nav-links a.active {
  color: #0D1B3E !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #C9A84C;
  padding-bottom: 2px;
}

/* ── FAQ nav visibility ── */
.nav-links a[href="faq.html"],
.nav-links a[href="../faq.html"] {
  display: inline-flex !important;
}

/* ── Contact page header fix ── */
.contact-page h1,
.contact-page h2,
[class*="contact"] h1,
[class*="contact"] h2 {
  color: #0D1B3E !important;
}

/* Contact title on light background */
h1[style*="color:#fff"],
h1[style*="color: #fff"],
h2[style*="color:#fff"],
h2[style*="color: #fff"] {
  /* Keep white only when inside dark sections */
}

/* ── Remove MKC logo visibility ── */
img[src*="mkc-logo"] { display: none !important; }
img[alt*="Mary Kolo Consulting"] { display: none !important; }

/* ── "Built for what happens after the handshake" — gold ── */
.hero-tagline-secondary,
p.hero-tagline-secondary,
[class*="tagline-secondary"] {
  color: #C9A84C !important;
  font-style: italic !important;
}

/* ── Coming soon cards — hide from blog unless intentional ── */
.blog-coming-soon {
  display: none !important;
}

/* ── Blog active nav state ── */
.nav-link[href="blog.html"].active,
.nav-link[href="../blog.html"].active {
  color: #0D1B3E !important;
  border-bottom: 2px solid #C9A84C;
}

/* ── Contact page heading ── */
h1.contact-heading,
.contact-hero h1 {
  color: #0D1B3E !important;
  text-shadow: none !important;
}

/* ── Section spacing — further reduction ── */
.section { padding: 48px 0 !important; }
.section-lg { padding: 64px 0 !important; }

/* ── For-owners / FAQ content spacing ── */
.faq-list, .accordion-list { gap: 0 !important; }

/* ── Remove dead whitespace from grid sections ── */
.grid-auto:empty,
.grid-3:empty,
.grid-2:empty { display: none !important; }

/* ── Image placeholders — style them gracefully ── */
.img-placeholder,
[class*="illustration"]:not(:has(svg)):not(:has(img)) {
  background: linear-gradient(135deg, #F4F2EE 0%, #E8E4DE 100%);
  border-radius: 12px;
  min-height: 120px;
}

/* ── Compliance page — clean up ── */
.compliance-section { padding: 48px 0 !important; }

/* ═══════════════════════════════════════════════════
   IMAGE ZONES + NEW LOGO STYLES
═══════════════════════════════════════════════════ */

/* Hero image responsive */
.hero-illustration img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 900px) {
  .hero-illustration { display: block !important; }
  .hero-illustration img { height: 300px; }
}

/* Credentials grid responsive */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure images fill properly */
.hero-illustration,
.diaspora-section .reveal {
  overflow: hidden;
  border-radius: 16px;
}


/* ═══════════════════════════════════════════════════
   CRITICAL FIX — Reveal animations blocking content
═══════════════════════════════════════════════════ */

/* Force all reveal elements to show regardless of scroll position */
.reveal,
.reveal-left,
.reveal-right,
[class*="reveal"],
[data-stagger] > *,
.hero-animate,
.hero-animate-1,
.hero-animate-2,
.hero-animate-2b,
.hero-animate-3,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4 {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
}

/* Force step cards to show */
.step-card,
.steps-horizontal,
.steps-horizontal > * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Force trust stats */
.trust-stat-cell,
.trust-stats-grid {
  opacity: 1 !important;
  transform: none !important;
}

/* Force all sections visible */
section {
  visibility: visible !important;
}

/* Force cards visible */
.card, .card-light, .card-navy, .card-glass {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force diff items */
.diff-item, .diff-grid, [class*="diff"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Image broken state — show placeholder if image fails */
img:not([src]),
img[src=""],
img[src*="undefined"] {
  display: none;
}

/* Fix sections with inline opacity:0 */
[style*="opacity:0"] { opacity: 1 !important; }
[style*="opacity: 0"] { opacity: 1 !important; }

