/* ==========================================================================
   Rainbow Solar — multi-page additions (loaded after styles.css)
   ========================================================================== */
/* Page gate: hide content until the visitor's session is confirmed (see auth.js) */
.auth-pending body { visibility: hidden; }

/* Top utility bar */
.topbar { background: var(--navy); color: #c9d6f5; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar-tag { display: none; align-items: center; gap: 6px; letter-spacing: .04em; }
.topbar-tag svg { width: 14px; height: 14px; color: #4ade80; }
.topbar-links { display: flex; gap: 18px; margin-left: auto; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: #e6edff; }
.topbar-links a:hover { color: #fff; }
.topbar-links svg { width: 14px; height: 14px; }
.topbar .js-mail { display: none; }
@media (min-width: 640px) { .topbar-tag { display: inline-flex; } }
@media (min-width: 900px) { .topbar .js-mail { display: inline-flex; } }

/* Header nav: page links (Home is the logo) */
.nav a { font-size: .88rem; }
@media (min-width: 1200px) { .nav { gap: 18px; } }
.header-cta .btn--quote { padding: 0 16px; }
.mobile-nav a[aria-current="page"] { color: var(--blue-600); }

/* User menu */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.user-initials { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; font-family: var(--font-head); }
.user-btn .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .25s; }
.user-menu.open .chev { transform: rotate(180deg); }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); z-index: 120; }
.user-menu.open .user-pop { opacity: 1; visibility: visible; transform: none; }
.user-info { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-info strong { display: block; color: var(--navy); font-size: .92rem; }
.user-info span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.user-pop a, .user-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-size: .9rem; color: var(--navy); cursor: pointer; text-align: left; }
.user-pop a:hover, .user-pop button:hover { background: var(--blue-50); }
.user-pop svg { width: 18px; height: 18px; color: var(--blue-600); }
@media (max-width: 1199px) { .user-btn .chev { display: none; } .user-btn { padding: 0 4px; } }
.mobile-nav .btn--ghost { margin-top: 10px; }

/* Inner page banner */
.page-hero { position: relative; overflow: hidden; background: #f7faff; padding: 40px 0 48px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--ph-img, none) center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f7faff 0%, rgba(247,250,255,.95) 35%, rgba(247,250,255,.55) 65%, rgba(247,250,255,.1) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 640px; }
.page-hero p { max-width: 560px; font-size: 1.05rem; color: var(--body); }
.page-hero .hero-actions { margin: 22px 0 0; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--blue-600); font-weight: 500; }
.crumbs span::before { content: "/"; margin-right: 8px; color: #b6c2db; }
@media (max-width: 899px) { .page-hero::after { background: linear-gradient(180deg, rgba(247,250,255,.86), rgba(247,250,255,.97)); } }
@media (min-width: 900px) { .page-hero { padding: 64px 0 76px; } }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); }
.pill-tag svg { width: 16px; height: 16px; color: var(--green-600); }

/* Consultation block */
.consult-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .consult-grid { grid-template-columns: 1fr 420px; gap: 56px; } }
.contact-cards { display: grid; gap: 12px; max-width: 420px; }
.contact-cards a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; transition: box-shadow .25s, transform .25s; }
.contact-cards a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-cards small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.contact-cards .icon-tile { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.contact-cards .icon-tile svg { width: 22px; height: 22px; }

.features-wrap { margin-top: -24px; margin-bottom: 8px; position: relative; z-index: 2; }

/* Split / promo blocks */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--rev > :first-child { order: 2; } }
.split-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--blue-50); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.promo { display: grid; gap: 20px; align-items: center; background: var(--grad-blue); color: #dbe6ff; border-radius: 24px; padding: 28px 24px; position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(248,180,0,.45), transparent 65%); pointer-events: none; }
.promo h2 { color: #fff; margin-bottom: .2em; }
.promo p { margin: 0; }
.promo .btn { position: relative; z-index: 1; justify-self: start; }
@media (min-width: 900px) { .promo { grid-template-columns: 1fr auto; padding: 40px 44px; } }

/* Tables */
.table-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table-card th, .table-card td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.table-card th { background: var(--blue-50); color: var(--navy); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.table-card tr:last-child td { border-bottom: 0; }
.table-card td strong { color: var(--navy); }
.table-card .g { color: var(--green-600); font-weight: 700; }

/* Numbered journey */
.journey { display: grid; gap: 16px; counter-reset: j; }
@media (min-width: 640px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .journey { grid-template-columns: repeat(5, 1fr); } }
.journey .card { padding: 22px 20px; }
.journey .card::before { counter-increment: j; content: "0" counter(j); display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: transparent; -webkit-text-stroke: 1.2px var(--blue-600); margin-bottom: 6px; }
.journey .tag { display: inline-block; margin-top: 12px; font-size: .72rem; font-weight: 600; color: var(--green-700); background: var(--green-50); padding: 3px 10px; border-radius: 99px; }

/* Sector grid */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sectors { grid-template-columns: repeat(6, 1fr); } }
.sectors div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; text-align: center; font-size: .86rem; font-weight: 600; color: var(--navy); transition: transform .3s var(--ease), box-shadow .3s; }
.sectors div:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sectors svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--blue-600); }

/* Project filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 99px; font-weight: 600; font-size: .88rem; color: var(--navy); cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip.is-active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.project.is-hidden { display: none; }
.project-meta { padding: 0 16px 16px; margin-top: -4px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); }
.project-meta b { color: var(--green-600); }

/* Contact page */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-grid .card { display: flex; flex-direction: column; gap: 4px; }
.contact-grid .card strong { color: var(--navy); font-size: 1rem; word-break: break-word; }
.contact-grid .card .icon-tile { margin-bottom: 10px; }

/* ==========================================================================
   Login page
   ========================================================================== */
.auth-page { min-height: 100vh; display: grid; background: var(--bg-soft); }
@media (min-width: 1000px) { .auth-page { grid-template-columns: 1.05fr .95fr; } }
.auth-brand { position: relative; overflow: hidden; color: #dbe6ff; padding: 24px 20px 32px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(9,34,110,.93), rgba(22,80,199,.84) 60%, rgba(26,148,71,.78)), url("../img/hero/hero-home.jpg") center / cover no-repeat; }
@media (min-width: 1000px) { .auth-brand { padding: 40px 56px; height: 100vh; position: sticky; top: 0; } }
.auth-brand .brand-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 8px 14px; align-self: flex-start; box-shadow: var(--shadow); }
.auth-brand .brand-logo img { height: 34px; width: auto; }
.auth-brand h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 24px 0 10px; }
.auth-brand h1 .hl { color: #86efac; }
.auth-brand > p { max-width: 470px; font-size: 1rem; margin-bottom: 0; }
.auth-points { list-style: none; padding: 0; margin: 18px 0 0; display: none; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: #fff; }
.auth-points svg { width: 22px; height: 22px; color: #86efac; flex: none; }
@media (min-width: 640px) { .auth-points { display: grid; } }
.auth-stats { display: none; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; padding-top: 32px; }
.auth-stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px; backdrop-filter: blur(6px); }
.auth-stats strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.auth-stats span { font-size: .78rem; }
@media (min-width: 1000px) { .auth-stats { display: grid; } }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 56px; }
@media (min-width: 1000px) { .auth-main { align-items: center; padding: 48px 40px; } }
.auth-card { width: 100%; max-width: 480px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 24px 18px; }
@media (min-width: 640px) { .auth-card { padding: 34px; } }
.auth-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.auth-card .grid-2 { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .auth-card .grid-2 { grid-template-columns: 1fr 1fr; } }
.pw-wrap { position: relative; }
.f .pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--blue-50); color: var(--blue-600); font-size: .76rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.f .hint { font-size: .76rem; color: var(--muted); }
.auth-row { display: flex; justify-content: flex-end; font-size: .85rem; margin: -4px 0 16px; }
.link-btn { border: 0; background: none; color: var(--blue-600); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit; }
.auth-msg { display: none; font-size: .88rem; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.auth-msg.err { display: block; background: #fee4e2; color: #912018; }
.auth-msg.ok { display: block; background: var(--green-50); color: var(--green-700); }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 16px; }
.auth-help { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: .84rem; }
.auth-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-600); font-weight: 600; }
.auth-help svg { width: 16px; height: 16px; }
.demo-note { margin-top: 18px; font-size: .78rem; color: #7a4b00; background: #fff7e0; border: 1px solid #fbd78a; border-radius: 10px; padding: 10px 12px; }

/* Stats bar overlap is tuned for the home hero; reduce it elsewhere */
.page-hero + .stats-wrap { margin-top: -40px; }
.section + .stats-wrap { margin-top: 0; }
@media (min-width: 900px) { .page-hero + .stats-wrap { margin-top: -48px; } }

/* ==========================================================================
   City landing page (public ad page)
   ========================================================================== */
.lp-header .header-cta { gap: 10px; }
.lp-call { min-height: 42px; padding: 0 14px; font-size: .88rem; }
.lp-call svg { width: 16px; height: 16px; }
.lp-login { font-weight: 600; font-size: .9rem; color: var(--blue-600); padding: 8px 6px; }
@media (max-width: 420px) { .lp-call .js-phone { display: none; } .lp-call { padding: 0 12px; } }

.lp-hero { position: relative; overflow: hidden; color: #dfe8ff; padding: 32px 0 40px;
  background: linear-gradient(100deg, rgba(8,26,84,.94) 0%, rgba(13,52,150,.86) 45%, rgba(13,52,150,.45) 100%), var(--lp-img, url("../img/hero/hero-home.jpg")) center / cover no-repeat; }
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--rainbow); }
.lp-grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .lp-hero { padding: 64px 0 72px; } .lp-grid { grid-template-columns: 1fr 420px; gap: 48px; } }
.lp-city { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.lp-city svg { width: 16px; height: 16px; color: #86efac; }
.lp-hero h1 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.4rem); margin-bottom: .3em; }
.lp-hero h1 .hl { color: #86efac; }
.lp-hero .lead { font-size: 1.08rem; max-width: 540px; margin-bottom: 22px; }
.lp-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 540px; }
.lp-badges div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(6px); }
.lp-badges strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.lp-badges span { font-size: .78rem; }
.lp-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .86rem; color: #fff; }
.lp-rating .stars { color: var(--sun); letter-spacing: 2px; }
.lp-form { color: var(--body); }
.lp-form h2 { font-size: 1.35rem; }
.lp-form .form-sub b { color: var(--green-600); }
.bill-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 400px) { .bill-pills { grid-template-columns: repeat(3, 1fr); } }
.bill-pills label { position: relative; }
.bill-pills input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bill-pills span { display: block; text-align: center; padding: 10px 6px; border: 1.5px solid #dfe6f3; border-radius: 10px; font-size: .8rem; font-weight: 600; color: var(--navy); transition: all .2s; }
.bill-pills input:checked + span { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); }
.bill-pills input:focus-visible + span { outline: 3px solid var(--blue-500); }
.f.has-error .bill-pills span { border-color: var(--danger); }
.f .hint { font-size: .74rem; color: var(--muted); }

/* Why us (landing) */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* EMI vs savings */
.emi-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .emi-wrap { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.emi-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 22px 18px; }
@media (min-width: 640px) { .emi-card { padding: 28px; } }
.opt-label { font-size: .84rem; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.size-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 560px) { .size-opts { grid-template-columns: repeat(4, 1fr); } }
.size-opts label, .tenure-opts label { position: relative; }
.size-opts input, .tenure-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size-opts span { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; transition: all .2s; }
.size-opts strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); }
.size-opts small { font-size: .7rem; color: var(--muted); line-height: 1.3; display: block; }
.size-opts input:checked + span { border-color: var(--green-500); background: var(--green-50); }
.size-opts input:checked + span strong { color: var(--green-700); }
.tenure-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.tenure-opts span { display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 4px; text-align: center; font-size: .84rem; font-weight: 600; color: var(--navy); transition: all .2s; }
.tenure-opts input:checked + span { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); }
.size-opts input:focus-visible + span, .tenure-opts input:focus-visible + span { outline: 3px solid var(--blue-500); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.vs > div { border-radius: 14px; padding: 16px 12px; text-align: center; }
.vs .save { background: var(--green-50); }
.vs .emi { background: var(--blue-50); }
.vs strong { display: block; font-family: var(--font-head); font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.15; }
.vs .save strong { color: var(--green-700); }
.vs .emi strong { color: var(--blue-700); }
.vs span { font-size: .76rem; color: var(--body); }
.vs .op { align-self: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--muted); }
.emi-verdict { display: flex; gap: 10px; align-items: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 16px; }
.emi-verdict svg { width: 22px; height: 22px; color: #86efac; flex: none; }
.emi-verdict b { color: #86efac; }

/* Call strip */
.call-strip { display: grid; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 800px) { .call-strip { grid-template-columns: auto 1fr auto; padding: 24px 28px; } }
.call-strip .icon-tile { margin: 0; width: 56px; height: 56px; border-radius: 16px; }
.call-strip h3 { margin: 0 0 2px; font-size: 1.2rem; }
.call-strip p { margin: 0; color: var(--muted); font-size: .92rem; }
.call-strip .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Monitoring app */
.app-wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .app-wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }
.phone { width: 260px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 40px; background: #0b1230; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3566; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 99px; background: #0b1230; z-index: 2; }
.screen { height: 100%; border-radius: 30px; background: linear-gradient(180deg, #eef4ff, #fff 40%); overflow: hidden; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: .72rem; color: var(--muted); }
.screen .s-head { display: flex; justify-content: space-between; align-items: center; color: var(--navy); font-weight: 700; font-size: .8rem; }
.screen .s-big { background: var(--grad-blue); color: #fff; border-radius: 16px; padding: 14px; }
.screen .s-big strong { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.screen .s-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.screen .s-row div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.screen .s-row strong { display: block; color: var(--navy); font-size: .95rem; }
.screen .s-chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; flex: 1; display: flex; flex-direction: column; }
.bars { display: flex; align-items: flex-end; gap: 5px; flex: 1; padding-top: 8px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--green-500), #8cc63f); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.app-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.app-list li { display: flex; gap: 12px; align-items: flex-start; }
.app-list .icon-tile { margin: 0; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.app-list .icon-tile svg { width: 20px; height: 20px; }
.app-list strong { display: block; color: var(--navy); }
.app-list span { font-size: .9rem; color: var(--muted); }

/* "Consultation booked" banner (replaces the thank-you page) */
.booked-banner { background: var(--green-50); border-bottom: 1px solid #bfe8cd; animation: heroIn .6s var(--ease) both; }
.booked-inner { display: flex; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.booked-inner > svg { width: 30px; height: 30px; color: var(--green-600); flex: none; }
.booked-inner p { margin: 0; flex: 1; min-width: 220px; font-size: .92rem; color: var(--body); }
.booked-inner strong { color: var(--green-700); }
.booked-inner .btn { min-height: 42px; padding: 0 16px; font-size: .86rem; }
.booked-close { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }

/* ==========================================================================
   Site-visit questionnaire (book-visit.html)
   ========================================================================== */
.bv-grid { display: grid; min-height: calc(100vh - 75px); }
@media (min-width: 1000px) { .bv-grid { grid-template-columns: 1.1fr 1fr; } }
.bv-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #dcebff 0%, #eef6ff 45%, #ffffff 100%); padding: 28px 20px 0; display: flex; flex-direction: column; min-height: 340px; }
@media (min-width: 1000px) { .bv-hero { padding: 48px 56px 0; position: sticky; top: 0; height: calc(100vh - 75px); } }
.bv-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.bv-welcome { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--navy); margin: 0 0 8px; }
.bv-hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin-bottom: .3em; }
.bv-hero-copy p:last-child { color: var(--body); font-size: 1.05rem; }
.bv-sun { position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 42%; background: radial-gradient(circle, #ffd76a 0%, #f8b400 60%, #f29a00 100%); box-shadow: 0 0 60px 20px rgba(248,180,0,.35); z-index: 1; animation: bob 7s ease-in-out infinite; }
.bv-sun::after { content: ""; position: absolute; left: 70px; top: -40px; width: 420px; height: 160px; border-top: 3px solid rgba(255,255,255,.9); border-radius: 50%; transform: rotate(-12deg); }
.bv-house { position: relative; z-index: 1; margin-top: auto; width: 100%; height: 260px; object-fit: cover; object-position: center 70%; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); }
@media (min-width: 1000px) { .bv-house { height: 46vh; } }
@media (max-width: 999px) { .bv-sun { display: none; } .bv-house { height: 180px; margin-top: 18px; } }

.bv-panel { background: var(--bg-soft); padding: 24px 16px 48px; }
@media (min-width: 640px) { .bv-panel { padding: 32px 32px 56px; } }
@media (min-width: 1000px) { .bv-panel { padding: 40px 48px 64px; } }
.bv-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 2px; }
.bv-head > p { color: var(--muted); margin: 0 0 14px; }
.bv-progress { height: 6px; background: #e3eaf6; border-radius: 99px; overflow: hidden; }
.bv-progress span { display: block; height: 100%; width: 50%; background: var(--grad-green); border-radius: 99px; transition: width .5s var(--ease); }
.bv-stepnum { font-size: .82rem; font-weight: 600; color: var(--blue-600); margin: 8px 0 0; }
.bv-nav { display: flex; gap: 6px; margin: 14px 0 6px; }
.bv-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.bv-nav button:disabled { opacity: .35; cursor: default; }
.bv-nav svg { width: 18px; height: 18px; }
.bv-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.bv-q { margin-bottom: 22px; }
.bv-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy); margin-bottom: 10px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .opt-grid { grid-template-columns: repeat(3, 1fr); } .opt-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.opt-grid--2 { grid-template-columns: repeat(2, minmax(0, 120px)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 50px; padding: 10px 8px; text-align: center; background: #fff; border: 1.5px solid #dfe6f3; border-radius: 12px; font-size: .88rem; font-weight: 500; color: var(--navy); transition: all .2s var(--ease); }
.opt span small { font-size: .74rem; color: var(--muted); font-weight: 500; }
.opt:hover span { border-color: #a9c1ee; }
.opt input:checked + span { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); font-weight: 600; box-shadow: 0 0 0 3px rgba(22,80,199,.1); }
.opt input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.f.has-error .opt span { border-color: var(--danger); }
.bv-note { font-size: .84rem; color: var(--green-700); background: var(--green-50); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.bv-locate { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--blue-600); background: #fff; color: var(--blue-600); border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s; }
.bv-locate:hover { background: var(--blue-50); }
.bv-locate svg { width: 20px; height: 20px; }
.bv-loc-ok { font-size: .84rem; color: var(--green-700); background: var(--green-50); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.bv-loc-ok.is-err { color: #912018; background: #fee4e2; }
.bv-loc-ok a { font-weight: 600; text-decoration: underline; }
.bv-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.bv-or::before, .bv-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bv-panel textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #dfe6f3; background: #fff; font-size: 1rem; resize: vertical; min-height: 88px; }
.bv-panel textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(22,80,199,.14); }
.f.has-error textarea { border-color: var(--danger); }
.bv-row { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .bv-row { grid-template-columns: 1fr 1fr; } }
.bv-panel .f input, .bv-panel .f select { background-color: #fff; }
.opt-tag { font-weight: 500; color: var(--muted); }
.bv-skip { text-align: center; margin: 16px 0 0; font-size: .88rem; }

.bv-journey { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .bv-journey { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.bv-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; position: relative; }
.bv-steps::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; border-left: 2px dashed #cfdcf3; }
.bv-steps li { display: flex; gap: 18px; position: relative; }
.bv-steps .n { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; border: 2px solid var(--green-500); color: var(--green-700); font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); }
.bv-steps h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.bv-steps p { margin: 0; color: var(--muted); }


/* Savings estimate (book-visit.html result view) */
.bv-stats { position: relative; z-index: 2; display: grid; gap: 12px; margin-top: 24px; max-width: 640px; }
@media (min-width: 560px) { .bv-stats { grid-template-columns: 1fr 1fr; } }
.bv-stats[hidden] { display: none; }
.bv-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.9); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); animation: heroIn .6s var(--ease) both; }
.bv-stat:nth-child(2) { animation-delay: .1s; }
.bv-stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--navy); line-height: 1.1; }
.bv-stat span { font-size: .9rem; color: var(--body); }
.bv-stat svg { width: 52px; height: 52px; color: #9fb3d9; flex: none; }
.bv.is-result .bv-hero-copy { display: none; }
.bv.is-result .bv-sun { top: 30%; }
#bv-result { animation: heroIn .6s var(--ease) both; }
.es-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px; border-radius: 18px; margin: 18px 0 12px; background: linear-gradient(110deg, #fff7f0 0%, #e8f7ee 45%, #dcefff 100%); border: 1px solid #d7e6f7; box-shadow: var(--shadow-sm); }
.es-hero strong { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--green-600); line-height: 1.1; }
.es-hero span { color: var(--body); font-size: .95rem; }
.es-shield { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 8px 16px rgba(22,80,199,.3)); animation: bob 5s ease-in-out infinite; }
.es-pair { display: grid; gap: 12px; }
@media (min-width: 480px) { .es-pair { grid-template-columns: 1fr 1fr; } }
.es-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.es-card strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--green-600); line-height: 1.15; }
.es-card span { font-size: .84rem; color: var(--body); }
.es-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2bb35f, #12a39a); color: #fff; flex: none; box-shadow: 0 6px 14px -6px rgba(26,148,71,.7); }
.es-ic svg { width: 22px; height: 22px; }
.es-cost { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 12px; }
.es-cost h3 { font-size: 1rem; margin: 0 0 8px; }
.es-cost dl { margin: 0; display: grid; }
.es-cost dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.es-cost dl > div:last-child { border-bottom: 0; }
.es-cost dt { color: var(--body); }
.es-cost dd { margin: 0; font-weight: 600; color: var(--navy); }
.es-cost dd.g { color: var(--green-600); }
.es-cost .tot dt, .es-cost .tot dd { font-weight: 700; color: var(--navy); font-size: 1rem; }
.es-tips { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.es-tips li { position: relative; padding: 10px 12px 10px 34px; background: var(--blue-50); border-radius: 10px; font-size: .86rem; color: var(--body); }
.es-tips li::before { content: "💡"; position: absolute; left: 10px; top: 9px; font-size: .9rem; }
.es-visit:empty { display: none; }
.es-visit { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-size: .9rem; }
.es-visit svg { width: 20px; height: 20px; flex: none; }
.es-actions { display: grid; gap: 10px; margin-top: 18px; }


/* "Why Chennai trusts us" cards with photos */
.why-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.why-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.why-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.why-card:hover .why-img img { transform: scale(1.06); }
.why-body { padding: 0 22px 24px; position: relative; }
.why-card .icon-tile { margin: -26px 0 14px; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: var(--shadow); background-color: #fff; }
.why-card .icon-tile--green { background: var(--green-50); }
.why-card .icon-tile--sun { background: var(--sun-50); }
.why-card .icon-tile:not(.icon-tile--green):not(.icon-tile--sun) { background: var(--blue-50); }


/* Footer: Our Offerings + Solar Solutions share one column */
.footer-offer h4 + ul { margin-bottom: 22px !important; }
.footer-offer ul:last-child { margin-bottom: 0 !important; }

/* Offering pages: comparison & spec tables reuse .table-card; highlight cells */
.tick { color: var(--green-600); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }
.lp-hero .crumbs { color: #c9d6f5; }
.lp-hero .crumbs a { color: #fff; }
.lp-hero .crumbs span::before { color: rgba(255,255,255,.5); }
.offer-note { display: flex; gap: 12px; align-items: flex-start; background: var(--sun-50); border: 1px solid #f6dc9a; border-radius: 14px; padding: 14px 16px; color: #7a5300; font-size: .92rem; margin-top: 18px; }
.offer-note svg { width: 22px; height: 22px; flex: none; color: #d99a00; }


/* ==========================================================================
   Dropdown navigation
   ========================================================================== */
.nav-dd { display: none; align-items: center; gap: 4px; margin-left: auto; margin-right: 8px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 10px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; color: var(--navy); transition: background .2s, color .2s; }
.dd-btn .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.dd-btn:hover, .dd.open .dd-btn, .dd.is-active .dd-btn { color: var(--blue-600); }
.dd.open .dd-btn, .dd-btn:hover { background: var(--blue-50); }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 130; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.dd-menu--wide { min-width: 260px; }
.dd:last-child .dd-menu { left: auto; right: 0; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .dd:hover .dd-menu { opacity: 1; visibility: visible; transform: none; } .dd:hover .dd-btn .chev { transform: rotate(180deg); } }
.dd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--navy); transition: background .2s; }
.dd-item:hover, .dd-item:focus-visible { background: var(--blue-50); }
.dd-item.is-active { background: var(--blue-50); }
.dd-item strong { display: block; font-size: .93rem; font-weight: 600; }
.dd-item small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.dd-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.dd-item:hover .dd-ic { background: #fff; }
.dd-ic svg { width: 19px; height: 19px; }
.dd-note { margin: 4px 12px 6px; font-size: .78rem; color: var(--muted); }
/* Submenu flyout (On-Grid Solar → DCR / Non-DCR) */
.dd-sub { position: relative; }
.dd-sub > .dd-item { padding-right: 34px; position: relative; }
.dd-sub-chev { position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%) rotate(-90deg); transition: color .2s, transform .2s var(--ease); }
.dd-sub:hover > .dd-item, .dd-sub:focus-within > .dd-item { background: var(--blue-50); }
.dd-sub:hover .dd-sub-chev, .dd-sub:focus-within .dd-sub-chev { color: var(--blue-600); transform: translate(3px, -50%) rotate(-90deg); }
.dd-submenu { position: absolute; left: calc(100% + 14px); top: -8px; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 131; }
.dd-submenu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 16px; } /* hover bridge */
.dd-sub:hover .dd-submenu, .dd-sub:focus-within .dd-submenu { opacity: 1; visibility: visible; transform: none; }
.dd-sub--left .dd-submenu { left: auto; right: calc(100% + 14px); transform: translateX(6px); }
.dd-sub--left .dd-submenu::before { left: auto; right: -16px; }
@media (hover: none) { .dd-sub .dd-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 26px; min-width: 0; } .dd-sub-chev { transform: translateY(-50%); } }
.mobile-nav .m-subrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 8px 16px; }
.mobile-nav .m-group a.m-sub { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 99px; background: var(--blue-50); color: var(--blue-700); font-family: var(--font-body); font-size: .85rem; font-weight: 600; }
.btn--quote-outline { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); min-height: 46px; padding: 0 22px; border-radius: 12px; }
.btn--quote-outline:hover { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.header-cta .btn--quote-outline { min-height: 44px; padding: 0 18px; }
.lp-header .header-cta { margin-left: 0; }

/* Mobile menu groups */
.m-group { padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
.m-label { margin: 6px 4px 2px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mobile-nav .m-group a, .mobile-nav .m-home { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--navy); padding: 10px 4px; border: 0; }
.mobile-nav .m-home { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mobile-nav a[aria-current="page"] { color: var(--blue-600); }

@media (min-width: 1000px) {
  .nav-dd { display: flex; }
  .site-header .menu-toggle, .mobile-nav { display: none !important; }
}
@media (max-width: 999px) {
  .site-header .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 479px) { .header-cta .btn--quote-outline { display: none; } }


/* ==========================================================================
   "Get Free Quote" popup
   ========================================================================== */
.qm-open, .qm-open body { overflow: hidden; }
.qm { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.qm[hidden] { display: none; }
.qm-backdrop { position: absolute; inset: 0; background: rgba(7, 18, 54, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s var(--ease); }
.qm-dialog { position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; background: #fff; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(7, 18, 54, .6); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.qm.is-open .qm-backdrop { opacity: 1; }
.qm.is-open .qm-dialog { opacity: 1; transform: none; }
@media (min-width: 820px) { .qm-dialog { grid-template-columns: .85fr 1.15fr; overflow: hidden; } .qm-main { overflow: auto; max-height: calc(100vh - 32px); } }
.qm-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s; }
.qm-close:hover { background: var(--blue-100); }
.qm-side { display: none; position: relative; color: #dfe8ff; padding: 32px 28px; background: linear-gradient(160deg, rgba(9,34,110,.95), rgba(22,80,199,.88) 60%, rgba(26,148,71,.82)), url("../img/hero/hero-home.jpg") center / cover; }
@media (min-width: 820px) { .qm-side { display: flex; flex-direction: column; } }
.qm-logo { height: 34px; width: auto; align-self: flex-start; }
.qm-side h3 { color: #fff; font-size: 1.45rem; margin: 26px 0 16px; }
.qm-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.qm-side li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #fff; }
.qm-side li svg { width: 20px; height: 20px; flex: none; color: #86efac; margin-top: 1px; }
.qm-rating { margin: auto 0 0; padding-top: 24px; font-size: .86rem; color: #fff; }
.qm-rating .stars { color: var(--sun); letter-spacing: 2px; }
.qm-main { padding: 28px 22px 24px; }
@media (min-width: 640px) { .qm-main { padding: 32px 30px 26px; } }
.qm-main h2 { font-size: 1.4rem; margin: 0 40px 4px 0; }
.qm-main .form-sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.qm-main .f { margin-bottom: 12px; }
@media (max-width: 559px) {
  .qm { padding: 0; place-items: end stretch; }
  .qm-dialog { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) { .qm-dialog, .qm-backdrop { transition: none; } }

/* Top bar: tagline only (contact links removed) */
.topbar-inner { justify-content: center; }
.topbar-tag { display: inline-flex !important; text-align: center; }


/* Cities dropdown heading */
.dd-heading { display: flex; align-items: center; gap: 6px; margin: 4px 12px 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }
.dd-heading svg { width: 14px; height: 14px; }

/* Only one dropdown at a time: a clicked-open menu suppresses hover menus elsewhere */
.nav-dd:has(.dd.open) .dd:not(.open) .dd-menu { opacity: 0 !important; visibility: hidden !important; }


/* Footer: round social buttons + 5-column landing footer */
.site-footer .socials { gap: 12px; margin-top: 4px; }
.site-footer .socials a { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; transition: background .25s, transform .25s; }
.site-footer .socials a:hover { background: var(--blue-600); transform: translateY(-2px); }
.site-footer .socials svg { width: 19px; height: 19px; }
@media (min-width: 1100px) { .footer-grid--5 { grid-template-columns: 1.3fr .9fr .9fr .9fr 1.2fr; } }

/* ==========================================================================
   Responsive hardening (audited at 320 / 375 / 414 / 768 / 1024 / 1280 px)
   ========================================================================== */
/* Grid children may shrink below their content width (prevents sideways scroll on small phones) */
.lp-grid, .hero-grid, .calc-grid, .split, .consult-grid, .subsidy-grid, .emi-wrap, .app-wrap,
.bv-grid, .bv-journey, .cta-grid, .footer-grid, .grid { min-width: 0; }
.lp-grid > *, .hero-grid > *, .calc-grid > *, .split > *, .consult-grid > *, .subsidy-grid > *,
.emi-wrap > *, .app-wrap > *, .bv-grid > *, .bv-journey > *, .cta-grid > *, .footer-grid > *, .grid > * { min-width: 0; }
h1, h2, h3, .lead, .hero-lead { overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }

/* Subsidy table fits narrow screens */
@media (max-width: 480px) {
  .subsidy-table th, .subsidy-table td { padding: 11px 10px; font-size: .84rem; }
  .subsidy-table th { font-size: .74rem; letter-spacing: .03em; }
  .subsidy-max strong { font-size: 1.35rem; }
}

/* Very small phones (≤ 360px): compact header and hero */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .logo img { height: 32px; }
  .header-inner { gap: 8px; }
  .header-cta { gap: 6px; }
  .user-btn { height: 40px; }
  .user-initials { width: 30px; height: 30px; }
  .menu-toggle { width: 40px; height: 40px; }
  .lp-hero h1, .hero h1, .page-hero h1 { font-size: 1.8rem; }
  .lp-badges { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-badges div { padding: 10px; }
  .lp-badges strong { font-size: 1rem; }
  .form-card, .calc-card, .emi-card { padding: 20px 14px; }
  .bill-pills { grid-template-columns: 1fr 1fr; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs .op { display: none; }
}

/* Readable minimum text sizes */
.footer-tagline { font-size: .74rem; }
.avatars span { font-size: .74rem; }
.size-opts small { font-size: .74rem; }
.form-trust, .form-consent { font-size: .75rem; }

/* Tablets: comfortable two-column layouts and touch targets */
@media (min-width: 640px) and (max-width: 959px) {
  .lp-grid { gap: 32px; }
  .lp-badges { max-width: none; }
}
@media (hover: none) {
  .dd-item, .mobile-nav a, .footer-grid a { min-height: 40px; }
  .site-footer ul li a { display: inline-block; padding: 4px 0; }
}


/* ==========================================================================
   Imagery: frames, zoom, parallax, gallery, lightbox  (photos live in assets/img/)
   ========================================================================== */
/* Rounded image frames with a soft gradient sheen + badge */
.img-frame { position: relative; isolation: isolate; }
.img-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(10,29,86,.28)); pointer-events: none; }
.img-badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--navy); font-size: .8rem; font-weight: 600; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.img-badge svg { width: 16px; height: 16px; color: #f29a00; }

/* Image reveal: photos settle from a gentle zoom as they scroll into view, then zoom slightly on hover */
.split-img img, .journey-img img, .team-img img, .why-img img, .calc-visual img { transition: transform 1.4s var(--ease); }
.split-img.reveal img, .team-card.reveal .team-img img, .journey .card.reveal .journey-img img { transform: scale(1.12); }
.split-img.reveal.is-in img, .team-card.reveal.is-in .team-img img, .journey .card.reveal.is-in .journey-img img { transform: scale(1); }
.split-img.reveal.is-in:hover img, .team-card.is-in:hover .team-img img, .journey .card.is-in:hover .journey-img img { transform: scale(1.05); }
.split-img { border-radius: 24px; }

/* Journey steps with photos */
.journey .card { overflow: hidden; display: flex; flex-direction: column; }
.journey-img { margin: -22px -20px 14px; aspect-ratio: 3 / 2; overflow: hidden; position: relative; background: var(--blue-50); }
.journey-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,29,86,0) 55%, rgba(10,29,86,.35)); }
.journey-img img { width: 100%; height: 100%; object-fit: cover; }
.journey .card::before { position: relative; z-index: 1; margin-top: -40px; background: #fff; align-self: flex-start; padding: 2px 10px; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 1.4rem; }
.journey .card .tag { margin-top: auto; align-self: flex-start; }

/* Team cards */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 20px 22px 24px; }
.team-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); background: var(--green-50); padding: 4px 10px; border-radius: 99px; margin-bottom: 10px; }
.team-body h3 { margin-bottom: 6px; }
.team-body p { margin: 0; color: var(--muted); font-size: .94rem; }

/* CTA / promo with photo */
.promo--img { background: linear-gradient(110deg, rgba(9,34,110,.95) 0%, rgba(22,80,199,.86) 55%, rgba(22,80,199,.55) 100%), var(--promo-img) center / cover no-repeat; }
.promo--img { background-position: 0 0, center calc(50% + var(--py, 0px)); }

/* ---------- Premium project gallery ---------- */
.gallery { display: grid; gap: 18px; grid-template-columns: 1fr; grid-auto-rows: 280px; grid-auto-flow: dense; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 20px; }
  .gc--feature { grid-column: span 2; grid-row: span 2; } .gc--wide { grid-column: span 2; } .gc--tall { grid-row: span 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .gc--feature, .gc--wide { grid-column: span 2; } }
.gallery-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; }
.gallery-card.is-hidden { display: none; }
.gc-link { position: absolute; inset: 0; display: block; color: #fff; }
.gc-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.gc-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,54,0) 35%, rgba(7,18,54,.55) 65%, rgba(7,18,54,.92) 100%); transition: opacity .5s; }
.gallery-card:hover .gc-link img, .gc-link:focus-visible img { transform: scale(1.08); filter: saturate(1.1); }
.gc-type { position: absolute; z-index: 2; left: 16px; top: 16px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.gc-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.gc-loc { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #c9d8ff; }
.gc-loc svg { width: 15px; height: 15px; }
.gc-title { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.2; color: #fff; }
.gc--feature .gc-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.gc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: #dfe8ff; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.gc-meta b { color: #86efac; }
.gc-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: #fff; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.gc-cta svg { width: 16px; height: 16px; transition: transform .3s; }
.gallery-card:hover .gc-meta, .gallery-card:hover .gc-cta, .gc-link:focus-visible .gc-meta, .gc-link:focus-visible .gc-cta { max-height: 60px; opacity: 1; }
.gallery-card:hover .gc-cta svg { transform: translateX(4px); }
.gc--feature .gc-meta, .gc--feature .gc-cta { max-height: 60px; opacity: 1; }
@media (hover: none) { .gc-meta, .gc-cta { max-height: 60px; opacity: 1; } }
.gc-zoom { position: absolute; z-index: 3; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.gc-zoom svg { width: 18px; height: 18px; }
.gallery-card:hover .gc-zoom, .gc-zoom:focus-visible { opacity: 1; transform: none; }
.gc-zoom:hover { background: #fff; }
@media (hover: none) { .gc-zoom { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 320; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px 16px; background: rgba(5,12,38,.9); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transform: scale(.97); transition: transform .3s var(--ease); }
.lightbox.is-open .lb-figure img { transform: none; }
.lb-figure figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; color: #dfe8ff; font-size: .95rem; text-align: center; }
.lb-figure figcaption a { display: inline-flex; align-items: center; gap: 6px; color: #86efac; font-weight: 600; }
.lb-figure figcaption a svg { width: 16px; height: 16px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.7rem; cursor: pointer; }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.25); }
.lb-nav svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: 18px; } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* ---------- Parallax (desktop only; driven by --py from main.js) ---------- */
@media (min-width: 900px) {
  .lp-hero { background-position: 0 0, center calc(50% + var(--py, 0px)); }
  .hero-photo { top: -50px; bottom: -50px; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
  .page-hero::before { top: -50px; bottom: -50px; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .split-img.reveal img, .team-card.reveal .team-img img, .journey .card.reveal .journey-img img { transform: none !important; }
  .hero-photo, .page-hero::before { transform: none !important; }
}

/* ---------- Project details popup (assets/js/project-popup.js) ---------- */
.pm .pm-dialog { width: min(960px, 100%); display: block; overflow: auto; }
.pm-hero { position: relative; aspect-ratio: 16 / 7; min-height: 220px; overflow: hidden; background: var(--navy); }
.pm-hero img { width: 100%; height: 100%; object-fit: cover; animation: pmZoom 1.2s var(--ease) both; }
@keyframes pmZoom { from { transform: scale(1.08); } to { transform: none; } }
.pm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,54,0) 35%, rgba(7,18,54,.85)); pointer-events: none; }
.pm-hero-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px 26px 66px; color: #fff; }
.pm-type { display: inline-block; background: rgba(255,255,255,.92); color: var(--navy); font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.pm-hero-text h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin: 10px 0 4px; }
.pm-loc { display: flex; align-items: center; gap: 6px; margin: 0; color: #c9d8ff; font-size: .92rem; }
.pm-loc svg { width: 16px; height: 16px; }
.pm .pm-close { background: rgba(255,255,255,.92); }
.pm-nav { position: absolute; z-index: 2; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.pm-nav:hover { background: #fff; }
.pm-nav svg { width: 20px; height: 20px; }
.pm-prev { left: 12px; } .pm-next { left: 58px; }
.pm-content { padding: 22px 20px 24px; }
@media (min-width: 640px) { .pm-content { padding: 26px 30px 30px; } }
.pm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -48px; position: relative; z-index: 2; }
@media (min-width: 640px) { .pm-stats { grid-template-columns: repeat(4, 1fr); } }
.pm-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.pm-stats strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; }
.pm-stats span { font-size: .78rem; color: var(--muted); }
.pm-summary { font-size: 1rem; margin: 18px 0; }
.pm-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .pm-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.pm-story h3 { font-size: 1rem; margin: 0 0 4px; color: var(--navy); }
.pm-story p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.pm-specs { width: 100%; border-collapse: collapse; background: var(--bg-soft); border-radius: 14px; overflow: hidden; font-size: .88rem; }
.pm-specs td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-specs tr:last-child td { border-bottom: 0; }
.pm-specs td:first-child { color: var(--muted); width: 42%; }
.pm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pm-cta p { margin: 0; flex: 1 1 260px; font-size: .93rem; }
.pm-cta .btn svg { width: 18px; height: 18px; }
.pm-count { font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .pm-hero { aspect-ratio: 4 / 3; } .pm-cta .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .pm-hero img { animation: none; } }

/* "Home" link back to the starting page (index.html), first item in the top menu */
a.nav-home { text-decoration: none; }
a.nav-home svg { width: 17px; height: 17px; }
a.nav-home:hover { color: var(--blue-600); background: var(--blue-50); }
/* "Blog" link, last item in the top menu (highlighted on blog.html and every blog-*.html article) */
a.nav-blog:hover, a.nav-blog.is-active { color: var(--blue-600); background: var(--blue-50); }
.mobile-nav .m-blog { border-bottom: 0; padding-top: 14px; }
.mobile-nav .m-blog.is-active { color: var(--blue-600); }
.dd-btn { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1179px) {
  .nav-dd { gap: 0; margin-right: 4px; }
  .dd-btn { padding: 10px 8px; font-size: .9rem; }
}

/* ---------- PM Surya Ghar subsidy hero + countdown (subsidy.html) ---------- */
.sub-hero { position: relative; overflow: hidden; color: #fff; padding: 40px 0 48px; background: var(--navy); isolation: isolate; }
.sub-hero::before { content: ""; position: absolute; inset: -40px 0; z-index: -2; background: var(--sh-img) center 35% / cover no-repeat; transform: translateY(var(--py, 0)); animation: subZoom 18s ease-out both; }
.sub-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,20,67,.88) 0%, rgba(10,29,86,.7) 45%, rgba(10,29,86,.25) 100%), linear-gradient(0deg, rgba(7,20,67,.55), transparent 40%); }
@keyframes subZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.sub-hero .crumbs { color: #b9c7ec; } .sub-hero .crumbs a { color: #fff; } .sub-hero .crumbs span::before { color: #7f93c9; }
.sub-hero-grid { display: grid; gap: 28px; align-items: end; }
.sub-hero-eyebrow { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(248,180,0,.18); border: 1px solid rgba(248,180,0,.5); color: #ffd666; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.sub-hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.05; margin-bottom: .3em; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.sub-amt { color: var(--sun); }
.sub-hero p { color: #dbe4ff; font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 600px; }
.sub-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.sub-unlock { background: #fff; color: var(--navy); border-radius: 12px; min-height: 58px; padding: 0 28px; font-size: 1rem; box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); }
.sub-unlock svg { transition: transform .25s var(--ease); }
.sub-unlock:hover { transform: translateY(-2px); background: #fffbea; }
.sub-unlock:hover svg { transform: translateX(4px); }
.sub-unlock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(248,180,0,.35) 50%, transparent 70%); transform: translateX(-120%); animation: subShine 3.6s ease-in-out 1.2s infinite; }
@keyframes subShine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.sub-calc-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.sub-calc-link svg { width: 18px; height: 18px; }
.sub-trust { list-style: none; margin: 32px 0 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 0; border-radius: 12px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); width: fit-content; max-width: 100%; }
.sub-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; padding: 0 16px; }
.sub-trust li + li { border-left: 1px solid rgba(255,255,255,.3); }
.sub-trust svg { width: 18px; height: 18px; color: var(--sun); }

.sub-timer { background: #fff; color: var(--body); border-radius: 18px; padding: 20px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); text-align: center; }
.sub-timer h2 { font-size: 1.15rem; margin: 0 0 10px; padding: 12px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); }
.sub-hero .sub-timer-date { margin: 0 0 18px; max-width: none; padding: 10px; border-radius: 10px; background: var(--sun-50); font-size: .9rem; color: var(--navy); }
.sub-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sub-ring { position: relative; display: grid; justify-items: center; }
.sub-ring svg { width: 100%; max-width: 92px; aspect-ratio: 1; transform: rotate(-90deg); }
.sub-ring circle { fill: none; stroke-width: 5; }
.sub-ring .trk { stroke: var(--line); }
.sub-ring .arc { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.sub-ring[data-unit="hours"] .arc { stroke: var(--green-500); }
.sub-ring[data-unit="mins"] .arc { stroke: var(--sun); }
.sub-ring strong { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 92px; margin: 0 auto; display: grid; place-items: center; font-family: var(--font-head); font-size: clamp(1.4rem, 5vw, 1.9rem); color: var(--navy); font-variant-numeric: tabular-nums; }
.sub-ring.tick strong { animation: subTick .5s var(--ease); }
@keyframes subTick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.sub-ring span { margin-top: 6px; font-weight: 600; color: var(--navy); font-size: .9rem; }
.sub-timer-cta { margin-top: 18px; border-radius: 12px; }

@media (min-width: 900px) {
  .sub-hero { padding: 64px 0 72px; }
  .sub-hero-grid { grid-template-columns: 1fr 400px; gap: 48px; }
  .sub-timer { padding: 24px; }
}
@media (max-width: 639px) {
  .sub-trust { flex-direction: column; gap: 8px; }
  .sub-trust li { padding: 0; }
  .sub-trust li + li { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .sub-hero::before, .sub-unlock::after, .sub-ring.tick strong { animation: none; } }

/* ---------- EMI section: dark navy theme + "Talk to our expert" card (index.html #emi) ---------- */
.emi-dark { color: #c9d5f2; background: radial-gradient(900px 420px at 85% 10%, rgba(37,99,235,.22), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(34,163,82,.14), transparent 60%), linear-gradient(160deg, #0c1a4d 0%, #0a1438 55%, #070f2b 100%); }
.emi-dark h2 { color: #fff; }
.emi-dark .emi-hl { background: linear-gradient(90deg, #a5c4ff, #dfe9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emi-dark .emi-lead { color: #c9d5f2; font-size: 1.08rem; }
.emi-dark .checklist li { color: #e3eaff; }
.emi-dark .checklist svg { color: #4ade80; }

.emi-expert { display: flex; align-items: center; gap: 18px; margin-top: 28px; max-width: 520px; padding: 14px 22px 14px 14px; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(110deg, #e9f0ff 0%, #c9d9ff 100%); color: var(--navy); box-shadow: 0 20px 44px -22px rgba(0,0,0,.7); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.emi-expert:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -22px rgba(0,0,0,.8); }
.emi-expert-img { flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #fff 0%, #dbe6ff 70%); box-shadow: 0 0 0 8px rgba(255,255,255,.45); }
.emi-expert-img img { width: 100%; height: 100%; object-fit: cover; }
.emi-expert-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.emi-expert-txt strong { font-family: var(--font-head); font-size: 1.2rem; }
.emi-expert-txt > span { font-size: .92rem; color: #33416b; }
.emi-expert-txt em { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--blue-600); }
.emi-expert-txt em svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.emi-expert:hover em svg { transform: translateX(4px); }
@media (max-width: 479px) { .emi-expert { gap: 14px; padding-right: 14px; } .emi-expert-img { width: 76px; height: 76px; } }

.emi-dark .emi-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.emi-dark .opt-label { color: #fff; font-size: .95rem; }
.emi-dark .size-opts span, .emi-dark .tenure-opts span { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #fff; }
.emi-dark .size-opts strong { color: #fff; }
.emi-dark .size-opts small { color: #aab8dc; }
.emi-dark .size-opts label:hover span, .emi-dark .tenure-opts label:hover span { border-color: rgba(255,255,255,.3); }
.emi-dark .size-opts input:checked + span, .emi-dark .tenure-opts input:checked + span { border-color: #60a5fa; background: rgba(37,99,235,.18); box-shadow: 0 0 0 1px #60a5fa inset; }
.emi-dark .size-opts input:checked + span strong, .emi-dark .tenure-opts input:checked + span { color: #93c5fd; }
.emi-dark .vs .save, .emi-dark .vs .emi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.emi-dark .vs span { color: #c9d5f2; }
.emi-dark .vs .save strong { color: #4ade80; }
.emi-dark .vs .emi strong { color: #fff; }
.emi-dark .vs .op { color: #7f93c9; }
.emi-dark .emi-verdict { background: rgba(34,163,82,.15); border: 1px solid rgba(74,222,128,.35); }
.emi-dark .calc-note { color: #8e9fc9; }

/* ---------- PM Surya Ghar scheme achievements (subsidy.html #achievements) ---------- */
.sch-section { padding-bottom: 40px; }
.sch-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sch-grid { grid-template-columns: 1fr 1fr; } .sch-c1, .sch-c5 { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .sch-grid { grid-template-columns: repeat(12, 1fr); gap: 22px; }
  .sch-c1, .sch-c2, .sch-c3 { grid-column: span 4; }
  .sch-c4 { grid-column: span 5; } .sch-c5 { grid-column: span 7; }
}
.sch-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 170px; padding: 24px 22px; border-radius: 20px;
  border: 1px solid rgba(37,99,235,.08); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sch-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -26px rgba(22,80,199,.45); }
.sch-c1 { background: linear-gradient(120deg, #f4f0ff 0%, #e9efff 100%); }
.sch-c2 { background: linear-gradient(120deg, #fff8ef 0%, #eef3ff 100%); }
.sch-c3 { background: linear-gradient(120deg, #f6f8ff 0%, #eef4ff 100%); }
.sch-c4 { background: linear-gradient(120deg, #e4efff 0%, #f1f6ff 100%); }
.sch-c5 { background: linear-gradient(110deg, #e6f1ff 0%, #f1f6ff 55%, #eef7f1 100%); }
.sch-txt { position: relative; z-index: 1; min-width: 0; padding-right: 72px; }
.sch-c5 .sch-txt { padding-right: 120px; }
.sch-txt strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 2.7rem); color: var(--navy); line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sch-txt > span { display: block; margin-top: 10px; font-size: clamp(1rem, 1.8vw, 1.2rem); color: #3b4a72; }

/* Glossy "3D" icon art */
.sch-art { position: absolute; right: 12px; top: 50%; margin-top: -56px; flex: none; width: 112px; height: 112px; display: grid; place-items: center; animation: schFloat 5s ease-in-out infinite; }
.sch-card:nth-child(2n) .sch-art { animation-delay: -2.5s; }
.sch-art::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.45), transparent 70%); filter: blur(10px); }
.sch-art > svg { position: relative; width: 92px; height: 92px; color: #3b82f6; filter: drop-shadow(0 10px 14px rgba(37,99,235,.35)) drop-shadow(0 0 1px #1d4ed8); }
.sch-art::after { content: "\2726"; position: absolute; top: 2px; right: 4px; color: #60a5fa; font-size: 14px; animation: schTwinkle 2.4s ease-in-out infinite; }
.sch-badge { position: absolute; right: 6px; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 6px 14px -4px rgba(29,78,216,.7); }
.sch-badge svg { width: 16px; height: 16px; color: #fff; }
.sch-art--house { width: 150px; height: 130px; margin-top: -65px; right: 24px; }
.sch-art--house > svg { width: 104px; height: 104px; }
.sch-orbit { position: absolute; left: 0; right: 0; top: 52%; height: 44px; border: 3px solid rgba(96,165,250,.55); border-radius: 50%; transform: rotate(-12deg); box-shadow: 0 0 18px rgba(96,165,250,.45); }
@keyframes schFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes schTwinkle { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 479px) { .sch-txt { padding-right: 60px; } .sch-c5 .sch-txt { padding-right: 90px; } .sch-art { width: 84px; height: 84px; margin-top: -42px; } .sch-art > svg { width: 68px; height: 68px; } .sch-art--house { width: 110px; height: 96px; margin-top: -48px; right: 8px; } .sch-art--house > svg { width: 76px; height: 76px; } }

.sch-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.sch-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 24px 26px; border-radius: 20px;
  background: linear-gradient(110deg, #eef4ff, #f6f9ff); border: 1px solid var(--blue-100); }
.sch-cta h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: 0 0 6px; }
.sch-cta p { margin: 0; color: var(--body); max-width: 640px; }
.sch-cta-btn { background: var(--navy); border-radius: 12px; }
.sch-cta-btn:hover { background: var(--blue-700); }
@media (prefers-reduced-motion: reduce) { .sch-art, .sch-art::after { animation: none; } }

/* ---------- Contact hero: photo card + contact bar + consultation form (contact.html) ---------- */
.ct-hero { padding: 16px 0 8px; }
.ct-card { position: relative; display: grid; gap: 0; border-radius: 24px; overflow: hidden; background: var(--navy); isolation: isolate; box-shadow: var(--shadow-lg); }
.ct-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ct-img) center / cover no-repeat; animation: ctZoom 16s ease-out both; }
.ct-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,29,86,.55) 0%, rgba(10,29,86,.25) 45%, rgba(7,20,67,.75) 100%); }
@keyframes ctZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.ct-copy { display: flex; flex-direction: column; padding: 28px 20px 22px; min-height: 420px; color: #fff; }
.ct-copy .crumbs { color: #c6d3f5; } .ct-copy .crumbs a { color: #fff; } .ct-copy .crumbs span::before { color: #9fb3e6; }
.ct-copy h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.08; max-width: 620px; margin-bottom: .45em; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.ct-hl { color: var(--sun); }
.ct-copy > p { color: #eef2ff; font-family: var(--font-head); font-weight: 500; font-size: clamp(1rem, 2vw, 1.2rem); text-shadow: 0 2px 12px rgba(0,0,0,.35); }

.ct-bar { margin-top: auto; display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ct-bar-item { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 24px; min-width: 0; transition: background .25s; }
.ct-bar-item + .ct-bar-item { border-left: 1px solid rgba(255,255,255,.25); }
.ct-bar-item:hover { background: rgba(255,255,255,.1); }
.ct-bar-item strong { font-family: var(--font-head); font-size: clamp(1.05rem, 2.6vw, 1.55rem); color: #fff; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ct-bar-item span { font-size: .88rem; color: #d3dcf5; }

.ct-form { background: #fff; padding: 26px 20px; }
.ct-form h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); margin: 0 0 6px; }
.ct-form .form-sub { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.ct-form .f { margin-bottom: 14px; }
.ct-form input:not([type=radio]) { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid #e2e8f3; border-radius: 12px; background: #fff; font-size: .98rem; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
.ct-form input:not([type=radio]):focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }
.ct-form input::placeholder { color: #7a86a3; }
.ct-form .f.has-error input:not([type=radio]) { border-color: var(--danger); }
.ct-bill-lbl { display: block; font-size: .9rem; color: var(--body); margin: 4px 0 10px; }
.ct-bills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ct-bills label { position: relative; }
.ct-bills input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ct-bills span { display: grid; place-items: center; min-height: 52px; padding: 8px 10px; text-align: center; border: 1.5px solid #e2e8f3; border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--navy); transition: all .2s; }
.ct-bills label:hover span { border-color: #b9c6e4; }
.ct-bills input:checked + span { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600) inset; }
.ct-bills input:focus-visible + span { outline: 3px solid var(--blue-500); }
.ct-submit-wrap { position: relative; margin-top: 22px; }
.ct-slots { position: absolute; right: 12px; top: -12px; z-index: 2; padding: 3px 10px; border-radius: 6px; background: #ffd75e; color: #6b4b00; font-size: .74rem; font-weight: 700; font-style: italic; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); animation: ctPulse 2.4s ease-in-out infinite; }
@keyframes ctPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ct-submit { border-radius: 12px; min-height: 58px; background: linear-gradient(90deg, #1b2fa3 0%, #0a1d56 55%, #081338 100%); box-shadow: 0 16px 30px -14px rgba(10,29,86,.8); }
.ct-submit:hover { transform: translateY(-2px); }
.ct-form .form-consent { margin-top: 12px; }

@media (min-width: 640px) {
  .ct-copy { padding: 40px 36px 28px; min-height: 480px; }
  .ct-form { padding: 32px 30px; }
}
@media (min-width: 1000px) {
  .ct-hero { padding: 24px 0 12px; }
  .ct-card { grid-template-columns: minmax(0, 1fr) 460px; align-items: stretch; }
  .ct-card::after { background: linear-gradient(90deg, rgba(10,29,86,.6) 0%, rgba(10,29,86,.25) 55%, rgba(10,29,86,.1) 100%), linear-gradient(0deg, rgba(7,20,67,.55), transparent 45%); }
  .ct-copy { padding: 48px 44px 32px; min-height: 640px; }
  .ct-form { margin: 24px 24px 24px 0; border-radius: 22px; padding: 34px 34px 26px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
}
@media (max-width: 479px) { .ct-bar { width: 100%; } .ct-bar-item { flex: 1 1 100%; } .ct-bar-item + .ct-bar-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); } }
@media (prefers-reduced-motion: reduce) { .ct-card::before, .ct-slots { animation: none; } }

/* ---------- Our offices: live map + office list (contact.html #offices) ---------- */
.off-section { background:
  linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, #fff 100%),
  linear-gradient(rgba(22,80,199,.05) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, rgba(22,80,199,.05) 1px, transparent 1px) 0 0 / 44px 44px, #fff; }
.off-section h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.off-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .off-grid { grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: stretch; } }

.off-map { position: relative; min-height: 340px; border-radius: 22px; overflow: hidden; background: var(--blue-50); border: 1px solid var(--line); box-shadow: var(--shadow); }
.off-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.off-map-tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .88rem; box-shadow: 0 10px 22px -10px rgba(10,29,86,.8); pointer-events: none; }
.off-map-tag svg { width: 16px; height: 16px; color: var(--sun); }
@media (min-width: 960px) { .off-map { min-height: 520px; } }

.off-list { display: grid; gap: 14px; align-content: start; max-height: 520px; overflow-y: auto; padding: 4px 10px 4px 4px; scrollbar-width: thin; scrollbar-color: #b8c4de transparent; }
.off-list::-webkit-scrollbar { width: 6px; } .off-list::-webkit-scrollbar-thumb { background: #b8c4de; border-radius: 6px; }
.off-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); cursor: pointer;
  transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.off-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.off-card.is-active { border-color: var(--blue-600); box-shadow: 0 0 0 1px var(--blue-600) inset, var(--shadow); }
.off-card:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.off-info { min-width: 0; }
.off-info h3 { font-size: 1.25rem; margin: 0 0 4px; color: var(--navy); }
.off-info p { margin: 0; color: var(--body); font-size: .95rem; line-height: 1.5; }
.off-info .off-soon { color: var(--muted); font-style: italic; }
.off-state { display: block; margin-top: 2px; color: var(--body); font-size: .95rem; }
.off-dir { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1.5px solid var(--navy); border-radius: 10px; color: var(--navy); font-weight: 700; font-size: .95rem; transition: background .2s, color .2s; white-space: nowrap; }
.off-dir svg { width: 20px; height: 20px; }
.off-dir:hover { background: var(--navy); color: #fff; }
@media (max-width: 559px) { .off-card { flex-direction: column; align-items: flex-start; } .off-dir { width: 100%; justify-content: center; } }
.off-list:has(> .off-card:only-child) { align-content: center; max-height: none; overflow: visible; }
.off-card:only-child { cursor: default; }

/* ---------- Rainbow Solar Advantage (index.html #advantage; alternates with #emi) ---------- */
.adv-wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .adv-wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }
.adv-section h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.adv-section .emi-lead { font-size: 1.15rem; color: #e3eaff; }

.adv-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (min-width: 640px) { .adv-compare { gap: 28px; } }
.adv-col { display: flex; flex-direction: column; padding: 0 14px 18px; border-radius: 18px; }
.adv-col--us { position: relative; background: linear-gradient(180deg, rgba(37,99,235,.08) 0%, rgba(37,99,235,.28) 100%); border: 1px solid rgba(96,165,250,.25);
  box-shadow: 0 30px 60px -30px rgba(37,99,235,.6); }
.adv-col--us::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, rgba(147,197,253,.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.adv-head span { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 14px; margin-top: -46px; }
.adv-panel { width: min(150px, 100%); height: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); animation: advFloat 6s ease-in-out infinite; }
.adv-col--them .adv-panel { animation-delay: -3s; opacity: .85; }
@keyframes advFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.adv-head b { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff; }
.adv-col--them .adv-head b { color: #c9d5f2; font-weight: 500; }
.adv-row span { display: flex; gap: 10px; align-items: flex-start; padding: 14px 4px; font-size: .95rem; line-height: 1.4; }
.adv-row + .adv-row span { border-top: 1px solid rgba(255,255,255,.12); }
.adv-col--us .adv-row span { color: #fff; }
.adv-col--them .adv-row span { color: #b9c5e6; }
.adv-row svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.adv-row svg.ok { color: #4ade80; }
.adv-row svg.no { color: #8e9fc9; }
.adv-compare.is-in .adv-col--us .adv-row { animation: advIn .6s var(--ease) both; }
.adv-compare.is-in .adv-col--us .adv-row:nth-child(3) { animation-delay: .1s; }
.adv-compare.is-in .adv-col--us .adv-row:nth-child(4) { animation-delay: .2s; }
.adv-compare.is-in .adv-col--us .adv-row:nth-child(5) { animation-delay: .3s; }
.adv-compare.is-in .adv-col--us .adv-row:nth-child(6) { animation-delay: .4s; }
@keyframes advIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.adv-section { padding-top: 96px; }
@media (max-width: 479px) { .adv-col { padding: 0 8px 12px; } .adv-row span { font-size: .84rem; gap: 6px; } .adv-head b { font-size: .92rem; } }
@media (prefers-reduced-motion: reduce) { .adv-panel, .adv-compare.is-in .adv-col--us .adv-row { animation: none; } }

/* ---------- Legal pages (privacy-policy.html, terms-and-conditions.html) ---------- */
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 600; color: var(--navy); }
.legal-meta svg { width: 15px; height: 15px; color: var(--green-500); }
.legal-wrap { display: grid; gap: 28px; align-items: start; }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.legal-toc h2 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .86rem; color: var(--body); text-decoration: none; line-height: 1.35; transition: background .2s, color .2s; }
.legal-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-weight: 600; color: var(--blue-600); min-width: 20px; }
.legal-toc a:hover, .legal-toc a.is-current { background: var(--blue-50); color: var(--navy); }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow); min-width: 0; }
.legal-body section { scroll-margin-top: 110px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-body section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin: 0 0 12px; }
.legal-body h2 .num { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); color: var(--blue-600); font-size: .85rem; }
.legal-body h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--navy); }
.legal-body p, .legal-body li { color: var(--body); line-height: 1.7; font-size: .95rem; }
.legal-body ul { padding-left: 1.2em; margin: 8px 0 12px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--green-500); }
.legal-body a { color: var(--blue-600); }
.legal-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #f1f9f4; border: 1px solid rgba(27,173,96,.25); margin: 14px 0; }
.legal-note svg { flex: none; width: 20px; height: 20px; color: var(--green-500); margin-top: 3px; }
.legal-note p { margin: 0; font-size: .9rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .88rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); line-height: 1.55; }
.legal-table th { background: #f7faff; color: var(--navy); font-weight: 600; }
.legal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-contact { display: grid; gap: 12px; margin-top: 14px; }
.legal-contact div { padding: 14px 16px; border-radius: 14px; background: #f7faff; border: 1px solid var(--line); font-size: .92rem; color: var(--body); line-height: 1.6; }
.legal-contact strong { display: block; color: var(--navy); margin-bottom: 2px; }
.legal-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), #1650c7); color: #fff; }
.legal-switch p { margin: 0; color: rgba(255,255,255,.85); font-size: .92rem; }
.legal-switch strong { color: #fff; }
@media (min-width: 600px) { .legal-contact { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .legal-wrap { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
  .legal-toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; }
}
@media (max-width: 999px) { .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media print { .legal-toc, .legal-switch { display: none; } .legal-body { box-shadow: none; border: 0; padding: 0; } }

/* ---------- Projects page: summary line + filter counts ---------- */
.pj-summary { margin: 0 0 16px; color: var(--body); font-size: .95rem; }
.pj-summary b { color: var(--navy); }
.chip-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--blue-50); color: var(--blue-600); font-size: .72rem; }
.chip.is-active .chip-n { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Refund & Warranty page: warranty cards + claim steps ---------- */
.wr-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.wr-card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.wr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wr-card h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.wr-card p { margin: 0; font-size: .9rem; color: var(--body); line-height: 1.6; }
.wr-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 14px; }
.wr-ic svg { width: 24px; height: 24px; }
.wr-years { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(2rem, 4vw, 2.6rem)/1 var(--font-head); color: var(--navy); }
.wr-years small { font: 600 .9rem var(--font-body); color: var(--muted); }
.wr-card--hero { background: linear-gradient(145deg, var(--navy) 0%, #1650c7 100%); border-color: transparent; color: #fff; }
.wr-card--hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(253,224,71,.45), rgba(253,224,71,0) 70%); }
.wr-card--hero .wr-ic { background: rgba(255,255,255,.14); color: #fde68a; }
.wr-card--hero .wr-years, .wr-card--hero h3 { color: #fff; }
.wr-card--hero .wr-years small, .wr-card--hero p { color: rgba(226,236,255,.85); }
.wr-steps { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.wr-steps li { position: relative; padding: 14px 16px 14px 60px; border-radius: 14px; background: #f7faff; border: 1px solid var(--line); counter-increment: step; }
.wr-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad-green); color: #fff; font-weight: 700; font-size: .85rem; }
.wr-steps strong { display: block; color: var(--navy); margin-bottom: 2px; }
.wr-steps span { color: var(--body); font-size: .92rem; line-height: 1.6; }
@media (min-width: 600px) { .wr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wr-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* Consultation form in the banner (About, Projects, policy pages) */
.lp-form .form-card { margin: 0; }

/* Home EMI card: approximate cost breakdown (replaces the assumptions note) */
.emi-cost { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.emi-cost-title { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.emi-cost-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: .9rem; }
.emi-cost-row strong { font-family: var(--font-head); font-weight: 600; }
.emi-cost-row .minus { color: var(--green-600); }
.emi-cost-net { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 9px; }
.emi-cost-net strong { font-size: 1.15rem; font-weight: 700; }
.emi-dark .emi-cost { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.emi-dark .emi-cost-title { color: #8e9fc9; }
.emi-dark .emi-cost-row { color: #c9d4f0; }
.emi-dark .emi-cost-row strong { color: #fff; }
.emi-dark .emi-cost-row .minus { color: #86efac; }
.emi-dark .emi-cost-net { border-top-color: rgba(255,255,255,.18); }

/* Monitoring app: "Coming soon" state */
.app-soon-wrap { position: relative; }
.app-soon-wrap .phone { filter: saturate(.75); opacity: .9; }
.app-soon-badge { position: absolute; z-index: 3; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); padding: 10px 22px; border-radius: 999px; background: var(--sun, #f8b400); color: var(--navy); font: 700 1rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 4px #fff, 0 14px 30px -8px rgba(10,29,86,.45); }
.soon-pill { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--sun-50, #fff6dc); color: #8a5a00; border: 1px solid rgba(248,180,0,.45); font-size: .68rem; letter-spacing: .1em; vertical-align: middle; }

/* ==========================================================================
   Dynamic Infinite Scrolling Marquee (Stats / Highlights)
   Reuses existing tokens & design language — matches reference images
   ========================================================================== */
.marquee-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
  /* Same dark navy gradient as .emi-dark for consistency */
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(34, 163, 82, .14), transparent 60%),
    linear-gradient(160deg, #0c1a4d 0%, #0a1438 55%, #070f2b 100%);
  color: #c9d5f2;
}

/* Masking edges for a smoother "fade" effect */
.marquee-section::before,
.marquee-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, #0a1438, transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, #0a1438, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* No stopping: linear, infinite */
  animation: scroll-left 35s linear infinite;
  will-change: transform;
  padding: 0.25rem 0;
}

/* Pause on hover is a nice touch (optional) */
.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  align-items: stretch;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move exactly the width of one group (which is 50% of the track) */
    transform: translateX(-50%);
  }
}

/* ---- Card Styles (matching .lp-badges / .auth-stats) ---- */
.marquee-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.marquee-card:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
}

.marquee-card strong {
  display: block;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.2;
  white-space: nowrap;
}

.marquee-card span {
  display: block;
  font-size: .78rem;
  color: #c9d6f5;
  margin-top: 0.25rem;
  white-space: nowrap;
}

/* ---- Special Badge Variant (like ₹100Cr+ / Google Rating) ---- */
.marquee-card--badge {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: rgba(10, 29, 86, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}
.marquee-card--badge .badge-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--sun, #f8b400);
  filter: drop-shadow(0 0 8px rgba(248, 180, 0, 0.5));
}
.marquee-card--badge strong {
  font-size: 1.4rem;
  font-weight: 800;
}
.marquee-card--badge small {
  font-size: 0.9rem;
  font-weight: 500;
  color: #c9d6f5;
  margin-left: 0.25rem;
}

/* ---- Rating Variant (inline, like "4.8/5 from 30+ customers") ---- */
.marquee-card--rating {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.marquee-card--rating .stars {
  color: var(--sun, #f8b400);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.marquee-card--rating strong {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .marquee-section {
    padding: 1.5rem 0;
  }
  .marquee-section::before,
  .marquee-section::after {
    width: 40px;
  }
  .marquee-card {
    padding: 1rem 1.25rem;
    min-width: 150px;
  }
  .marquee-card strong {
    font-size: 1.15rem;
  }
  .marquee-card--badge {
    padding: 0.8rem 1.25rem;
  }
  .marquee-card--badge strong {
    font-size: 1.2rem;
  }
  .marquee-card--rating {
    display: none;
  }
}

/* Accessibility: honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* Mobile hero stats - compact centered carousel */
@media (max-width: 767px) {
  .lp-badges {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 22px 0 0 !important;
    padding: 0 calc((100% - 74%) / 2) !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    box-sizing: border-box;
    overscroll-behavior-x: contain;
  }

  .lp-badges::-webkit-scrollbar {
    display: none;
  }

  .lp-badges > div {
    flex: 0 0 74% !important;
    width: 74% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 7px 12px !important;
    border-radius: 11px !important;
    box-sizing: border-box !important;
    scroll-snap-align: center;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 6px !important;

    background: rgba(12, 34, 72, .48) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .lp-badges strong {
    display: inline !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }

  .lp-badges span {
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }

  
@media (max-width: 767px) {
  .lp-badges {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lp-badges > div {
    flex: 0 0 74% !important;
    scroll-snap-align: center;
  }

  .lp-badges::-webkit-scrollbar {
    display: none;
  }
}

}


/* RAINBOW SOLAR MOBILE STATS CAROUSEL */

@media (max-width: 767px) {

  #solarStats.lp-badges {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: 20px 0 !important;
    padding: 6px 13% !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  #solarStats.lp-badges::-webkit-scrollbar {
    display: none;
  }

  #solarStats .solar-stat {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    height: 50px !important;
    min-height: 50px !important;
    padding: 8px 12px !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;

    border-radius: 12px !important;
    background: rgba(14, 34, 72, 0.55) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    scroll-snap-align: center;
  }

  #solarStats .solar-stat strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    white-space: nowrap;
  }

  #solarStats .solar-stat span {
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #fff !important;
    white-space: nowrap;
  }
}

/* Desktop: keep the original grid */
@media (min-width: 768px) {
  #solarStats .solar-stat {
    display: block;
  }
}

/* RAINBOW SOLAR - MOBILE TWO COLUMN CARDS */
@media screen and (max-width: 767px) {

  /* Section spacing */
  .why-section {
    padding: 45px 0 !important;
  }

  /* Two cards side by side */
  .why-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 20px !important;
    row-gap: 38px !important;
    align-items: start !important;
  }

  /* Remove oversized card design */
  .why-grid .why-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Compact square images */
  .why-grid .why-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 0.92 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
  }

  .why-grid .why-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Text area */
  .why-grid .why-body {
    display: block !important;
    padding: 0 !important;
    margin-top: 18px !important;
    background: transparent !important;
  }

  /* Remove floating icon */
  .why-grid .icon-tile {
    display: none !important;
  }

  /* Heading */
  .why-grid .why-body h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 9px !important;
    min-height: 46px !important;
  }

  /* Description */
  .why-grid .why-body p {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
  }
}


/* Mobile hero badges: value above label so longer values (e.g. "₹78,000 + ₹22,000") fit */
@media (max-width: 767px) {
  .lp-badges > div {
    flex-direction: column !important;
    gap: 2px !important;
    height: auto !important;
    min-height: 58px !important;
    padding: 8px 12px !important;
    text-align: center;
  }
  .lp-badges strong { font-size: 16px !important; }
  .lp-badges span { font-size: 11.5px !important; opacity: .9; }
}
