/* ============================================
   Star eSevai — Smart Citizen Service Center
   Global Stylesheet
   ============================================ */
:root {
  --navy: #0f1f4b;
  --navy-2: #16275e;
  --indigo: #1e3a8a;
  --blue: #2563eb;
  --sky: #38bdf8;
  --saffron: #f59e0b;
  --saffron-dark: #d97706;
  --green: #16a34a;
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #16213a;
  --muted: #5b6478;
  --border: #e4e9f2;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 31, 75, .08);
  --shadow-lg: 0 16px 48px rgba(15, 31, 75, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cdd8f5;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 500; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(15, 31, 75, .08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { width: 46px; height: 46px; flex: none; }
.brand-name { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.brand-name span { color: var(--saffron-dark); }
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

nav.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--text); font-weight: 500; font-size: 15px;
  padding: 8px 13px; border-radius: 8px; transition: .18s;
}
nav.main-nav a:hover { background: #eef3fd; color: var(--blue); }
nav.main-nav a.active { background: #eef3fd; color: var(--blue); }
nav.main-nav a.nav-cta {
  background: var(--saffron); color: #fff; font-weight: 600; margin-left: 6px;
}
nav.main-nav a.nav-cta:hover { background: var(--saffron-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--navy); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; box-shadow: var(--shadow-lg);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 55%, #2746a6 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding-top: 72px; padding-bottom: 80px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.18; font-weight: 700; }
.hero h1 em { color: var(--saffron); font-style: normal; }
.hero p.lead { margin: 18px 0 28px; font-size: 17px; color: #d4ddf7; max-width: 540px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--saffron); color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 10px; transition: .18s; border: 0; cursor: pointer;
}
.btn:hover { background: var(--saffron-dark); transform: translateY(-2px); }
.btn.btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff;
}
.btn.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn.btn-blue { background: var(--blue); }
.btn.btn-blue:hover { background: #1d4fd8; }
.btn.btn-green { background: var(--green); }
.btn.btn-green:hover { background: #138a3f; }
.hero-art { position: relative; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ---------- Stats strip ---------- */
.stats {
  background: #fff; border-bottom: 1px solid var(--border);
}
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.stat b { font-size: 26px; color: var(--indigo); display: block; }
.stat small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 700px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head .kicker {
  display: inline-block; background: #e8effc; color: var(--blue);
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); line-height: 1.25; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px;
}
.svc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); transition: .2s; position: relative;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c7d6f5; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; font-size: 24px;
  background: linear-gradient(135deg, #e8effc, #dbeafe);
}
.svc-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.svc-card p { font-size: 14px; color: var(--muted); flex: 1; }
.svc-card .svc-link {
  margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 5px;
}

/* category chips on services page */
.svc-cat {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--saffron-dark);
  background: #fef3e2; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  align-self: flex-start;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow);
}
.step .num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 700; font-size: 18px;
  display: grid; place-items: center;
}
.step h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.why-card .w-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fef3e2, #fde9c8); font-size: 22px; margin-bottom: 14px;
}
.why-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--saffron) 0%, #f97316 100%);
  color: #fff; border-radius: 20px; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-band p { opacity: .95; margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--saffron-dark); }
.cta-band .btn:hover { background: #fff7ec; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 17px 20px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--navy); margin-bottom: 16px; font-size: 19px; }
.c-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.c-row .c-icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: #e8effc; display: grid; place-items: center; font-size: 19px;
}
.c-row b { display: block; color: var(--navy); font-size: 14.5px; }
.c-row a, .c-row span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Policy / article pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  color: #fff; padding: 52px 0 46px; text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 40px); }
.page-hero p { color: #c9d6f6; margin-top: 10px; max-width: 620px; margin-left: auto; margin-right: auto; }
.article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 880px; margin: -28px auto 64px;
  padding: 42px 46px; position: relative;
}
.article h2 { color: var(--navy); margin: 28px 0 10px; font-size: 21px; }
.article h2:first-child { margin-top: 0; }
.article h3 { color: var(--indigo); margin: 20px 0 8px; font-size: 17px; }
.article p { margin-bottom: 12px; color: #374151; }
.article ul, .article ol { margin: 0 0 14px 22px; color: #374151; }
.article li { margin-bottom: 7px; }
.article .updated { font-size: 13px; color: var(--muted); margin-top: 26px; border-top: 1px solid var(--border); padding-top: 14px; }
@media (max-width: 700px) { .article { padding: 28px 22px; margin-left: 14px; margin-right: 14px; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 26px 0 10px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 4px; bottom: 4px;
  width: 3px; background: var(--blue); border-radius: 3px;
}
.t-item { position: relative; margin-bottom: 22px; }
.t-item::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 13px; height: 13px;
  background: var(--saffron); border-radius: 50%; box-shadow: 0 0 0 3.5px #fff, 0 0 0 5px var(--blue);
}
.t-item h3 { margin: 0 0 3px !important; }
.t-item p { margin: 0; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c5e8; margin-top: 0; }
.site-footer .footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px;
  padding: 54px 0 38px;
}
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.site-footer a { color: #b9c5e8; font-size: 14px; display: block; margin-bottom: 9px; transition: .15s; }
.site-footer a:hover { color: var(--saffron); }
.site-footer p { font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo { width: 40px; height: 40px; }
.footer-brand b { color: #fff; font-size: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px;
}
@media (max-width: 880px) { .site-footer .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .footer-main { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Misc ---------- */
.breadcrumb { font-size: 13.5px; color: #c9d6f6; margin-bottom: 10px; }
.breadcrumb a { color: #fff; }
.center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* ---------- Search (advanced) ---------- */
.search-btn { background: none; border: 0; cursor: pointer; padding: 9px; border-radius: 9px; display: grid; place-items: center; }
.search-btn:hover { background: #eef3fd; }
.search-btn svg { width: 22px; height: 22px; stroke: var(--navy); }
.search-overlay {
  position: fixed; inset: 0; background: rgba(15,31,75,.55); backdrop-filter: blur(3px);
  z-index: 300; display: none; padding: 70px 16px 16px;
}
.search-overlay.open { display: flex; justify-content: center; align-items: flex-start; }
.search-box { background: #fff; border-radius: 16px; max-width: 640px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-head { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--border); }
.search-head input { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: inherit; }
.search-head input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.search-close { background: #eef3fd; border: 0; border-radius: 10px; width: 46px; cursor: pointer; font-size: 17px; color: var(--navy); }
.search-results { max-height: 55vh; overflow: auto; padding: 10px 14px 14px; }
.search-results a.sr-item { display: flex; gap: 12px; align-items: center; padding: 11px 10px; border-radius: 10px; }
.sr-item:hover { background: #eef3fd; }
.sr-item .sr-ico { width: 38px; height: 38px; border-radius: 10px; background: #e8effc; display: grid; place-items: center; font-size: 18px; flex: none; }
.sr-item b { display: block; color: var(--navy); font-size: 15px; }
.sr-item span span { font-size: 13px; color: var(--muted); }
.search-hint { color: var(--muted); font-size: 14px; padding: 8px; }

/* ---------- Services live filter ---------- */
.svc-filter { max-width: 580px; margin: 0 auto 10px; }
.svc-filter input {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 16px; font-family: inherit; box-shadow: var(--shadow); background: #fff;
}
.svc-filter input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* ---------- Mobile bottom action bar ---------- */
.mob-bar { display: none; }
@media (max-width: 700px) {
  .mob-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(15,31,75,.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mob-bar a { flex: 1; text-align: center; padding: 13px 4px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
  .mob-bar a + a { border-left: 1px solid var(--border); }
  .mob-bar a.mb-wa { color: #16a34a; }
  body { padding-bottom: 58px; }
  .wa-float { display: none; }
  .topbar .container { justify-content: center; text-align: center; }
  .search-overlay { padding: 14px; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .section { padding: 44px 0; }
}
