/* Bharath Genset Services - site styles */
:root {
  --navy: #0c2a6b;
  --navy-2: #123a8c;
  --blue: #1a4a9c;
  --tata: #214293;
  --green: #2f7d32;
  --green-2: #4a9a2f;
  --ink: #16213a;
  --muted: #55627d;
  --line: #dde5f1;
  --soft: #f2f6fc;
  --white: #fff;
  --warn: #f5b301;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(12, 42, 107, .10);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--navy); color: #dfe8fb; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; margin-bottom: .6em; }
.section.dark .eyebrow { color: #8fd27f; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { margin-bottom: 36px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }

/* icons */
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* top bar */
.topbar { background: var(--navy); color: #e8efff; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: space-between; align-items: center; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .tb-l { display: flex; align-items: center; gap: 8px; }
.topbar .tb-r { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fe06a; box-shadow: 0 0 0 3px rgba(111, 224, 106, .25); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.link { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 10px; font-size: .98rem; }
.nav a.link:hover { background: var(--soft); color: var(--navy); }
.nav a.link[aria-current="page"] { color: var(--navy); background: var(--soft); box-shadow: inset 0 -3px 0 var(--green-2); }
.tata-top { display: block; flex: none; line-height: 0; }
.tata-top img { height: 35px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--navy); cursor: pointer; }
.nav-toggle .ic { width: 26px; height: 26px; display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(47, 125, 50, .28); }
.btn-primary:hover { background: #276b2a; }
.btn-blue { background: var(--navy); color: #fff; }
.btn-blue:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-wa { background: #167a3d; color: #fff; }
.btn-wa:hover { background: #0f6531; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* hero */
.hero { background: linear-gradient(180deg, #eaf1fb 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding: clamp(36px, 6vw, 70px) 0 clamp(28px, 5vw, 56px); }
.dealer { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; color: var(--green); font-size: .95rem; margin-bottom: 18px; box-shadow: var(--shadow); }
.dealer img { height: 22px; width: auto; margin-left: 12px; padding-right: 12px; border-right: 1px solid var(--line); }
.hero h1 span { color: var(--green); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.hero-img { position: relative; }
.hero-img img { width: 100%; filter: drop-shadow(0 26px 24px rgba(12, 42, 107, .25)); }

/* stat strip */
.stats { background: var(--navy); color: #fff; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 22px 12px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .14); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: 1.9rem; line-height: 1.1; color: #8fe07a; }
.stats span { font-size: .92rem; color: #cfdaf5; }

/* cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 0 rgba(12, 42, 107, .03); transition: box-shadow .15s, transform .15s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.grid > * { min-width: 0; }
.branch .rows a { overflow-wrap: anywhere; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .more { color: var(--green); font-weight: 700; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: #e6eefb; color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.ico .ic { width: 26px; height: 26px; }
.ico.g { background: #e5f3e2; color: var(--green); }

/* ticks */
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.ticks .ic { color: var(--green); margin-top: 4px; width: 1.1em; height: 1.1em; stroke-width: 3; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two.top { align-items: start; }

.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin-top: 16px; }

/* breakdown panel */
.brk { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.brk .panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px; }
.brk h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #a9bff0; margin-bottom: 12px; }
.brk a.num { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; letter-spacing: .01em; padding: 4px 0; }
.brk a.num .ic { color: #8fe07a; }
.brk a.num:hover { text-decoration: underline; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-weight: 700; color: #cfe0ff; }
.pills li::before { content: "● "; color: #8fe07a; }

/* coverage */
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.areas li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--navy); font-size: .93rem; }
.areas.ut li { background: #e5f3e2; border-color: #cfe7c9; color: #1f5f22; }
.card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 4px; }

/* branches */
.branch h3 { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; }
.branch address { font-style: normal; color: var(--muted); margin-bottom: 14px; }
.branch .rows li { display: flex; gap: 10px; align-items: center; padding: 5px 0; }
.branch .rows a { color: var(--ink); text-decoration: none; font-weight: 600; }
.branch .rows a:hover { color: var(--blue); text-decoration: underline; }
.branch .rows .ic { color: var(--green); }
.branch .btns { margin-top: 14px; }
.btn.sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }

/* page hero (inner pages) */
.phero { background: linear-gradient(135deg, var(--navy) 0%, var(--tata) 100%); color: #dfe8fb; padding: clamp(36px, 6vw, 64px) 0; }
.phero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .3em; }
.phero p { max-width: 62ch; margin: 0; font-size: 1.1rem; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: #a9bff0; }
.crumbs a { color: #cfe0ff; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--green) 0%, #1f6a3a 100%); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 36px 0; }
.cta h2 { color: #fff; margin: 0 0 .2em; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta p { margin: 0; color: #e6f5e4; }

/* form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 5px; color: var(--navy); }
.form .f { margin-bottom: 14px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #c5d2e8; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 74, 156, .15); }
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.req { color: #c0392b; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.privacy-note .ic { color: var(--green); margin-top: 3px; }

/* long-text pages (privacy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.prose h2:first-of-type { margin-top: 1.4em; }
.prose .bullets { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose .bullets li { padding: 3px 0; }
.legal a { color: #c9d6f3; }

/* social links */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); font-weight: 600; font-size: .92rem; text-decoration: none; }
.social a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.social-light a { color: var(--navy); border-color: var(--line); background: #fff; }
.social-light a:hover { background: var(--soft); color: var(--navy); }
.social-light { margin-top: 12px; }

/* tata block */
.tata-box { display: flex; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tata-box img { width: 200px; height: auto; flex: none; }

/* footer */
.site-footer { background: #0a1f52; color: #c9d6f3; padding-top: 52px; font-size: .95rem; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #c9d6f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { padding: 3px 0; }
.flogo { background: #fff; border-radius: 12px; padding: 8px 14px; display: inline-block; margin-bottom: 14px; }
.flogo img { height: 48px; width: auto; }
.legal { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0 92px; font-size: .84rem; color: #9fb2de; }
.legal p { margin: 0 0 6px; }

/* mobile action bar */
.mbar { display: none; }

@media (max-width: 960px) {
  .hero-grid, .two { grid-template-columns: 1fr; }
  .hero-img { max-width: 560px; margin-inline: auto; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .tata-top { margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a.link { padding: 13px 14px; }
  .nav .btn { margin-top: 8px; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .g2, .g3, .g4, .brk, .form .row { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .brand img { height: 46px; }
  .topbar .tb-l { display: none; }
  .tata-box { flex-direction: column; text-align: center; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .tata-top img { height: 26px; }
  .mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(12, 42, 107, .12); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-weight: 700; font-size: .78rem; padding: 6px 4px; border-radius: 10px; color: var(--navy); background: var(--soft); }
  .mbar a.pri { background: var(--green); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}
@media print {
  .topbar, .site-header, .mbar, .cta { display: none; }
}
