/* ==========================================================================
   SI Green Energy - overrides on top of the Slaze theme (style.css)
   ========================================================================== */

/* --- Main menu: 8 top-level items (theme spacing is sized for 5) --- */
.header__area-menubar-right-btn .btn-one {
  white-space: nowrap;
}

@media (min-width: 1400px) {
  .header__area-menubar-center-menu ul li {
    margin: 0 15px;
  }
  .header__area-menubar-center-menu ul li a {
    font-size: 15px;
  }
  .header__area-menubar-center-menu ul li.menu-item-has-children > a {
    margin-right: 6px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .header__area-menubar-left-logo {
    padding-right: 24px;
  }
  .header__area-menubar-center-menu ul li {
    margin: 0 10px;
  }
  .header__area-menubar-center-menu ul li a {
    font-size: 14px;
  }
  .header__area-menubar-center-menu ul li.menu-item-has-children > a {
    margin-right: 6px;
  }
  .header__area-menubar-right-sidebar {
    display: none;
  }
}

/* Too narrow for the full menu: use the mobile menu (theme does this only below 992px). */
@media (min-width: 992px) and (max-width: 1199px) {
  .header__area-menubar-center {
    display: none;
  }
  .header__area-menubar-right-responsive-menu {
    display: block;
  }
  .header__area-menubar-right-sidebar {
    display: none;
  }
}

/* --- Catalog / project category filters --- */
.catalog-filter .nav,
.portfolio__three-page .who__area-right-btn .nav {
  row-gap: 12px;
}

/* --- Contact page: office cards --- */
.office__card {
  height: 100%;
  padding: 35px 30px;
  border: 1px solid var(--border-color-1, #E6E5DF);
  background: var(--bg-white);
}
.office__card h6 {
  margin-bottom: 15px;
}
.office__card ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
}
.office__card ul li i {
  color: var(--primary-color-1);
  width: 18px;
  margin-top: 5px;
}

/* --- Contact page social links --- */
.contact__two-social .social__icon ul {
  display: flex;
  gap: 10px;
  padding: 0;
}

/* --- Project details: featured image fills the row whatever its proportions --- */
.portfolio__details-image > img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

/* --- Call to action: optional description under the heading --- */
.footer__cta-area-text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: -10px 0 28px;
}
@media (max-width: 991px) {
  .footer__cta-area-text {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.catalog-specs th { width: 40%; font-weight: 600; color: var(--text-heading-color); }
.catalog-specs th, .catalog-specs td { padding: 12px 16px; border-color: var(--border-color-1, #E6E5DF); }

/* --- Si Green Energy logo (SVG wordmark is wider than the theme logo) --- */
.header__area-menubar-left-logo a img {
  max-width: 190px;
  width: 190px;
}
.menu__bar-popup-top .logo img,
.header__area-menubar-right-sidebar-popup-logo img,
.footer__area-widget .logo img {
  max-width: 210px;
  width: 210px;
}
@media (max-width: 575px) {
  .header__area-menubar-left-logo a img {
    width: 160px;
  }
}

/* ==========================================================================
   Call to action: the heading stays on ONE line on desktop/laptop (>= 992px).
   CTA titles are kept short in the CMS (max 60 chars, ~40 recommended); the
   font scales with the viewport and never overflows its container.
   ========================================================================== */
.cta__title-line {
  overflow-wrap: anywhere;
}
@media (min-width: 992px) {
  .footer__cta-area-left h3.cta__title-line,
  .cta__one-title h3.cta__title-line {
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(22px, 2.15vw, 34px);
    line-height: 1.25;
  }
}
.footer__cta-area-left h3.cta__title-line {
  margin-bottom: 18px;
}
.footer__cta-area-text {
  margin-top: 0;
}

/* ==========================================================================
   Justified paragraphs across the frontend (this stylesheet is frontend-only).
   Headings, buttons, menus and labels are not paragraphs and keep their alignment;
   paragraphs inside centred / right-aligned blocks keep that alignment too.
   ========================================================================== */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
}
.t-center p, .text-center p, .t-right p, .text-end p, .text-right p,
.lg-t-center p, .sm-t-center p, .md-t-center p,
.breadcrumb__area p, .copyright__area p, .footer__area-widget p,
.topBar__one p, .header__area p, .menu__bar-popup p,
.contact__one-item p, .team__two-item p, .counter__two-item p,
.work__process-item p, .banner__one-capacity p, .features__one-left p,
.portfolio__one-item p, .blog__one-item p, .all__sidebar p,
.choose__us-area-list p, .service__details-content-list p {
  text-align: inherit;
}
/* Short card texts read better left-aligned than stretched. */
.features__one-right-item p,
.consultation__area-right-list-item p, .faq__one-title p {
  text-align: left;
}
@media (max-width: 991px) {
  .footer__cta-area-text,
  .lg-t-center p {
    text-align: center;
  }
}

/* --- Product details: brand / model line and note --- */
.catalog__brand {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--body-color);
}
.catalog__note {
  font-size: 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--primary-color-1);
  background: var(--color-3, #F8F8F8);
}

/* --- Gallery page and homepage carousel --- */
.gallery__grid .portfolio__two-item {
  height: 320px;
}
.gallery__grid .portfolio__two-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__carousel .portfolio__one-item-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.gallery__grid .portfolio__two-item > a {
  display: block;
}
.gallery__filter {
  margin-bottom: 10px;
}
.gallery__filter .nav {
  row-gap: 12px;
}
.gallery__carousel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery__carousel-arrows {
  margin-top: 0;
}
@media (max-width: 991px) {
  .gallery__carousel-actions {
    justify-content: center;
  }
}
.mfp-title {
  text-align: left;
}

/* --- Scrolling text strip (services / solutions / products pages): smaller, and spaced from the CTA --- */
.text__slider {
  padding: 55px 0;
}
.text__slider ul li a {
  font-size: 44px;
  line-height: 54px;
}
.text__slider ul li a span {
  margin: 0 40px;
}
.text__slider ul li a span img {
  max-width: 40px;
}
.text__slider + .footer__cta {
  margin-top: 100px;
}
@media (max-width: 991px) {
  .text__slider ul li a {
    font-size: 34px;
    line-height: 44px;
  }
}
@media (max-width: 667px) {
  .text__slider {
    padding: 40px 0;
  }
  .text__slider ul li a {
    font-size: 24px;
    line-height: 32px;
  }
  .text__slider ul li a span {
    margin: 0 22px;
  }
  .text__slider ul li a span img {
    max-width: 28px;
  }
  .text__slider + .footer__cta {
    margin-top: 60px;
  }
}

/* --- Gallery grid: the lightbox link fills the fixed-height card so all images match --- */
.gallery__grid .portfolio__two-item > a.img-popup {
  display: block;
  height: 100%;
}

/* --- Catalog cards (services / solutions / products): every image has the same size --- */
.service__two-item-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-3, #F8F8F8);
}
.service__two-item-image a {
  display: block;
  height: 100%;
}
.service__two-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Catalog card descriptions (products / services / solutions): justified --- */
.service__two-item-content p {
  text-align: justify;
  text-justify: inter-word;
}

/* ==========================================================================
   Homepage hero: full-width image, 30% lower than the theme (~1054px -> ~740px),
   25px heading. Text sits on a dark overlay so it stays readable on any photo.
   ========================================================================== */
.banner__one-image {
  position: relative;
  min-height: 740px;
}
.banner__one-shape {
  display: none;
}
.banner__one-image .banner__one-right {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.banner__one-image .banner__one-right img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.banner__one-image .banner__one-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 33, 0.82) 0%, rgba(17, 24, 33, 0.6) 45%, rgba(17, 24, 33, 0.15) 100%);
}
.banner__one-content {
  padding: 120px 0 230px;
}
.banner__one-content h1 {
  font-size: 25px;
  line-height: 35px;
  margin-bottom: 20px;
  color: var(--text-white, #fff);
}
.banner__one-content .subtitle-one,
.banner__one-content p {
  color: var(--text-white, #fff);
}
.banner__one-content p {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 32px;
}
@media (max-width: 1199px) {
  .banner__one-content h1 {
    font-size: 25px;
    line-height: 35px;
  }
}
@media (max-width: 991px) {
  .banner__one-image {
    min-height: 620px;
  }
  .banner__one-image .banner__one-right {
    position: absolute;
    width: 100%;
  }
  .banner__one-image .banner__one-right img {
    display: block;
  }
  .banner__one-image .banner__one-right::after {
    background: rgba(17, 24, 33, 0.7);
  }
}
@media (max-width: 575px) {
  .banner__one-image {
    min-height: 0;
  }
  .banner__one-content {
    padding: 90px 0;
  }
  .banner__one-content h1 {
    font-size: 25px;
    line-height: 35px;
  }
  .banner__one-content p {
    font-size: 16px;
    line-height: 28px;
  }
}

/* Hero heading on one line (line breaks in the CMS title are shown as spaces). */
@media (min-width: 768px) {
  .banner__one-content h1.banner__one-title {
    white-space: nowrap;
  }
}

/* --- Homepage "What We Do" service cards: justified descriptions --- */
.service__one-item-content p {
  text-align: justify;
  text-justify: inter-word;
}

/* --- Homepage "Why Choose Us": feature cards stack full width (col-12) on small devices --- */
@media (max-width: 767px) {
  .choose__us-area-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .choose__us-area-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 25px 25px;
  }
  .choose__us-area-list-item > i {
    flex-shrink: 0;
  }
  .choose__us-area-list-item-bottom {
    margin-top: 0;
  }
  .choose__us-area-list-item-bottom h6 {
    max-width: none;
  }
  .choose__us-area-image {
    height: 320px;
  }
}

/* --- "Solar Calculator" menu item: mobile menu only (desktop shows the header button) --- */
.header__area-menubar-center-menu .menu-mobile-only {
  display: none;
}
@media (min-width: 1400px) {
  .header__area-menubar-center-menu ul li {
    margin: 0 12px;
  }
}
