/**
 * Mac Angelo — Service Page Styles
 * Covers: single-ma_service.php sections S1–S7
 * Inherits all design tokens from homepage.css :root
 *
 * @package mac-angelo-child
 * @version 1.0.0
 */

/* ============================================================
   SHARED UTILITIES
   ============================================================ */

.ma-service-page {
  --sv-max-w: var(--ma-max-w, 1280px);
  --sv-pad-x: var(--ma-pad-x, clamp(24px, 5vw, 80px));
  --sv-section-y: var(--ma-section-y, clamp(52px, 7vw, 80px));
}

/* Constrained container used by all service sections */
.ma-sv-hero__inner,
.ma-sv-overview__inner,
.ma-sv-benefits__inner,
.ma-sv-process__inner,
.ma-sv-faq__inner,
.ma-sv-related__inner,
.ma-sv-cta__inner {
  max-width: var(--sv-max-w);
  margin-inline: auto;
  padding-inline: var(--sv-pad-x);
}

/* Prose (WYSIWYG output) */
.ma-prose p,
.ma-prose li {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ma-muted, #4A4A4A);
}
.ma-prose p + p { margin-top: 1em; }
.ma-prose ul,
.ma-prose ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.ma-prose li { margin-bottom: 0.5em; }
.ma-prose strong { font-weight: 700; color: var(--ma-text, #0A0A0A); }
.ma-prose a { color: var(--ma-teal, #1A9F9F); text-decoration: underline; }


/* ============================================================
   BREADCRUMB
   ============================================================ */

.ma-breadcrumb {
  margin-bottom: 28px;
}
.ma-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ma-subtle, #A8A8A0);
}
.ma-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.ma-breadcrumb a {
  color: var(--ma-muted, #4A4A4A);
  text-decoration: none;
  transition: color 0.2s;
}
.ma-breadcrumb a:hover { color: var(--ma-teal, #1A9F9F); }
.ma-breadcrumb [aria-current="page"] { color: var(--ma-text, #0A0A0A); font-weight: 600; }


/* ============================================================
   S1 — HERO
   ============================================================ */

.ma-sv-hero {
  background: var(--ma-offwhite, #F9F9F6);
  padding: var(--sv-section-y) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

/* Geometric corner polygons */
.ma-sv-hero__geo-tl,
.ma-sv-hero__geo-br {
  position: absolute;
  pointer-events: none;
}
.ma-sv-hero__geo-tl {
  top: 0; left: 0;
  width: clamp(180px, 20vw, 320px);
  height: clamp(120px, 14vw, 220px);
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.ma-sv-hero__geo-br {
  bottom: 0; right: 0;
  width: clamp(160px, 18vw, 280px);
  height: clamp(100px, 12vw, 200px);
  background: linear-gradient(315deg, rgba(26,159,159,0.07) 0%, transparent 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.ma-sv-hero__inner {
  position: relative;
  z-index: 1;
}

.ma-sv-hero__content {
  max-width: 740px;
}

.ma-sv-hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ma-text, #0A0A0A);
  margin: 0 0 20px;
}

.ma-sv-hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ma-muted, #4A4A4A);
  margin: 0 0 36px;
  max-width: 620px;
}

.ma-sv-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* Trust strip */
.ma-sv-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ma-border-light, rgba(0,0,0,0.06));
}
.ma-sv-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ma-muted, #4A4A4A);
}
.ma-sv-trust__check {
  color: var(--ma-teal, #1A9F9F);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}


/* ============================================================
   S2 — OVERVIEW
   ============================================================ */

.ma-sv-overview {
  background: #FFFFFF;
  padding: var(--sv-section-y) 0;
}

.ma-sv-overview__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.ma-sv-overview__body .ma-section-heading {
  margin-bottom: 24px;
}

/* Sidebar card */
.ma-sv-sidebar__card {
  background: var(--ma-offwhite, #F9F9F6);
  border: 1px solid var(--ma-border-light, rgba(0,0,0,0.06));
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.ma-sv-sidebar__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ma-text, #0A0A0A);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ma-border-light, rgba(0,0,0,0.06));
}

.ma-sv-sidebar__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ma-sv-sidebar__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ma-sv-sidebar__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ma-subtle, #A8A8A0);
}

.ma-sv-sidebar__value {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-text, #0A0A0A);
}

.ma-btn--full { width: 100%; text-align: center; justify-content: center; }


/* ============================================================
   S3 — KEY BENEFITS
   ============================================================ */

.ma-sv-benefits {
  background: var(--ma-offwhite, #F9F9F6);
  padding: var(--sv-section-y) 0;
}

.ma-sv-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.ma-sv-benefit-card {
  background: #FFFFFF;
  border: 1px solid var(--ma-border-light, rgba(0,0,0,0.06));
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ma-sv-benefit-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ma-sv-benefit-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(201,168,76,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ma-sv-benefit-card__icon img { width: 28px; height: 28px; object-fit: contain; }
.ma-sv-benefit-card__icon--placeholder { background: rgba(201,168,76,0.10); }

.ma-sv-benefit-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-text, #0A0A0A);
  margin: 0;
  line-height: 1.3;
}

.ma-sv-benefit-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ma-muted, #4A4A4A);
  margin: 0;
}


/* ============================================================
   S4 — HOW IT WORKS
   ============================================================ */

.ma-sv-process {
  background: #FFFFFF;
  padding: var(--sv-section-y) 0;
}

.ma-sv-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
  position: relative;
}

/* Horizontal connector line across all steps */
.ma-sv-process__steps::before {
  content: '';
  position: absolute;
  top: 28px; /* center of circle */
  left: calc(50% / 4);
  right: calc(50% / 4);
  height: 1px;
  background: linear-gradient(90deg, var(--ma-gold, #C9A84C), var(--ma-teal, #1A9F9F));
  opacity: 0.3;
  z-index: 0;
}

.ma-sv-process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.ma-sv-process__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ma-gold, #C9A84C), #E8C46A);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}

.ma-sv-process__circle span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.ma-sv-process__step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ma-text, #0A0A0A);
  margin: 0 0 10px;
}

.ma-sv-process__step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ma-muted, #4A4A4A);
  margin: 0;
}


/* ============================================================
   S5 — FAQ
   ============================================================ */

.ma-sv-faq {
  background: var(--ma-offwhite, #F9F9F6);
  padding: var(--sv-section-y) 0;
}

.ma-sv-faq__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.ma-sv-faq__left .ma-section-heading { margin-bottom: 16px; }

.ma-sv-faq__cta-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ma-muted, #4A4A4A);
  margin: 0 0 24px;
}

/* Reuse homepage accordion styles (inherited from homepage.css) */
.ma-sv-faq .ma-accordion__panel p {
  padding-bottom: 20px;
}
.ma-sv-faq .ma-accordion__panel .ma-prose p {
  margin: 0;
  padding-bottom: 20px;
}


/* ============================================================
   S6 — RELATED SERVICES
   ============================================================ */

.ma-sv-related {
  background: #FFFFFF;
  padding: var(--sv-section-y) 0;
}

.ma-sv-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ma-sv-related-card {
  background: var(--ma-offwhite, #F9F9F6);
  border: 1px solid var(--ma-border-light, rgba(0,0,0,0.06));
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ma-sv-related-card:hover {
  border-color: rgba(201,168,76,0.30);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.ma-sv-related-card__cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ma-subtle, #A8A8A0);
}

.ma-sv-related-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-text, #0A0A0A);
  margin: 0;
  line-height: 1.3;
}

.ma-sv-related-card__title a {
  color: inherit;
  text-decoration: none;
}
.ma-sv-related-card__title a:hover { color: var(--ma-teal, #1A9F9F); }

.ma-sv-related-card__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ma-muted, #4A4A4A);
  margin: 0;
  flex: 1;
}

.ma-sv-related-card__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ma-gold, #C9A84C);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.2s;
}
.ma-sv-related-card__link:hover { color: var(--ma-teal, #1A9F9F); }


/* ============================================================
   S7 — FINAL CTA
   ============================================================ */

.ma-sv-cta {
  background: linear-gradient(160deg, #FFFCF2 0%, #FFF9E6 100%);
  border-top: 1px solid rgba(201,168,76,0.20);
  padding: var(--sv-section-y) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ma-sv-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ma-sv-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.ma-sv-cta__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ma-text, #0A0A0A);
  margin: 0 0 20px;
}

.ma-sv-cta__body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ma-muted, #4A4A4A);
  margin: 0 0 36px;
}

.ma-sv-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ma-sv-cta__micro {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ma-subtle, #A8A8A0);
  margin: 0;
}


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

@media (max-width: 1024px) {
  .ma-sv-overview__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ma-sv-sidebar__card { position: static; }

  .ma-sv-faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .ma-sv-benefits__grid { grid-template-columns: 1fr; }
  .ma-sv-related__grid  { grid-template-columns: 1fr; }

  .ma-sv-process__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ma-sv-process__steps::before { display: none; }
  .ma-sv-process__step { align-items: flex-start; text-align: left; flex-direction: row; gap: 20px; }
  .ma-sv-process__circle { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; }

  .ma-sv-hero__trust { gap: 16px 24px; }

  .ma-sv-cta__buttons { flex-direction: column; align-items: center; }
  .ma-sv-cta__buttons .ma-btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 640px) {
  .ma-sv-benefits__grid {
    grid-template-columns: 1fr;
  }
}
