/* Solaria Holding — brand overrides on Payset / Arquantix DS */

/* Wordmark like Cassora on preview.arquantix.com — ES Rebond / display font */
body.aq-page .m-header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
}
body.aq-page .m-header__logo img {
  display: none;
}
body.aq-page .m-header__logo::after {
  content: "Solaria";
}
.aq-nav-drawer__brand {
  font-family: var(--font-display);
  font-weight: 700;
}

/* Home m03 — video background instead of still */
.m-guarantee--video {
  background-image: none !important;
  background-color: var(--ink);
}
.m-guarantee__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.m-guarantee--video::before {
  z-index: 1;
}
.m-guarantee--video .m-guarantee__content,
.m-guarantee--video .m-guarantee__panel {
  z-index: 2;
}

/* Home pillars — 4 columns */
.aq-steps--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .aq-steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .aq-steps--4 {
    grid-template-columns: 1fr;
  }
}

/* Home stats — Payset token language */
.so-home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.so-home-stat {
  background: #fff;
  border: 1px solid var(--clay);
  border-radius: var(--card-r);
  padding: 22px 20px;
}
.so-home-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.so-home-stat span {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* Timeline */
.so-timeline {
  display: grid;
  gap: 12px;
  margin: 8px 0 28px;
}
.so-tl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--clay);
  border-radius: var(--card-r);
  background: #fff;
}
.so-tl__when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}
.so-tl h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink);
}
.so-tl p {
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
  margin: 0;
}

/* Image grids */
.so-cgrid,
.so-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.so-cgrid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.so-cgrid a,
.so-gallery a {
  display: block;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--clay);
}
.so-cgrid img,
.so-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.so-cgrid a:hover img,
.so-gallery a:hover img {
  transform: scale(1.04);
}

/* Plans / films */
.so-plans,
.so-films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.so-plan,
.so-film {
  background: #fff;
  border: 1px solid var(--clay);
  border-radius: var(--card-r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.so-plan:hover {
  transform: translateY(-2px);
  border-color: var(--stone);
}
.so-plan__media {
  aspect-ratio: 16 / 10;
  background: #fafafa;
  display: grid;
  place-items: center;
  padding: 16px;
}
.so-plan__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.so-plan__cap,
.so-film__meta {
  padding: 18px 20px 22px;
}
.so-plan__cap strong,
.so-film__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}
.so-plan__cap span,
.so-film__meta span {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.so-film video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

/* Map */
.so-map {
  border-radius: var(--card-r);
  overflow: hidden;
  border: 1px solid var(--clay);
  aspect-ratio: 16 / 9;
  background: var(--clay);
}
.so-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.so-portfolio-filters-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

/* About — Where we build: photo replaces world map */
.a-map__img--photo {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: var(--card-r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--clay);
  margin-top: 12px;
}
.a-map__img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Contact — promo panel full-bleed image + left full-height shade (Arquantix layout) */
.c-promo--cover {
  padding: 0;
  background: var(--ink);
  min-height: 560px;
}
.c-promo--cover .c-promo__media {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.c-promo--cover .c-promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.c-promo--cover .c-promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Full-height left shade — no horizontal break */
  background: linear-gradient(
    90deg,
    rgba(18, 19, 20, 0.72) 0%,
    rgba(18, 19, 20, 0.45) 38%,
    rgba(18, 19, 20, 0.12) 68%,
    rgba(18, 19, 20, 0) 100%
  );
}
.c-promo--cover .c-promo__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 560px;
  padding: 40px;
  background: none;
}
.c-promo--cover .c-promo__copy h2 {
  color: #fff;
  margin: 0 0 16px;
}
.c-promo--cover .c-promo__copy p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 34ch;
  margin: 0;
}
@media (max-width: 900px) {
  .c-promo--cover,
  .c-promo--cover .c-promo__copy {
    min-height: 420px;
  }
  .c-promo--cover .c-promo__media::after {
    background: linear-gradient(
      180deg,
      rgba(18, 19, 20, 0.7) 0%,
      rgba(18, 19, 20, 0.35) 45%,
      rgba(18, 19, 20, 0.15) 100%
    );
  }
}

/* Lightbox */
.so-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.so-lb.is-open {
  display: flex;
}
.so-lb img {
  max-width: min(1200px, 100%);
  max-height: 85vh;
  object-fit: contain;
}
.so-lb button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
}
.so-lb__x {
  top: 20px;
  right: 22px;
}
.so-lb__prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.so-lb__next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.so-lb__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .so-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .so-gallery,
  .so-cgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .so-tl {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .so-plans,
  .so-films,
  .so-gallery,
  .so-cgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .so-home-stats,
  .so-plans,
  .so-films,
  .so-gallery,
  .so-cgrid {
    grid-template-columns: 1fr;
  }
}
