/* ==========================================================
   JR SOLAR SOLUTIONS — COMPLETE SHARED STYLESHEET

   Body classes:
     index.php     → home
     about.php     → about-page
     why-solar.php → why-solar-page
     services.php  → services-page
     subsidy.php   → subsidy-page
     gallery.php   → gallery-page
     contact.php   → contact-page
   ========================================================== */

:root {
  --navy: #0a2a6b;
  --deep: #061a45;
  --blue: #1857d6;
  --sun: #ffb400;
  --ink: #14213d;
  --muted: #586783;
  --pale: #f5f8ff;
  --body: 'DM Sans', sans-serif;
  --heading: 'Sora', sans-serif;
}

html[lang="ml"] {
  --body: 'Noto Sans Malayalam', 'DM Sans', sans-serif;
  --heading: 'Noto Sans Malayalam', 'Sora', sans-serif;
}

html[lang="ta"] {
  --body: 'Noto Sans Tamil', 'DM Sans', sans-serif;
  --heading: 'Noto Sans Tamil', 'Sora', sans-serif;
}

html[lang="hi"] {
  --body: 'Noto Sans Devanagari', 'DM Sans', sans-serif;
  --heading: 'Noto Sans Devanagari', 'Sora', sans-serif;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.7 var(--body);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
  line-height: 1.25;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.container,
.jr-container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px;
  background: #fff;
}

/* Shared section components */
.section {
  padding: 80px 0;
}

.alt,
.section.alt {
  background: var(--pale);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 40px;
  background: #fff3cf;
  color: #855900;
  font-size: .8rem;
  font-weight: 700;
}

.title,
.section-title {
  margin-bottom: 17px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
}

.muted {
  color: var(--muted);
}

.narrow {
  max-width: 760px;
}

.center {
  margin-inline: auto;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 0;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sun {
  background: var(--sun);
  color: var(--deep);
}

.btn-sun:hover {
  background: #edaa00;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* ==========================================================
   SHARED HEADER.PHP
   ========================================================== */

.jr-topbar {
  background: var(--deep);
  color: #d8e3fa;
  font-size: .87rem;
}

.jr-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 0;
}

.jr-topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.jr-topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jr-topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
}

.jr-topbar-social a:hover,
.jr-topbar-social a:focus-visible {
  color: var(--sun);
}

.jr-topbar-social svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jr-topbar-social a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.jr-topbar-social-dot {
  fill: currentColor;
  stroke: none;
}

.jr-topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.jr-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.jr-languages button {
  padding: 4px 10px;
  border: 1px solid #47608d;
  border-radius: 30px;
  background: transparent;
  color: #d8e3fa;
  font-size: .8rem;
  cursor: pointer;
}

.jr-languages button.active,
.jr-languages button:hover {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--deep);
  font-weight: 700;
}

.jr-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 3px 18px #061a4515;
}

.jr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.jr-logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.jr-menu {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.jr-menu a {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.jr-menu a:hover,
.jr-menu a.current {
  color: var(--blue);
}

.jr-menu .jr-quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 50px;
  background: var(--sun);
  color: var(--deep);
}

.jr-menu .jr-quote-button:hover {
  background: #edaa00;
  color: var(--deep);
}

.jr-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ==========================================================
   SHARED FOOTER.PHP
   ========================================================== */

.jr-site-footer {
  background: #152b40;
  color: #f2f6fa;
  text-align: left;
}

.jr-site-footer .jr-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 48px;
}

.jr-site-footer .jr-footer-grid > div {
  min-width: 0;
}

.jr-site-footer h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.15rem;
}

.jr-site-footer p {
  margin: 0 0 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.jr-site-footer a {
  color: #f2f6fa;
  text-decoration: none;
}

.jr-site-footer a:hover {
  color: #ffcb47;
}

.jr-site-footer .jr-footer-brand {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
}

.jr-site-footer .jr-footer-brand img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.jr-site-footer .jr-footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
}

.jr-site-footer .jr-footer-phone > span {
  flex: 0 0 auto;
  line-height: 1;
}

.jr-site-footer .jr-footer-phone > a {
  white-space: nowrap;
}

.jr-site-footer .jr-footer-links > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  line-height: 1.5;
}

.jr-site-footer .jr-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.jr-site-footer .jr-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
}

.jr-site-footer .jr-footer-social a:hover,
.jr-site-footer .jr-footer-social a:focus-visible {
  background: #ffcb47;
  border-color: #ffcb47;
  color: #152b40;
}

.jr-site-footer .jr-footer-social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jr-site-footer .jr-footer-social a:first-child svg {
  fill: currentColor;
  stroke: none;
}

.jr-site-footer .jr-social-dot {
  fill: currentColor;
  stroke: none;
}

.jr-site-footer .jr-copyright {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 18px;
  padding-bottom: 24px;
  color: #d5e1eb;
  font-size: .88rem;
  line-height: 1.6;
  text-align: center;
}

.jr-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 8px 22px #0003;
}

/* ==========================================================
   INTERIOR PAGE HERO
   ========================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 94px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 26%, #ffbb3050, transparent 26%),
    linear-gradient(115deg, #061a45, #0a2a6b 60%, #1857d6);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -105px;
  bottom: -185px;
  width: 450px;
  height: 450px;
  border: 2px solid #ffffff23;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.crumb {
  margin-bottom: 22px;
  color: #d1dfff;
  font-size: .9rem;
}

.crumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
}

.page-hero p {
  max-width: 700px;
  margin-bottom: 26px;
  color: #e0eaff;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-page .page-hero {
  padding: 92px 0;
}

.about-page .page-hero p {
  margin-bottom: 0;
}

.contact-page .page-hero,
.gallery-page .page-hero {
  padding: 86px 0 92px;
}

.why-solar-page .page-hero {
  background:
    radial-gradient(circle at 82% 28%, #ffbb3060, transparent 27%),
    linear-gradient(115deg, #061a45, #0a2a6b 60%, #1857d6);
}

/* ==========================================================
   ABOUT.PHP
   ========================================================== */

.about-page .intro-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: 55px;
}

.about-page .intro-grid p {
  color: var(--muted);
}

.about-page .intro-grid p:last-child {
  margin-bottom: 0;
}

.about-page .logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(145deg, #dceaff, #fff4d6);
  box-shadow: 0 18px 35px #0a2a6b18;
}

.about-page .logo-panel img {
  width: 100%;
  max-width: 300px;
  height: 280px;
  object-fit: contain;
}

.about-page .value-grid,
.about-page .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.about-page .value,
.about-page .services-grid .service-card {
  padding: 27px;
  border: 1px solid #e4eafa;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 22px #0a2a6b0c;
}

.about-page .value .icon,
.about-page .services-grid .service-card .icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: #eaf1ff;
  font-size: 1.65rem;
}

.about-page .value h3,
.about-page .services-grid .service-card h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.1rem;
}

.about-page .value p,
.about-page .services-grid .service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.about-page .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.about-page .step {
  padding: 12px 18px;
  border-left: 4px solid var(--sun);
  border-radius: 0 14px 14px 0;
  background: #fff;
}

.about-page .step-number {
  color: var(--blue);
  font-family: var(--heading);
  font-weight: 800;
}

.about-page .step h3 {
  margin: 9px 0 7px;
  color: var(--navy);
  font-size: 1.04rem;
}

.about-page .step p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.about-page .area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.about-page .areas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.about-page .areas span {
  padding: 9px 18px;
  border: 1px solid #cad9f7;
  border-radius: 35px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.about-page .contact-card {
  padding: 32px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
}

.about-page .contact-card h3 {
  font-size: 1.35rem;
}

.about-page .contact-card p {
  margin-bottom: 12px;
  color: #d8e3fa;
}

.about-page .contact-card strong {
  color: #fff;
}

.about-page .contact-card .btn {
  margin-top: 12px;
}

/* ==========================================================
   WHY-SOLAR.PHP
   ========================================================== */

.why-solar-page .intro-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 48px;
}

.why-solar-page .intro-grid p {
  color: var(--muted);
}

.why-solar-page .diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 330px;
  padding: 28px;
  border: 1px solid #dce6fa;
  border-radius: 24px;
  background: linear-gradient(145deg, #eaf1ff, #fff3cf);
  text-align: center;
}

.why-solar-page .diagram .sun-icon {
  font-size: 3rem;
  line-height: 1;
}

.why-solar-page .diagram .arrow {
  color: var(--blue);
  font-size: 1.4rem;
}

.why-solar-page .diagram .roof {
  font-size: 3.4rem;
  line-height: 1;
}

.why-solar-page .diagram strong {
  color: var(--navy);
  font-family: var(--heading);
}

.why-solar-page .diagram span:last-child {
  color: var(--muted);
  font-size: .94rem;
}

.why-solar-page .benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.why-solar-page .benefit {
  padding: 28px;
  border: 1px solid #e1e9fa;
  border-top: 4px solid var(--sun);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 25px #0a2a6b0d;
}

.why-solar-page .benefit .icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 17px;
  border-radius: 15px;
  background: #eaf1ff;
  font-size: 1.7rem;
}

.why-solar-page .benefit h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.1rem;
}

.why-solar-page .benefit p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.why-solar-page .points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 35px;
}

.why-solar-page .point {
  padding: 23px;
  border: 1px solid #dfe8fa;
  border-radius: 16px;
  background: #fff;
}

.why-solar-page .point h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.05rem;
}

.why-solar-page .point p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.why-solar-page .important {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: #fff7df;
  color: #584620;
}

/* ==========================================================
   SERVICES.PHP
   ========================================================== */

.services-page .service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.services-page .service-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid #e1e9fa;
  border-top: 4px solid var(--sun);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px #0a2a6b0e;
}

.services-page .service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #eaf1ff;
  font-size: 1.7rem;
}

.services-page .service-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.2rem;
}

.services-page .service-card p {
  color: var(--muted);
}

.services-page .service-card .text-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.services-page .brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.services-page .brand-list span {
  padding: 10px 18px;
  border: 1px solid #d6e2f8;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

/* ==========================================================
   SUBSIDY.PHP
   ========================================================== */

.subsidy-page .intro-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 45px;
}

.subsidy-page .intro-grid p {
  color: var(--muted);
}

.subsidy-page .highlight {
  padding: 30px;
  border: 1px solid #e0e9fa;
  border-radius: 22px;
  background: linear-gradient(145deg, #eaf1ff, #fff4d6);
}

.subsidy-page .highlight h3 {
  color: var(--navy);
  font-size: 1.3rem;
}

.subsidy-page .highlight p {
  color: var(--ink);
}

.subsidy-page .highlight p:last-child {
  margin-bottom: 0;
}

.subsidy-page .doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 22px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.subsidy-page .doc-grid li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid #e3eaf8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px #0a2a6b0b;
}

.subsidy-page .doc-grid .num {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}

.subsidy-page .doc-grid span:last-child {
  padding-top: 2px;
}

/* ==========================================================
   SHARED STEPS / NOTES / FAQ / LOCAL CONTACT / FINAL CTA
   ========================================================== */

.services-page .steps,
.subsidy-page .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.services-page .step,
.subsidy-page .step {
  padding: 24px;
  border: 1px solid #e1e9fa;
  border-radius: 16px;
  background: #fff;
}

.services-page .number,
.subsidy-page .step-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--deep);
  font-family: var(--heading);
  font-weight: 800;
}

.services-page .step h3,
.subsidy-page .step h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.02rem;
}

.services-page .step p,
.subsidy-page .step p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

.services-page .note,
.subsidy-page .note {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: #fff7df;
  color: #584520;
}

.faq-list {
  max-width: 850px;
  margin: 32px auto 0;
}

.faq-list details {
  margin-bottom: 12px;
  border: 1px solid #dfe8f8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 15px #0a2a6b09;
}

.faq-list summary {
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

.local-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 45px;
}

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.locations span {
  padding: 8px 16px;
  border-radius: 30px;
  background: #eaf1ff;
  color: var(--navy);
  font-weight: 700;
}

.contact-panel {
  padding: 32px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
}

.contact-panel h3 {
  font-size: 1.3rem;
}

.contact-panel p {
  margin-bottom: 12px;
  color: #d8e3fa;
}

.contact-panel .btn {
  margin-top: 12px;
}

.final-cta {
  padding: 64px 0;
  background: linear-gradient(110deg, #ffb400, #ffd66b);
  text-align: center;
}

.final-cta h2 {
  color: var(--deep);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.final-cta p {
  color: #4d3700;
}

.final-cta .btn {
  margin-top: 10px;
  background: var(--deep);
  color: #fff;
}

/* ==========================================================
   GALLERY.PHP
   ========================================================== */

.gallery-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.gallery-page .gallery-card {
  overflow: hidden;
  border: 1px solid #e1e9fa;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 25px #0a2a6b10;
}

.gallery-page .photo-button {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: linear-gradient(135deg, #dce9ff, #fff1c8);
  text-align: center;
  cursor: default;
}

.gallery-page .photo-button.has-photo {
  cursor: zoom-in;
}

.gallery-page .photo-button:focus-visible {
  outline-offset: -3px;
}

.gallery-page .photo-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.gallery-page .photo-button.has-photo:hover img {
  transform: scale(1.045);
}

.gallery-page .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 20px;
  color: var(--navy);
  font-weight: 700;
}

.gallery-page .placeholder .symbol {
  font-size: 2.6rem;
  line-height: 1;
}

.gallery-page .placeholder span:last-child {
  color: #52668d;
  font-size: .89rem;
  font-weight: 500;
}

.gallery-page .photo-button.has-photo .placeholder {
  display: none;
}

.gallery-page .gallery-caption {
  padding: 20px;
}

.gallery-page .gallery-caption h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.05rem;
}

.gallery-page .gallery-caption p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
}

.gallery-page .gallery-note {
  max-width: 820px;
  margin: 30px auto 0;
  padding: 16px 20px;
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: #fff8e5;
  color: #574927;
}

.gallery-page .info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 35px;
}

.gallery-page .info-card {
  padding: 26px;
  border: 1px solid #dce6f9;
  border-radius: 16px;
  background: #fff;
}

.gallery-page .info-card .icon {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.gallery-page .info-card h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.05rem;
}

.gallery-page .info-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 25px;
  background: rgba(3, 13, 36, .94);
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.lightbox p {
  margin: 14px 0 0;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  padding: 5px 13px;
  border: 1px solid #ffffff80;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================
   CONTACT.PHP
   ========================================================== */

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.contact-page .contact-card {
  padding: 28px;
  border: 1px solid #e1e9fa;
  border-top: 4px solid var(--sun);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 25px #0a2a6b10;
}

.contact-page .contact-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  border-radius: 14px;
  background: #eaf1ff;
  font-size: 1.6rem;
}

.contact-page .contact-card h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.1rem;
}

.contact-page .contact-card p {
  margin-bottom: 10px;
  color: var(--muted);
}

.contact-page .contact-card a:not(.btn) {
  color: var(--blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-page .contact-card a:not(.btn):hover {
  text-decoration: underline;
}

.contact-page .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 44px;
}

.contact-page .form-intro p {
  color: var(--muted);
}

.contact-page .form-intro .locations {
  margin: 22px 0 28px;
}

.contact-page .form-note {
  padding: 18px 20px;
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: #fff8e5;
  color: #584620;
}

.contact-page .enquiry-form {
  display: grid;
  gap: 17px;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px #0a2a6b17;
}

.contact-page .field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-weight: 700;
}

.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ccd8ed;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.contact-page .field textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-page .field input:focus,
.contact-page .field select:focus,
.contact-page .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.contact-page .enquiry-form .btn {
  width: 100%;
}

.contact-page .small-note {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.contact-page .small-note a {
  color: var(--blue);
  text-decoration: underline;
}

.contact-page .map-wrap {
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid #dce6f9;
  border-radius: 20px;
  background: #e9f0fe;
  box-shadow: 0 10px 26px #0a2a6b12;
}

.contact-page .map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 370px;
  padding: 35px;
  background:
    linear-gradient(45deg, #0a2a6b0b 25%, transparent 25%) 0 0 / 48px 48px,
    linear-gradient(-45deg, #0a2a6b0b 25%, transparent 25%) 0 0 / 48px 48px,
    #edf3ff;
  text-align: center;
}

.contact-page .map-placeholder .pin {
  font-size: 3rem;
}

.contact-page .map-placeholder h3 {
  margin: 10px 0;
  color: var(--navy);
}

.contact-page .map-placeholder p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.contact-page .map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.contact-page .map-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .93rem;
}

.contact-page .map-note a {
  color: var(--blue);
  font-weight: 700;
}

/* ==========================================================
   INDEX.PHP — HOME PAGE
   ========================================================== */

.home {
  --navy-dark: #061a45;
  --sun-dark: #e69d00;
  --bg: #f5f8ff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 42, 107, .12);
  --font-head: var(--heading);
  line-height: 1.65;
}

.home main h1,
.home main h2,
.home main h3 {
  line-height: 1.2;
}

.home main section {
  padding: 80px 0;
}

.home .tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #fff4d6;
  color: #9a6700;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home .title {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.home .lead {
  max-width: 640px;
  color: #5b6785;
}

.home .center .lead {
  margin-inline: auto;
}

.home main .btn {
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  font-size: 1rem;
  transition: .25s;
}

.home main .btn-sun {
  background: var(--sun);
  color: var(--navy-dark);
}

.home main .btn-sun:hover {
  background: var(--sun-dark);
}

.home main .btn-ghost {
  border-color: #fff;
  color: #fff;
}

.home main .btn-ghost:hover {
  background: #fff;
  color: var(--navy);
}

/* Home hero */
.home .hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 110px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 26, 69, .96), rgba(24, 87, 214, .88)),
    url("images/hero-solar.jpeg") center / cover;
}

.home .hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 180, 0, .55),
    rgba(255, 180, 0, 0) 70%
  );
}

.home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}

.home .hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 40px;
}

.home .badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid var(--sun);
  border-radius: 50px;
  background: rgba(255, 180, 0, .18);
  color: var(--sun);
  font-size: .85rem;
  font-weight: 700;
}

.home .hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.home .hero h1 span {
  color: var(--sun);
}

.home .hero p {
  max-width: 560px;
  margin-bottom: 30px;
  color: #dbe6ff;
  font-size: 1.1rem;
}

.home .hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.home .chips span {
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,.12);
  font-size: .88rem;
  font-weight: 500;
}

.home .hero-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  text-align: center;
}

.home .hero-card img {
  height: 150px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.home .hero-card strong {
  display: block;
  color: var(--sun);
  font-family: var(--font-head);
  font-size: 1.5rem;
}

/* Home About section */
.home .about {
  background: var(--bg);
}

.home .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.home .about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbe8ff, #fff4d6);
  box-shadow: var(--shadow);
}

.home .about-img img {
  max-height: 300px;
  object-fit: contain;
}

/* Home cards and Why section */
.home .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.home .card {
  padding: 30px 24px;
  border-top: 4px solid var(--sun);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.home .card:hover {
  transform: translateY(-6px);
}

.home .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eaf1ff;
  font-size: 1.7rem;
}

.home .card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.1rem;
}

.home .card p {
  color: #5b6785;
  font-size: .95rem;
}

.home .why {
  background: var(--navy);
  color: #fff;
}

.home .why .title {
  color: #fff;
}

.home .why .lead,
.home .why .card p {
  color: #c9d6f7;
}

.home .why .card {
  border-top-color: var(--sun);
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.home .why .card h3 {
  color: #fff;
}

.home .why .icon {
  background: rgba(255,255,255,.12);
}

/* Home steps */
.home .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.home .step {
  padding: 10px;
  text-align: center;
}

.home .step .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy-dark);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px #fff4d6;
}

.home .step h3 {
  color: var(--navy);
  font-size: 1.05rem;
}

/* Home documents and brands */
.home .docs {
  background: var(--bg);
}

.home .doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.home .doc-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(10,42,107,.07);
  font-weight: 500;
}

.home .doc-list b {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .85rem;
}

.home .brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.home .brands span {
  padding: 12px 24px;
  border: 2px solid #dbe5fb;
  border-radius: 12px;
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 700;
}

/* Home CTA */
.home .cta {
  padding: 60px 0;
  background: linear-gradient(120deg, var(--sun), #ffcf4d);
  text-align: center;
}

.home .cta h2 {
  margin-bottom: 10px;
  color: var(--navy-dark);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.home .cta p {
  margin-bottom: 24px;
  color: #4a3600;
}

.home .cta .btn {
  background: var(--navy);
  color: #fff;
}

.home .cta .btn:hover {
  background: var(--navy-dark);
}

/* Home contact form */
.home .contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  margin-top: 40px;
}

.home .info p {
  margin-bottom: 14px;
}

.home .info strong {
  display: block;
  color: var(--navy);
}

.home .info img {
  width: 100%;
  min-height: 200px;
  margin-top: 18px;
  border-radius: var(--radius);
  background: #e8eefc;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.home main form {
  display: grid;
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.home main input,
.home main textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d7e1f8;
  border-radius: 12px;
  font-size: 1rem;
}

.home main input:focus,
.home main textarea:focus {
  border-color: var(--blue);
}

/* ==========================================================
   RESPONSIVE LAYOUT
   ========================================================== */

@media (max-width: 1050px) {
  .jr-header-inner {
    position: relative;
  }

  .jr-menu-button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .jr-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 16px;
    background: #fff;
    box-shadow: 0 14px 20px #061a4520;
  }

  .jr-navigation.open {
    display: block;
  }

  .jr-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .jr-menu a {
    display: block;
    padding: 12px 14px;
  }

  .jr-menu .jr-quote-button {
    display: inline-flex;
    margin-top: 4px;
  }
}

@media (max-width: 960px) {
  .home .cards,
  .home .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home .hero .container,
  .home .grid-2,
  .home .contact-box {
    grid-template-columns: 1fr;
  }

  .home .hero-card {
    display: none;
  }

  .home .doc-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 950px) {
  .about-page .intro-grid,
  .about-page .area-grid {
    grid-template-columns: 1fr;
  }

  .about-page .value-grid,
  .about-page .services-grid,
  .about-page .steps,
  .services-page .steps,
  .subsidy-page .steps,
  .gallery-page .gallery-grid,
  .gallery-page .info-grid,
  .contact-page .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jr-site-footer .jr-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 58px 0;
  }

  .page-hero,
  .about-page .page-hero,
  .gallery-page .page-hero,
  .contact-page .page-hero {
    padding: 65px 0;
  }

  .about-page .value-grid,
  .about-page .services-grid,
  .about-page .steps,
  .about-page .area-grid,
  .why-solar-page .intro-grid,
  .why-solar-page .benefits,
  .why-solar-page .points,
  .services-page .service-grid,
  .services-page .steps,
  .subsidy-page .intro-grid,
  .subsidy-page .doc-grid,
  .subsidy-page .steps,
  .gallery-page .gallery-grid,
  .gallery-page .info-grid,
  .contact-page .contact-grid,
  .contact-page .form-grid,
  .local-grid,
  .home .cards,
  .home .steps {
    grid-template-columns: 1fr;
  }

  .contact-page .enquiry-form {
    padding: 22px;
  }

  .home main section {
    padding: 56px 0;
  }

  .jr-site-footer .jr-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .jr-site-footer .jr-copyright {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .jr-topbar-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .jr-topbar-contact {
    justify-content: center;
    gap: 14px;
  }

  .jr-languages {
    justify-content: center;
  }
}

/* ==========================================================
   SOLAR PAGE-LOADING SCREEN
   ========================================================== */

.solar-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, #1a56a4 0%, transparent 48%),
    linear-gradient(145deg, #061a45, #0a2a6b);
  color: #fff;
  text-align: center;
  transition: opacity .4s ease, visibility .4s ease;
}

.js-loading .solar-loader {
  display: grid;
}

.js-loaded .solar-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.solar-loader__scene {
  position: relative;
  width: 180px;
  height: 135px;
  margin-bottom: 6px;
}

.solar-loader__sun {
  position: absolute;
  top: 6px;
  left: 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffb400;
  box-shadow:
    0 0 18px #ffb400aa,
    0 0 45px #ffb40066;
  animation: solar-sunrise 1.5s ease-in-out infinite alternate;
}

.solar-loader__sun::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 3px dashed #ffd76a;
  border-radius: 50%;
  animation: solar-rays 7s linear infinite;
}

.solar-loader__panels {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  display: flex;
  gap: 4px;
  height: 59px;
  padding: 5px;
  border: 3px solid #b5d6ff;
  border-radius: 7px;
  background: #071e4d;
  transform: skewX(-12deg);
  box-shadow: 0 9px 0 #04112c;
}

.solar-loader__panels span {
  flex: 1;
  border: 1px solid #80b7ef;
  border-radius: 2px;
  background: linear-gradient(135deg, #1d70c8, #0a2a6b);
  animation: solar-panel-glow 1.5s ease-in-out infinite alternate;
}

.solar-loader__panels span:nth-child(2) {
  animation-delay: .2s;
}

.solar-loader__panels span:nth-child(3) {
  animation-delay: .4s;
}

.solar-loader__brand {
  font-family: var(--heading, sans-serif);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 800;
}

.solar-loader__message {
  margin: 0;
  color: #d8e7ff;
  font-size: .92rem;
}

.solar-loader__progress {
  overflow: hidden;
  width: min(210px, 70vw);
  height: 5px;
  margin-top: 5px;
  border-radius: 20px;
  background: #ffffff44;
}

.solar-loader__progress span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: #ffb400;
  animation: solar-progress 1.3s ease-in-out infinite;
}

@keyframes solar-sunrise {
  from { transform: translateY(13px); }
  to { transform: translateY(-9px); }
}

@keyframes solar-rays {
  to { transform: rotate(360deg); }
}

@keyframes solar-panel-glow {
  from { filter: brightness(.8); }
  to { filter: brightness(1.5); }
}

@keyframes solar-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}

@media (prefers-reduced-motion: reduce) {
  .solar-loader *,
  .solar-loader *::before,
  .solar-loader *::after {
    animation: none !important;
    transition: none !important;
  }
}