/* ================================================================
   QUALZY — Solutions Page
   ================================================================ */

/* SCROLL BEHAVIOUR
   Smooth scrolling for in-page anchor navigation.
   scroll-margin-top on cards so fixed nav doesn't obscure them.
   ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }


/* HERO
   ---------------------------------------------------------------- */
.sol-hero {
  background: var(--dk);
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

/* Decorative SVG texture — full bleed behind hero content */
.sol-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* .pad inside hero provides the actual spacing including nav offset */
.sol-hero .pad {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.sol-hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.sol-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 22px;
}

.sol-hero h1 em {
  color: var(--o);
  font-style: italic;
}

.sol-hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* Eyebrow badge on dark background */
.sol-hero .ey,
.ey--light {
  background: rgba(250, 88, 2, 0.15);
  border-color: rgba(250, 88, 2, 0.4);
  color: var(--o);
}

/* Jump-to section tabs — defined in components.css */


/* SECTION GROUP — shared
   ---------------------------------------------------------------- */
.sol-group { background: var(--wh); }
.sol-group--pale { background: var(--op); }
.sol-group--dark { background: var(--dk); }

.sol-grp-hd {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.sol-grp-hd .slbl {
  color: var(--o);
  margin-bottom: 10px;
}

.sol-grp-hd .stit {
  margin-bottom: 16px;
}

.sol-grp-hd .sbod {
  margin: 0;
}


/* SOLUTION CARDS GRID
   ---------------------------------------------------------------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* For a 3-card row (Shopper & Growth), we want them centred */
.sol-grid--three {
  max-width: 960px;
  margin: 0 auto;
}

.sol-card {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 88px;
}

.sol-card:hover {
  border-color: var(--o);
  box-shadow: 0 8px 36px rgba(250, 88, 2, 0.1);
}

.sol-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--o);
  background: var(--op);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.sol-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dk);
  margin: 0 0 12px;
  line-height: 1.25;
}

.sol-card > p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
  margin: 0 0 18px;
  flex-grow: 0;
}

.sol-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
  flex-grow: 1;
}

.sol-card ul li {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.sol-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--o);
  border-radius: 50%;
  flex-shrink: 0;
}

.sol-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--o);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.15s ease;
}

.sol-card-link:hover { color: var(--o2); }

/* On pale backgrounds, cards stay white */
.sol-group--pale .sol-card {
  background: #fff;
}


/* SECTOR CARDS GRID
   ---------------------------------------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.sector-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  scroll-margin-top: 88px;
}

.sector-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(250, 88, 2, 0.4);
}

.sector-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.sector-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.sector-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  margin: 0 0 18px;
  flex-grow: 1;
}

.sector-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--o);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sector-link:hover { color: var(--ol); }


/* SUCCESS STORIES SECTION
   ---------------------------------------------------------------- */
.sol-ss {
  background: #fff;
  border-top: 1px solid var(--rule);
}

.sol-ss-hd {
  text-align: center;
  margin-bottom: 36px;
}

.sol-ss-hd .stit { margin-bottom: 0; }

.sol-ss-stats {
  display: flex;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
}

.sol-ss-stats > div {
  flex: 1;
  text-align: center;
  padding: 22px 20px;
  border-right: 1.5px solid var(--rule);
}

.sol-ss-stats > div:last-child { border-right: none; }

.sol-ss-sn {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  color: var(--o);
  line-height: 1.1;
  margin-bottom: 5px;
}

.sol-ss-sl {
  font-size: 11.5px;
  color: var(--mu);
  line-height: 1.5;
}

.sol-ss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.sol-ss-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--wh);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.sol-ss-tile:hover {
  border-color: var(--o);
  box-shadow: 0 4px 16px rgba(250, 88, 2, 0.1);
}

.sol-ss-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--mu);
  transition: color var(--t-base);
}

.sol-ss-tile:hover .sol-ss-icon { color: var(--o); }
.sol-ss-icon svg { width: 18px; height: 18px; }

.sol-ss-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dk);
  transition: color var(--t-base);
}

.sol-ss-tile:hover .sol-ss-label { color: var(--o); }

.sol-ss-foot {
  text-align: center;
}

.sol-ss-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--o);
  text-decoration: none;
}

.sol-ss-link:hover { text-decoration: underline; }


/* QUALZY FOR SECTION
   ---------------------------------------------------------------- */
.sol-for {
  background: var(--wh);
  border-top: 1px solid var(--rule);
}

.sol-for-hd {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.sol-for-hd .stit { margin-bottom: 16px; }
.sol-for-hd .sbod { margin: 0; }

.sol-for-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sol-for-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.sol-for-chip:hover {
  border-color: var(--o);
  box-shadow: 0 4px 16px rgba(250, 88, 2, 0.08);
}

.sol-for-chip-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--mu);
  transition: color var(--t-base);
}

.sol-for-chip:hover .sol-for-chip-icon { color: var(--o); }
.sol-for-chip-icon svg { width: 16px; height: 16px; }

.sol-for-chip-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk);
  white-space: nowrap;
  transition: color var(--t-base);
}

.sol-for-chip:hover .sol-for-chip-label { color: var(--o); }


/* RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sol-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sol-ss-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .sol-ss-stats {
    flex-wrap: wrap;
  }

  .sol-ss-stats > div {
    flex: 1 1 50%;
    border-bottom: 1.5px solid var(--rule);
  }

  .sol-ss-stats > div:nth-child(even) { border-right: none; }
  .sol-ss-stats > div:nth-last-child(-n+2) { border-bottom: none; }

  .sol-for-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .sol-hero { padding-top: 110px; }

  .sol-grid,
  .sol-grid--three,
  .sector-grid,
  .sol-ss-grid {
    grid-template-columns: 1fr;
  }

  .sol-card { padding: 24px 20px; }

  .sol-grp-hd { text-align: left; }
}
