/**
 * Avisenergy site overrides
 *
 * Brand palette:
 *   white  #ffffff  — main / neutral
 *   blue   #16308D  — primary brand
 *   orange #E6602E  — accent / CTA
 *   dark   #181818  — gravity / footer
 *   cream  #EEEFE6  — soft contrast band
 */

/* Retint theme accent: generic orange #ff3d00 → brand orange #E6602E
   Every component that reads var(--color-primary) — buttons, hover states,
   dot accents, sliders, badges — picks this up automatically. */
:root {
  --color-primary: #E6602E;
  --color-brand-blue: #16308D;
  --color-brand-orange: #E6602E;
}

/* APGT.svg has no intrinsic width/height on the <svg> root (only viewBox),
   so the <img> needs an explicit size in CSS to render reliably. */
.header-area .xb-header-logo {
  flex-shrink: 0;
}

.header-area .xb-header-logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 220px;
}

.header-area .xb-header-area-sticky .xb-header-logo img {
  height: 54px;
}

.xb-logo-mobile img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 180px;
}

@media (max-width: 991px) {
  .header-area .xb-header-logo img {
    height: 52px;
  }
}

@media (max-width: 767px) {
  .header-area .xb-header-logo img {
    height: 44px;
  }
}

/* Header row: logo | nav | phone */
.header-area .header__wrap.ul_li_between {
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}

.header-area .header__wrap .main-menu__wrap {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0;
}

/* Keep nav on a single line — theme default allows wrap which breaks
   the header when the wider APGT logo is in place */
.header-area .main-menu > ul {
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: flex-end;
}

.header-area .main-menu ul li:not(:last-child) {
  margin-right: 18px;
}

@media (max-width: 1399px) {
  .header-area .main-menu ul li:not(:last-child) {
    margin-right: 12px;
  }

  .header-area .main-menu ul li a {
    font-size: 15px;
    padding: 10px 6px;
  }
}

.header-area .header__wrap .header-contact-btn {
  display: block;
  flex-shrink: 0;
}

.header-area .header__wrap .header-contact-btn a {
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Phone visible on dark header (top of page) */
.header-area.header-area--page .header__wrap .header-contact-btn a,
.header-area.header-transparent .header__wrap .header-contact-btn a {
  color: #ffffff;
}

/* Sticky header has white background — dark phone number */
.header-area.xb-header-area-sticky .header__wrap .header-contact-btn a,
#xb-header-area.xb-header-area-sticky .header__wrap .header-contact-btn a {
  color: var(--color-heading, #1b1b22);
}

.header-area .header__wrap .header-contact-btn a .icon {
  flex-shrink: 0;
  height: 46px;
  width: 46px;
}

/* Inner pages: white call circle + dark icon at top */
.header-area.header-area--page .header__wrap .header-contact-btn a .icon {
  background: #ffffff;
}

.header-area.header-area--page .header__wrap .header-contact-btn a .icon img {
  filter: brightness(0);
}

/* Sticky: dark circle + white phone icon */
.header-area.xb-header-area-sticky .header__wrap .header-contact-btn a .icon,
#xb-header-area.xb-header-area-sticky .header__wrap .header-contact-btn a .icon {
  background: var(--color-heading, #1b1b22);
}

.header-area.xb-header-area-sticky .header__wrap .header-contact-btn a .icon img,
#xb-header-area.xb-header-area-sticky .header__wrap .header-contact-btn a .icon img {
  filter: brightness(0) invert(1);
}

@media (min-width: 1400px) {
  .header-area .header__wrap .header-contact-btn a {
    font-size: 26px;
  }
}

@media (max-width: 1399px) {
  .header-area .header__wrap .header-contact-btn a {
    font-size: 18px;
  }

  .header-area .header__wrap .header-contact-btn a .icon {
    height: 42px;
    width: 42px;
  }
}

@media (max-width: 1199px) {
  .header-area .header__wrap .header-contact-btn a .number {
    display: none;
  }
}

@media (max-width: 991px) {
  .header-area .header__wrap > .header-contact-btn {
    display: none;
  }
}

/* Clip testimonial slider bleed only — do not override card/slide widths.
   `overflow-x: clip` does NOT create a scroll/sticky containing block, so
   descendant `position: sticky` (e.g. the privacy TOC) keeps working.
   `overflow-x: hidden` does — keep it only as a fallback for older browsers. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

.body_wrap.o-clip {
  overflow-x: hidden;
  overflow-x: clip;
}

section.testimonial {
  overflow-x: hidden;
  background-color: #ffffff;
}

section.testimonial .xb-testimonial-slider {
  overflow: hidden;
}

section.testimonial .xb-testimonial-top {
  flex-wrap: wrap;
}

section.testimonial .xb-testimonial-review {
  max-width: 100%;
  flex: 1 1 280px;
}

/* Light bands after the dark solutions block (homepage) */
section.project,
section.brand {
  background-color: #ffffff;
}

/* Brand section — compact heading (long OEM line) */
section.brand .sec-title--brand .title {
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}

@media (max-width: 1199px) {
  section.brand .sec-title--brand .title {
    font-size: 34px;
  }
}

@media (max-width: 991px) {
  section.brand .sec-title--brand .title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  section.brand .sec-title--brand .title {
    font-size: 24px;
  }
}

/* OEM logos — consistent sizing in brand grid */
section.brand .xb-brand-item .xb-img img {
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

/* Kawasaki & Ansaldo — wide/compact marks need width + height, not max-height alone */
section.brand .xb-brand-item--kawasaki .xb-img,
section.brand .xb-brand-item--ansaldo .xb-img {
  width: 92% !important;
  max-width: 360px !important;
  padding: 8px 0 !important;
}

section.brand .xb-brand-item--kawasaki .xb-img img,
section.brand .xb-brand-item--ansaldo .xb-img img {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

section.brand .xb-brand-item--kawasaki .xb-img img {
  height: 72px !important;
}

section.brand .xb-brand-item--ansaldo .xb-img img {
  height: 100px !important;
}

@media (max-width: 1199px) {
  section.brand .xb-brand-item--kawasaki .xb-img,
  section.brand .xb-brand-item--ansaldo .xb-img {
    max-width: 280px !important;
  }

  section.brand .xb-brand-item--kawasaki .xb-img img {
    height: 60px !important;
  }

  section.brand .xb-brand-item--ansaldo .xb-img img {
    height: 84px !important;
  }
}

@media (max-width: 991px) {
  section.brand .xb-brand-item--kawasaki .xb-img,
  section.brand .xb-brand-item--ansaldo .xb-img {
    max-width: 220px !important;
  }
}

section.blog {
  background-color: #eeefe6;
}

/* About page: "What We Do" list — fix tight line-height on wrapped items */
.ap-work-list li {
  line-height: 1.5;
}

/* About page: top title — reduce from 80px so it doesn't collide with value list */
.ap-about-title.sec-title--page .title,
.ap-about-title .title {
  font-size: 42px;
  line-height: 1.25;
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  .ap-about-title .title {
    font-size: 36px;
  }
}

@media (max-width: 1199px) {
  .ap-about-title .title {
    font-size: 30px;
  }
}

/* About section content banner label — reduce from 380px for word labels */
.xb-about-content-item .xb-item--year h2 {
  font-size: 120px;
  margin-top: -15px;
}

@media only screen and (max-width: 1600px) {
  .xb-about-content-item .xb-item--year h2 {
    font-size: 100px;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  .xb-about-content-item .xb-item--year h2 {
    font-size: 90px;
    margin-top: -12px;
  }
}

@media (max-width: 1199px) {
  .xb-about-content-item .xb-item--year h2 {
    font-size: 72px;
    margin-top: -10px;
  }
}

@media (max-width: 991px) {
  .xb-about-content-item .xb-item--year h2 {
    font-size: 52px;
    margin-top: -6px;
  }
}

@media (max-width: 767px) {
  .xb-about-content-item .xb-item--year h2 {
    font-size: 40px;
  }
}

/* About section year/label nav — reduce from 125px for word labels */
.xb-about-year-item h2 {
  font-size: 42px;
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  .xb-about-year-item h2 {
    font-size: 36px;
  }
}

@media (max-width: 1199px) {
  .xb-about-year-item h2 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .xb-about-year-item h2 {
    font-size: 14px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .xb-about-year-item {
    padding: 4px 12px;
  }
}

@media (max-width: 480px) {
  .xb-about-year-item h2 {
    font-size: 12px;
  }
  .xb-about-year-item {
    padding: 3px 10px;
    border-width: 2px;
  }
}

/* Hero CTA buttons — plain style, no text-shadow double effect */
.hero-area .thm-btn.construction-btn {
  padding: 14px 28px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-width: 2px;
  border-style: solid;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .hero-area .thm-btn.construction-btn {
    font-size: 14px;
    padding: 12px 22px;
    min-height: 44px;
    white-space: normal;
  }
}

/* ============================================================
   Landing hero — white background variant
   ============================================================ */
.hero-area--light {
  background-color: #ffffff !important;
  padding-bottom: 120px;
}

@media (max-width: 991px) {
  .hero-area--light {
    padding-bottom: 80px;
  }
}

@media (max-width: 767px) {
  .hero-area--light {
    padding-bottom: 40px;
  }
}

/* Give the right-column hero content extra bottom clearance so the
   buttons never sit on top of the turbine silhouette below */
.hero-area--light .xb-hero-item {
  margin-bottom: 60px;
}

@media (max-width: 767px) {
  .hero-area--light .xb-hero-item {
    margin-bottom: 30px;
    max-width: 100%;
  }
}

/* "Power" headline — brand orange, anchors the hero visually */
.hero-area--light .xb-hero-heading .title,
.hero-area--light .xb_header_text {
  color: #E6602E;
}

/* Subheadline (Gas Turbine Sourcing...) — brand blue */
.hero-area--light .xb-hero-item .title {
  color: #16308D;
}

/* Mobile: shrink the subheadline and loosen line-height so wrapped
   lines don't visually collide with each other in the narrow column */
@media (max-width: 767px) {
  .hero-area--light .xb-hero-item .title {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .hero-area--light .xb-hero-item .title {
    font-size: 22px;
    line-height: 1.3;
  }
  .hero-area--light .xb-hero-heading .title,
  .hero-area--light .xb_header_text {
    font-size: 78px;
  }
}

/* Hero paragraph — dark gray for body readability */
.hero-area--light .xb-hero-item .content {
  color: #3a3a3a;
}

/* Hero buttons — primary orange (CTA), secondary blue outline */
.hero-area--light .thm-btn.construction-btn {
  background-color: #E6602E;
  color: #ffffff;
  border-color: #E6602E;
}

.hero-area--light .thm-btn.construction-btn:hover {
  background-color: #16308D;
  border-color: #16308D;
  color: #ffffff;
}

.hero-area--light .thm-btn.construction-btn.border-btn {
  background-color: #ffffff;
  color: #16308D;
  border: 2px solid #16308D;
}

.hero-area--light .thm-btn.construction-btn.border-btn:hover {
  background-color: #16308D;
  color: #ffffff;
  border-color: #16308D;
}

/* Header sits over white hero — invert nav + phone from white to dark */
body:has(.hero-area--light) #xb-header-area.header-transparent:not(.xb-header-area-sticky) .main-menu > ul > li > a,
body:has(.hero-area--light) #xb-header-area.header-transparent:not(.is-sticky) .main-menu > ul > li > a {
  color: #1b1b22;
}

body:has(.hero-area--light) #xb-header-area.header-transparent:not(.xb-header-area-sticky) .header-contact-btn a,
body:has(.hero-area--light) #xb-header-area.header-transparent:not(.is-sticky) .header-contact-btn a {
  color: #1b1b22;
}

body:has(.hero-area--light) #xb-header-area.header-transparent:not(.xb-header-area-sticky) .header-contact-btn a .icon {
  background: #16308D;
}

body:has(.hero-area--light) #xb-header-area.header-transparent:not(.xb-header-area-sticky) .header-contact-btn a .icon img {
  filter: brightness(0) invert(1);
}

body:has(.hero-area--light) #xb-header-area.header-transparent:not(.xb-header-area-sticky) .xb-nav-mobile {
  color: #1b1b22;
}

/* ============================================================
   Marquee feature strip — brand blue instead of orange
   ============================================================ */
.feature--brand {
  background-color: #16308D !important;
}

.feature--brand .xb-feature-title,
.feature--brand .xb-feature-item .xb-item--title {
  color: #ffffff;
}

/* White feature shape PNGs need depth so white titles stay readable */
.feature--brand .xb-feature-item .xb-item--shape {
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.feature--brand .xb-feature-item .xb-item--shape::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(8, 18, 56, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.feature--brand .xb-feature-item .xb-item--shape img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

/* ============================================================
   Footer logo — APGT.svg has dark text that vanishes on dark bg
   Render as white silhouette so it stays legible on #181818
   ============================================================ */
.footer .xb-footer-left a img,
.footer-area .xb-footer-left a img {
  filter: brightness(0) invert(1);
}

/* Inner-page header logo — at the top of the page the header sits over
   the breadcrumb section (colored bg). APGT.svg's dark text disappears
   against that background, so render the non-sticky logo as a white
   silhouette. When the header becomes sticky (white bg), .logo-two is
   shown instead, in its full brand colors. */
.header-area.header-area--page .xb-header:not(.xb-header-area-sticky) .xb-header-logo .logo-one img {
  filter: brightness(0) invert(1);
}

/* ============================================================
   Breadcrumb banner image — fit hero-img.png cleanly across the
   bottom of the breadcrumb section (was natural-size which let
   it overflow on wide displays)
   ============================================================ */
.breadcrumb .breadcrumb_img {
  width: 100%;
  max-width: 100%;
  pointer-events: none;
}

.breadcrumb .breadcrumb_img img {
  width: 100%;
  height: auto;
  max-height: 60%;
  display: block;
  object-fit: contain;
  object-position: bottom;
  opacity: 0.45;
}

@media (max-width: 991px) {
  .breadcrumb .breadcrumb_img img {
    max-height: 50%;
    opacity: 0.35;
  }
}

/* ============================================================
   Legal pages (privacy, imprint, cookie) — branded typography
   plus a sticky TOC sidebar for the privacy policy
   ============================================================ */
.avpg-legal-section {
  padding: 90px 0 110px;
  background: #ffffff;
}

@media (max-width: 991px) {
  .avpg-legal-section {
    padding: 60px 0 80px;
  }
}

.avpg-legal-body {
  color: #2a2a2a;
  font-size: 17px;
  line-height: 1.75;
}

.avpg-legal-body .avpg-legal-meta {
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #EEEFE6;
  color: #16308D;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.avpg-legal-body section {
  scroll-margin-top: 110px;
}

.avpg-legal-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 56px 0 16px;
  color: #16308D;
  letter-spacing: -0.01em;
}

/* Only zero out the very first h2 that sits directly under .avpg-legal-body
   (imprint / cookie pages have flat h2s). Don't zero out h2s inside
   <section> wrappers — the privacy page relies on each section's h2
   keeping its top margin so consecutive sections have breathing room. */
.avpg-legal-body > h2:first-of-type {
  margin-top: 8px;
}

.avpg-legal-body section + section {
  margin-top: 8px;
}

.avpg-legal-body p + p,
.avpg-legal-body p + ul,
.avpg-legal-body p + ol,
.avpg-legal-body ul + p,
.avpg-legal-body ol + p {
  margin-top: 12px;
}

.avpg-legal-body p,
.avpg-legal-body li,
.avpg-legal-body dd {
  color: #3a3a3a;
}

.avpg-legal-body a {
  color: #16308D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.avpg-legal-body a:hover {
  color: #E6602E;
}

.avpg-legal-body ul,
.avpg-legal-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.avpg-legal-body ul li,
.avpg-legal-body ol li {
  margin-bottom: 6px;
}

.avpg-legal-body dl {
  margin-bottom: 24px;
}

.avpg-legal-body dt {
  font-weight: 700;
  color: #16308D;
  margin-top: 14px;
}

.avpg-legal-body dd {
  margin: 4px 0 0 0;
}

.avpg-legal-body table {
  width: 100%;
  margin: 18px 0 24px;
  border-collapse: collapse;
  font-size: 15px;
}

.avpg-legal-body th {
  background: #16308D;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #16308D;
}

.avpg-legal-body td {
  border: 1px solid #DDDBDB;
  padding: 12px 14px;
  vertical-align: top;
}

.avpg-legal-body code {
  background: #f3f4ef;
  border: 1px solid #e3e4dc;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: #16308D;
}

.avpg-legal-body .avpg-cookie-btn--link {
  background: none;
  border: 0;
  padding: 0;
  color: #16308D;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  cursor: pointer;
}

.avpg-legal-body .avpg-cookie-btn--link:hover {
  color: #E6602E;
}

/* Imprint — branded company identity card.
   Specificity note: all rules below are scoped under `.avpg-legal-body`
   so they beat the global `.avpg-legal-body p|li|dd { color: #3a3a3a }`
   rule (which would otherwise paint the tagline + contact lines dark grey
   on the dark card). */
.avpg-legal-body .avpg-imprint-identity {
  position: relative;
  margin: 0 0 48px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e4dc;
  box-shadow: 0 24px 60px -36px rgba(22, 48, 141, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.avpg-legal-body .avpg-imprint-identity::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #16308D 0%, #2B57D6 55%, #E6602E 100%);
  z-index: 1;
}

/* Top section — branded panel */
.avpg-legal-body .avpg-imprint-identity__top {
  display: flex;
  gap: 36px;
  align-items: center;
  padding: 44px 44px 40px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(230, 96, 46, 0.08) 0%, rgba(230, 96, 46, 0) 55%),
    linear-gradient(135deg, #16308D 0%, #1B3FAE 55%, #2148C2 100%);
  color: #ffffff;
}

@media (max-width: 767px) {
  .avpg-legal-body .avpg-imprint-identity__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 26px 30px;
  }
}

.avpg-legal-body .avpg-imprint-identity__brand {
  flex-shrink: 0;
  width: 210px;
  padding: 26px 28px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .avpg-legal-body .avpg-imprint-identity__brand {
    width: 180px;
    padding: 22px 24px;
  }
}

.avpg-legal-body .avpg-imprint-identity__brand img {
  max-width: 100%;
  height: auto;
  display: block;
}

.avpg-legal-body .avpg-imprint-identity__intro {
  flex: 1;
  min-width: 0;
}

.avpg-legal-body .avpg-imprint-identity__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(230, 96, 46, 0.95);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.avpg-legal-body .avpg-imprint-identity__name {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

@media (max-width: 575px) {
  .avpg-legal-body .avpg-imprint-identity__name {
    font-size: 22px;
  }
}

.avpg-legal-body .avpg-imprint-identity__tagline {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 60ch;
}

/* Bottom section — contact grid on a light panel */
.avpg-legal-body .avpg-imprint-identity__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  background: #ffffff;
  list-style: none;
}

@media (max-width: 575px) {
  .avpg-legal-body .avpg-imprint-identity__contacts {
    grid-template-columns: 1fr;
  }
}

.avpg-legal-body .avpg-imprint-identity__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 28px;
  margin: 0;
  border-top: 1px solid #ececec;
  border-right: 1px solid #ececec;
  color: #2a2a2a;
}

.avpg-legal-body .avpg-imprint-identity__contact:nth-child(2n) {
  border-right: none;
}

@media (max-width: 575px) {
  .avpg-legal-body .avpg-imprint-identity__contact,
  .avpg-legal-body .avpg-imprint-identity__contact:nth-child(2n) {
    border-right: none;
  }
}

.avpg-legal-body .avpg-imprint-identity__contact--wide {
  grid-column: 1 / -1;
  border-right: none;
}

.avpg-legal-body .avpg-imprint-identity__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #16308D;
}

.avpg-legal-body .avpg-imprint-identity__value {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: #1B1B22;
  word-break: break-word;
}

.avpg-legal-body .avpg-imprint-identity a.avpg-imprint-identity__value {
  color: #16308D;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 48, 141, 0.25);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  width: max-content;
  max-width: 100%;
}

.avpg-legal-body .avpg-imprint-identity a.avpg-imprint-identity__value:hover {
  color: #E6602E;
  border-bottom-color: #E6602E;
}

/* TOC (privacy page) */
.avpg-toc {
  background: #f7f8f3;
  border: 1px solid #e3e4dc;
  border-radius: 12px;
  padding: 22px 24px;
}

@media (min-width: 992px) {
  /* Let the TOC column stretch to the content column's height (Bootstrap's
     default align-items: stretch). That tall column is the sticky element's
     containing block — without it, sticky has no vertical travel room and
     simply scrolls away with the page. */
  .avpg-toc {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
}

.avpg-toc summary {
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: #16308D;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avpg-toc summary::-webkit-details-marker {
  display: none;
}

.avpg-toc summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: #E6602E;
  transition: transform 0.2s ease;
}

.avpg-toc[open] summary::after {
  content: "−";
}

@media (min-width: 992px) {
  .avpg-toc summary {
    cursor: default;
  }
  .avpg-toc summary::after {
    display: none;
  }
}

.avpg-toc nav {
  margin-top: 16px;
}

.avpg-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.avpg-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.avpg-toc a {
  display: block;
  padding: 6px 0;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.avpg-toc a::before {
  content: counter(toc) ". ";
  color: #E6602E;
  font-weight: 600;
  margin-right: 4px;
}

.avpg-toc a:hover {
  color: #16308D;
  border-left-color: #E6602E;
}

/* Solutions overview — uniform card images (340×234, cover crop, no letterboxing) */
.solutions-overview .sp-service-item .xb-item--img {
  position: relative;
  width: 340px;
  max-width: 340px;
  flex-shrink: 0;
  height: 234px;
  overflow: hidden;
  background-color: #e8e8e4;
}

.solutions-overview .sp-service-item .xb-item--img a {
  position: absolute;
  inset: 0;
  display: block;
}

.solutions-overview .sp-service-item .xb-item--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.solutions-overview .sp-service-item:hover .xb-item--img img {
  transform: scale(1.06);
}

@media (max-width: 767px) {
  .solutions-overview .sp-service-item .xb-item--img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 340 / 234;
  }
}

/* Solutions overview page: reduce title size for longer solution names */
.sp-service-item .xb-item--title {
  font-size: 36px;
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  .sp-service-item .xb-item--title {
    font-size: 30px;
  }
}

@media (max-width: 991px) {
  .sp-service-item .xb-item--title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .sp-service-item .xb-item--title {
    font-size: 22px;
  }
}

/* Solutions list: reduce font size for longer Avisenergy solution names */
.xb-service-item .xb-heading .xb-title {
  font-size: 38px;
}

@media only screen and (min-width: 1200px) and (max-width: 1500px) {
  .xb-service-item .xb-heading .xb-title {
    font-size: 32px;
  }
}

@media (max-width: 1199px) {
  .xb-service-item .xb-heading .xb-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .xb-service-item .xb-heading .xb-title {
    font-size: 20px;
  }
}

#preloader .loader .loader-icon {
  width: 70px;
}
#preloader .loader .loader-icon img {
  width: 100%;
  height: auto;
}

/* FAQ accordion — reserve space on the right so wrapped question text
   doesn't run underneath the absolutely-positioned +/- toggle icon */
.career-faq .accordion_box .block .acc-btn {
  padding-right: 90px;
}

@media (max-width: 767px) {
  .career-faq .accordion_box .block .acc-btn {
    font-size: 16px;
    line-height: 1.4;
    padding: 20px 64px 20px 16px;
    word-break: break-word;
  }
  .career-faq .accordion_box .block .acc-btn .arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    height: 30px;
    width: 30px;
  }
  .career-faq .accordion_box .block .acc-btn .arrow::before {
    font-size: 13px;
    top: 3px;
    left: 9px;
  }
}

@media (max-width: 480px) {
  .career-faq .accordion_box .block .acc-btn {
    font-size: 13px;
    line-height: 1.45;
    padding: 18px 54px 18px 14px;
  }
  .career-faq .accordion_box .block .acc-btn .number {
    margin-right: 4px;
  }
  .career-faq .accordion_box .block .acc-btn .arrow {
    right: 12px;
    height: 26px;
    width: 26px;
  }
  .career-faq .accordion_box .block .acc-btn .arrow::before {
    font-size: 12px;
    top: 2px;
    left: 7px;
  }
  .career-faq .accordion_box .block .content {
    padding: 16px 18px 22px 16px;
  }
  .career-faq .accordion_box .block .content p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Footer — contact column: offices + channels (readable multi-location layout) */
.xb-footer-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 1200px) {
  .xb-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  }
}

.xb-footer-contact_info {
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  .xb-footer-contact_info {
    grid-column: auto;
  }
}

.xb-footer-contact_info .xb-widget-title {
  margin-bottom: 18px;
}

.avpg-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.avpg-footer-office {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.avpg-footer-office:last-of-type {
  margin-bottom: 20px;
}

.avpg-footer-office__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.3;
}

.avpg-footer-office__address {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.avpg-footer-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.avpg-footer-channels li {
  margin: 0;
  line-height: 1.4;
}

.avpg-footer-channels a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.avpg-footer-channels a:hover {
  color: var(--color-primary);
}

.avpg-footer-channels__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 14px;
}

/* Contact page — sidebar offices (matches footer hierarchy) */
.avpg-contact-sidebar {
  justify-content: flex-start;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.avpg-contact-offices {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.avpg-contact-office {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(24, 24, 24, 0.1);
}

.avpg-contact-office:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.avpg-contact-office__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
}

.avpg-contact-office__address {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: inherit;
}

.avpg-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.avpg-contact-channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.45;
  color: inherit;
  text-decoration: none;
}

.avpg-contact-channels a:hover {
  color: var(--color-primary);
}

.avpg-contact-channels__icon {
  color: var(--color-brand-blue);
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
}

.avpg-contact-hours {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(24, 24, 24, 0.1);
}
