/* MyCallDriver static site — single hashed stylesheet, served once, browser-cached forever. */

:root {
  --primary-dark: #1D3E60;
  --primary-orange: #F39120;
  --primary-white: #FFFFFF;
  --light-bg: #F8FAFE;
  --text: #222;
  --muted: #555;
  --border: rgba(29, 62, 96, 0.1);
  --shadow: 0 4px 20px rgba(29, 62, 96, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.6;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary-orange); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* 3-column layout: left ad rail | main | right ad rail */
.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.main-col { min-width: 0; }
.main-col .section { padding: 1.5rem 0; }
.main-col .section.section-on-white {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin: 0.75rem 0;
}

/* Ad rails */
.rail { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 70px; }
.ad-slot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ad-slot { width: 300px; height: 250px; }
.ad-slot:empty {
  background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 10px, #f0f3f8 10px, #f0f3f8 20px);
}
.ad-slot:empty::after {
  content: 'Ad';
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}

/* Inline center ad slots (C1 after services, C2 after FAQ) */
.ad-inline {
  width: 100%; height: 90px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1rem 0;
}
.ad-inline:empty {
  background: repeating-linear-gradient(45deg, #fafbfd, #fafbfd 10px, #f0f3f8 10px, #f0f3f8 20px);
}
.ad-inline:empty::after {
  content: 'Ad';
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}

/* Header */
.site-header {
  background: var(--primary-white);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 6px rgba(29, 62, 96, 0.06);
}
.site-header .nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header .brand { display: inline-flex; align-items: center; }
.site-header .brand img { display: block; height: 44px; width: auto; }
.site-header .cta {
  background: var(--primary-orange); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(243, 145, 32, 0.35);
}
.site-header .cta:hover { background: #e6831a; color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(243, 145, 32, 0.18), transparent 55%),
    linear-gradient(135deg, var(--primary-dark), #2A4A6B);
  color: #fff;
  padding: 3rem 0 2.75rem;
}
.hero .eyebrow {
  display: inline-block; margin: 0 0 0.6rem;
  color: var(--primary-orange); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 0.5rem; line-height: 1.2; }
.hero .lede { font-size: 1.05rem; opacity: 0.92; margin: 0 0 1.5rem; max-width: 60ch; }
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary { background: var(--primary-orange); color: #fff; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; display: inline-block; }
.btn-ghost   { border: 1px solid #fff; color: #fff; padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600; display: inline-block; }

/* Sections */
.section { padding: 2.5rem 0; }
.section h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--primary-dark); margin: 0 0 1rem; }
.section h3 { color: var(--primary-dark); margin-top: 1.5rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card {
  background: #fff; padding: 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--primary-orange);
}
.card h3 { margin-top: 0; }

/* Localities (one card per PostOffice in this pincode) */
.muted { color: var(--muted); margin-top: -0.25rem; margin-bottom: 1rem; }
.locality-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.locality-card {
  background: #fff; padding: 1rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
.locality-card.is-primary { border-top-color: var(--primary-orange); background: #fffaf2; }
.locality-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.locality-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--primary-dark); }
.locality-card .locality-meta {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); margin: 0 0 0.5rem;
}
.locality-card p { margin: 0; font-size: 0.92rem; color: var(--text); line-height: 1.5; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block; padding: 0.4rem 0.8rem;
  background: #fff; color: var(--primary-dark);
  border-radius: 999px; font-size: 0.9rem; border: 1px solid var(--border);
}
.tag:hover { background: var(--primary-orange); color: #fff; border-color: transparent; }

/* FAQ */
.faq details {
  background: #fff; border-radius: var(--radius); margin-bottom: 0.75rem;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  padding: 1rem 1.25rem; font-weight: 600; cursor: pointer;
  background: var(--primary-dark); color: #fff; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 1rem 1.25rem; border-top: 2px solid var(--primary-orange); color: var(--muted); }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.trust-item { background: #fff; padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; border-top: 3px solid var(--primary-orange); }
.trust-item .icon { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding: 0.75rem 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-orange); }

/* Footer */
.site-footer {
  background: var(--primary-dark); color: #cbd6e2; padding: 2rem 0; margin-top: 2rem;
}
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.site-footer h4 { color: #fff; margin: 0 0 0.5rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1.5rem; padding-top: 1rem; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1100px) {
  /* Tablet: single column, rails collapse to horizontal strip showing 1 slot each */
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .rail-left  { order: 1; }
  .main-col   { order: 2; }
  .rail-right { order: 3; }
  /* Show only first slot per rail on tablet */
  .rail .ad-slot:nth-child(n+2) { display: none; }
}
@media (max-width: 768px) {
  /* Mobile: block stacking inside fixed-height clip window; JS slides slots upward every 3s */
  .rail { position: static; display: block; height: 250px; max-height: 250px; overflow: hidden; }
  .rail .ad-slot:nth-child(n+2) { display: flex; }
  .rail .ad-slot { width: 100%; height: 250px; transition: transform 0.4s ease; }
  .ad-inline { height: 100px; }
}
@media (max-width: 640px) {
  .hero { padding: 2rem 0; }
  .main-col .section { padding: 1.25rem 0; }
}

/* App-install banner (runtime-injected by sections.js) */
#mycd-app-install {
  background: linear-gradient(135deg, var(--primary-dark), #2A5A8C);
  color: #fff;
  padding: 1.75rem 0;
  margin: 1.5rem 0 0;
}
#mycd-app-install .eyebrow {
  color: var(--primary-orange); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.3rem;
}
#mycd-app-install h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.2rem; }
#mycd-app-install p  { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.95rem; }
.app-install-inner   { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.app-install-text    { flex: 1 1 200px; }
.app-install-badges  { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.app-badge {
  display: inline-block; padding: 0.65rem 1.25rem;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  text-align: center; white-space: nowrap; text-decoration: none;
}
.app-badge-play  { background: #fff; color: var(--primary-dark); }
.app-badge-apple { background: var(--primary-orange); color: #fff; }
.app-badge:hover { opacity: 0.88; }
@media (max-width: 640px) {
  .app-install-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Hub pages (state / district / city index pages) ─────────────────────── */
.hub-stats {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.hub-stats-inner {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.hub-stat .num {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.hub-stat .lbl {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.hub-section { padding: 2.5rem 0; }
.hub-section h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--primary-dark); margin: 0 0 0.35rem; }
.hub-section .sub { color: var(--muted); margin: 0 0 1.75rem; font-size: 1rem; display: block; }

/* District grid — state page */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.district-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary-dark);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-top-color .12s ease;
  text-decoration: none;
  color: inherit;
}
.district-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(29,62,96,0.15); border-top-color: var(--primary-orange); }
.district-card .dc-name { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 0.25rem; }
.district-card .dc-meta { font-size: 0.85rem; color: var(--muted); flex: 1; }
.district-card .dc-arrow { font-size: 0.82rem; color: var(--primary-orange); font-weight: 600; margin-top: 0.85rem; }

/* Alpha index bar — district page */
.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.alpha-index a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  transition: background .1s, color .1s;
}
.alpha-index a:hover { background: var(--primary-orange); color: #fff; }

/* City table — district page */
.alpha-group { margin-bottom: 2rem; }
.alpha-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-orange);
  padding: 0.3rem 0.75rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 0.65rem;
}
.city-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.city-table th {
  background: var(--primary-dark);
  color: #fff;
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.city-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.city-table tr:last-child td { border-bottom: none; }
.city-table tbody tr:hover td { background: #f8fafe; }
.city-table a { color: var(--primary-dark); font-weight: 500; }
.city-table a:hover { color: var(--primary-orange); }
.city-table .pin { color: var(--muted); font-size: 0.84rem; }
.city-table .go { color: var(--primary-orange); font-size: 0.86rem; font-weight: 600; white-space: nowrap; }

/* Service cards — city page */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  color: inherit;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(29,62,96,0.15); }
.service-card .sc-icon { font-size: 2.1rem; margin-bottom: 0.6rem; display: block; }
.service-card .sc-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin: 0 0 0.4rem; }
.service-card .sc-desc { font-size: 0.9rem; color: var(--muted); flex: 1; line-height: 1.5; }
.service-card .sc-cta {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.55rem 1rem;
  background: var(--primary-orange);
  color: #fff;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.87rem;
  text-align: center;
}
.service-card:hover .sc-cta { background: #e6831a; color: #fff; }

/* Trust pills — city page */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-orange);
}
.trust-pill .tp-icon { font-size: 1.4rem; flex-shrink: 0; }
.trust-pill strong { display: block; color: var(--primary-dark); font-size: 0.93rem; }
.trust-pill span { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 640px) {
  .district-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .service-grid  { grid-template-columns: 1fr; }
  .city-table .go { display: none; }
  .hub-stats-inner { gap: 1.5rem; }
}
