:root {
  --atg-blue: #0756b8;
  --atg-blue-dark: #063d82;
  --atg-blue-light: #2f8dff;
  --atg-grey: #f2f5f8;
  --atg-grey-strong: #6d7480;
  --atg-ink: #172033;
  --atg-white: #ffffff;
  --atg-border: #dfe5ec;
  --shadow-soft: 0 18px 50px rgba(18, 31, 52, 0.12);
  --shadow-card: 0 14px 35px rgba(18, 31, 52, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  color: var(--atg-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  background: var(--atg-white);
}

a {
  text-decoration: none;
}

.navbar {
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}

.navbar.scrolled {
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12) !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(42px, 5vw, 58px);
  object-fit: contain;
}

@media (max-width: 420px) {
  .brand-logo {
    height: 40px;
    max-width: 210px;
  }
}

.nav-link {
  color: var(--atg-ink);
  font-weight: 600;
  margin: 0 0.15rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--atg-blue) !important;
}

.nav-cta {
  color: var(--atg-white) !important;
  background: var(--atg-blue);
  border-radius: 8px;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--atg-blue-dark);
  color: var(--atg-white) !important;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--atg-white);
  background:
    linear-gradient(90deg, rgba(7, 30, 64, 0.96) 0%, rgba(7, 86, 184, 0.78) 52%, rgba(23, 32, 51, 0.5) 100%),
    url("../images/solar-home-hero.webp") center right / cover no-repeat;
}

.hero-section::after {
  position: absolute;
  right: 7%;
  bottom: 8%;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  content: "";
  border: 32px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.eyebrow,
.section-kicker {
  color: var(--atg-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker.light {
  color: #dcecff;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 670px;
  color: #e7eef7;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 1.3rem 0 2rem;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  padding: 0.85rem 1.3rem;
}

.btn-primary {
  background: var(--atg-blue);
  border-color: var(--atg-blue);
  box-shadow: 0 10px 24px rgba(7, 86, 184, 0.26);
}

.btn-primary:hover {
  background: var(--atg-blue-dark);
  border-color: var(--atg-blue-dark);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.metric-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--atg-ink);
}

.metric-card i {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--atg-blue);
  font-size: 1.45rem;
}

.metric-card span {
  display: block;
  color: var(--atg-grey-strong);
  font-size: 0.92rem;
  line-height: 1.4;
}

.bg-soft {
  background: var(--atg-grey);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.section-image {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 86, 184, 0.55), rgba(23, 32, 51, 0.32)),
    url("../images/solar-service-hero.webp") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.about-image {
  position: relative;
}

.about-image::before {
  position: absolute;
  inset: 10%;
  content: "";
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
}

.about-image::after {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 15%;
  content: "Solar + Borehole Engineering";
  color: var(--atg-white);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.info-tile,
.service-card,
.package-card,
.contact-form,
.why-grid > div {
  border: 1px solid var(--atg-border);
  border-radius: 8px;
  background: var(--atg-white);
}

.info-tile {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem;
  font-weight: 700;
}

.info-tile i {
  color: var(--atg-blue);
}

.service-card,
.package-card {
  padding: 1.35rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card-link {
  display: block;
  color: inherit;
}

.service-card-link:hover {
  color: inherit;
}

.service-card strong {
  display: inline-block;
  color: var(--atg-blue);
  margin-top: 1rem;
}

.service-card:hover,
.package-card:hover {
  border-color: rgba(7, 86, 184, 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.service-card i {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--atg-blue);
  font-size: 1.55rem;
}

.service-card h3,
.package-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.service-card p,
.package-card p {
  color: var(--atg-grey-strong);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-grid div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 82px;
  padding: 1rem;
  border: 1px solid var(--atg-border);
  border-radius: 8px;
  background: var(--atg-white);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(18, 31, 52, 0.06);
}

.product-grid i {
  color: var(--atg-blue);
  font-size: 1.25rem;
}

.product-card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--atg-border);
  border-radius: 8px;
  background: var(--atg-white);
  box-shadow: 0 12px 32px rgba(18, 31, 52, 0.08);
}

.product-card-media {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 150px;
  padding: 1.25rem;
  color: var(--atg-white);
  background:
    linear-gradient(135deg, rgba(7, 86, 184, 0.92), rgba(23, 32, 51, 0.9)),
    url("../images/solar-service-hero.webp") center / cover no-repeat;
}

.product-card-media i {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.85rem;
}

.product-card-media span {
  font-size: 1.25rem;
  font-weight: 900;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
}

.product-card-body h3 {
  font-size: 1.25rem;
  margin: 0;
}

.product-card-body p {
  color: var(--atg-grey-strong);
  margin: 0;
}

.product-card-body ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-card-body li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--atg-ink);
  line-height: 1.45;
}

.product-card-body li i {
  color: var(--atg-blue);
  margin-top: 0.15rem;
}

.product-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

.borehole-section {
  color: var(--atg-white);
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(7, 86, 184, 0.9)),
    linear-gradient(90deg, #5f6875, #0b4ea2);
}

.borehole-section p {
  color: #e7eef7;
}

.highlight-list {
  display: grid;
  gap: 0.85rem;
}

.highlight-list span {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.page-hero {
  --hero-image: url("../images/solar-home-hero.webp");
  padding: 9rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  color: var(--atg-white);
  background:
    linear-gradient(105deg, rgba(7, 30, 64, 0.98) 0%, rgba(7, 86, 184, 0.9) 48%, rgba(23, 32, 51, 0.3) 100%),
    var(--hero-image) center / cover no-repeat;
}

.page-hero::before {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    var(--hero-image) center / cover no-repeat;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.92;
}

.page-hero::after {
  position: absolute;
  right: 8%;
  bottom: -72px;
  width: 230px;
  height: 230px;
  content: "";
  border: 28px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

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

.page-hero--about {
  --hero-image: url("../images/solar-home-hero.webp");
}

.page-hero--services {
  --hero-image: url("../images/commercial-solar-hero.webp");
}

.page-hero--services::before {
  width: 58%;
  clip-path: polygon(10% 0, 100% 0, 88% 100%, 0 100%);
}

.page-hero--products {
  --hero-image: url("../images/solar-service-hero.webp");
}

.page-hero--products::before {
  width: 46%;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 18% 86%);
  border-left: 8px solid rgba(255, 255, 255, 0.22);
}

.page-hero--borehole {
  --hero-image: url("../images/solar-service-hero.webp");
  background:
    linear-gradient(120deg, rgba(23, 32, 51, 0.98) 0%, rgba(6, 61, 130, 0.92) 46%, rgba(7, 86, 184, 0.36) 100%),
    var(--hero-image) center / cover no-repeat;
}

.page-hero--borehole::before {
  width: 42%;
  border-radius: 999px 0 0 999px;
  clip-path: none;
}

.page-hero--projects {
  --hero-image: url("../images/commercial-solar-hero.webp");
}

.page-hero--projects::before {
  width: 54%;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 7% 100%, 0 54%);
}

.page-hero--contact {
  --hero-image: url("../images/solar-home-hero.webp");
  background:
    linear-gradient(100deg, rgba(7, 30, 64, 0.98) 0%, rgba(23, 32, 51, 0.86) 56%, rgba(7, 86, 184, 0.38) 100%),
    var(--hero-image) center / cover no-repeat;
}

.page-hero--contact::before {
  width: 48%;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 18% 100%);
}

.page-hero p {
  max-width: 760px;
  color: #e7eef7;
  font-size: 1.1rem;
}

.page-hero .breadcrumb {
  margin-bottom: 1rem;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: #dcecff;
  font-weight: 700;
}

.page-hero .breadcrumb-item.active {
  color: var(--atg-white);
}

.cta-band {
  color: var(--atg-white);
  background: var(--atg-blue);
}

.hero-visual-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.hero-visual-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 6px solid var(--atg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.highlight-list i {
  color: #7cd5ff;
}

.package-card span {
  display: inline-block;
  color: var(--atg-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.package-card strong {
  display: inline-block;
  color: var(--atg-blue);
  margin-top: 1.2rem;
}

.package-card.featured {
  color: var(--atg-white);
  background: var(--atg-blue);
  border-color: var(--atg-blue);
}

.package-card.featured p,
.package-card.featured span,
.package-card.featured strong {
  color: var(--atg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.why-grid > div {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  font-weight: 800;
}

.why-grid i {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--atg-blue);
}

.contact-info {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.contact-info p {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  font-weight: 700;
}

.contact-info i {
  color: var(--atg-blue);
}

.contact-form {
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-card);
}

.form-control,
.form-select {
  min-height: 50px;
  border-radius: 8px;
  border-color: var(--atg-border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--atg-blue);
  box-shadow: 0 0 0 0.2rem rgba(7, 86, 184, 0.14);
}

.form-alert {
  display: none;
  padding: 0.95rem;
  border-radius: 8px;
  font-weight: 700;
}

.form-alert.show {
  display: block;
}

.form-alert.success {
  color: #0f5132;
  background: #d1e7dd;
}

.form-alert.error {
  color: #842029;
  background: #f8d7da;
}

.footer {
  color: #dbe4ef;
  background: #111827;
}

.footer h3,
.footer h4 {
  color: var(--atg-white);
  font-size: 1rem;
}

.footer a {
  display: block;
  color: #dbe4ef;
  margin: 0.35rem 0;
}

.footer a:hover {
  color: var(--atg-blue-light);
}

.footer p {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aeb8c6;
  font-size: 0.92rem;
}

.footer-bottom a {
  display: inline;
  color: inherit;
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  z-index: 1000;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(18, 31, 52, 0.22);
}

.floating-whatsapp {
  right: 1rem;
  bottom: 1rem;
  color: var(--atg-white);
  background: #25d366;
  font-size: 1.55rem;
}

.back-to-top {
  right: 1rem;
  bottom: 4.8rem;
  color: var(--atg-white);
  background: var(--atg-blue);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: translateY(22px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-cta {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .hero-section .row {
    padding-top: 5rem !important;
  }

  .page-hero::before {
    width: 100%;
    clip-path: none;
    opacity: 0.22;
  }

  .product-grid,
  .why-grid,
  .hero-visual-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .product-grid,
  .why-grid,
  .product-card-grid,
  .hero-visual-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual-strip img {
    height: 180px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .section-image {
    min-height: 320px;
  }
}
