/*
Theme Name: Khabar Nonstop — khabar-nonstop-theme-v1
Theme URI: https://khabarnonstop.com
Author: WP-Flash | SerpZenith
Author URI: https://wpflash.com
Description: Bespoke theme for Khabar Nonstop. Built with WP-Flash v4.0.
Version: 1.0.0
License: Private
Text Domain: khabar-nonstop-theme-v1
*/

/* =====================
   CSS VARIABLES (from Visual Identity)
   ===================== */
:root {
  --color-primary: #1E3A5F;
  --primary-rgb: 30, 58, 95;
  --color-secondary: #16293F;
  --color-accent: #EA580C;
  --color-accent-dark: #C2410C;
  --color-bg: #FAFAF9;
  --color-surface: #F3F4F6;
  --color-border: #E5E7EB;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Lato', sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  --spacing-2xl: 120px;

  --container: 1200px;
  --container-sm: 760px;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-secondary); }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(22px, 3vw, 30px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
p { margin-bottom: 1.2em; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

/* =====================
   CONTAINER
   ===================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}
.btn-accent {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: white;
}
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* =====================
   CARDS
   ===================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-title { font-size: 20px; font-weight: 700; margin-bottom: var(--spacing-xs); }
.card-icon {
  width: 56px; height: 56px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 24px;
}

/* =====================
   SECTIONS
   ===================== */
.section { padding: var(--spacing-xl) 0; }
.section-lg { padding: var(--spacing-2xl) 0; }
.section-label,
.kicker {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: var(--spacing-sm);
}
.section-title { margin-bottom: var(--spacing-sm); }
.section-subtitle { color: var(--color-text-muted); font-size: 18px; max-width: 600px; margin-top: 8px; }
.section-header { margin-bottom: var(--spacing-lg); }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 12px auto 0; }

/* =====================
   HEADER / NAV
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
}
.site-logo span { color: var(--color-primary); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-primary); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 16px;
  color: var(--color-primary);
}

/* Mobile nav */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--color-border);
    padding: 20px 24px; gap: 16px;
  }
  .hamburger { display: block; }
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, #E8EDF2 100%);
  padding: var(--spacing-2xl) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--color-primary);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: var(--spacing-sm);
}
.hero-title { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: var(--spacing-sm); line-height: 1.05; }
.hero-title span { color: var(--color-primary); }
.hero-subtitle { font-size: 18px; color: var(--color-text-muted); margin-bottom: var(--spacing-md); max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--spacing-md); }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--color-text-muted); }
.trust-item span.icon { color: var(--color-success); }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 280px; margin: 0 auto; }
}

/* =====================
   SERVICES GRID
   ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card .card-icon { background: rgba(var(--primary-rgb), 0.08); }

/* =====================
   WHY CHOOSE US
   ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* =====================
   STATS BAR
   ===================== */
.stats-bar { background: var(--color-primary); color: white; padding: 40px 0; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.stat-number { font-family: var(--font-heading); font-size: 44px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 6px; }
@media (max-width: 600px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }

/* =====================
   LOCATIONS GRID
   ===================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.location-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
  text-decoration: none;
}
.location-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(var(--primary-rgb), 0.04);
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { font-size: 18px; margin-bottom: 12px; }
.testimonial-text { font-style: italic; color: var(--color-text); line-height: 1.6; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-location { font-size: 13px; color: var(--color-text-muted); }

/* =====================
   TRUST BADGES
   ===================== */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.trust-icon { font-size: 16px; }

/* =====================
   RISK-REVERSAL CARDS
   ===================== */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.risk-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.risk-number {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  color: rgba(var(--primary-rgb), 0.08);
  line-height: 1;
  margin-bottom: -12px;
  letter-spacing: -0.04em;
}
.risk-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.risk-card p { color: var(--color-text-muted); font-size: 15px; margin: 0; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* =====================
   PRICING CARDS
   ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.price-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
  transform: scale(1.03);
}
.price-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: white;
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.price-card-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price-card-price { font-size: 36px; font-weight: 800; color: var(--color-primary); margin-bottom: 20px; }
.price-card-features { list-style: none; margin-bottom: 24px; }
.price-card-features li { padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--color-border); }
.price-card-features li:last-child { border-bottom: none; }

/* =====================
   VS COMPARISON BLOCK
   ===================== */
.vs-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.vs-side h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.vs-side--them h3 { color: var(--color-text-muted); }
.vs-side--us h3 { color: var(--color-primary); }
.vs-list { list-style: none; }
.vs-list li { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--color-border); }
.vs-list li:last-child { border-bottom: none; }
.vs-divider {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-primary); color: white;
  border-radius: 50%; font-weight: 800; font-size: 14px;
  position: sticky; top: 50%;
}
@media (max-width: 640px) { .vs-block { grid-template-columns: 1fr; } .vs-divider { display: none; } }

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 560px; margin: 0 auto var(--spacing-md); }
.cta-section .btn-primary { background: white; color: var(--color-primary); }
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* =====================
   PHONE / CLICK-TO-CALL
   ===================== */
.btn-phone {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
  font-size: 18px; font-weight: 800;
}
.btn-phone:hover { filter: brightness(0.9); color: white; }
.phone-inline {
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* =====================
   MOBILE CALL BAR
   ===================== */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.call-icon { font-size: 20px; }
.call-text { font-size: 15px; }
.call-number { font-size: 13px; opacity: 0.85; }
@media (max-width: 767px) { .mobile-call-bar { display: block; } main { padding-bottom: 72px; } }

/* =====================
   FAQ SECTION
   ===================== */
/* Do NOT add a .faq-item/.faq-question/.faq-answer block elsewhere. This is
   the single definitive block (Component A5, agent/skills/08-design-system.md)
   for the <details>/<summary> based accordion — zero JS required. */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron {
  font-size: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-weight: 400;
}
details[open] .faq-chevron { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-answer p { margin: 0; }

/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--spacing-md); flex-wrap: wrap; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-text-muted); }

/* =====================
   PAGE HERO (inner pages)
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, #E8EDF2 100%);
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}
.page-hero .hero-subtitle { max-width: 700px; }

/* =====================
   NEARBY CITIES
   ===================== */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* =====================
   404
   ===================== */
.error-404 { text-align: center; padding: var(--spacing-2xl) 0; }
.error-404 .error-code { font-family: var(--font-heading); font-size: clamp(80px, 12vw, 160px); font-weight: 900; color: rgba(var(--primary-rgb), 0.1); line-height: 1; }

/* =====================
   FOOTER
   ===================== */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: var(--spacing-xl) 0 var(--spacing-md); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--spacing-md);
}
.footer-brand .site-logo { color: white; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 14px; opacity: 0.7; }
.footer-col h4 { color: white; font-size: 15px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: 0.6; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================
   SCHEMA (hidden)
   ===================== */
.schema-hidden { display: none !important; }
