/* ==========================================================
   Challaturu Engineering & Automation — common stylesheet
   Used by every page (engineering + solar)
   ========================================================== */
:root {
    --navy:      #0b2a3c;
    --navy-2:    #123a52;
    --navy-3:    #0f3a55;
    --blue:      #1f6f9f;
    --sun:       #f5a623;
    --sun-2:     #ffc83d;
    --green:     #2e9e6a;
    --red:       #c9402f;
    --ink:       #16232d;
    --muted:     #5a6b78;
    --line:      #e3e9ee;
    --bg:        #ffffff;
    --bg-soft:   #f5f8fa;
    --bg-warm:   #fff8ec;
    --radius:    16px;
    --shadow:    0 10px 30px rgba(11, 42, 60, .08);
    --shadow-lg: 0 20px 50px rgba(11, 42, 60, .14);
    --font-head: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-h:  80px;
    /* theme helpers (overridden for the solar site below) */
    --navy-rgb:  11,42,60;
    --sun-rgb:   245,166,35;
    --sun2-rgb:  255,200,61;
    --deep-2:    #134a6b;
    --footer-bg: #071d2a;
    --accent-text: #d98a0b;
    --warm-line: #f3e2c3;
    --cta-text:  #4a3a12;
    --on-dark:   #c6d6e0;
    --on-dark-muted: #9fb6c4;
    --on-dark-strong: #dbe7ee;
    --btn-text:  var(--navy);
    --sun-hover: var(--sun-2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
    margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
    color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.h3 { font-size: 1.4rem; font-weight: 800; }
.light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px;
    font-family: var(--font-head); font-weight: 700; font-size: .98rem;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sun  { background: var(--sun); color: var(--btn-text); box-shadow: 0 8px 20px rgba(var(--sun-rgb),.3); }
.btn-sun:hover { background: var(--sun-hover); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 700;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-text); margin-bottom: .8rem;
}
.eyebrow-light { color: var(--sun-2); }

.icon-box {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; background: var(--navy);
}
.icon-box svg { width: 24px; height: 24px; fill: var(--sun-2); }
.icon-box.icon-lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-box.icon-lg svg { width: 30px; height: 30px; }
.icon-box.icon-sun { background: var(--sun); }
.icon-box.icon-sun svg { fill: var(--navy); }

.link-more { display: inline-block; margin-top: auto; padding-top: .8rem; font-family: var(--font-head); font-weight: 700; color: var(--blue); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--on-dark); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar svg { width: 14px; height: 14px; fill: var(--sun-2); display: inline-block; vertical-align: -2px; margin-right: .3rem; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(var(--navy-rgb),.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-logo { width: auto; height: 48px; max-width: 140px; object-fit: contain; border-radius: 8px; background: #fff; overflow: hidden; font-size: 0; color: transparent; }
.brand-light .brand-logo { padding: 4px 6px; height: 44px; box-sizing: content-box; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.brand-text small { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.brand-light .brand-text strong { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { font-weight: 500; color: var(--muted); padding: 1.6rem 0; position: relative; white-space: nowrap; }
.menu > li > a::after {
    content: ''; position: absolute; left: 0; bottom: 1.25rem; width: 0; height: 2px; background: var(--sun); transition: width .25s;
}
.menu > li:hover > a, .menu > li.active > a { color: var(--navy); }
.menu > li:hover > a::after, .menu > li.active > a::after { width: 100%; }

.has-sub > a { padding-right: 1rem !important; }
.has-sub > a::before {
    content: ''; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; margin-top: -5px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-toggle { display: none; }
.sub-menu {
    position: absolute; top: 100%; left: -1rem; min-width: 240px;
    background: #fff; border-radius: 12px; padding: .5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .6rem .9rem; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.sub-menu a:hover { background: var(--bg-warm); color: var(--navy); }
.nav-cta { padding: .65rem 1.3rem; white-space: nowrap; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--on-dark-strong);
    background: radial-gradient(circle at 80% 10%, rgba(var(--sun-rgb),.2), transparent 45%),
                linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, var(--deep-2) 100%);
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7.5rem);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--sun-2); display: block; }
.hero .lead { font-size: 1.15rem; max-width: 34em; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-points strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.hero-points span { font-size: .88rem; color: var(--on-dark-muted); }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }

.sun-rays { transform-origin: 380px 110px; animation: spin 30s linear infinite; }
.sun-glow { animation: pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.energy { animation: dash 1.6s linear infinite; }
.wire { stroke-dasharray: 5 7; animation: dash 2s linear infinite; }
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes dash  { to { stroke-dashoffset: -28; } }

/* ---------- Inner page hero ---------- */
.page-hero {
    background: radial-gradient(circle at 90% 0%, rgba(var(--sun-rgb),.22), transparent 40%),
                linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
    color: var(--on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: .4rem; }
.page-hero p { max-width: 46em; margin: 0; font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1rem; color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--sun-2); }
.crumbs [aria-current] { color: var(--sun-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.bg-soft { background: var(--bg-soft); }
.dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-muted); }
.section-head { max-width: 760px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.split.top { align-items: start; }

/* Check list */
.check-list { margin-bottom: 1.6rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; font-weight: 500; }
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(46,158,106,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232e9e6a' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.check-list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; }
.check-list.two-col li { margin: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag-list li { padding: .35rem .8rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.mini-head { font-size: .95rem; margin: 1.2rem 0 .7rem; color: var(--muted); }

/* ---------- Strengths (home) ---------- */
.strengths { margin-top: -3.5rem; position: relative; z-index: 2; }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.strength { padding: 2rem 1.6rem; border-right: 1px solid var(--line); transition: background .25s; }
.strength:last-child { border-right: 0; }
.strength:hover { background: var(--bg-warm); }
.strength .icon-box { margin-bottom: 1rem; }
.strength h3 { font-size: 1.08rem; }
.strength p { margin: 0; font-size: .94rem; color: var(--muted); }

/* Quote card */
.quote-card {
    margin: 0; padding: 2.5rem; border-radius: 20px; position: relative;
    background: linear-gradient(135deg, var(--sun) 0%, var(--sun-2) 100%); color: var(--navy);
    box-shadow: 0 20px 50px rgba(var(--sun-rgb),.3);
}
.quote-card svg { width: 44px; height: 44px; fill: var(--navy); opacity: .85; margin-bottom: 1.2rem; }
.quote-card p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.3; }
.quote-card footer { font-weight: 600; opacity: .75; }

/* Pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.pillar {
    display: flex; flex-direction: column; padding: 2.4rem; border-radius: 20px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    border-top: 5px solid var(--navy); transition: transform .25s, box-shadow .25s;
}
.pillar-sun { border-top-color: var(--sun); }
.pillar-sun .icon-box { background: var(--sun); }
.pillar-sun .icon-box svg { fill: var(--navy); }
a.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pillar .icon-box { margin-bottom: 1.3rem; }
.pillar h3 { font-size: 1.45rem; }
.pillar > p { color: var(--muted); }

/* Card grids */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.five  { grid-template-columns: repeat(5, 1fr); }
.card-grid.why-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.service-card, .mini-card {
    display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover, .mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sun); }
.service-card .icon-box, .mini-card .icon-box { margin-bottom: 1.2rem; }
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--muted); }
.mini-card { padding: 1.6rem; }
.mini-card h3 { font-size: 1.02rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.dark-card { padding: 1.8rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .25s, transform .25s; }
.dark-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.dark-card .icon-box { margin-bottom: 1.1rem; }
.dark-card h3 { color: #fff; font-size: 1.1rem; }
.dark-card p { margin: 0; font-size: .95rem; }

/* Mission / Vision */
.mvv { display: grid; gap: 1rem; }
.mvv-card { display: flex; gap: 1.1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.mvv-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.mvv-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Solar band (home) */
.solar-band { background: linear-gradient(120deg, var(--navy) 0%, var(--deep-2) 100%); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.solar-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--sun2-rgb),.35), transparent 70%); }
.solar-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.solar-choices { display: grid; gap: 1rem; }

/* Choose cards */
.choose { margin-top: -3rem; position: relative; z-index: 2; }
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.choose-card {
    display: flex; align-items: center; gap: 1.2rem; background: #fff; border-radius: var(--radius);
    padding: 1.5rem 1.7rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    transition: transform .25s, border-color .25s;
}
.choose-card:hover { transform: translateY(-4px); border-color: var(--sun); }
.choose-card h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.choose-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.choose-icon { flex: 0 0 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-warm); }
.choose-icon svg { width: 28px; height: 28px; fill: var(--sun); }
.choose-card .arrow { margin-left: auto; font-size: 1.5rem; color: var(--sun); transition: transform .25s; }
.choose-card:hover .arrow { transform: translateX(4px); }
.choose-card.wide { max-width: 720px; margin-inline: auto; box-shadow: var(--shadow); }

/* Why list (home) */
.why-list { display: grid; gap: .8rem; }
.why-list li {
    display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.4rem; border-radius: 14px;
    background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; color: var(--navy);
    transition: transform .25s, border-color .25s;
}
.why-list li:hover { transform: translateX(6px); border-color: var(--sun); }
.why-list span { font-family: var(--font-head); font-weight: 800; color: var(--sun); font-size: 1.1rem; }

/* Jump links (electrical) */
.jump-links { display: grid; gap: .9rem; }
.jump-links a {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 14px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.jump-links a:hover { transform: translateX(6px); border-color: var(--sun); }
.jump-links small { display: block; color: var(--muted); font-size: .8rem; }
.jump-links strong { font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; }
.jump-links .arrow { margin-left: auto; color: var(--sun); font-size: 1.3rem; }

/* Service blocks */
.service-block {
    display: grid; grid-template-columns: 320px 1fr; gap: 0; margin-bottom: 1.8rem;
    background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.service-block:last-child { margin-bottom: 0; }
.service-block.flip { grid-template-columns: 1fr 320px; }
.service-block.flip .service-visual { order: 2; }
.service-visual {
    position: relative; display: grid; place-items: center; min-height: 260px;
    background: radial-gradient(circle at 70% 20%, rgba(var(--sun2-rgb),.3), transparent 55%), linear-gradient(135deg, var(--navy), var(--deep-2));
}
.service-visual svg { width: 96px; height: 96px; fill: var(--sun-2); }
.service-num { position: absolute; left: 1.4rem; top: 1rem; font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: rgba(255,255,255,.12); }
.service-body { padding: 2.4rem; }
.service-body h3 { font-size: 1.6rem; }
.service-body > p { color: var(--muted); }

/* Steps */
.steps { display: none; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps.active { display: grid; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.step {
    position: relative; padding: 2rem 1.6rem;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
    transition: background .25s, transform .25s;
}
.step:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 3.1rem; right: -1.2rem; width: .9rem; height: 2px; background: var(--sun); }
.step-num {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 1.2rem;
    font-family: var(--font-head); font-weight: 800; color: var(--navy); background: var(--sun-2);
}
.step h3 { color: #fff; font-size: 1.1rem; }
.step p { margin: 0; font-size: .95rem; }
.step-text { color: #fff; font-weight: 600; font-size: 1rem !important; }

.tabs { display: inline-flex; gap: .3rem; padding: .3rem; margin-top: 1rem; border-radius: 999px; background: rgba(255,255,255,.08); }
.tab { border: 0; background: none; cursor: pointer; padding: .6rem 1.4rem; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--on-dark); transition: background .2s, color .2s; }
.tab.active { background: var(--sun); color: var(--navy); }

/* Industries */
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.5rem; }
.industry { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.industry .icon-box { width: 40px; height: 40px; border-radius: 10px; }
.industry .icon-box svg { width: 20px; height: 20px; }
.why-box { padding: 2.2rem; border-radius: 20px; background: var(--bg-warm); border: 1px solid var(--warm-line); }

/* Solar feature columns */
.feature-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.feature-head h3 { margin: 0; font-size: 1.15rem; }
.feature-card .check-list { margin: 0; }

.stat-panel { display: grid; gap: 1rem; }
.stat-panel div { padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--bg-warm); border-left: 5px solid var(--sun); }
.stat-panel strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat-panel span { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--sun) 0%, var(--sun-2) 100%); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: .3rem; }
.cta-inner p { margin: 0; color: var(--cta-text); max-width: 38em; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn-sun { background: var(--navy); color: #fff; box-shadow: none; }
.cta-band .btn-sun:hover { background: var(--blue); }
.cta-band .btn-ghost { border-color: var(--navy); color: var(--navy); }
.cta-band .btn-ghost:hover { background: rgba(var(--navy-rgb),.08); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-card {
    display: flex; align-items: center; gap: 1.1rem; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem;
    border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
a.contact-card:hover { transform: translateX(4px); border-color: var(--sun); }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--navy); }
.contact-card .break { word-break: break-all; font-size: .98rem; }
.contact-card .addr { font-size: .95rem; font-weight: 600; line-height: 1.5; }
.contact-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); }
.contact-icon svg { width: 22px; height: 22px; fill: var(--navy); }
.gst { margin: .5rem 0 0; }

.form-card { background: #fff; border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-top: 5px solid var(--sun); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.4rem 0 1.6rem; }
.form-grid label { display: flex; flex-direction: column; gap: .4rem; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label > span { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-soft);
    font: inherit; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-grid textarea { resize: vertical; min-height: 120px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--sun); background: #fff; box-shadow: 0 0 0 4px rgba(var(--sun-rgb),.15); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .85rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-size: .95rem; }
.alert svg { width: 24px; height: 24px; flex: 0 0 24px; fill: var(--green); }
.alert.success { background: rgba(46,158,106,.1); border: 1px solid rgba(46,158,106,.3); color: #1d5e40; }
.alert.error { background: rgba(201,64,47,.08); border: 1px solid rgba(201,64,47,.3); color: #8a2a1e; }
.alert a { font-weight: 600; text-decoration: underline; }

.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--on-dark-muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.5fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer-about p { margin-top: 1.2rem; max-width: 26em; }
.footer-solar { color: var(--on-dark-strong); }
.footer-solar svg { width: 18px; height: 18px; fill: var(--sun-2); display: inline-block; vertical-align: -3px; margin-right: .35rem; }
.footer-solar strong { color: var(--sun-2); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a:hover { color: var(--sun-2); }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.6; }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: .3rem; fill: var(--sun-2); }
.footer-contact a { word-break: break-all; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Back to top */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sun); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; fill: var(--navy); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sun-rays, .sun-glow, .energy, .wire { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .menu { gap: 1.1rem; }
    .main-nav { gap: 1.1rem; }
    .card-grid.five { grid-template-columns: repeat(3, 1fr); }
    .steps.five { grid-template-columns: repeat(3, 1fr); }
    .steps.five .step::after { display: none; }
}

@media (max-width: 1024px) {
    .strength-grid { grid-template-columns: 1fr 1fr; }
    .strength:nth-child(2) { border-right: 0; }
    .strength:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .feature-cols, .card-grid.three { grid-template-columns: 1fr 1fr; }
    .feature-cols .feature-card:last-child, .card-grid.three > :last-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile menu (below 1100px so a long menu never overflows) */
@media (max-width: 1100px) {
    :root { --header-h: 70px; }
    .nav-toggle { display: flex; }
    .brand-logo { height: 40px; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: .5rem 20px 1.5rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s;
    }
    .nav-open .main-nav { transform: none; visibility: visible; }
    .menu { flex-direction: column; align-items: stretch; gap: 0; }
    .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .menu > li > a { flex: 1; padding: .95rem 0; }
    .menu > li > a::after, .has-sub > a::before { display: none; }
    .sub-toggle {
        display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative;
    }
    .sub-toggle::before {
        content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px;
        border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .25s;
    }
    .sub-open > .sub-toggle::before { transform: rotate(-135deg); margin-top: -2px; }
    .sub-menu {
        position: static; width: 100%; min-width: 0; padding: 0 0 .6rem .8rem; box-shadow: none; border: 0; border-radius: 0;
        opacity: 1; visibility: visible; transform: none; display: none;
    }
    .has-sub:hover .sub-menu { opacity: 1; }
    .sub-open > .sub-menu { display: block; }
    .nav-cta { margin-top: 1.2rem; }
}

@media (max-width: 960px) {

    .hero-grid, .split, .solar-band-grid, .contact-layout, .pillars { grid-template-columns: 1fr; }
    .hero-art { max-width: 460px; margin-inline: auto; order: -1; width: 100%; }
    .choose-grid { grid-template-columns: 1fr; }
    .service-block, .service-block.flip { grid-template-columns: 1fr; }
    .service-block.flip .service-visual { order: 0; }
    .service-visual { min-height: 160px; }
    .hide-sm { display: none; }
}

@media (max-width: 640px) {
    .strength-grid, .feature-cols, .card-grid.three, .card-grid.five, .steps, .steps.five, .industry-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .strength { border-right: 0; border-bottom: 1px solid var(--line); }
    .strength:last-child { border-bottom: 0; }
    .feature-cols .feature-card:last-child, .card-grid.three > :last-child { grid-column: auto; }
    .check-list.two-col { grid-template-columns: 1fr; }
    .hero-points { gap: 1.4rem; }
    .hero-actions .btn { flex: 1; }
    .pillar, .service-body, .feature-card { padding: 1.6rem; }
    .topbar-loc { display: none; }
    .topbar-inner { justify-content: center; }
    .brand-text strong { font-size: 1.1rem; }
    .brand-text small { font-size: .6rem; }
    .cta-actions .btn { flex: 1; }
}

/* ---------- SEO additions ---------- */
.h1-kicker {
    display: block; margin-bottom: .9rem;
    font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--sun-2); line-height: 1.5;
}
.hero h1 .h1-kicker { display: block; color: var(--sun-2); }

/* FAQ */
.faq-section { background: var(--bg); }
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: .9rem; }
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary::after {
    content: '+'; flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-warm); color: var(--accent-text); font-weight: 800; font-size: 1.2rem; transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq[open] { border-color: var(--sun); }
.faq-body { padding: 0 1.4rem 1.2rem; }
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- Department sites ---------- */
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.topbar-sister { display: inline-flex; align-items: center; gap: .1rem; color: var(--sun-2); font-weight: 600; }
.topbar-sister:hover { color: #fff; }
.footer-sister {
    display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding: .9rem 1.1rem; max-width: 300px;
    border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
    transition: border-color .25s, background .25s;
}
.footer-sister:hover { border-color: var(--sun); background: rgba(255,255,255,.07); }
.footer-sister svg { width: 26px; height: 26px; flex: 0 0 26px; fill: var(--sun-2); }
.footer-sister small { display: block; font-size: .78rem; color: var(--on-dark-muted); }
.footer-sister strong { color: #fff; }
.solar-band .btn { margin-top: .5rem; }
@media (max-width: 640px) {
    .topbar-inner { justify-content: space-between; }
    .topbar-sister { font-size: .8rem; }
    .site-engineering .topbar-links a:first-child { font-size: .8rem; }
}
.show-xs { display: none; }
@media (max-width: 640px) { .hide-xs { display: none; } .show-xs { display: inline; } }
.topbar-tag { display: inline-flex; align-items: center; gap: .1rem; }
.dark-industries { margin: 0; }
.dark-industries .industry { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.dark-industries .icon-box { background: var(--sun); }
.dark-industries .icon-box svg { fill: var(--navy); }
@media (max-width: 640px) { .site-engineering .topbar-tag { display: none; } .site-engineering .topbar-inner { justify-content: center; } }

/* ---------- Careers ---------- */
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.role-list { display: grid; gap: 1rem; max-width: 960px; margin-inline: auto; }
.role-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.5rem 1.8rem; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 5px solid var(--sun);
    transition: transform .25s, box-shadow .25s;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.role-main h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.role-main p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.role-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .88rem; color: var(--navy); font-weight: 500; }
.role-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.role-meta svg { width: 15px; height: 15px; fill: var(--sun); }
.file-input { padding: .65rem !important; background: #fff !important; cursor: pointer; }
.file-input::file-selector-button {
    margin-right: .9rem; padding: .5rem 1rem; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--navy); color: #fff; font: 600 .88rem var(--font-body);
}
@media (max-width: 1024px) { .card-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
    .card-grid.four { grid-template-columns: 1fr; }
    .role-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- Solar calculator ---------- */
[hidden] { display: none !important; }
.calc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.8rem; align-items: start; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1.5rem; }
.calc-card h2 { margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .35rem; margin: 0; border: 0; border-radius: 14px; background: var(--bg-soft); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; border-radius: 10px; font-family: var(--font-head); font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg span svg { width: 20px; height: 20px; fill: currentColor; }
.seg input:checked + span { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.calc-field { display: grid; gap: .45rem; }
.calc-field > label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.calc-field input[type="number"] { width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-soft); font: inherit; color: var(--ink); }
.calc-field input[type="number"]:focus { outline: none; border-color: var(--sun); background: #fff; box-shadow: 0 0 0 4px rgba(var(--sun-rgb),.15); }
.calc-field small { font-size: .82rem; }
.bill-display { display: flex; align-items: center; gap: .3rem; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); }
.calc-field .bill-display input[type="number"] { font: inherit; padding: .2rem .6rem; border-width: 0 0 2px; border-radius: 0; background: transparent; box-shadow: none; }
.calc-field .bill-display input[type="number"]:focus { border-color: var(--sun); box-shadow: none; }
input[type="range"] { width: 100%; accent-color: var(--sun); height: 28px; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.calc-results {
    position: sticky; top: calc(var(--header-h) + 16px);
    background: radial-gradient(circle at 100% 0%, rgba(var(--sun2-rgb),.22), transparent 45%), linear-gradient(150deg, var(--navy) 0%, var(--deep-2) 100%);
    color: var(--on-dark); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg);
}
.res-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.res-label { display: block; font-size: .85rem; color: var(--on-dark-muted); margin-bottom: .2rem; }
.res-big { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.res-sun { color: var(--sun-2); }
.res-note { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: rgba(var(--sun2-rgb),.12); color: var(--sun-2); font-size: .9rem; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin: .6rem 0 1.4rem; }
.res-grid > div { display: flex; flex-direction: column; gap: .15rem; padding: .8rem 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.res-grid dt { font-size: .88rem; color: var(--on-dark-muted); }
.res-grid dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-grid dd.good { color: #5fe0a8; }
.res-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.res-actions .btn { flex: 1 1 auto; }
.res-disclaimer { margin: 1rem 0 0; font-size: .8rem; color: var(--on-dark-muted); }

.calc-teaser { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.calc-teaser-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: 1.6rem 2rem; border-radius: 20px; background: var(--bg-warm); border: 1px solid var(--warm-line);
}
.calc-teaser-inner > div { display: flex; align-items: center; gap: 1.1rem; }
.calc-teaser h2 { font-size: 1.35rem; margin: 0 0 .2rem; }
.calc-teaser p { margin: 0; color: var(--muted); }

@media (max-width: 960px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-results { position: static; }
}
@media (max-width: 560px) {
    .res-grid, .calc-row { grid-template-columns: 1fr; }
    .res-grid > div { flex-direction: row; justify-content: space-between; align-items: baseline; }
    .res-grid dd { font-size: 1rem; text-align: right; }
    .res-hero { grid-template-columns: 1fr 1fr; }
    .calc-teaser-inner { padding: 1.3rem; }
}

/* ---------- PM Surya Ghar subsidy ---------- */
.pm-scheme { padding: 0 0 clamp(3.5rem, 7vw, 5rem); }
.pm-card {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.6rem, 4vw, 3rem); border-radius: 24px; color: var(--on-dark);
    background: radial-gradient(circle at 0% 0%, rgba(46,158,106,.35), transparent 45%), linear-gradient(140deg, var(--navy) 0%, var(--deep-2) 100%);
    box-shadow: var(--shadow-lg);
}
.pm-card .h2 { color: #fff; margin-bottom: .6rem; }
.pm-card strong { color: #fff; }
.pm-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; border-radius: 999px; background: #2e9e6a; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
.pm-badge svg { width: 16px; height: 16px; fill: #fff; }
.pm-slabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.4rem 0; }
.pm-slab { padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.pm-slab span { display: block; font-size: .85rem; color: var(--on-dark-muted); }
.pm-slab strong { display: block; font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--sun-2); }
.pm-slab:last-child { background: rgba(var(--sun2-rgb),.14); border-color: rgba(var(--sun2-rgb),.4); }
.pm-eligible { display: grid; gap: .45rem; margin-bottom: .8rem; }
.pm-eligible li { position: relative; padding-left: 1.7rem; font-size: .95rem; }
.pm-eligible li::before { content: ''; position: absolute; left: 0; top: .3rem; width: 16px; height: 16px; border-radius: 50%; background: #2e9e6a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/11px no-repeat; }
.pm-valid { color: var(--on-dark-muted); margin-bottom: 1.4rem; }
.pm-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.pm-steps { display: grid; gap: .9rem; align-content: center; counter-reset: none; }
.pm-steps li { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.pm-num { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-2); color: var(--navy); font-family: var(--font-head); font-weight: 800; }
.pm-steps h3 { color: #fff; font-size: 1.02rem; margin-bottom: .15rem; }
.pm-steps p { margin: 0; font-size: .9rem; }
.pm-ribbon { display: inline-block; margin-top: .4rem; padding: .2rem .6rem; border-radius: 6px; background: #e8f7ef; color: #1d7a52; font-size: .78rem; font-weight: 600; }
@media (max-width: 960px) { .pm-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .pm-slabs { gap: .4rem; }
    .pm-slab { padding: .75rem .3rem; }
    .pm-slab span { font-size: .72rem; }
    .pm-slab strong { font-size: 1.02rem; }
    .pm-actions .btn { flex: 1 1 100%; }
}

/* ---------- Calculator v2: kit, phase, price list ---------- */
.unit-suffix { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: .3rem; }
.seg-wrap { border: 0; padding: 0; margin: 0; }
.seg-wrap legend { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: .45rem; padding: 0; }
.seg-sm span { padding: .6rem; font-size: .92rem; }
.res-kit { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.res-kit span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: var(--on-dark-strong); }
.res-kit svg { width: 16px; height: 16px; fill: var(--sun-2); flex-shrink: 0; }
.res-kit b { font-weight: 600; }
.price-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 860px; font-variant-numeric: tabular-nums; }
.price-table th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-align: left; padding: .85rem .8rem; white-space: nowrap; }
.price-table td { padding: .8rem .8rem; border-top: 1px solid var(--line); white-space: nowrap; }
.price-table td.wrap { white-space: normal; min-width: 130px; }
.pt-tag { display: inline-block; margin-left: .3rem; padding: .1rem .4rem; border-radius: 5px; background: var(--bg-warm); color: var(--accent-text); font-size: .72rem; font-weight: 600; }
.price-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.price-table tbody tr:hover td { background: var(--bg-warm); }
.price-table .good { color: var(--green); font-weight: 600; }

/* ---------- Calculator v3: bill / units switch ---------- */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.field-head > label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.mini-seg { display: inline-flex; padding: .2rem; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); }
.mini-seg label { cursor: pointer; }
.mini-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mini-seg span { display: block; padding: .3rem .75rem; border-radius: 7px; font-size: .8rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.mini-seg input:checked + span { background: var(--navy); color: #fff; }
.mini-seg input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 1px; }
.unit-prefix { margin-right: .1rem; }
.units-est { display: inline-block; margin-left: .3rem; padding: .1rem .5rem; border-radius: 6px; background: var(--bg-warm); color: var(--accent-text); font-weight: 600; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.seg label:has(input:disabled) { cursor: not-allowed; }
#phase-hint { display: block; margin-top: .45rem; font-size: .82rem; }
.res-info { display: flex; gap: .6rem; align-items: flex-start; margin: 1.1rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: rgba(var(--sun2-rgb),.1); border: 1px solid rgba(var(--sun2-rgb),.28); font-size: .86rem; line-height: 1.5; color: var(--on-dark-strong); }
.res-info svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .1rem; fill: var(--sun-2); }
.res-info strong { color: var(--sun-2); }
.calc-field .opt { font-weight: 400; color: var(--muted); }
.roof-input { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.roof-input select { padding: .8rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-soft); font: inherit; color: var(--ink); cursor: pointer; }
.roof-input select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(var(--sun-rgb),.15); }


/* ==========================================================
   SOLAR THEME — Challaturu Renew Power (green)
   Applied only on the solar site (<body class="site-solar">)
   ========================================================== */
body.site-solar {
    --navy:      #0b3a2a;   --navy-rgb: 11,58,42;
    --navy-2:    #0f4d37;
    --navy-3:    #0e4a34;
    --deep-2:    #146b4a;
    --blue:      #148a52;
    --sun:       #1f9d57;   --sun-rgb: 31,157,87;      /* main green: buttons, accents */
    --sun-2:     #9be7b5;   --sun2-rgb: 155,231,181;   /* light green on dark backgrounds */
    --sun-hover: #178548;
    --btn-text:  #ffffff;
    --bg-warm:   #eefaf2;
    --warm-line: #cdeedb;
    --accent-text: #137a45;
    --cta-text:  #0b3a2a;
    --footer-bg: #062419;
    --on-dark:   #cfe3d8;
    --on-dark-muted: #9fc2b0;
    --on-dark-strong: #e3f1e9;
}
body.site-solar .cta-band { background: linear-gradient(120deg, #c9f2d8 0%, #9be7b5 100%); }
body.site-solar .cta-band .btn-sun { background: var(--navy); color: #fff; }
body.site-solar .icon-box.icon-sun svg, body.site-solar .contact-icon svg, body.site-solar .to-top svg { fill: #fff; }

/* ---------- WhatsApp chat button ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 95;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .75rem 1.15rem .75rem .9rem; border-radius: 999px;
    background: #25d366; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    box-shadow: 0 10px 28px -6px rgba(0,0,0,.35);
    transition: transform .25s, box-shadow .25s, background .25s;
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.wa-float:hover { transform: translateY(-3px); background: #1ebe5a; box-shadow: 0 14px 32px -6px rgba(0,0,0,.4); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.to-top { bottom: 86px; }
.wa-card .contact-icon { background: #25d366; }
.wa-card .contact-icon svg { fill: #fff; }
@media (max-width: 640px) {
    .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; right: 16px; bottom: 16px; }
    .wa-float span { display: none; }
    .to-top { right: 21px; bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- Subsidy countdown (calendar page + days left) ---------- */
.sc-section { padding: 0 0 clamp(1rem, 3vw, 1.5rem); margin-top: clamp(1.5rem, 3vw, 2rem); }
.sc { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.6rem); }
.sc-strip { padding: 1.2rem 1.6rem; border-radius: 20px; background: linear-gradient(120deg, var(--bg-warm) 0%, #fff 70%); border: 1px solid var(--warm-line); box-shadow: var(--shadow); }
.sc-dark { margin: .4rem 0 1.4rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }

/* tear-off calendar page */
.sc-cal { position: relative; flex: 0 0 auto; width: 84px; padding-bottom: .55rem; border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 10px 24px -10px rgba(var(--navy-rgb),.45); overflow: visible; }
.sc-cal::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -5px; height: 8px; border-radius: 0 0 12px 12px; background: rgba(255,255,255,.55); z-index: -1; }
.sc-rings { position: absolute; top: -6px; left: 0; right: 0; display: flex; justify-content: center; gap: 30px; }
.sc-rings i { width: 8px; height: 14px; border-radius: 4px; background: var(--navy); border: 2px solid #fff; }
.sc-mon { display: block; padding: .5rem 0 .3rem; border-radius: 14px 14px 0 0; background: var(--sun); color: var(--btn-text); font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .18em; }
.sc-day { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; line-height: 1.15; color: var(--navy); }
.sc-yr { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }

.sc-body { flex: 1 1 auto; min-width: 0; }
.sc-label { display: block; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
.sc-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; margin: .1rem 0 .15rem; }
.sc-days { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.sc-days small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.sc-clock { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .95rem; font-weight: 600; color: var(--navy); padding: .25rem .6rem; border-radius: 8px; background: rgba(var(--sun-rgb),.12); font-variant-numeric: tabular-nums; }
.sc-foot { display: block; font-size: .78rem; color: var(--muted); }
.sc-cta { flex: 0 0 auto; }
.sc-closed { margin: 0; font-weight: 600; color: var(--accent-text); }
.sc.is-closed .sc-main, .sc.is-closed .sc-label { display: none; }

/* inside the dark subsidy card */
.sc-dark .sc-label { color: var(--sun-2); }
.sc-dark .sc-days { color: #fff; }
.sc-dark .sc-days small, .sc-dark .sc-foot { color: var(--on-dark-muted); }
.sc-dark .sc-clock { color: #fff; background: rgba(255,255,255,.1); }
.sc-dark .sc-cal { width: 74px; }
.sc-dark .sc-day { font-size: 1.8rem; }

@media (max-width: 640px) {
    .sc-strip { flex-wrap: wrap; padding: 1.1rem; gap: .9rem 1rem; }
    .sc-body { flex: 1 1 0; }
    .sc-cta { width: 100%; }
    .sc-cal { width: 66px; }
    .sc-days { font-size: 1.8rem; }
    .sc-clock { font-size: .82rem; padding: .2rem .5rem; }
    .sc-foot { font-size: .72rem; }
    .sc-day { font-size: 1.7rem; }
    .sc-label { font-size: .8rem; }
}

/* ---------- Challaturu Group links ---------- */
.topbar-left { display: inline-flex; align-items: center; gap: 1.4rem; min-width: 0; }
.topbar-group { display: inline-flex; align-items: center; gap: .1rem; color: var(--sun-2); font-weight: 600; white-space: nowrap; }
.topbar-group:hover { color: #fff; }
.footer-group { margin-top: 1.2rem; }
.footer-group + .footer-sister { margin-top: .7rem; }
.footer-group-link { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1200px) { .topbar-left .topbar-tag { display: none; } }
@media (max-width: 640px) { .hide-xs { display: none; } }
@media (max-width: 640px) {
    .topbar .topbar-inner { justify-content: space-between; gap: .6rem; }
    .topbar-group { font-size: .76rem; }
    .topbar-links a { font-size: .78rem; white-space: nowrap; }
}
@media (max-width: 380px) {
    .topbar-group { font-size: .7rem; }
    .topbar-group svg { display: none; }
    .topbar-links a { font-size: .72rem; }
}
