/*
 * Summit Channel Partners Network — Shared Navigation & Footer
 * Applied server-side to all 95+ Free*App.com domains
 * Classes prefixed with scp- to avoid conflicts with existing page CSS
 * summitchannelpartners.com is excluded from injection
 */

/* ── FONT IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── RESET FOR SCP ELEMENTS ── */
#scp-nav, #scp-footer,
#scp-nav *, #scp-nav *::before, #scp-nav *::after,
#scp-footer *, #scp-footer *::before, #scp-footer *::after {
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════════
   SHARED NAVIGATION
═══════════════════════════════════════════════════════════════════════ */

#scp-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.scp-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.scp-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.scp-nav-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #111827;
}

.scp-gray { color: #6b7280; }

/* Nav links */
.scp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scp-nav-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.scp-nav-link:hover {
  color: #111827;
  background: #f3f4f6;
}

.scp-nav-cta {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  white-space: nowrap;
  margin-left: 4px;
  display: inline-block;
}

.scp-nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hamburger button */
.scp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.scp-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile drawer */
.scp-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.07);
  padding: 6px 20px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scp-drawer.open { display: block; }

.scp-drawer a {
  display: block;
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 4px;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.15s;
}

.scp-drawer a:hover { color: #1d4ed8; }
.scp-drawer a:last-child { border-bottom: none; }

.scp-drawer-cta {
  display: inline-block !important;
  margin-top: 10px;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: none !important;
  transition: opacity 0.15s !important;
}

.scp-drawer-cta:hover { opacity: 0.88 !important; }

@media (max-width: 768px) {
  .scp-nav-links { display: none; }
  .scp-hamburger { display: flex; }
  .scp-nav-inner { height: 60px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SHARED FOOTER
═══════════════════════════════════════════════════════════════════════ */

#scp-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 24px 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.scp-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.scp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Brand column */
.scp-footer-brand {}

.scp-footer-logo {
  display: inline-block;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}

.scp-footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 280px;
  margin: 0;
}

/* Link columns */
.scp-footer-col h4 {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 16px;
}

.scp-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 0.15s;
  line-height: 1.4;
}

.scp-footer-col a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Bottom bar */
.scp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.scp-footer-bottom > p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* SCP Attribution */
.scp-footer-attribution {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scp-badge {
  width: 32px;
  height: 32px;
  background: #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.scp-footer-attribution-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.scp-footer-attribution-text a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.scp-footer-attribution-text a:hover { color: #ffffff; }

.scp-footer-attribution-text span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

.scp-footer-network {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.scp-footer-network a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s;
}

.scp-footer-network a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 960px) {
  .scp-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
  }
  .scp-footer-brand {
    grid-column: 1 / -1;
  }
  .scp-footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .scp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  #scp-footer {
    padding: 48px 20px 28px;
  }
  .scp-footer-grid {
    margin-bottom: 36px;
  }
}

@media (max-width: 400px) {
  .scp-footer-grid {
    grid-template-columns: 1fr;
  }
}
