/* =================================================
   ABPT CARE — NDIS SERVICES PAGE
   File: ndis-style.css
   Scope: page-template-page-ndis-services ONLY
================================================= */

@layer reset, tokens, base, layout, components, pages, overrides;

@layer pages {

  /* =================================================
     PAGE BACKGROUND — SUBTLE FLOW
  ================================================= */

 body.page-template-page-ndis-services {
  background:
    radial-gradient(
      1200px 600px at 50% -15%,
      rgba(246,78,92,0.045),
      rgba(255,255,255,0) 65%
    ),
    radial-gradient(
      900px 500px at 15% 70%,
      rgba(246,78,92,0.03),
      rgba(255,255,255,0) 60%
    ),
    radial-gradient(
      900px 500px at 85% 75%,
      rgba(246,78,92,0.03),
      rgba(255,255,255,0) 60%
    ),
    var(--color-light);
}
/* =================================================
   PAGE FLOW OVERLAY — VERY SUBTLE
   Sits above body background, below content
================================================= */

body.page-template-page-ndis-services {
  position: relative;
}

body.page-template-page-ndis-services::before {
  content: "";
  position: fixed;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0) 45%
  );

  pointer-events: none;
  z-index: 0;
}

/* Lift all page content above overlay */
body.page-template-page-ndis-services > * {
  position: relative;
  z-index: 1;
}



  /* =================================================
     HERO
  ================================================= */

  body.page-template-page-ndis-services .hero-section {
  min-height: 85vh; /* taller */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  position: relative;
  text-align: center;
}

body.page-template-page-ndis-services .hero-content {
  max-width: 820px;
  margin: 0 auto;
}

body.page-template-page-ndis-services .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(20,25,35,.75),
    rgba(20,25,35,.55)
  );
}


  body.page-template-page-ndis-services .hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 16ch; /* critical */
  margin: 0 auto 1.5rem;
}

body.page-template-page-ndis-services .hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

  /* =================================================
     BREADCRUMBS
  ================================================= */

  body.page-template-page-ndis-services .breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 1.75rem 0 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(246,78,92,.06);
    border-radius: 999px;
  }

  body.page-template-page-ndis-services .breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
  }

  body.page-template-page-ndis-services .breadcrumbs span:last-child {
    font-weight: 600;
    color: var(--color-dark);
  }

  /* =================================================
     INTRO — EDITORIAL QUOTE
  ================================================= */

  body.page-template-page-ndis-services .ndis-intro {
    padding: 4.5rem 0 5rem;
     padding-top: calc(var(--space-4xl) + 1.5rem);
  }

  body.page-template-page-ndis-services .ndis-intro .container {
    max-width: 920px;
  }

  body.page-template-page-ndis-services .ndis-intro h2 {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
  }

  body.page-template-page-ndis-services .intro-text {
    position: relative;
    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--color-dark);
    padding-left: 2.75rem;
  }

  body.page-template-page-ndis-services .intro-text::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -0.25rem;
    font-size: 4.5rem;
    color: var(--color-primary);
    opacity: 0.18;
    font-family: serif;
  }

  /* =================================================
   ABPT CARE — NDIS SERVICES PAGE
   File: ndis-style.css
   Scope: page-template-page-ndis-services ONLY
================================================= */

@layer reset, tokens, base, layout, components, pages, overrides;

@layer pages {
  /* =========================================
   MATCH HOME SECTION SPACING
========================================= */

body.page-template-page-ndis-services section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
  body.page-template-page-ndis-services section {
    padding: var(--space-3xl) 0;
  }
}


  /* =================================================
     PAGE BACKGROUND — SUBTLE FLOW
  ================================================= */

 body.page-template-page-ndis-services {
  background:
    radial-gradient(
      1200px 600px at 50% -15%,
      rgba(246,78,92,0.045),
      rgba(255,255,255,0) 65%
    ),
    radial-gradient(
      900px 500px at 15% 70%,
      rgba(246,78,92,0.03),
      rgba(255,255,255,0) 60%
    ),
    radial-gradient(
      900px 500px at 85% 75%,
      rgba(246,78,92,0.03),
      rgba(255,255,255,0) 60%
    ),
    var(--color-light);
}
/* =================================================
   PAGE FLOW OVERLAY — VERY SUBTLE
   Sits above body background, below content
================================================= */

body.page-template-page-ndis-services {
  position: relative;
}

body.page-template-page-ndis-services::before {
  content: "";
  position: fixed;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.22),
    rgba(255,255,255,0) 45%
  );

  pointer-events: none;
  z-index: 0;
}

/* Lift all page content above overlay */
body.page-template-page-ndis-services > * {
  position: relative;
  z-index: 1;
}



  /* =================================================
     HERO
  ================================================= */

  body.page-template-page-ndis-services .hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 0; /* keep hero full-height */
  }

  body.page-template-page-ndis-services .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(31,41,55,.65),
      rgba(31,41,55,.45)
    );
  }

  body.page-template-page-ndis-services .hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
  }

  body.page-template-page-ndis-services .hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

  body.page-template-page-ndis-services .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
  }

  /* =================================================
     BREADCRUMBS
  ================================================= */

  body.page-template-page-ndis-services .breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 1.75rem 0 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(246,78,92,.06);
    border-radius: 999px;
  }

  body.page-template-page-ndis-services .breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
  }

  body.page-template-page-ndis-services .breadcrumbs span:last-child {
    font-weight: 600;
    color: var(--color-dark);
  }

  /* =================================================
     INTRO — EDITORIAL QUOTE
  ================================================= */

    body.page-template-page-ndis-services .ndis-intro .container {
    max-width: 920px;
  }

  body.page-template-page-ndis-services .ndis-intro h2 {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
  }

  body.page-template-page-ndis-services .intro-text {
    position: relative;
    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--color-dark);
    padding-left: 2.75rem;
  }

  body.page-template-page-ndis-services .intro-text p:first-child {
  position: relative;
  font-size: 1.35rem;
  line-height: 1.7;
  font-weight: 500;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
}

  body.page-template-page-ndis-services .intro-text::before {
    content: "“";
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: serif;
  line-height: 1;
  }



/* =========================
ELIGIBILITY 
========================= */

body.page-template-page-ndis-services .ndis-eligibility .container {
  max-width: 860px;
  margin: 0 auto;
}

body.page-template-page-ndis-services .ndis-eligibility h2 {
  text-align: center;
  margin-bottom: 2rem;
}

body.page-template-page-ndis-services .eligibility-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

body.page-template-page-ndis-services .eligibility-text ul {
  margin: 1.5rem 0 2rem;
  padding-left: 1.25rem;
}

body.page-template-page-ndis-services .eligibility-text li {
  margin-bottom: 0.75rem;
}
body.page-template-page-ndis-services .ndis-eligibility {
  padding: 5rem 0;
}

body.page-template-page-ndis-services .eligibility-text {
  background: #ffffff;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
  /* =========================
   PROCESS — VISUAL STEPS
========================= */
body.page-template-page-ndis-services .ndis-process {
  padding: 5rem 0;
}

body.page-template-page-ndis-services .process-section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

body.page-template-page-ndis-services .process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

body.page-template-page-ndis-services .process-step {
  background: var(--surface-base);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-2);
  text-align: center;
  transition: all .3s ease;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-4);
}

body.page-template-page-ndis-services .process-step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;

  background: var(--color-primary);
  color: var(--surface-base);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 1.4rem;
}

.process-step h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.process-step p {
  opacity: 0.85;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}


  /* =================================================
     SERVICES GRID (CPT)
  ================================================= */

  body.page-template-page-ndis-services .ndis-services {
    padding: 5rem 0;
  }

  body.page-template-page-ndis-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }

  body.page-template-page-ndis-services .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #ffffff;
    border-radius: 26px;
    padding: 3rem 2.5rem;

    box-shadow: 0 18px 40px rgba(31,41,55,.08);

    text-decoration: none;
    color: inherit;

    transition:
      transform .35s ease,
      box-shadow .35s ease;
  }

  body.page-template-page-ndis-services .service-card:hover,
  body.page-template-page-ndis-services .service-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(31,41,55,.14);
  }

  body.page-template-page-ndis-services .service-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 6px 14px rgba(246,78,92,.25));
  }

  body.page-template-page-ndis-services .service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--color-dark);
  }

  body.page-template-page-ndis-services .service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
  }

  body.page-template-page-ndis-services .service-card::after {
    content: "Learn more →";
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform .3s ease;
  }

  body.page-template-page-ndis-services .service-card:hover::after {
    transform: translateX(6px);
  }

  body.page-template-page-ndis-services .service-card:focus-visible {
    outline: 3px solid var(--color-primary-soft);
    outline-offset: 6px;
  }

  /* Ensure no inherited link styles */
  body.page-template-page-ndis-services a.service-card,
  body.page-template-page-ndis-services a.service-card * {
    color: inherit;
    text-decoration: none;
  }

  /* =================================================
     CTA
  ================================================= */

  body.page-template-page-ndis-services .ndis-cta {
  padding: 6rem 0;
  text-align: center;

  /* Strong but elegant theme gradient */
  background: linear-gradient(
    135deg,
    #1f2a44 0%,
    #24314f 100%
  );

  color: #ffffff;
}

  /* =================================================
     RESPONSIVE
  ================================================= */

  @media (max-width: 1024px) {
    body.page-template-page-ndis-services .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 640px) {
    body.page-template-page-ndis-services .services-grid {
      grid-template-columns: 1fr;
    }

    body.page-template-page-ndis-services .hero-title {
      font-size: 2.2rem;
    }

    body.page-template-page-ndis-services .intro-text {
      font-size: 1.15rem;
      padding-left: 2.25rem;
    }

    body.page-template-page-ndis-services .intro-text::before {
      font-size: 3.5rem;
    }
  }

  /* =================================================
     ACCESSIBILITY
  ================================================= */

  @media (prefers-reduced-motion: reduce) {
    body.page-template-page-ndis-services * {
      transition: none !important;
    }

    body.page-template-page-ndis-services {
      background: var(--color-light);
    }
  }
 


}
/* =================================================
   HARD OVERRIDE — SERVICE CARD LINKS (PERMANENT)
   This must live OUTSIDE cascade layers
================================================= */

body.page-template-page-ndis-services a.service-card,
body.page-template-page-ndis-services a.service-card:link,
body.page-template-page-ndis-services a.service-card:visited,
body.page-template-page-ndis-services a.service-card:hover,
body.page-template-page-ndis-services a.service-card:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* Kill underline + blue on ALL descendants */
body.page-template-page-ndis-services a.service-card *,
body.page-template-page-ndis-services a.service-card *:link,
body.page-template-page-ndis-services a.service-card *:visited,
body.page-template-page-ndis-services a.service-card *:hover,
body.page-template-page-ndis-services a.service-card *:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* Explicit typography (beats theme anchor rules) */
body.page-template-page-ndis-services a.service-card h3 {
  color: var(--color-dark) !important;
  font-weight: 700;
}

body.page-template-page-ndis-services a.service-card p {
  color: var(--color-text) !important;
}


  /* =================================================
     SERVICES GRID (CPT)
  ================================================= */

  body.page-template-page-ndis-services .ndis-services {
    padding: 5rem 0;
  }

  body.page-template-page-ndis-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }

  body.page-template-page-ndis-services .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #ffffff;
    border-radius: 26px;
    padding: 3rem 2.5rem;

    box-shadow: 0 18px 40px rgba(31,41,55,.08);

    text-decoration: none;
    color: inherit;

    transition:
      transform .35s ease,
      box-shadow .35s ease;
  }

  body.page-template-page-ndis-services .service-card:hover,
  body.page-template-page-ndis-services .service-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(31,41,55,.14);
  }

  body.page-template-page-ndis-services .service-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 6px 14px rgba(246,78,92,.25));
  }

  body.page-template-page-ndis-services .service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--color-dark);
  }

  body.page-template-page-ndis-services .service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
  }

  body.page-template-page-ndis-services .service-card::after {
    content: "Learn more →";
    margin-top: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: transform .3s ease;
  }

  body.page-template-page-ndis-services .service-card:hover::after {
    transform: translateX(6px);
  }

  body.page-template-page-ndis-services .service-card:focus-visible {
    outline: 3px solid var(--color-primary-soft);
    outline-offset: 6px;
  }

  /* Ensure no inherited link styles */
  body.page-template-page-ndis-services a.service-card,
  body.page-template-page-ndis-services a.service-card * {
    color: inherit;
    text-decoration: none;
  }

  /* =================================================
     CTA
  ================================================= */
body.page-template-page-ndis-services .ndis-cta .container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

  body.page-template-page-ndis-services .ndis-cta {
    padding: 6rem 0;
    text-align: center;
   background: linear-gradient(
    180deg,
     rgba(25,35,70,0.32),
    rgba(25,35,70,0.24)
  );
  }

  body.page-template-page-ndis-services .ndis-cta .btn {
  background: var(--color-primary);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0.95rem 2.5rem;
  font-weight: 600;
  display: inline-block;
  transition: all .3s ease;
}
body.page-template-page-ndis-services .ndis-cta p {
  margin-bottom: 2.5rem;
}



  /* =================================================
     RESPONSIVE
  ================================================= */

  @media (max-width: 1024px) {
    body.page-template-page-ndis-services .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 640px) {
    body.page-template-page-ndis-services .services-grid {
      grid-template-columns: 1fr;
    }

    body.page-template-page-ndis-services .hero-title {
      font-size: 2.2rem;
    }

    body.page-template-page-ndis-services .intro-text {
      font-size: 1.15rem;
      padding-left: 2.25rem;
    }

    body.page-template-page-ndis-services .intro-text::before {
      font-size: 3.5rem;
    }
  }

  /* =================================================
     ACCESSIBILITY
  ================================================= */

  @media (prefers-reduced-motion: reduce) {
    body.page-template-page-ndis-services * {
      transition: none !important;
    }

    body.page-template-page-ndis-services {
      background: var(--color-light);
    }
  }
   /* =================================================
     Modal
  ================================================= */
.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 99999;

  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;

  overflow: hidden; /* IMPORTANT */
}

.contact-modal.is-active {
  opacity: 1;
  visibility: visible;
}
.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* THE FIX */
.contact-modal-content {
  position: relative;
  z-index: 2;

  background: #ffffff;
  border-radius: 16px;

  width: min(640px, 92%);
  max-height: 85vh;

  overflow-y: auto; /* SCROLL INSIDE BOX */
  padding: 2rem;

  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

.contact-modal-content::-webkit-scrollbar {
  width: 8px;
}

.contact-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}


}
/* =================================================
   HARD OVERRIDE — SERVICE CARD LINKS (PERMANENT)
   This must live OUTSIDE cascade layers
================================================= */

body.page-template-page-ndis-services a.service-card,
body.page-template-page-ndis-services a.service-card:link,
body.page-template-page-ndis-services a.service-card:visited,
body.page-template-page-ndis-services a.service-card:hover,
body.page-template-page-ndis-services a.service-card:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* Kill underline + blue on ALL descendants */
body.page-template-page-ndis-services a.service-card *,
body.page-template-page-ndis-services a.service-card *:link,
body.page-template-page-ndis-services a.service-card *:visited,
body.page-template-page-ndis-services a.service-card *:hover,
body.page-template-page-ndis-services a.service-card *:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* Explicit typography (beats theme anchor rules) */
body.page-template-page-ndis-services a.service-card h3 {
  color: var(--color-dark) !important;
  font-weight: 700;
}

body.page-template-page-ndis-services a.service-card p {
  color: var(--color-text) !important;
}
.contact-modal {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;

  z-index: 99999 !important;   /* Higher than everything */
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.contact-modal-content {
  position: relative;
  z-index: 2;
}
