/*
 * YMCA of Greater Tulsa — special-offer.css
 * Sitewide Special Offer box (template-parts/special-offer.php)
 * Matches the Open House .oh-offer-box design (full-width band on Home).
 * Loaded on: Home, Membership Cost, Personal Training.
 */

.so-section {
  width: 100%;
}
.so-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad, 64px);
}

/* Home: full-width (edge-to-edge) band below Community Impact */
.so-section--home .so-inner {
  max-width: none;
  padding: 0;
}
.so-section--home .so-box {
  border-radius: 0;
  padding: 64px var(--pad, 64px);
}
.so-section--home .so-box::before {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -80px;
}
.so-section--home .so-box::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  left: -60px;
}
.so-section--home .so-items {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Subpages: first thing under the hero. The content wrapper that
   follows already has top padding, so no bottom padding here. */
.so-section--page {
  padding-top: 64px;
}

/* ── Box ── */
.so-box {
  background: linear-gradient(135deg, #085041 0%, #0f6e56 100%);
  color: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.so-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.so-box::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.so-box > * {
  position: relative;
  z-index: 1;
}

.so-star {
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
}
.so-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}
.so-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.so-items {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.so-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px 24px;
  min-width: 180px;
}
.so-item-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.so-item-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.so-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green-xdk, #085041);
  background: #fff;
  border: 1.5px solid #fff;
  border-radius: 4px;
  padding: 12px 26px;
  margin-bottom: 18px;
  transition:
    background 0.15s,
    color 0.15s;
}
.so-btn:hover {
  background: transparent;
  color: #fff;
}

.so-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .so-inner {
    padding: 0 var(--pad, 20px);
  }
  .so-section--home .so-box {
    padding: 48px var(--pad, 20px);
  }
  .so-section--page {
    padding-top: 48px;
  }
  .so-box {
    padding: 28px 24px;
  }
  .so-items {
    flex-direction: column;
  }
  .so-item {
    min-width: unset;
  }
  .so-btn {
    width: 100%;
  }
}
