/**
 * Mac Angelo — Utility Page Styles
 * Covers: FAQ, Book a Consultation, Thank You, 404
 *
 * BEM prefixes:
 *   .ma-faqp-*    → FAQ page
 *   .ma-book-*    → Book a Consultation
 *   .ma-ty-*      → Thank You
 *   .ma-404-*     → 404
 *
 * @package mac-angelo-child
 * @version 1.0.0
 */

/* ============================================================
   SHARED TOKENS
   ============================================================ */
:root {
  --util-offwhite: #F9F9F6;
  --util-border:   rgba(0,0,0,0.07);
  --util-muted:    #6B6B6B;
  --util-dark:     #1A1A1A;
  --util-mid:      #4A4A4A;
  --util-gold:     #C9A84C;
  --util-teal:     #1A9F9F;
  --util-max-w:    1280px;
  --util-pad:      clamp(20px, 5vw, 80px);
}

/* Shared geo corners */
.ma-faqp-hero__geo-tl, .ma-book-hero__geo-tl,
.ma-ty__geo-tl, .ma-404__geo-tl {
  position: absolute; top: 0; left: 0;
  width: clamp(180px, 22vw, 360px);
  height: clamp(120px, 15vw, 240px);
  background: linear-gradient(135deg, rgba(201,168,76,0.09) 0%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.ma-faqp-hero__geo-br, .ma-book-hero__geo-br,
.ma-ty__geo-br, .ma-404__geo-br {
  position: absolute; 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%);
  pointer-events: none;
}

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

/* Hero */
.ma-faqp-hero {
  background: var(--util-offwhite);
  padding: clamp(52px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--util-border);
}
.ma-faqp-hero__inner {
  max-width: var(--ma-max-w, 1280px);
  margin-inline: auto;
  padding-inline: var(--util-pad, clamp(20px,4vw,64px));
  position: relative;
  z-index: 1;
}
.ma-faqp-hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--util-dark);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0.5em 0 0.6em;
}
.ma-faqp-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--util-muted);
  line-height: 1.65;
  margin: 0 0 2rem;
}

/* Jump link pills */
.ma-faqp-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0.5rem;
}
.ma-faqp-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--util-mid);
  background: #fff;
  border: 1px solid var(--util-border);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.ma-faqp-jump:hover {
  border-color: var(--util-gold);
  color: var(--util-gold);
  box-shadow: 0 2px 8px rgba(201,168,76,0.12);
}

/* Body layout */
.ma-faqp-body {
  background: #fff;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}
.ma-faqp-body__inner {
  max-width: var(--util-max-w);
  margin-inline: auto;
  padding-inline: var(--util-pad);
}
.ma-faqp-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* FAQ category blocks */
.ma-faqp-cat {
  margin-bottom: 48px;
}
.ma-faqp-cat:last-child { margin-bottom: 0; }

.ma-faqp-cat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ma-faqp-cat__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ma-faqp-cat__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--util-dark);
  margin: 0;
}

/* Sidebar */
.ma-faqp-sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ma-faqp-sidebar__card {
  background: var(--util-offwhite);
  border: 1px solid var(--util-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.ma-faqp-sidebar__icon { font-size: 28px; color: var(--util-gold); }
.ma-faqp-sidebar__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--util-dark);
  margin: 0;
}
.ma-faqp-sidebar__body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--util-muted);
  line-height: 1.6;
  margin: 0;
}
.ma-faqp-sidebar__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--util-muted);
  text-decoration: none;
}
.ma-faqp-sidebar__link:hover { color: var(--util-gold); }

/* Sidebar jump nav */
.ma-faqp-sidebar__nav {
  background: var(--util-offwhite);
  border: 1px solid var(--util-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ma-faqp-sidebar__nav-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #A8A8A0;
  margin: 0 0 8px;
}
.ma-faqp-sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--util-mid);
  text-decoration: none;
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.ma-faqp-sidebar__nav-link:hover {
  color: var(--cat-color, var(--util-gold));
  background: rgba(0,0,0,0.03);
}

/* ============================================================
   BOOK A CONSULTATION
   ============================================================ */
.ma-book-hero {
  background: var(--util-offwhite);
  padding: clamp(52px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--util-border);
}
.ma-book-hero__inner {
  max-width: var(--util-max-w);
  margin-inline: auto;
  padding-inline: var(--util-pad);
  position: relative;
  z-index: 1;
}
.ma-book-hero__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  margin-top: 32px;
}
.ma-book-hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 800;
  color: var(--util-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.5em 0 0.7em;
}
.ma-book-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--util-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.ma-book-hero__points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ma-book-hero__points li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.ma-book-hero__point-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(26,159,159,0.10);
  color: var(--util-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ma-book-hero__points strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--util-dark);
  margin-bottom: 2px;
}
.ma-book-hero__points span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--util-muted);
  line-height: 1.55;
}

.ma-book-hero__alt { margin-top: 2rem; }
.ma-book-hero__alt-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #A8A8A0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.ma-book-hero__alt-links { display: flex; flex-direction: column; gap: 8px; }
.ma-book-hero__alt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--util-teal);
  text-decoration: none;
  transition: opacity 0.15s;
}
.ma-book-hero__alt-link:hover { opacity: 0.75; }

/* Booking card */
.ma-book-cta-card {
  background: #fff;
  border: 1px solid var(--util-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.ma-book-cta-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ma-book-cta-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(201,168,76,0.10);
  color: var(--util-gold);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ma-book-cta-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--util-dark);
}
.ma-book-cta-card__role {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--util-muted);
}
.ma-book-cta-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--util-offwhite);
  border-radius: 10px;
}
.ma-book-cta-card__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--util-mid);
}
.ma-book-cta-card__meta-item .fa-solid,
.ma-book-cta-card__meta-item .fa-regular {
  color: var(--util-gold);
  width: 16px;
  text-align: center;
}
.ma-book-cta-card__note {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #A8A8A0;
  text-align: center;
  margin: 0;
}

/* What happens next */
.ma-book-next {
  background: #fff;
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--util-border);
}
.ma-book-next__inner {
  max-width: var(--util-max-w);
  margin-inline: auto;
  padding-inline: var(--util-pad);
}
.ma-book-next__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
}
.ma-book-next__step {
  position: relative;
  padding-top: 16px;
}
.ma-book-next__step::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% + 8px);
  width: calc(24px - 16px);
  height: 1px;
  background: rgba(201,168,76,0.3);
  pointer-events: none;
}
.ma-book-next__step:last-child::before { display: none; }
.ma-book-next__step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--util-gold);
  line-height: 1;
  margin-bottom: 12px;
}
.ma-book-next__step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--util-dark);
  margin: 0 0 6px;
}
.ma-book-next__step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--util-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.ma-thankyou-page { min-height: 80vh; }

.ma-ty {
  background: var(--util-offwhite);
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.ma-ty__inner {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--util-pad);
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.ma-ty__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(26,159,159,0.10);
  color: var(--util-teal);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ma-ty__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--util-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.4em 0 0.6em;
}
.ma-ty__sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--util-muted);
  line-height: 1.7;
  margin: 0 0 2.5rem;
}
.ma-ty__sub strong { color: var(--util-dark); }

.ma-ty__next {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
  text-align: left;
  border: 1px solid var(--util-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.ma-ty__next-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--util-border);
}
.ma-ty__next-item:last-child { border-bottom: none; }
.ma-ty__next-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--util-gold);
  padding-top: 2px;
}
.ma-ty__next-item strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--util-dark);
  margin-bottom: 3px;
}
.ma-ty__next-item span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--util-muted);
  line-height: 1.55;
}

.ma-ty__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ma-ty__links { width: 100%; }
.ma-ty__links-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #A8A8A0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 12px;
}
.ma-ty__links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ma-ty__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #fff;
  border: 1px solid var(--util-border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--util-mid);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.ma-ty__link:hover { border-color: var(--util-gold); color: var(--util-gold); }
.ma-ty__link .fa-solid { font-size: 18px; color: var(--util-gold); }

/* ============================================================
   404 PAGE
   ============================================================ */
.ma-404-page { min-height: 80vh; }

.ma-404 {
  background: var(--util-offwhite);
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.ma-404__inner {
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--util-pad);
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ma-404__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(100px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201,168,76,0.25);
  letter-spacing: -0.04em;
  margin-bottom: 0;
  pointer-events: none;
}
.ma-404__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--util-dark);
  margin: 0.3em 0 0.5em;
}
.ma-404__sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--util-muted);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 480px;
}
.ma-404__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.ma-404__links { width: 100%; }
.ma-404__links-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #A8A8A0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.ma-404__links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ma-404__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--util-border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--util-mid);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.ma-404__link:hover { border-color: var(--util-gold); color: var(--util-gold); }
.ma-404__link .fa-solid { font-size: 20px; color: var(--util-gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .ma-faqp-layout,
  .ma-book-hero__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ma-faqp-sidebar,
  .ma-book-cta-card { position: static; order: -1; }
  .ma-book-next__steps { grid-template-columns: repeat(2, 1fr); }
  .ma-book-next__step::before { display: none; }
  .ma-ty__links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ma-book-next__steps { grid-template-columns: 1fr; }
  .ma-404__links-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-ty__links-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-faqp-hero__headline br { display: none; }
}
