/* ==========================================================================
   SolarSys Greentech — interface enhancements (2026-11)
   Uses the theme's own CSS variables only. No brand colours introduced,
   no layout restructuring. Safe to remove by deleting this one file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero readability
   White headline sat directly on bright solar panels. A soft dark gradient
   plus a text shadow makes it legible without altering the photo or colours.
   -------------------------------------------------------------------------- */
rs-module-wrap { position: relative; }

rs-module-wrap::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 2;
   pointer-events: none;
   background: linear-gradient(180deg,
      rgba(8, 14, 22, .55) 0%,
      rgba(8, 14, 22, .22) 45%,
      rgba(8, 14, 22, .62) 100%);
}

rs-layer {
   text-shadow: 0 2px 14px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .55) !important;
}

/* --------------------------------------------------------------------------
   2. Hero call-to-action band
   -------------------------------------------------------------------------- */
.ssg-cta {
   background: var(--pbmit-blackish-color, #0c121d);
   padding: 28px 56px;
}

.ssg-cta__inner {
   max-width: 1200px;
   margin: 0 auto;
   display: flex;
   flex-wrap: wrap;
   gap: 18px;
   align-items: center;
   justify-content: space-between;
}

.ssg-cta__text {
   color: #fff;
   font-size: 21px;
   font-weight: 600;
   line-height: 1.35;
   margin: 0;
}

.ssg-cta__text span {
   display: block;
   font-size: 14px;
   font-weight: 400;
   opacity: .72;
   margin-top: 6px;
}

.ssg-cta__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}

.ssg-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 13px 26px;
   border-radius: 4px;
   font-weight: 600;
   font-size: 15px;
   text-decoration: none;
   transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.ssg-btn--primary {
   background: var(--pbmit-global-color, #1b742a);
   color: #fff;
}

.ssg-btn--primary:hover,
.ssg-btn--primary:focus {
   color: #fff;
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(27, 116, 42, .42);
}

.ssg-btn--ghost {
   background: transparent;
   color: #fff;
   border: 1px solid rgba(255, 255, 255, .42);
}

.ssg-btn--ghost:hover,
.ssg-btn--ghost:focus {
   background: rgba(255, 255, 255, .1);
   color: #fff;
   transform: translateY(-2px);
}

@media (max-width: 767px) {
   .ssg-cta { padding: 28px 16px; }
   .ssg-cta__inner { flex-direction: column; align-items: stretch; text-align: center; }
   .ssg-cta__actions { justify-content: center; }
   .ssg-btn { flex: 1 1 auto; }
   .ssg-cta__text { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   3. Card hover lift
   -------------------------------------------------------------------------- */
.pbmit-ihbox,
.pbmit-service-style-2,
.pbminfotech-post-item,
.pbmit-service-wrap {
   transition: transform .32s ease, box-shadow .32s ease;
}

.pbmit-ihbox:hover,
.pbmit-service-style-2:hover,
.pbminfotech-post-item:hover,
.pbmit-service-wrap:hover {
   transform: translateY(-6px);
   box-shadow: 0 14px 32px rgba(12, 18, 29, .14);
}

/* --------------------------------------------------------------------------
   4. Gallery image zoom on hover
   -------------------------------------------------------------------------- */
.pbmit-featured-wrapper { overflow: hidden; }
.pbmit-featured-wrapper img { transition: transform .55s ease; display: block; width: 100%; }
.pbminfotech-post-item:hover .pbmit-featured-wrapper img { transform: scale(1.07); }

/* --------------------------------------------------------------------------
   5. Back-to-top button
   Bottom-right, clear of the existing left-hand email/WhatsApp buttons.
   -------------------------------------------------------------------------- */
.ssg-top {
   position: fixed;
   right: 22px;
   bottom: 22px;
   width: 46px;
   height: 46px;
   padding: 0;
   border: 0;
   border-radius: 50%;
   background: var(--pbmit-global-color, #1b742a);
   color: #fff;
   font-size: 20px;
   line-height: 46px;
   cursor: pointer;
   opacity: 0;
   visibility: hidden;
   transform: translateY(12px);
   transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
   z-index: 9998;
   box-shadow: 0 6px 18px rgba(12, 18, 29, .28);
}

.ssg-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ssg-top:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   6. Scroll reveal
   The .ssg-reveal class is added by JavaScript, never in the markup, so if
   the script fails to run nothing is ever hidden.
   -------------------------------------------------------------------------- */
.ssg-reveal {
   opacity: 0;
   transform: translateY(26px);
   transition: opacity .7s ease, transform .7s ease;
   will-change: opacity, transform;
}

.ssg-reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   7. Respect reduced-motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
   .ssg-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
   .ssg-btn,
   .ssg-top,
   .pbmit-ihbox,
   .pbmit-service-style-2,
   .pbminfotech-post-item,
   .pbmit-service-wrap,
   .pbmit-featured-wrapper img { transition: none !important; }
}

/* --------------------------------------------------------------------------
   8. Footer certification logos
   The MNRE and Make in India artwork is dark and was disappearing into the
   navy footer. These are official government emblems, so rather than
   recolouring them (which their usage guidelines discourage) they are given
   a white panel to sit on. Every logo stays exactly as issued.
   -------------------------------------------------------------------------- */
footer img[src*="footer-logo"] {
   background: #fff;
   padding: 16px 20px;
   border-radius: 10px;
   box-sizing: border-box;
   max-width: 100%;
   height: auto;
}

/* --------------------------------------------------------------------------
   9. Unified Font Awesome icons
   Replaces the theme's mixed inline SVGs and its own icon font with one
   consistent family, coloured from the existing theme variable.
   -------------------------------------------------------------------------- */
.ssg-icon {
   color: var(--pbmit-global-color, #1b742a);
   line-height: 1;
   display: inline-block;
   transition: transform .3s ease;
}

.ssg-icon--lg { font-size: 46px; }
.ssg-icon--sm { font-size: 26px; }

.pbmit-ihbox:hover .ssg-icon,
.pbmit-service-style-2:hover .ssg-icon,
.pbmit-service-wrap:hover .ssg-icon {
   transform: scale(1.12);
}

@media (max-width: 767px) {
   .ssg-icon--lg { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
   .ssg-icon { transition: none !important; }
   .pbmit-ihbox:hover .ssg-icon,
   .pbmit-service-style-2:hover .ssg-icon,
   .pbmit-service-wrap:hover .ssg-icon { transform: none !important; }
}
