/* ==========================================================
   JAWALI INTERNET SERVICES — funnel page styles
   Mobile-first. No external frameworks/icon libraries.
   ========================================================== */

:root {
  /* Design tokens — swap these to reskin the whole page */
  --navy: #0b3a63;
  --navy-dark: #062544;
  --navy-light: #145189;
  --red: #d62839;
  --red-dark: #ad1f2e;
  --cyan: #00b8c9;
  --cyan-dark: #00939f;
  --white: #ffffff;
  --off-white: #f4f8fb;
  --gray-100: #e7eef4;
  --gray-300: #c3d0dc;
  --gray-600: #56687a;
  --text: #10233a;
  --success: #1f9d55;
  --error: #c0392b;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(6, 37, 68, 0.14);
  --max-width: 1180px;

  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 14px; color: var(--navy-dark); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; color: var(--gray-600); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  font-family: var(--font-heading);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cyan); color: var(--navy-dark); }
.btn-primary:hover { background: var(--cyan-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.64rem; color: var(--gray-300); letter-spacing: 0.03em; text-transform: uppercase; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand h3 { margin: 0; font-size: 1.05rem; }
.footer-logo-img { border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.main-nav { display: none; gap: 20px; }
.main-nav a { color: var(--gray-300); font-weight: 600; font-size: 0.9rem; }
.main-nav a:hover { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { display: none; }
.header-phone { display: none; align-items: center; gap: 6px; color: var(--white); font-weight: 700; font-size: 0.95rem; }
.header-phone svg { color: var(--cyan); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; }
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 16px 20px 24px;
  gap: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at 20% 0%, rgba(20,81,137,0.55) 0%, rgba(6,37,68,0) 55%), linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 52px 0 48px;
}
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 5vw, 2.85rem); margin-bottom: 16px; }
.hero .subhead { color: var(--gray-300); font-size: 1.08rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-microcopy { font-size: 0.85rem; color: var(--gray-300); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-300); }
.trust-badge strong { color: var(--white); }
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.hero-form-card h3 { margin-bottom: 4px; }
.hero-form-card .form-note { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 16px; }

/* ---------- Trust Bar ---------- */
.trust-bar { background: var(--off-white); padding: 26px 0; }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.google-rating-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}
.google-rating-pill .stars { color: #e8a90c; letter-spacing: 1px; }
.amenity-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.amenity-badge {
  border: 1px dashed var(--gray-300);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ---------- Pain / Benefit ---------- */
.pain-grid { display: grid; gap: 20px; }
.pain-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--red);
}
.pain-card .pain { color: var(--error); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.pain-card h3 { margin-bottom: 8px; }

/* ---------- Plans / Services Grid ---------- */
.services-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card {
  position: relative;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card.featured { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.service-card .featured-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--cyan);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--off-white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 4px; }
.service-speed { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--navy); background: var(--gray-100); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.service-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--red); margin-bottom: 12px; }
.service-price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--gray-600); }
.service-includes { list-style: none; padding: 0; margin: 0 0 14px; }
.service-includes li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text); padding: 4px 0; }
.service-includes li svg { color: var(--success); flex-shrink: 0; }
.service-card .micro-cta { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.service-card .micro-cta:hover { color: var(--red); }

/* ---------- Feature Grid (CCTV) ---------- */
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { margin-bottom: 0; }

/* ---------- Bundle Plans ---------- */
.bundle-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bundle-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.bundle-card h3 { color: var(--white); }
.bundle-price { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--cyan); margin-bottom: 6px; }
.bundle-price span { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--gray-300); }
.bundle-card p { color: rgba(255,255,255,0.82); }
.bundle-includes { list-style: none; padding: 0; margin: 12px 0 16px; }
.bundle-includes li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; padding: 4px 0; color: rgba(255,255,255,0.94); }
.bundle-includes li svg { color: var(--cyan); flex-shrink: 0; }
.discount-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 32px auto 0;
  max-width: 560px;
  text-align: center;
}
.discount-banner svg { flex-shrink: 0; }

/* ---------- Process ---------- */
.process-section { background: var(--off-white); }
.process-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.process-step { text-align: center; }
.process-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 14px;
  font-family: var(--font-heading);
}

/* ---------- Reviews ---------- */
.reviews-note { text-align: center; font-size: 0.82rem; color: var(--gray-600); margin-top: -20px; margin-bottom: 32px; }
.reviews-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
}
.review-card .stars { color: #e8a90c; letter-spacing: 1px; margin-bottom: 10px; }
.review-card .review-author { font-weight: 700; }
.review-card .review-meta { font-size: 0.78rem; color: var(--gray-600); margin-bottom: 10px; }
.review-card .review-text { font-size: 0.94rem; color: var(--text); margin-bottom: 0; }
.reviews-empty {
  text-align: center;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* ---------- Map ---------- */
.map-wrap { display: grid; gap: 20px; }
.map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--gray-100); }
.map-placeholder {
  width: 100%; height: 340px; border-radius: var(--radius);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; text-align: center; padding: 20px;
  color: var(--gray-600); font-size: 0.9rem;
}
.map-placeholder svg { color: var(--red); }
.map-info { background: var(--off-white); border-radius: var(--radius); padding: 24px; }
.map-info p { margin-bottom: 8px; }

/* ---------- Comparison ---------- */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--white); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 0.92rem; }
.compare-table thead th { background: var(--navy); color: var(--white); font-size: 0.85rem; }
.compare-table td.yes { color: var(--success); font-weight: 700; }
.compare-table td.no { color: var(--gray-600); }
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-body);
}
.faq-question .plus { font-size: 1.4rem; color: var(--red); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding: 0 4px 18px; margin: 0; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); }
.final-cta .section-head h2 { color: var(--white); }
.final-cta .section-head p { color: var(--gray-300); }
.final-cta-grid { display: grid; gap: 32px; align-items: start; }
.final-cta-form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.urgency-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 184, 201, 0.14);
  border: 1px solid rgba(0, 184, 201, 0.4);
  color: var(--cyan-dark);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.urgency-bar svg { flex-shrink: 0; margin-top: 2px; }
.final-call-block { display: flex; flex-direction: column; gap: 16px; }
.final-call-block .call-now {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 18px;
}
.final-call-block .call-now svg { color: var(--cyan); flex-shrink: 0; }
.final-call-block .call-now .num { font-size: 1.15rem; font-weight: 800; display: block; }
.final-call-block .call-now .num + .num { margin-top: 2px; }

/* ---------- Form fields ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--navy-dark); }
.final-cta-form .form-row label { color: var(--navy-dark); }
.hero-form-card .form-row label { color: var(--navy-dark); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}
select { text-overflow: ellipsis; white-space: nowrap; }
input:focus, select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.form-cols { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-cols .form-row { min-width: 0; }
.form-microcopy { font-size: 0.78rem; color: var(--gray-600); margin-top: 4px; text-align: center; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { display: none; padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 14px; }
.form-status.show { display: block; }
.form-status.success { background: rgba(31, 157, 85, 0.12); color: var(--success); }
.form-status.error { background: rgba(192, 57, 43, 0.12); color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--gray-300); padding: 48px 0 0; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-col h3 { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin: 18px 0 10px; font-family: var(--font-body); }
.footer-col p, .footer-col a { color: var(--gray-300); font-size: 0.9rem; }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-hours { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.footer-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-hours li span:last-child { text-align: right; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--gray-300); margin-bottom: 0; }
.footer-social a:hover { color: var(--cyan); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 36px;
  padding: 20px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--gray-300);
}
.footer-disclaimer { font-size: 0.75rem; color: #9fb0c2; margin-top: 8px; margin-bottom: 0; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  background: var(--cyan);
}
.mobile-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px 10px;
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 0.95rem;
}
.mobile-call-bar a.quote { background: var(--navy); color: var(--white); }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }

/* ==========================================================
   Breakpoints
   ========================================================== */
@media (min-width: 640px) {
  .form-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  section { padding: 80px 0; }
  .main-nav { display: flex; }
  .header-phone { display: flex; }
  .header-cta .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .pain-grid { grid-template-columns: repeat(4, 1fr); }
  .map-wrap { grid-template-columns: 1.3fr 1fr; }
  .final-cta-grid { grid-template-columns: 1fr 1fr; }
  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 859px) {
  body { padding-bottom: 58px; } /* room for sticky mobile call bar */
}
