/*
Theme Name: Prosolar
Author: Codex
Description: Local WordPress rebuild theme inspired by the legacy Drupal 7 Prosolar site.
Version: 0.1.0
*/

@font-face {
  font-family: "Bookman Prosolar";
  src: url("assets/fonts/BookmanStd-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0f4e41;
  --green-soft: rgba(15, 78, 65, 0.1);
  --red: #e41e24;
  --gold: #f2c036;
  --text: #414141;
  --muted: #747474;
  --line: #e7e7e7;
  --wrap: 1164px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  height: auto;
}

.full-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px 8px;
  gap: 20px;
}

.site-logo img {
  display: block;
  width: 219px;
}

.site-slogan {
  color: #b4b5b5;
  font-family: "Bookman Prosolar", Georgia, serif;
  font-size: 1.35rem;
  text-align: center;
}

.header-contact {
  color: #424242;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.header-contact strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: none;
}

.menu-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  margin: 15px 0;
  padding: 20px 14px;
  border-top: 5px solid transparent;
  color: #2c2b2a;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  border-top-color: var(--red);
  color: var(--green);
}

.hero {
  min-height: 305px;
  background: #f1f1f1 url("assets/images/backgroud.jpg") center 42% / cover no-repeat;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 78, 65, 0.7), rgba(15, 78, 65, 0.2), rgba(255, 255, 255, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 54px 20px;
  color: #fff;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 300;
  line-height: 1.12;
  text-transform: uppercase;
}

.hero p {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 1.12rem;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.button:hover {
  background: var(--green);
  color: #fff;
}

.welcome-band {
  background: var(--green-soft);
  margin: 30px auto 0;
  padding: 28px 20px;
}

.intro {
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}

.intro h2,
.section-title {
  color: var(--green);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.intro strong,
.red {
  color: var(--red);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--wrap);
  margin: 32px auto;
  padding: 0 20px;
}

.feature {
  text-align: center;
}

.feature img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.feature h3 {
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 600;
}

.content-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 20px;
}

.page-title,
.entry-title {
  position: relative;
  margin: 32px 0 24px;
  color: var(--green);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.page-title::before,
.entry-title::before,
.section-title::before {
  content: "";
  display: block;
  width: 80px;
  height: 5px;
  margin-bottom: 12px;
  background: var(--red);
}

.banner-info {
  background: var(--green) url("assets/images/banner_info.png") right center / contain no-repeat;
  color: #fff;
  margin: 40px 0 0;
}

.banner-info .full-wrap {
  min-height: 175px;
  display: flex;
  align-items: center;
}

.banner-info h2 {
  max-width: 640px;
  margin: 0;
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
}

.reference-strip {
  padding: 38px 20px;
  background: #f7f7f7;
}

.reference-strip .full-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.reference-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-info {
  background: #fff;
  padding: 36px 20px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.contact-grid h3 {
  color: var(--green);
  text-transform: uppercase;
}

.contact-icon {
  color: var(--gold);
  font-size: 2rem;
}

.map iframe {
  display: block;
  width: 100%;
  height: 290px;
  border: 0;
}

.site-footer {
  background: #2c2b2a;
  color: #dcdcdc;
  padding: 28px 20px;
}

.site-footer .full-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .header-inner,
  .feature-grid,
  .contact-grid,
  .reference-strip .full-wrap {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .site-slogan,
  .header-contact {
    text-align: center;
  }

  .site-logo img {
    margin: 0 auto;
  }

  .main-navigation ul {
    align-items: stretch;
    flex-direction: column;
  }

  .main-navigation a {
    margin: 0;
    text-align: center;
  }

  .hero {
    min-height: 360px;
  }
}

/* Legacy Drupal-like homepage pass */
.legacy-slider {
  min-height: 215px;
  height: 215px;
  overflow: hidden;
  background-position: center bottom;
}

.legacy-slider::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 38%, rgba(255,255,255,0.2) 70%);
}

.legacy-slider .hero-content {
  padding: 31px 20px 20px;
  color: #5d5d5d;
}

.legacy-slider h1 {
  max-width: 550px;
  color: #5d5d5d;
  font-size: 2.65rem;
  font-weight: 300;
  line-height: 1.14;
}

.legacy-slider p {
  max-width: 460px;
  color: #5d5d5d;
  font-size: 1rem;
}


.hero-content-storion {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 0.9fr);
  gap: 34px;
  align-items: center;
  min-height: 305px;
}

.hero-main-copy h1,
.hero-main-copy p {
  margin-left: 0;
}

.hero-storion-copy {
  max-width: 560px;
  justify-self: end;
  padding: 0;
  color: #1f1f1f;
}

.hero-storion-copy h2 {
  margin: 0 0 12px;
  color: #1f1f1f;
  font-size: clamp(1.18rem, 1.6vw, 1.62rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-storion-copy p {
  max-width: none;
  margin: 0 0 10px;
  color: #1f1f1f;
  font-size: 0.98rem;
  line-height: 1.58;
}

.hero-storion-copy p:last-child {
  margin-bottom: 0;
}

.hero-storion-copy strong {
  color: #1f1f1f;
}

@media (max-width: 900px) {
  .hero-content-storion {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-storion-copy {
    justify-self: stretch;
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .hero-storion-copy {
    padding: 0;
  }
}

.legacy-welcome {
  margin-top: 30px;
  padding: 12px 0 20px;
  background: rgba(15, 78, 65, 0.1);
  text-align: center;
}

.legacy-welcome h2 {
  margin: 0 auto 8px;
  color: var(--red);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.2;
}

.legacy-welcome h2 strong {
  font-weight: 600;
}

.legacy-welcome p {
  max-width: 820px;
  margin: 0 auto;
  color: #555;
}

.legacy-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.1%;
  margin-top: 25px;
  margin-bottom: 22px;
}

.legacy-panel {
  min-height: 100px;
  background: #e1e1e1;
  transition: transform 0.2s ease-in-out;
}

.legacy-panel:hover {
  transform: scale(1.04);
}

.legacy-panel-title {
  float: left;
  width: calc(100% - 100px);
  min-height: 100px;
}

.legacy-panel-title a {
  display: block;
  padding: 20px;
  color: var(--red);
  font-size: 1.45rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.legacy-panel-icon {
  float: right;
  width: 100px;
  height: 100px;
  background: var(--red);
  text-align: center;
}

.legacy-panel-icon img {
  width: 70px;
  height: 70px;
  margin-top: 15px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.legacy-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.legacy-content .section-title {
  position: relative;
  margin: 22px 0 22px;
  color: var(--green);
  font-size: 2.15rem;
  letter-spacing: 2px;
}

.legacy-content aside {
  border-left: 5px solid var(--green);
  background: #f7f7f7;
  padding: 20px;
}

.legacy-content aside h3 {
  margin-top: 0;
  color: var(--red);
  font-size: 1.35rem;
}

.legacy-link {
  display: inline-block;
  position: relative;
  padding: 10px 42px 10px 25px;
  color: var(--green);
  font-weight: 600;
}

.legacy-link::after {
  content: "›";
  position: absolute;
  right: 17px;
  top: 6px;
  color: var(--green);
  font-size: 1.7rem;
}

.legacy-link:hover {
  background: var(--green);
  color: #fff;
}

.legacy-link:hover::after {
  color: #fff;
}

.banner-info {
  margin-top: 0;
  background-color: var(--green);
  background-size: auto 100%;
}

.banner-info .full-wrap {
  justify-content: space-between;
  min-height: 155px;
}

.banner-info h2 {
  font-size: 1.9rem;
  line-height: 1.2;
}

.banner-info a {
  align-self: flex-end;
  margin: 0 0 24px auto;
  padding: 10px 22px;
  background: rgba(255,255,255,0.94);
  color: var(--green);
  font-weight: 600;
}

.legacy-references {
  padding: 26px 0 30px;
  background: #f7f7f7;
}

.legacy-references h2 {
  position: relative;
  margin: 0 0 24px;
  padding-top: 28px;
  color: var(--green);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
}

.legacy-references h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 5px;
  margin-left: -40px;
  background: var(--red);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.reference-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd;
}

.reference-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reference-card span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 68px;
  padding: 14px 12px;
  background: rgba(15, 78, 65, 0.72);
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
  transition: min-height 0.25s ease, background 0.25s ease, padding-top 0.25s ease;
}

.reference-card:hover span {
  min-height: 100%;
  padding-top: 35%;
  background: var(--green);
  text-align: center;
}

.map {
  display: none;
}

@media (max-width: 860px) {
  .legacy-slider {
    height: auto;
    min-height: 245px;
  }

  .legacy-slider h1 {
    font-size: 2rem;
  }

  .legacy-panels,
  .legacy-content,
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .legacy-panel:hover {
    transform: none;
  }

  .banner-info .full-wrap {
    display: block;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .banner-info a {
    margin-top: 18px;
  }
}

/* AI FLEXIBILITY article formatting */
.page-id-18 .entry-content {
  max-width: 920px;
  font-size: 1.04rem;
  line-height: 1.72;
}

.page-id-18 .entry-content h2 {
  position: relative;
  margin: 34px 0 18px;
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.25;
}

.page-id-18 .entry-content h2:first-child {
  margin-top: 0;
  color: var(--red);
  font-size: 2.15rem;
}

.page-id-18 .entry-content h3 {
  margin: 24px 0 10px;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 600;
}

.page-id-18 .entry-content ul {
  margin: 16px 0 24px 0;
  padding: 0;
  list-style: none;
}

.page-id-18 .entry-content li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.page-id-18 .entry-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.ai-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 30px;
}

.ai-benefits section {
  border-left: 5px solid var(--green);
  background: #f7f7f7;
  padding: 18px 20px 8px;
}

.ai-benefits h3 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .ai-benefits {
    grid-template-columns: 1fr;
  }
}

/* Header navigation redesign */
.site-header {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  max-width: var(--wrap);
  min-height: 96px;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: 219px;
  flex: 0 0 auto;
}

.site-logo img {
  display: block;
  width: 219px;
  max-width: 100%;
}

.site-slogan,
.header-contact,
.menu-wrap {
  display: none;
}

.nav-state {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
}

.main-navigation {
  justify-self: end;
  width: 100%;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  margin: 0;
  padding: 34px 11px 29px;
  border-top: 5px solid transparent;
  color: #2c2b2a;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  border-top-color: var(--red);
  color: var(--green);
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: auto 44px;
    min-height: 82px;
    gap: 14px;
    position: relative;
  }

  .site-logo {
    width: 190px;
  }

  .site-logo img {
    width: 190px;
    margin: 0;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-state:checked + .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-state:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-state:checked + .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-navigation {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: calc(100% + 40px);
    margin: 0 -20px -10px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .nav-state:checked ~ .main-navigation {
    display: block;
  }

  .main-navigation ul {
    display: block;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--line);
  }

  .main-navigation a {
    padding: 15px 20px;
    border-top: 0;
    font-size: 1rem;
    text-align: left;
  }

  .main-navigation a:hover,
  .main-navigation .current-menu-item > a {
    background: rgba(15, 78, 65, 0.08);
    color: var(--green);
  }
}

/* Menu underline refinement */
.main-navigation a {
  position: relative;
  border-top: 0;
  padding-top: 32px;
  padding-bottom: 31px;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 22px;
  height: 4px;
  background: var(--red);
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  border-top-color: transparent;
}

@media (max-width: 920px) {
  .main-navigation a {
    padding: 15px 20px;
  }

  .main-navigation a::after {
    left: 20px;
    right: auto;
    bottom: 8px;
    width: 48px;
    height: 3px;
    transform-origin: left;
  }
}

/* Footer rebuild */
.contact-info {
  display: none;
}

.prosolar-footer {
  margin-top: 0;
  background: #2c2b2a;
  color: #f3f3f3;
  padding: 0;
}

.prosolar-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.35fr);
  gap: 56px;
  padding-top: 38px;
  padding-bottom: 30px;
}

.prosolar-footer h2 {
  margin: 0 0 20px;
  color: #f3f3f3;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 2px;
}

.footer-contact p {
  margin: 0 0 16px;
}

.footer-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: #fff;
  font-weight: 300;
  line-height: 1.45;
}

.footer-line small {
  color: #d4d4d4;
  font-size: 0.92rem;
}

.footer-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.45);
  font-size: 1.25rem;
  line-height: 1;
}

.footer-links {
  min-width: 0;
}

.footer-menu-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.footer-menu-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu-columns li {
  position: relative;
  margin: 0;
  padding: 5px 0 5px 24px;
  line-height: 1.35;
}

.footer-menu-columns li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 3px;
  color: #ffc107;
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-menu-columns li:hover::before {
  color: var(--red);
  transform: translateX(3px);
}

.footer-menu-columns a {
  color: #fff;
  font-weight: 300;
}

.footer-menu-columns a:hover {
  color: var(--red);
}

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

@media (max-width: 760px) {
  .prosolar-footer .footer-grid,
  .footer-menu-columns {
    grid-template-columns: 1fr;
  }

  .prosolar-footer .footer-grid {
    gap: 28px;
    padding-top: 30px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 6px;
  }
}

/* Original FontAwesome footer icons */
@font-face {
  font-family: "FontAwesome";
  src: url("assets/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),
       url("assets/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff"),
       url("assets/fonts/fontawesome-webfont.ttf?v=4.7.0") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-home::before {
  content: "\f015";
}

.fa-map-marker::before {
  content: "\f041";
}

.footer-icon.fa {
  font-size: 1.35rem;
}

/* Footer icon cleanup */
.footer-icon {
  width: 25px;
  height: auto;
  border: 0;
  color: #ffc107;
  justify-content: flex-start;
  background: transparent;
}

.footer-line {
  grid-template-columns: 25px minmax(0, 1fr);
}

/* Footer heading cleanup */
.footer-contact h2,
.footer-links h2 {
  display: none;
}

.footer-line strong {
  color: #fff;
  font-weight: 600;
}

.prosolar-footer .footer-grid {
  align-items: start;
}

/* Footer copyright cleanup */
.footer-bottom {
  justify-content: center;
  text-align: center;
}

/* Force centered footer copyright */
.site-footer .footer-bottom.full-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
}

.site-footer .footer-bottom.full-wrap span {
  width: 100%;
  text-align: center;
}

/* About page formatting */
.page-id-21 .entry-content {
  max-width: 980px;
  font-size: 1.04rem;
  line-height: 1.72;
}

.page-id-21 .entry-content h2 {
  position: relative;
  margin: 34px 0 18px;
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.25;
}

.page-id-21 .entry-content h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 1.22rem;
  font-weight: 600;
}

.about-lead {
  padding: 8px 0 12px;
}

.about-lead h2 {
  color: var(--red) !important;
  font-size: 2.15rem !important;
}

.about-highlight,
.about-story,
.about-closing {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--green);
  background: rgba(15, 78, 65, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.about-grid article {
  padding: 20px 22px 10px;
  background: #f7f7f7;
  border-top: 5px solid var(--red);
}

.about-values {
  margin: 30px 0;
}

.about-values ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.about-values li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.about-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.about-closing {
  background: var(--green);
  color: #fff;
}

.about-closing h2 {
  color: #fff !important;
  margin-top: 0 !important;
}

.about-closing p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-highlight,
  .about-story,
  .about-closing {
    padding: 20px;
  }
}

/* References page formatting */
.page-id-8 .entry-content {
  max-width: 1080px;
  font-size: 1.04rem;
  line-height: 1.72;
}

.references-lead {
  margin: 4px 0 26px;
  padding: 28px 30px;
  border-left: 5px solid var(--green);
  background: rgba(15, 78, 65, 0.08);
}

.references-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.references-lead h2,
.reference-note h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
}

.references-lead p,
.reference-note p {
  max-width: 880px;
  margin: 0;
}

.reference-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.reference-summary div {
  min-height: 118px;
  padding: 18px 18px 16px;
  border-top: 5px solid var(--red);
  background: #f7f7f7;
}

.reference-summary strong,
.reference-summary span {
  display: block;
}

.reference-summary strong {
  color: var(--green);
  font-size: 1.08rem;
  line-height: 1.25;
}

.reference-summary span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

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

.reference-card-page {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.reference-card-page img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eee;
}

.reference-card-page div {
  padding: 22px 24px 24px;
}

.reference-card-page span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-card-page h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.36rem;
  font-weight: 600;
  line-height: 1.25;
}

.reference-card-page p {
  margin: 0;
}

.reference-card-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-template-rows: auto;
  align-items: stretch;
}

.reference-card-featured img {
  height: 100%;
  aspect-ratio: auto;
  min-height: 320px;
}

.reference-card-featured div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  background: var(--green);
  color: #fff;
}

.reference-card-featured span,
.reference-card-featured h3 {
  color: #fff;
}

.reference-card-featured span {
  color: #ffc107;
}

.reference-note {
  margin: 34px 0 8px;
  padding: 26px 30px;
  background: #f7f7f7;
  border-left: 5px solid var(--red);
}

@media (max-width: 900px) {
  .reference-summary,
  .reference-grid-page,
  .reference-card-featured {
    grid-template-columns: 1fr;
  }

  .reference-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-card-featured img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .references-lead,
  .reference-note {
    padding: 22px 20px;
  }

  .references-lead h2,
  .reference-note h2 {
    font-size: 1.65rem;
  }

  .reference-summary {
    grid-template-columns: 1fr;
  }

  .reference-card-page div,
  .reference-card-featured div {
    padding: 20px;
  }
}

/* AI FLEXIBILITY image block */
.ai-visual {
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.ai-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ai-visual figcaption {
  padding: 13px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

/* References page after AI FLEXIBILITY moved to its own page */
.page-id-8 .reference-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .page-id-8 .reference-summary {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.page-id-11 .entry-content {
  max-width: 1080px;
  font-size: 1.04rem;
  line-height: 1.72;
}

.contact-hero {
  margin: 4px 0 28px;
  padding: 28px 30px;
  border-left: 5px solid var(--green);
  background: rgba(15, 78, 65, 0.08);
}

.contact-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero h2,
.contact-form-panel h2,
.contact-map-section h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
}

.contact-hero p,
.contact-form-panel > p {
  max-width: 850px;
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin: 28px 0 34px;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px;
  background: #f7f7f7;
  border-top: 5px solid var(--red);
}

.contact-card h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.24rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0 0 8px;
}

.contact-card small {
  color: var(--muted);
}

.contact-card-icon {
  color: #ffc107;
  font-size: 1.55rem;
  line-height: 1.2;
}

.contact-phone-icon {
  font-family: Arial, sans-serif;
  font-size: 1.42rem;
}

.contact-map-link {
  font-weight: 700;
}

.contact-form-panel {
  padding: 24px 26px 28px;
  border-left: 5px solid var(--green);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.prosolar-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.contact-field,
.contact-submit {
  margin: 0;
}

.prosolar-contact-form .button {
  background: var(--green);
  color: #fff;
}

.prosolar-contact-form .button:hover,
.prosolar-contact-form .button:focus {
  background: var(--red);
  color: #fff;
}

.contact-field-wide,
.contact-submit,
.contact-alert {
  grid-column: 1 / -1;
}

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

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.contact-field input {
  min-height: 46px;
  padding: 10px 12px;
}

.contact-field textarea {
  min-height: 155px;
  padding: 11px 12px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid rgba(15, 78, 65, 0.18);
  border-color: var(--green);
}

.contact-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-weight: 700;
}

.contact-alert-success {
  background: rgba(15, 78, 65, 0.1);
  color: var(--green);
}

.contact-alert-error {
  background: rgba(228, 30, 36, 0.09);
  color: var(--red);
}

.contact-map-section {
  margin: 34px 0 8px;
}

.contact-map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f7;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.contact-map-action {
  margin: 14px 0 0;
}

@media (max-width: 860px) {
  .contact-layout,
  .prosolar-contact-form {
    grid-template-columns: 1fr;
  }

  .contact-hero,
  .contact-form-panel {
    padding: 22px 20px;
  }

  .contact-hero h2,
  .contact-form-panel h2,
  .contact-map-section h2 {
    font-size: 1.65rem;
  }

  .contact-map-frame iframe {
    height: 310px;
  }
}

.contact-hero-simple p {
  max-width: 860px;
  font-size: 1.08rem;
}

/* Align About page opening spacing with other content pages */
.page-id-21 .about-lead {
  padding-top: 0;
}

.page-id-21 .about-lead h2 {
  margin-top: 0 !important;
}

/* Blog */
.blog-wrap,
.single-blog-wrap {
  max-width: 1080px;
}

.blog-intro {
  margin: 4px 0 30px;
  padding: 26px 30px;
  border-left: 5px solid var(--green);
  background: rgba(15, 78, 65, 0.08);
}

.blog-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-intro .page-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.blog-intro p {
  max-width: 840px;
  margin: 0;
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.blog-card-image {
  display: block;
  position: relative;
  min-height: 190px;
  background: var(--green);
  color: #fff;
}

.blog-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-image span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.blog-card-body {
  padding: 20px 20px 22px;
}

.blog-card time,
.single-blog-header time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.28rem;
  line-height: 1.28;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card p {
  margin: 0 0 16px;
  color: var(--text);
}

.blog-read-more {
  color: var(--green);
  font-weight: 700;
}

.blog-pagination {
  margin: 34px 0 6px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 3px;
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
}

.blog-pagination .current,
.blog-pagination a:hover {
  background: var(--green);
  color: #fff;
}

.single-blog-article {
  max-width: 920px;
}

.single-blog-header {
  margin-bottom: 26px;
}

.single-blog-header .page-title {
  margin-top: 0;
}

.single-blog-header p {
  max-width: 820px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.single-blog-image {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f7;
}

.single-blog-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.blog-entry-content {
  font-size: 1.04rem;
  line-height: 1.72;
}

.blog-entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.blog-entry-content td,
.blog-entry-content th {
  padding: 8px 10px;
  border: 1px solid #d8d8d8;
  vertical-align: top;
}

.blog-entry-content img {
  height: auto !important;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-intro {
    padding: 22px 20px;
  }
}

/* Blog thumbnail scaling refinement */
.blog-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.blog-card-image img {
  height: 100%;
}

.blog-card-image-contain {
  padding: 18px;
  background: #f7f7f7;
}

.blog-card-image-contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.single-blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.single-blog-meta-row time {
    margin-bottom: 0;
}

.single-blog-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.single-blog-nav-bottom {
    margin: 36px 0 0;
    padding-top: 24px;
    border-top: 1px solid #e8ece8;
}

.single-blog-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.single-blog-nav a:hover,
.single-blog-nav a:focus {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.blog-entry-content::after {
    content: "";
    display: block;
    clear: both;
}

.blog-entry-content * {
    max-width: 100%;
}

.blog-entry-content table.prosolar-data-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border-collapse: collapse;
    border: 1px solid #dce5dc;
    background: #fff;
}

.blog-entry-content table.prosolar-data-table tbody {
    display: table-row-group;
}

.blog-entry-content table.prosolar-data-table tr {
    display: table-row;
}

.blog-entry-content table.prosolar-data-table td,
.blog-entry-content table.prosolar-data-table th {
    display: table-cell;
    min-width: 130px;
    padding: 12px 14px;
    border: 1px solid #dce5dc;
    vertical-align: top;
}

.blog-entry-content table.prosolar-data-table tr:first-child td,
.blog-entry-content table.prosolar-data-table th {
    background: #eef5ef;
    color: #24452b;
    font-weight: 700;
}

.blog-entry-content img {
    float: none !important;
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 20px auto;
}

.blog-inline-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.blog-inline-gallery figure {
    margin: 0;
    border: 1px solid #e2e7e2;
    background: #fff;
}

.blog-inline-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: 0 !important;
}

.blog-inline-gallery figcaption {
    padding: 10px 12px;
    color: #5c685e;
    font-size: 0.92rem;
}

.blog-attachments {
    margin: 26px 0;
    padding-left: 22px;
}

@media (max-width: 640px) {
    .blog-inline-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .single-blog-meta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .single-blog-nav {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .single-blog-nav a {
        width: 100%;
    }
}


/* Homepage redesign */
.home-redesign {
  background: #fff;
}

.home-hero-redesign {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  margin-top: 24px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.16) 42%, rgba(255,255,255,0.82) 70%, #fff 92%),
    linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.66) 43%, rgba(255,255,255,0.08) 78%),
    url("assets/images/backgroud.jpg") center 36% / cover no-repeat;
}

.home-hero-inner {
  width: 100%;
  padding: 72px 28px 32px;
}

.home-hero-redesign h1 {
  max-width: none;
  margin: 0 0 8px;
  color: #2f2f2f;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.08;
  white-space: nowrap;
}

.home-hero-subtitle {
  max-width: none;
  margin: 0 0 26px;
  color: #3e3e3e;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.38;
  white-space: nowrap;
}

.home-storion-copy {
  width: 100%;
  max-width: none;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.48);
}

.home-storion-copy h2 {
  max-width: none;
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.home-storion-copy p {
  max-width: none;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.74;
}

.home-storion-copy p:last-child {
  margin-bottom: 0;
}

.home-capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  margin-bottom: 34px;
}

.home-capability-strip div {
  min-height: 118px;
  padding: 18px 18px 16px;
  border-top: 5px solid var(--red);
  background: #f7f7f7;
}

.home-capability-strip strong,
.home-capability-strip span {
  display: block;
}

.home-capability-strip strong {
  color: var(--green);
  font-size: 1.1rem;
  line-height: 1.25;
}

.home-capability-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.home-showcase {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}

.home-showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.home-showcase-reverse img {
  order: 2;
}

.home-showcase-item img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  background: #eee;
}

.home-showcase-item div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 38px;
}

.home-showcase-item span {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-showcase-item h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.18;
}

.home-showcase-item p {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.72;
}

.home-showcase-featured {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

.home-closing {
  margin-top: 34px;
  margin-bottom: 42px;
  padding: 30px 34px;
  background: var(--green);
  color: #fff;
}

.home-closing h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 600;
}

.home-closing p {
  max-width: 880px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

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

  .home-showcase-item,
  .home-showcase-featured {
    grid-template-columns: 1fr;
  }

  .home-showcase-reverse img {
    order: 0;
  }

  .home-showcase-item img {
    min-height: 260px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .home-hero-redesign {
    min-height: 0;
    margin-top: 18px;
  }

  .home-hero-inner {
    padding: 48px 18px 24px;
  }

  .home-hero-redesign h1,
  .home-hero-subtitle {
    white-space: normal;
  }

  .home-storion-copy,
  .home-closing {
    padding: 24px 22px;
  }

  .home-capability-strip {
    grid-template-columns: 1fr;
  }

  .home-showcase-item div {
    padding: 26px 22px 28px;
  }
}

/* B2B shop portal */
.b2b-portal-lead {
  margin: 4px 0 26px;
  padding: 28px 30px;
  border-left: 5px solid var(--green);
  background: rgba(15, 78, 65, 0.08);
}

.b2b-portal-lead h2,
.b2b-portal-action h2,
.b2b-portal-account h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
}

.b2b-portal-lead p,
.b2b-portal-action p,
.b2b-portal-account > p {
  max-width: none;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
}

.b2b-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.b2b-portal-grid article {
  padding: 22px 24px;
  border-top: 5px solid var(--red);
  background: #f7f7f7;
}

.b2b-portal-grid h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.25rem;
}

.b2b-portal-grid p {
  margin: 0;
}

.b2b-portal-account,
.b2b-portal-action {
  margin: 28px 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.b2b-portal-pending {
  border-left: 5px solid var(--red);
}

.b2b-portal-approved {
  border-left: 5px solid var(--green);
}

.b2b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px !important;
}

.button.button-secondary {
  background: var(--green);
}

.button.button-secondary:hover,
.button.button-secondary:focus {
  background: var(--red);
}

.b2b-login-required {
  color: var(--muted);
  font-weight: 700;
}

.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  background: var(--green);
  color: #fff;
  border-radius: 4px;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
  background: var(--red);
  color: #fff;
}

@media (max-width: 760px) {
  .b2b-portal-grid {
    grid-template-columns: 1fr;
  }

  .b2b-portal-lead,
  .b2b-portal-account,
  .b2b-portal-action {
    padding: 22px 20px;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* B2B account intro spacing refinement */
.b2b-portal-account h2 {
  margin-bottom: 20px;
}

.b2b-portal-account > p {
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
}
