/* =========================================================================
   StatusEC — Stage 7 Home Addon CSS
   -------------------------------------------------------------------------
   Adds styles for surgical additions to the live home page:
   - Nav dropdowns (desktop hover, mobile-safe)
   - LOPDP urgency banner (between hero and solutions)
   - Industries self-select grid (between funcionalidades and pricing)
   - Secondary WhatsApp link styling below primary CTAs
   - 5-column footer enhancements

   Design tokens are inherited from /statusec-shared.css. This file ONLY
   contains additions specific to the home page Stage 7 blocks.

   Load AFTER statusec-shared.css:
     <link rel="stylesheet" href="/statusec-shared.css">
     <link rel="stylesheet" href="/stage7-addon.css">

   Can be removed or merged into shared CSS once Stage 7 is validated.
   ========================================================================= */

/* ====== LOPDP URGENCY BANNER (home-specific variant) ====== */
.home-lopdp-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 48px auto;
  max-width: 1140px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}
.home-lopdp-banner-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.home-lopdp-banner-body {
  min-width: 0;
}
.home-lopdp-banner-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 4px;
  line-height: 1.3;
}
.home-lopdp-banner-desc {
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.home-lopdp-banner-cta {
  background: #78350f;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
  display: inline-block;
}
.home-lopdp-banner-cta:hover {
  transform: translateY(-2px);
  background: #5c2910;
}
@media (max-width: 768px) {
  .home-lopdp-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
    margin: 32px 16px;
  }
  .home-lopdp-banner-icon { margin: 0 auto; }
  .home-lopdp-banner-cta { justify-self: center; }
}

/* ====== INDUSTRIES SELF-SELECT GRID ====== */
.home-industries {
  padding: 72px 0;
  background: #f8f9fc;
}
.home-industries-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.home-industries-header {
  text-align: center;
  margin-bottom: 48px;
}
.home-industries-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7bc142;
  margin-bottom: 12px;
}
.home-industries-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: #0d0b3e;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.2;
}
.home-industries-desc {
  font-size: 1.05rem;
  color: #5a5e72;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}
.home-industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.home-industry-card {
  background: #ffffff;
  border: 1px solid #f0f1f5;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.home-industry-card:hover {
  transform: translateY(-4px);
  border-color: #7bc142;
  box-shadow: 0 10px 30px rgba(13, 11, 62, 0.08);
}
.home-industry-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.home-industry-name {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d0b3e;
  margin: 0 0 8px;
}
.home-industry-desc {
  font-size: 0.92rem;
  color: #5a5e72;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.home-industry-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7bc142;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.home-industry-card:hover .home-industry-link {
  gap: 10px;
}
@media (max-width: 768px) {
  .home-industries { padding: 56px 0; }
  .home-industries-header { margin-bottom: 32px; }
  .home-industries-grid { gap: 16px; }
}

/* ====== CTA SECONDARY LINKS (WhatsApp fallback below primary) ====== */
.cta-wa-fallback {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #5a5e72;
}
.cta-wa-fallback a {
  color: #7bc142;
  font-weight: 600;
  text-decoration: none;
}
.cta-wa-fallback a:hover { text-decoration: underline; }

/* ====== NAV DROPDOWN (if not already in shared CSS — safe duplicate with same values) ====== */
/* These selectors are idempotent with /statusec-shared.css. Included here so the home
   works even if shared CSS isn't loaded yet during Stage 7 rollout. */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
  font-family: inherit;
}
.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 280px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(13, 11, 62, 0.15);
  border: 1px solid #f0f1f5;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #2d3044;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: #f8f9fc;
  color: #0d0b3e;
}
.nav-dropdown-menu a .item-desc {
  display: block;
  font-size: 0.78rem;
  color: #9498a8;
  font-weight: 400;
  margin-top: 2px;
}

/* Mobile: flatten dropdowns inside hamburger menu */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
    background: transparent;
  }
  .nav-dropdown-toggle svg { display: none; }
  .nav-dropdown-menu a { padding: 8px 0; }
  .nav-dropdown-menu a .item-desc { display: none; }
}

/* ====== FOOTER ENHANCEMENTS (5-col) ====== */
.home-footer {
  background: #08062e;
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 24px 28px;
  margin-top: 0;
}
.home-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.home-footer-brand img {
  height: 36px;
  margin-bottom: 18px;
}
.home-footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
}
.home-footer-social {
  display: flex;
  gap: 10px;
}
.home-footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s;
  text-decoration: none;
}
.home-footer-social a:hover { background: #7bc142; }
.home-footer-social svg { width: 16px; height: 16px; }

.home-footer-col-title {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}
.home-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-footer-col li { margin-bottom: 9px; }
.home-footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.home-footer-col a:hover { color: #7bc142; }

.home-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.home-footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.home-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.home-footer-bottom-links a:hover { color: #7bc142; }

@media (max-width: 1024px) {
  .home-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .home-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ====== WHATSAPP FLOATING (idempotent with shared) ====== */
.home-wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-wa-float-label {
  background: #ffffff;
  color: #0d0b3e;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 6px 20px rgba(13, 11, 62, 0.15);
}
.home-wa-float-btn {
  position: relative;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s;
}
.home-wa-float-btn:hover { transform: scale(1.08); }
.home-wa-float-btn svg { width: 28px; height: 28px; }
.home-wa-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: home-wa-pulse 2s infinite;
}
@keyframes home-wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 768px) {
  .home-wa-float-label { display: none; }
}
