/* Styles specific to MapleKind service detail pages
 * This sheet provides layout and typography rules for the service pages introduced
 * in MK‑SEO‑PHASE2. It keeps a lightweight footprint by only targeting
 * custom classes defined in the new PHP templates. The design aligns with
 * the existing MapleKind aesthetic: clean, spacious and approachable.
 */

/* Ensure sufficient space below the fixed header */
.service-page {
  padding-top: 150px;
  font-family: var(--mk-font-base);
  color: #243B53;
  background: var(--bg);
}

/* Hero section */
.service-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 62vh, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-image:
    linear-gradient(135deg, rgba(0, 68, 97, 0.9) 0%, rgba(0, 124, 145, 0.85) 55%, rgba(255, 255, 255, 0.05) 100%),
    url('/assets/help245.webp');
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  margin: 0 auto 2.5rem;
  max-width: 1100px;
  box-shadow: 0 25px 60px rgba(5, 40, 65, 0.25);
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 55%);
  z-index: 0;
}
.service-hero::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 8%;
  width: 140px;
  height: 84px;
  background-image: url('/assets/logo.webp');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.service-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.service-hero .hero-kicker,
.service-hero .hero-lead,
.service-hero .hero-cta {
  position: relative;
  z-index: 1;
}
.service-hero .hero-kicker {
  color: var(--mk-gold);
  opacity: 0.95;
}
.service-hero .hero-lead {
  color: #F7FAFC;
  max-width: 680px;
}
.service-hero .hero-cta {
  margin-top: 0.5rem;
}

/* Body text container */
.service-body {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.65;
  font-size: 1rem;
}
.service-body p {
  margin-bottom: 1.25rem;
}
.service-body p:last-child {
  margin-bottom: 0;
}
.service-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Related services list */
.service-related {
  max-width: 760px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
}
.service-related h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--mk-teal);
}
.service-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}
.service-related a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  background-color: rgba(0,124,145,0.07);
  border-radius: 999px;
  color: var(--mk-teal);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-related a:hover,
.service-related a:focus-visible {
  background-color: rgba(0,124,145,0.18);
  box-shadow: 0 8px 18px rgba(0, 124, 145, 0.15);
  color: var(--mk-teal-dark);
  transform: translateY(-2px);
}

/* Services hub grid */
.service-list {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}
.service-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.service-hub-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(15, 37, 64, 0.08);
  border: 1px solid rgba(0, 124, 145, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-hub-card h3 {
  margin: 0 0 0.65rem 0;
  font-size: 1.25rem;
  color: var(--mk-teal);
}
.service-hub-card p {
  margin: 0;
  color: #1A1A1A;
  font-size: 0.97rem;
  line-height: 1.45;
}
.service-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(15, 37, 64, 0.15);
  border-color: rgba(0, 124, 145, 0.18);
}
.service-hub-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(15, 37, 64, 0.15);
  border-color: rgba(0, 124, 145, 0.18);
  outline: 2px solid var(--mk-gold);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .service-page {
    padding-top: 130px;
  }
  .service-hero {
    margin: 0 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .service-page {
    padding-top: 120px;
  }
  .service-hero {
    min-height: 320px;
    padding: 2.5rem 1rem;
    border-radius: 20px;
  }
  .service-body,
  .service-related {
    padding: 0 1rem;
  }
  .service-related ul {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
