/* ============================================================
   IPTelco — Mobile-only stylesheet (loaded only on narrow screens)
   Max width: 860px
   ============================================================ */

:root {
  --m-bg:        #f4f6f9;
  --m-surface:   #ffffff;
  --m-navy:      #0a111a;
  --m-blue:      #1a4175;
  --m-accent:    #28a8e0;
  --m-text:      #1c1c1c;
  --m-muted:     #555;
  --m-border:    #dde3ec;
  --m-radius:    10px;
  --m-shadow:    0 2px 12px rgba(0,0,0,0.10);
}

/* ---- Reset desktop layout ---- */
html, body {
  overflow-x: hidden;
  background: var(--m-bg);
}

/* ---- Header ---- */
header {
  background: linear-gradient(to right, #0a111a 0%, #1a4175 100%) !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#ipt-logo {
  height: 44px !important;
  width: auto !important;
  padding: 8px 12px !important;
  flex-shrink: 0;
}

/* Hamburger */
#nav-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  margin-right: 44px;
  flex-shrink: 0;
}
#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}
#nav-toggle span::before,
#nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
}
#nav-toggle span::before { top: -7px; }
#nav-toggle span::after  { top: 7px; }

/* Facebook icon */
header #fb {
  position: absolute !important;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}
header #fb img {
  height: 28px !important;
  width: auto !important;
  display: block;
}

/* ---- Mobile nav menu ---- */
header > ul {
  display: none !important;
  width: 100%;
  order: 10;
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  background: #0a111a;
  border-top: 1px solid rgba(255,255,255,0.1);
}
header > ul.nav-open {
  display: block !important;
}
header li {
  float: none !important;
  display: block !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
header li > a {
  display: block !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  color: #fff !important;
  font-weight: 600 !important;
}
/* Arrow indicator for items with submenus */
header li.hasdropdown > a::after {
  content: ' ▸';
  font-size: 10px;
  opacity: 0.6;
}
header li.hasdropdown.submenu-open > a::after {
  content: ' ▾';
}

/* Dropdowns */
.dropdown, .subdropdown {
  position: static !important;
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  margin: 0 !important;
  width: 100% !important;
  background: rgba(26,65,117,0.5) !important;
}
header ul li.submenu-open > ul {
  display: block !important;
}
header ul li:hover > ul {
  display: none !important;
}
.dropdown li, .subdropdown li {
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  white-space: normal !important;
  padding: 0 !important;
}
.dropdown li a, .subdropdown li a {
  display: block !important;
  padding: 10px 20px 10px 32px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.85) !important;
}
.subdropdown { left: 0 !important; top: 0 !important; }

/* Gradient bars */
.ipt-revfade, .ipt-revfadeinv { height: 4px !important; }

/* ---- #app content area ---- */
#app {
  padding: 0;
  background: var(--m-bg);
}

/* ---- Hide desktop-only elements ---- */
.td-sep { display: none !important; }

/* ---- Mobile page layout ---- */
.m-page {
  padding: 0 0 40px;
}

/* Page hero banner */
.m-hero {
  background: linear-gradient(135deg, #0a111a 0%, #1a4175 100%);
  color: #fff;
  padding: 24px 20px 20px;
  border-bottom: 3px solid var(--m-accent);
}
.m-hero h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: none;
}
.m-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* Section */
.m-section {
  background: var(--m-surface);
  margin: 12px 12px 0;
  border-radius: var(--m-radius);
  padding: 18px 16px;
  box-shadow: var(--m-shadow);
}
.m-section h2 {
  color: var(--m-blue);
  font-size: 16px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--m-border);
}
.m-section h3 {
  color: var(--m-accent);
  font-size: 14px;
  margin: 14px 0 6px;
}
.m-section p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--m-muted);
  margin: 0 0 10px;
}
.m-section ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.m-section ul li {
  font-size: 14px;
  color: var(--m-muted);
  margin-bottom: 5px;
  line-height: 1.5;
}
.m-section a {
  color: var(--m-accent);
  font-weight: 600;
}

/* ---- Home page ---- */
.m-slider img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* CTA bar */
.m-cta-bar {
  display: flex;
  gap: 10px;
  padding: 14px 12px;
  background: var(--m-navy);
}
.m-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--m-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 8px;
  border-radius: 8px;
  text-decoration: none !important;
  text-align: center;
}
.m-cta-btn.secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Service grid */
.m-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
}
.m-service-card {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  text-decoration: none !important;
  border: 1px solid var(--m-border);
  transition: border-color 0.2s;
}
.m-service-card:active { border-color: var(--m-accent); }
.m-service-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.m-service-card span {
  font-size: 11px;
  font-weight: 700;
  color: var(--m-text);
  text-align: center;
  line-height: 1.3;
}

/* Quick links strip */
.m-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 12px;
}
.m-quicklink {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
  border: 1px solid var(--m-border);
  color: var(--m-text) !important;
  font-weight: 700;
  font-size: 13px;
}
.m-quicklink-icon {
  font-size: 24px;
  flex-shrink: 0;
}

/* ---- Contact cards ---- */
.m-contact-card {
  background: var(--m-surface);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
  margin: 12px 12px 0;
  overflow: hidden;
  border: 1px solid var(--m-border);
}
.m-contact-card-header {
  background: linear-gradient(to right, #0a111a, #1a4175);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
}
.m-contact-card-body {
  padding: 14px 16px;
}
.m-contact-card-body p {
  font-size: 14px;
  color: var(--m-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.m-contact-card-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 8px;
}
.m-contact-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--m-bg);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  text-decoration: none !important;
  color: var(--m-text) !important;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--m-border);
}
.m-contact-action-icon { font-size: 20px; }

/* ---- PDF pages ---- */
.m-pdf-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  padding: 18px 16px;
  margin: 12px 12px 0;
  text-decoration: none !important;
  color: var(--m-text) !important;
  box-shadow: var(--m-shadow);
}
.m-pdf-link-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.m-pdf-link-text strong {
  display: block;
  font-size: 15px;
  color: var(--m-blue);
  margin-bottom: 3px;
}
.m-pdf-link-text span {
  font-size: 12px;
  color: var(--m-muted);
}

/* ---- Partners download buttons ---- */
.m-download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--m-blue);
  color: #fff !important;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}
.m-download-btn-icon { font-size: 22px; }

/* ---- Coverage map iframe ---- */
.m-map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: var(--m-radius);
  margin-top: 12px;
}
.m-map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ---- Speed test iframe ---- */
.m-speedtest-wrap {
  width: 100%;
  height: 400px;
  border-radius: var(--m-radius);
  overflow: hidden;
  margin-top: 12px;
}
.m-speedtest-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Footer ---- */
footer {
  background: linear-gradient(to right, #1a4175 0%, #0a111a 100%) !important;
  padding: 24px 16px 20px !important;
  color: #fff;
}
footer .table, footer .tr {
  display: block !important;
}
footer .td {
  display: block !important;
  width: 100% !important;
  margin-bottom: 20px;
}
footer h1 {
  font-size: 11px !important;
  margin-bottom: 8px !important;
}
footer a {
  display: inline-block;
  line-height: 1.8;
  font-size: 13px !important;
}
.foot-r {
  text-align: left !important;
  padding-right: 0 !important;
}
.foot-r img { width: 120px; height: auto; }
#phno {
  font-size: 18px !important;
  padding-right: 0 !important;
  display: block;
  margin-top: 8px;
}
#copy-r {
  font-size: 11px !important;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px !important;
}
