/*
Theme Name: My Neighborhood WiFi
Theme URI: https://myneighborhoodwifi.xyz
Author: My Neighborhood WiFi
Author URI: https://myneighborhoodwifi.xyz
Description: Premium broadband & telecom comparison theme featuring custom sticky header, high-converting telephone concierge, and 4-column consumer footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mnw-theme
*/

:root {
  --mnw-primary: #0f172a;
  --mnw-primary-dark: #020617;
  --mnw-primary-light: #1e293b;
  --mnw-brand-blue: #2563eb;
  --mnw-brand-blue-hover: #1d4ed8;
  --mnw-brand-accent: #0284c7;
  --mnw-cyan: #06b6d4;
  --mnw-success: #16a34a;
  --mnw-success-dark: #15803d;
  --mnw-warning: #f59e0b;
  --mnw-bg: #f8fafc;
  --mnw-surface: #ffffff;
  --mnw-surface-alt: #f1f5f9;
  --mnw-text-main: #0f172a;
  --mnw-text-muted: #64748b;
  --mnw-text-light: #94a3b8;
  --mnw-border: #e2e8f0;
  --mnw-border-light: #f1f5f9;
  --mnw-radius-sm: 6px;
  --mnw-radius-md: 10px;
  --mnw-radius-lg: 16px;
  --mnw-radius-full: 9999px;
  --mnw-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --mnw-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --mnw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --mnw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--mnw-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mnw-text-main);
  background-color: var(--mnw-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--mnw-brand-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--mnw-brand-blue-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--mnw-brand-blue);
  color: #fff;
  padding: 8px 16px;
  z-index: 99999;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.mnw-topbar {
  background: #090e1a;
  color: #94a3b8;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mnw-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: mnwPulse 2s infinite;
}
@keyframes mnwPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-weight: 600;
}
.topbar-tel:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ==========================================================================
   MAIN STICKY HEADER
   ========================================================================== */
.mnw-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--mnw-border);
  box-shadow: var(--mnw-shadow-sm);
}
.mnw-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.mnw-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.mnw-logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.mnw-logo-text {
  display: flex;
  flex-direction: column;
}
.mnw-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--mnw-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.mnw-brand-name .highlight {
  color: var(--mnw-brand-blue);
}
.mnw-brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--mnw-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Navigation */
.mnw-desktop-nav {
  display: flex;
  align-items: center;
}
.mnw-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mnw-nav-list a {
  display: block;
  padding: 8px 14px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--mnw-radius-sm);
  transition: all 0.15s ease;
}
.mnw-nav-list a:hover {
  color: var(--mnw-brand-blue);
  background-color: #eff6ff;
}
.mnw-nav-list a.active {
  color: var(--mnw-brand-blue);
  background-color: #dbeafe;
}

/* Header Action / CTA */
.mnw-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mnw-header-phone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mnw-success);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--mnw-radius-full);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}
.mnw-header-phone-btn:hover {
  background: var(--mnw-success-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}
.phone-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-text {
  display: flex;
  flex-direction: column;
}
.btn-sub {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.9;
  line-height: 1;
}
.btn-main {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* Mobile Toggle */
.mnw-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--mnw-border);
  padding: 8px;
  border-radius: var(--mnw-radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
}
.mnw-mobile-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--mnw-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Nav Drawer */
.mnw-mobile-nav {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid var(--mnw-brand-blue);
  box-shadow: var(--mnw-shadow-md);
  padding: 16px 20px 20px;
}
.mnw-mobile-nav.open {
  display: block;
}
.mnw-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mnw-mobile-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--mnw-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--mnw-radius-sm);
}
.mnw-mobile-nav a:hover, .mnw-mobile-nav a.active {
  background-color: #eff6ff;
  color: var(--mnw-brand-blue);
}
.mnw-mobile-phone-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mnw-border);
}
.mnw-mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mnw-success);
  color: #fff !important;
  padding: 12px;
  border-radius: var(--mnw-radius-md);
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   PAGE CONTENT RESET & CLEANUP
   ========================================================================== */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* Override previous page fullwidth breakout hacks so content flows seamlessly */
.mnw-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.mnw-page-wrapper {
  width: 100%;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.mnw-site-footer {
  background: #0b1329;
  color: #94a3b8;
  font-size: 14px;
  margin-top: auto;
}

/* Pre-footer Callout Banner */
.mnw-prefooter {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 20px;
}
.mnw-prefooter-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.mnw-prefooter-content h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
.mnw-prefooter-content p {
  color: #cbd5e1;
  font-size: 15px;
  margin: 0;
  max-width: 650px;
}
.mnw-prefooter-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--mnw-radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.mnw-prefooter-cta-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* 4-Column Directory Layout */
.mnw-footer-columns {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}
.footer-about p {
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 20px;
}
.footer-phone-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mnw-radius-md);
  padding: 16px;
}
.footer-phone-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #38bdf8;
  margin-bottom: 4px;
}
.footer-phone-number {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.footer-phone-number a {
  color: #ffffff !important;
}
.footer-phone-hours {
  font-size: 12px;
  color: #64748b;
}

/* Footer Link Lists */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav-list li {
  margin-bottom: 11px;
}
.footer-nav-list a {
  color: #cbd5e1;
  font-size: 14.5px;
  transition: all 0.15s ease;
  display: inline-block;
}
.footer-nav-list a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Consumer Disclosure Box */
.mnw-disclosure-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.mnw-disclosure-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mnw-radius-md);
  padding: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
}
.mnw-disclosure-box strong {
  color: #e2e8f0;
}

/* Bottom Bar */
.mnw-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 20px;
  background: #070c1a;
}
.mnw-footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: #94a3b8;
}
.footer-bottom-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
  .mnw-desktop-nav {
    display: none;
  }
  .mnw-mobile-toggle {
    display: flex;
  }
  .mnw-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-col.footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .mnw-topbar-inner {
    justify-content: center;
    text-align: center;
  }
  .topbar-item {
    display: none;
  }
  .mnw-header-phone-btn .btn-text {
    display: none;
  }
  .mnw-header-phone-btn {
    padding: 8px;
    border-radius: 50%;
  }
  .mnw-footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-col.footer-about {
    grid-column: span 1;
  }
  .mnw-prefooter-inner {
    flex-direction: column;
    text-align: center;
  }
  .mnw-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}
