/* ==========================================================
   KHAN CABLE NETWORK - website styles (mobile first)
   Theme: navy + gold (logo ke colours) + BSNL blue
   ========================================================== */

:root {
  --navy: #0a1230;
  --navy-2: #121d47;
  --blue: #1546c4;
  --blue-dark: #0f3596;
  --gold: #dba53a;
  --gold-light: #f4d27e;
  --gold-dark: #b37f1c;
  --green: #1fa855;
  --bg: #f5f7fc;
  --card: #ffffff;
  --text: #1a2236;
  --muted: #5a6478;
  --line: #e2e7f1;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 18, 48, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.18em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: 10px 16px; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-body);
  cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }
.btn-gold:hover { background: var(--gold); }
.btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: #178a45; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #dfe5f5; font-size: 0.82rem; }
.topbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 18px; padding-top: 7px; padding-bottom: 7px;
}
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #dfe5f5; padding: 4px 0; }
.topbar-item .icon { color: var(--gold-light); }
a.topbar-item:hover { color: #fff; }
.topbar-gst { display: none; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 72px; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.brand img.brand-round { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font: 700 1.02rem/1.15 var(--font-head); letter-spacing: 0.02em; color: var(--navy);
}
.brand-sub { font-size: 0.72rem; color: var(--muted); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(10, 18, 48, 0.1);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 10px 18px 18px; }
.site-nav a:not(.btn) {
  display: block; padding: 12px 6px; color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: var(--blue); text-decoration: none; }
.nav-cta { margin-top: 14px; }
.nav-cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(219, 165, 58, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(21, 70, 196, 0.45), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e6ebf8;
  padding: 44px 0 52px;
}
.hero-inner { display: grid; gap: 32px; align-items: center; }
.hero-kicker {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px;
  border: 1px solid rgba(244, 210, 126, 0.5); border-radius: 999px;
  color: var(--gold-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
}
.hero h1 { color: #fff; font-size: 2.1rem; letter-spacing: 0.01em; margin-bottom: 8px; }
.hero-tagline { color: var(--gold-light); font: 600 1.1rem/1.4 var(--font-head); margin-bottom: 12px; }
.hero-text { max-width: 560px; color: #d5dcf0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--gold-light); }
.hero-media { display: flex; justify-content: center; }
.hero-logo {
  width: min(300px, 72vw); height: auto; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.hero-logo-custom { border-radius: 28px; padding: 18px; object-fit: contain; }
.hero-photo {
  width: 100%; max-width: 560px; border-radius: var(--radius);
  object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #d5dcf0; padding: 38px 0; text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-banner h1 { color: #fff; margin-bottom: 6px; font-size: 1.8rem; }
.page-banner p { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 12px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 4px;
}
.section-head p { color: var(--muted); margin: 0; }
.section-more { text-align: center; margin: 30px 0 0; }

/* ---------- Intro ---------- */
.intro { display: grid; gap: 28px; align-items: start; }
.fact-list {
  list-style: none; margin: 0; padding: 8px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fact-list strong { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.service-card h2, .service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--gold-light);
}
.service-icon .icon { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font: 700 1.05rem var(--font-head);
}

/* ---------- Plans ---------- */
.plan-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.plan-card-highlight { border: 2px solid var(--gold); }
.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  background: var(--gold); color: var(--navy); white-space: nowrap;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 0 0 10px 10px;
}
.plan-card-highlight .plan-head { padding-top: 38px; }
.plan-head {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 24px 22px 20px; text-align: center;
}
.plan-head h3 { color: #fff; font-size: 1.08rem; margin: 0 0 10px; padding: 0 20px; }
.plan-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; }
.plan-price strong { font: 700 2rem/1 var(--font-head); color: var(--gold-light); }
.plan-price span { font-size: 0.88rem; color: #dbe4ff; }
.plan-price s { color: #b8c6f2; font-size: 1rem; }
.plan-list { list-style: none; margin: 0; padding: 18px 22px 6px; flex: 1 1 auto; }
.plan-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 0.93rem; border-bottom: 1px dashed var(--line); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .icon { color: var(--green); margin-top: 3px; }
.plan-terms { display: flex; gap: 10px; margin: 8px 22px 0; }
.plan-terms div { flex: 1 1 0; background: var(--bg); border-radius: 10px; padding: 10px 12px; text-align: center; }
.plan-terms dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.plan-terms dd { margin: 0; font-weight: 700; color: var(--navy); }
.plan-actions { display: flex; gap: 10px; padding: 18px 22px 22px; }
.plan-actions .btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
.plan-note {
  margin: 28px 0 0; padding: 14px 18px; font-size: 0.88rem; color: var(--muted);
  background: #fff8e8; border: 1px solid #f1dfae; border-radius: 10px;
}
.empty-note { text-align: center; }

/* ---------- Contact strip ---------- */
.contact-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%);
  color: #dfe5f5; padding: 40px 0;
}
.contact-strip-inner { display: grid; gap: 20px; align-items: center; }
.contact-strip h2 { color: #fff; margin-bottom: 6px; }
.contact-strip p { margin: 0; }
.contact-strip p a { color: var(--gold-light); font-weight: 600; }
.contact-strip-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- About ---------- */
.about-layout { display: grid; gap: 32px; align-items: start; }
.about-photo { width: 100%; border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.2rem; }
.detail-list { margin: 0; }
.detail-list div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.detail-list dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.tick-list { list-style: none; padding: 0; }
.tick-list li { display: flex; gap: 10px; padding: 6px 0; }
.tick-list .icon { color: var(--green); margin-top: 4px; }

/* ---------- Prose / policies ---------- */
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.4em; }
.policy { max-width: 860px; }
.policy-contact {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 18px 20px; overflow-wrap: anywhere;
}
.center { text-align: center; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 32px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list h3 { font-size: 0.95rem; margin: 0 0 2px; }
.contact-list p { margin: 0; overflow-wrap: anywhere; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  background: #e8eefc; color: var(--blue);
}
.contact-icon-wa { background: #e2f6ea; color: var(--green); }
.contact-form-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); scroll-margin-top: 90px;
}

.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.field input,
.field select,
.field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c9d1e2; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 70, 196, 0.18); }
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.85rem; margin: 5px 0 0; }
.form-consent { font-size: 0.85rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: #e6f7ec; border-color: #b4e2c4; color: #14592f; }
.alert-error { background: #fdecea; border-color: #f5c1bb; color: #8a2419; }

.map-section { line-height: 0; border-top: 1px solid var(--line); }
.map-section iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cbe0; font-size: 0.93rem; }
.footer-grid { display: grid; gap: 30px; padding-top: 48px; padding-bottom: 36px; grid-template-columns: 1fr; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer .footer-brand { color: var(--gold-light); font-size: 1.15rem; letter-spacing: 0.03em; }
.site-footer a { color: #e2e8f7; }
.site-footer a:hover { color: var(--gold-light); }
.footer-legal { line-height: 1.9; }
.footer-legal strong { color: #fff; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 0; }
.footer-links a { display: inline-block; padding: 10px 0; min-width: 44px; }
.footer-contact p { display: flex; gap: 10px; margin-bottom: 4px; padding: 8px 0; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--gold-light); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0 84px; text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-note { margin-top: 6px !important; color: #95a0bd; font-size: 0.78rem; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- Chhote phone (360px se kam) ---------- */
@media (max-width: 379px) {
  .container { padding: 0 14px; }
  .topbar { font-size: 0.76rem; }
  .topbar-inner { gap: 0 12px; padding-top: 4px; padding-bottom: 4px; }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .page-banner h1 { font-size: 1.55rem; }
  .plan-list, .plan-actions { padding-left: 16px; padding-right: 16px; }
  .plan-terms { margin-left: 16px; margin-right: 16px; }
  .plan-actions .btn { font-size: 0.88rem; }
  .contact-form-wrap { padding: 22px 16px; }
}

/* ==========================================================
   Tablet and up
   ========================================================== */
@media (min-width: 640px) {
  .topbar-inner { justify-content: flex-end; }
  .topbar-gst { display: inline-flex; margin-right: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-name { font-size: 1.15rem; }
  .contact-form-wrap { padding: 32px; }
}

@media (min-width: 960px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }

  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a:not(.btn) { padding: 10px 14px; border: 0; border-radius: 8px; }
  .site-nav a.active { background: #e8eefc; }
  .nav-cta { margin: 0 0 0 10px; }
  .nav-cta .btn { width: auto; }

  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero h1 { font-size: 3rem; }
  .hero-tagline { font-size: 1.3rem; }
  .hero-logo { width: 360px; }

  .section { padding: 72px 0; }
  .intro { grid-template-columns: 1.3fr 0.7fr; gap: 48px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-layout { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
  .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
  .contact-strip-inner { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 0.9fr 1.3fr; }
  .page-banner { padding: 52px 0; }
  .page-banner h1 { font-size: 2.3rem; }
  .map-section iframe { height: 440px; }
}

@media (min-width: 1200px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .site-header, .wa-float, .contact-strip, .map-section { display: none; }
  body { background: #fff; }
}
