/* =========================================================
   APPLE CENTER TEXT – ROOT
   ======================================================= */

.apple-center-text-component {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 80px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-color, #ffffff);
  overflow: visible;
}

/* Optional full-width flag if you ever need it */
.apple-center-text-component.apple-center-text--full-width {
  max-width: 100%;
}

/* Optional shadow “card” variant */
.apple-center-text-component.apple-center-text--shadow {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

/* =========================================================
   FULL-BLEED HERO IMAGE WITH 50% GRADIENT
   ======================================================= */

.apple-center-text-component .apple-center-text-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  left: 50%;
  margin-left: -50%;
  max-height: 520px;
  overflow: hidden;
}

.apple-center-text-component .apple-center-text-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Centers image crop */
}

.apple-center-text-component .apple-center-text-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* Same feel as apple-right-text-component__gradient */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.0) 1%,
    rgba(0, 0, 0, 0.20) 15%,
    rgba(0, 0, 0, 0.50) 50%
  );
}
/* Gradient overlay:
   from 0–50%: transparent
   50–100%: fades to white / background color */
.apple-center-text-component .apple-center-text-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1)10%,
    rgba(255, 255, 255, 0.5) 50%,
    var(--background-color, #ffffff) 100%
  );
}

/* =========================================================
   TEXT BLOCK – OVERLAPPING THE GRADIENT
   ======================================================= */

.apple-center-text-component .apple-center-text-body {
  position: relative;
  z-index: 1;
  max-width: var(--site-max-width, 1120px);
  margin: clamp(-280px, -42vh, -80px) auto 0; /* pull up over image */
  padding: 0 24px 40px;
  text-align: center;
}

/* Eyebrow (small label above title) */
.apple-center-text-component .apple-center-text-eyebrow {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.7);
}

/* Main title */
.apple-center-text-component .apple-center-text-title {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  color: #0f172a;
}

/* Separator line */
.apple-center-text-component .apple-center-text-separator {
  width: 44px;
  height: 2px;
  margin: 16px auto 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

/* Description */
.apple-center-text-component .apple-center-text-description {
  margin: 0 auto 28px;
  max-width: 1024px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(55, 65, 81, 0.95);
}

/* =========================================================
   BUTTON – Apple pill
   ======================================================= */

.apple-center-text-component .apple-center-text-btn {
  margin-top: 4px;
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background-color: #0071e3;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(15, 23, 42, 0.5);
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* If .afhBtn global styles exist, neutralize them here but keep pill look */
.apple-center-text-component .afhBtn {
  all: unset;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 10px 26px;
  border-radius: 999px;
  background-color: #0071e3;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(15, 23, 42, 0.5);
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.apple-center-text-component .apple-center-text-btn:hover,
.apple-center-text-component .afhBtn:hover {
  background-color: #0b84ff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 22px 50px rgba(15, 23, 42, 0.65);
}

/* =========================================================
   MINIMAL VARIANT (NO HERO IMAGE)
   ======================================================= */

.apple-center-text-component.apple-center-text--minimal {
  padding-top: 64px;
}

.apple-center-text-component .apple-center-text-minimal-body {
  margin: 0 auto 40px;
  max-width: 760px;
  padding: 36px 32px 40px;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* =========================================================
   RESPONSIVE
   ======================================================= */

@media (max-width: 900px) {
  .apple-center-text-component .apple-center-text-body {
    margin-top: clamp(-110px, -10vh, -70px);
    padding: 0 18px 36px;
  }

  .apple-center-text-component .apple-center-text-description {
    padding: 0 4px;
  }
}

@media (max-width: 600px) {
  .apple-center-text-component {
    padding-bottom: 56px;
  }

  .apple-center-text-component .apple-center-text-body {
    margin-top: clamp(-90px, -9vh, -60px);
    padding: 0 16px 32px;
  }

  .apple-center-text-component .apple-center-text-title {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .apple-center-text-component .apple-center-text-description {
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: left;
  }

  .apple-center-text-component .apple-center-text-minimal-body {
    padding: 28px 20px 32px;
  }
}
