/* ==========================================================
   ACADEMIC HELP — SEMESTER ASSIGNMENT LANDING PAGE
   Requires service-pages.css (shared foundations)
   ========================================================== */





/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--sp-pink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.sp-hero h1,
.sp-section h2,
.sp-cta h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

.sp-hero h1 span,
.sp-section h2 span {
  color: var(--sp-pink);
}

.sp-section h2 {
  color: var(--sp-navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ==========================================================
   HERO
   ========================================================== */

.sp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 55px 0 110px;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 61, 139, 0.16),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #0f1b3d 0%,
      #142750 65%,
      #1b315b 100%
    );
  color: var(--sp-white);
}

.sp-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 470px;
  height: 470px;
  right: -180px;
  bottom: -260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 72px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.sp-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-breadcrumb a:hover {
  color: var(--sp-pink);
}

.sp-hero__content {
  max-width: 850px;
}

.sp-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.sp-hero h1 span {
  display: block;
}

.sp-lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.85;
}

.sp-hero__note {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.sp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.sp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sp-button:hover {
  transform: translateY(-2px);
}

.sp-button--primary {
  background: var(--sp-pink);
  color: var(--sp-navy);
  box-shadow: 0 12px 30px rgba(255, 61, 139, 0.2);
}

.sp-button--primary:hover {
  background: #ff65a3;
  box-shadow: 0 16px 35px rgba(255, 61, 139, 0.28);
}

.sp-button--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-white);
}

.sp-button--ghost:hover {
  border-color: var(--sp-white);
  background: rgba(255, 255, 255, 0.1);
}

.sp-button--dark {
  background: var(--sp-navy);
  color: var(--sp-white);
  flex-shrink: 0;
}

.sp-button--dark:hover {
  background: var(--sp-navy-light);
}

.sp-button:focus-visible,
.sp-breadcrumb a:focus-visible {
  outline: 3px solid var(--sp-pink);
  outline-offset: 4px;
}

/* ==========================================================
   SECTIONS
   ========================================================== */

.sp-section {
  padding: 100px 0;
  background: var(--sp-white);
}

.sp-section--soft {
  background: var(--sp-soft);
}

.sp-section__intro {
  max-width: 740px;
  margin-bottom: 45px;
}

.sp-section__intro > p:last-child,
.sp-related > div > p:last-child {
  margin: 22px 0 0;
  color: var(--sp-muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ==========================================================
   SERVICE CARDS
   ========================================================== */

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sp-card {
  position: relative;
  min-width: 0;
  padding: 32px 28px 35px;
  overflow: hidden;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 27, 61, 0.035);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.sp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--sp-pink),
    rgba(255, 61, 139, 0.08)
  );
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1);
}

.sp-card:hover::before {
  transform: scaleX(1);
}

.sp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 61, 139, 0.32);
  box-shadow: 0 18px 45px rgba(15, 27, 61, 0.09);
}

.sp-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 47px;
  height: 35px;
  margin-bottom: 27px;
  padding: 0 12px;
  background: var(--sp-pink-soft);
  color: var(--sp-pink);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sp-card h3 {
  margin: 0 0 14px;
  color: var(--sp-navy);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.4;
}

.sp-card p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ==========================================================
   PROCESS STEPS
   ========================================================== */

.sp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.sp-steps article {
  position: relative;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  background: var(--sp-white);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Animated progress accent matching the statistics landing page. */
.sp-steps article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sp-pink);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}

.sp-steps article:hover {
  border-color: rgba(255, 61, 139, 0.32);
  box-shadow: 0 12px 30px rgba(15, 27, 61, 0.07);
}

.sp-steps article:hover::before {
  transform: scaleX(1);
}

.sp-steps article > span {
  display: block;
  margin-bottom: 25px;
  color: var(--sp-pink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sp-steps h3 {
  margin: 0 0 13px;
  color: var(--sp-navy);
  font-size: 1.16rem;
  line-height: 1.45;
}

.sp-steps p {
  margin: 0;
  color: var(--sp-muted);
  line-height: 1.8;
}

/* ==========================================================
   RELATED SERVICE
   ========================================================== */

.sp-related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.sp-related > div {
  max-width: 710px;
}

/* ==========================================================
   FAQ
   ========================================================== */

.sp-faq-wrap {
  max-width: 900px;
}

.sp-faq-list {
  display: grid;
  gap: 12px;
}

.sp-faq {
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  background: var(--sp-white);
  overflow: hidden;
}

.sp-faq summary {
  position: relative;
  display: block;
  padding: 23px 60px 23px 25px;
  color: var(--sp-navy);
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.sp-faq summary::-webkit-details-marker {
  display: none;
}

.sp-faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-pink);
  font-size: 1.6rem;
  font-weight: 400;
}

.sp-faq[open] summary::after {
  content: "−";
}

.sp-faq[open] summary {
  color: var(--sp-pink);
}

.sp-faq > p {
  margin: 0;
  padding: 0 25px 25px;
  color: var(--sp-muted);
  line-height: 1.85;
}

/* ==========================================================
   FINAL CTA
   ========================================================== */

.sp-cta {
  position: relative;
  overflow: hidden;
  padding: 95px 0;
  background: var(--sp-navy);
  color: var(--sp-white);
  text-align: center;
}

.sp-cta::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 61, 139, 0.09);
  filter: blur(15px);
  pointer-events: none;
}

.sp-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.sp-cta .sp-eyebrow {
  justify-content: center;
}

.sp-cta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.sp-cta__inner > p:not(.sp-eyebrow) {
  margin: 23px auto 30px;
  max-width: 570px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 950px) {
  .sp-grid,
  .sp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-related {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .sp-section {
    padding: 80px 0;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {
  .sp-container {
    width: min(100% - 32px, 1160px);
  }

  .sp-hero {
    padding: 30px 0 75px;
  }

  .sp-breadcrumb {
    margin-bottom: 55px;
    font-size: 0.8rem;
  }

  .sp-hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.4rem);
  }

  .sp-lead {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .sp-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sp-actions .sp-button {
    width: 100%;
  }

  .sp-section {
    padding: 65px 0;
  }

  .sp-section__intro {
    margin-bottom: 30px;
  }

  .sp-section h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .sp-grid,
  .sp-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .sp-card,
  .sp-steps article {
    padding: 27px 24px;
  }

  .sp-card__number {
    margin-bottom: 20px;
  }

  .sp-faq summary {
    padding: 20px 55px 20px 20px;
  }

  .sp-faq > p {
    padding: 0 20px 22px;
  }

  .sp-cta {
    padding: 75px 0;
  }

  .sp-cta .sp-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-button,
  .sp-card,
  .sp-card::before,
  .sp-steps article,
  .sp-steps article::before {
    transition: none;
  }

  .sp-button:hover,
  .sp-card:hover {
    transform: none;
  }
}

/* Semester assignment: restrained accent variant. */
.sp-hero {
  background: radial-gradient(circle at 84% 18%, rgba(255,61,139,.15), transparent 38%),
              linear-gradient(135deg,#0f1b3d 0%,#142750 62%,#1b315b 100%);
}
