/* Netsafe Solutions Service Page Styles */
/* Hero background-image is set per-template via inline <style> */
/* ============================================================
   Layout-only styles — typography inherited from Generator theme
   Theme fonts: Poppins (headings), Inter (body)
   Theme colors: #0a77ba (primary), #FFFF04 (accent), #191a1a (text)
   ============================================================ */

/* --- NAV DROPDOWN FIX (Generator theme JS missing on custom templates) --- */
.header__menu-item--has-submenu {
  position: relative;
}
.header__menu-submenu,
.header__menu-submenu--level-2 {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #ffffff;
  min-width: 260px;
  width: max-content;
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px 0;
  list-style: none;
  margin: 0;
}
.header__menu-item--open > .header__menu-submenu,
.header__menu-item--open > .header__menu-submenu--level-2 {
  display: block;
}
.header__menu-submenu li,
.header__menu-submenu--level-2 li {
  display: block !important;
  width: 100%;
}
.header__menu-submenu li a,
.header__menu-submenu--level-2 li a {
  display: block;
  padding: 10px 20px;
  color: #191a1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.header__menu-submenu li a:hover,
.header__menu-submenu--level-2 li a:hover {
  background: #f0f7fc;
  color: #0a77ba;
}

/* --- HERO --- */
.location-hero {
  background-size: cover;
  background-position: center center;
  padding: 120px 20px;
  min-height: 400px;
  text-align: center;
  position: relative;
}
.location-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}
.location-hero > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  .location-hero { padding: 80px 20px; }
}
.location-hero h1 {
  color: #ffffff;
  margin: 0 0 10px 0;
}
.location-hero h1 .city-highlight {
  color: #ffffff;
}
.location-hero .hero-sub {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.56;
  margin: 0 auto 40px;
  max-width: 720px;
}
@media (max-width: 767px) {
  .location-hero .hero-sub { font-size: 18px; }
}
.location-hero .cta-btn {
  display: inline-block;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 16px 40px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.location-hero .cta-btn:hover {
  background: rgba(255,255,255,0.85);
  color: #000000;
}

/* --- SECTION CONTAINERS --- */
.section-white {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}
.section-white p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.section-gray {
  background: #f8fafc;
}
.section-gray-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}
.section-gray-inner p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.section-dark {
  background: #1a2332;
  color: #ffffff;
  text-align: center;
}
.section-dark-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}
.section-dark h2 { color: #ffffff; }
.section-dark p { color: #cbd5e1; max-width: 800px; margin-left: auto; margin-right: auto; text-align: left; }
.section-dark strong { color: #ffffff; }
.section-dark a { color: #60a5fa; }
.section-dark a:hover { color: #93bbfd; }
@media (max-width: 767px) {
  .section-white, .section-gray-inner, .section-dark-inner { padding: 48px 20px; }
}

/* --- SECTION HEADINGS --- */
.section-white h2,
.section-gray-inner h2,
.section-dark-inner h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* --- SECTION INTRO (centered H2 on detail pages) --- */
.location-body .section-intro {
  text-align: center;
  margin-bottom: 48px;
}
.location-body .section-intro h2 {
  margin-top: 0;
}

/* --- LOCATION BODY (for detail/city pages) --- */
.location-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}
@media (max-width: 767px) {
  .location-body { padding: 48px 20px; }
}
.location-body h2 {
  margin: 48px 0 16px 0;
}
.location-body h2:first-child {
  margin-top: 0;
}
.location-body h3 {
  margin: 32px 0 12px 0;
}
.location-body ul {
  padding-left: 24px;
}
.location-body li {
  margin-bottom: 8px;
}

/* --- QUICK ANSWER BLOCK (GEO critical) --- */
.quick-answer {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 24px;
  border-left: 4px solid #0a77ba;
}
.quick-answer p {
  line-height: 1.8;
}

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: center;
}
@media (max-width: 767px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.stat-item {
  padding: 24px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #0a77ba;
  line-height: 1.2;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

/* --- SPLIT LAYOUT (text + image zigzag) --- */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-row img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 100%;
  max-height: 400px;
}
.split-row h2 { margin-top: 0; text-align: left; }
.split-row p { max-width: none; margin-left: 0; margin-right: 0; }
@media (max-width: 767px) {
  .split-row { grid-template-columns: 1fr; gap: 24px; }
  .split-row.reverse { direction: ltr; }
  .split-row img { max-height: 280px; }
}

/* --- SERVICE GRID --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin: 32px auto 0;
  max-width: 1000px;
  text-align: left;
}
@media (max-width: 767px) {
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
}
.service-grid .service-card {
  padding: 28px 24px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-grid .service-card:hover {
  box-shadow: 0 6px 20px rgba(10, 119, 186, 0.10);
  transform: translateY(-3px);
}
.service-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  background: #e8f4fb;
  border-radius: 12px;
  color: #0a77ba;
  padding: 12px;
}
.service-grid .service-card h3 {
  margin: 0 0 10px 0;
}
.service-grid .service-card p {
  margin: 0 0 14px 0;
}
.service-grid .service-card .learn-more {
  color: #0a77ba;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.service-grid .service-card .learn-more:hover {
  color: #065a8c;
  gap: 10px;
}
.service-grid .service-card .learn-more::after {
  content: "\2192";
  font-size: 1.1em;
}

/* --- DIFFERENTIATOR GRID (large numbers) --- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 32px auto 0;
  text-align: left;
}
@media (max-width: 767px) {
  .diff-grid { grid-template-columns: 1fr; gap: 20px; }
}
.diff-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.diff-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #e8f4fb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a77ba;
  font-weight: 700;
  font-size: 18px;
}
.diff-text strong {
  display: block;
  margin-bottom: 4px;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: #0a77ba;
  border-radius: 12px;
  padding: 56px 40px;
  text-align: center;
  margin: 0;
}
@media (max-width: 767px) {
  .cta-banner { padding: 40px 24px; }
}
.cta-banner h2 {
  margin: 0 0 16px 0;
  color: #ffffff;
}
.cta-banner p {
  margin: 0 auto 28px;
  max-width: 640px;
  color: rgba(255,255,255,0.9);
}
.cta-banner .cta-btn-body, a.cta-btn-body {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  color: #0a77ba !important;
  background: #ffffff !important;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 16px 40px;
  text-decoration: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.cta-banner .cta-btn-body:hover, a.cta-btn-body:hover {
  background: #f0f7fc !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* --- FAQ SECTION --- */
.faq-section {
  margin-top: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  margin: 0 0 10px 0;
  color: #191a1a;
}
.faq-item p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}
.faq-item p + p {
  margin-top: 12px;
}

/* Fallback FAQ styling for city pages (bare H3+P in HubDB body_content) */
.location-body h3 + p {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.location-body h3 + p:last-child,
.location-body h3 + p:last-of-type {
  border-bottom: none;
}
.faq-item h3 + p {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* --- CITY DETAIL: INTRO SECTION (split layout) --- */
.city-intro {
  padding: 64px 20px;
}
.city-intro .split-row div:first-child h2 {
  margin-top: 0;
  text-align: left;
}
.city-intro .split-row div:first-child div[style*="text-align:center"] {
  text-align: left !important;
  margin-bottom: 0 !important;
}
.city-intro .split-row p {
  line-height: 1.8;
  color: #374151;
}

/* --- CITY DETAIL: SERVICE CARDS (accent top border, no icon) --- */
.city-cards .service-card {
  border-top: 3px solid #0a77ba;
}
.city-cards .service-card h3 {
  margin-top: 4px;
}

/* --- CITY DETAIL: WHY SECTION --- */
.city-why {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
}
.city-why h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 32px;
}
.city-why ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.city-why li {
  padding: 24px 28px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #0a77ba;
  line-height: 1.7;
  color: #374151;
}
.city-why li strong {
  display: block;
  color: #1a2332;
  font-size: 1.05em;
  margin-bottom: 6px;
}
@media (max-width: 767px) {
  .city-intro { padding: 48px 20px; }
  .city-why { padding: 48px 20px; }
  .city-why ul { grid-template-columns: 1fr; }
  .city-why li { padding: 18px 20px; }
  .city-intro .split-row div:first-child div[style*="text-align:center"] { text-align: left !important; }
}

/* --- CITY DETAIL: SERVING AREA --- */
.city-serving {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.city-serving h2 {
  margin-top: 0;
  margin-bottom: 16px;
}
.city-serving p {
  color: #4b5563;
  line-height: 1.7;
}

/* --- CITY DIRECTORY --- */
.location-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.location-listing h2 {
  margin: 0 0 12px 0;
}
.location-listing > p {
  margin: 0 0 24px 0;
  color: #4b5563;
}
.location-listing {
  text-align: center;
}
.location-listing .city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.location-listing .city-pill {
  display: inline-block;
  border: 1px solid #d1d5db;
  border-radius: 50px;
  padding: 8px 18px;
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.location-listing .city-pill:hover {
  background: #0a77ba;
  border-color: #0a77ba;
  color: #ffffff;
}
