/* Elevate Technology Services — black / white / grey corporate site */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-100: #f2f2f2;
  --grey-200: #e6e6e6;
  --grey-400: #999999;
  --grey-600: #666666;
  --grey-800: #333333;
  --max: 1120px;
  --header-h: 4.5rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-input: 16px;
  --focus: 2px solid var(--black);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Reading column: left-aligned within .container (same left edge as page H1 / footer) */
.content-col {
  max-width: 42rem;
  margin-inline: 0;
}

/* —— Header —— */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

/* Official Elevate lockup (mark + wordmark) — sized for horizontal header */
.brand-logo {
  width: auto;
  height: 56px;
  display: block;
}

.brand-wordmark {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--white);
  margin: 0.28rem auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 1.75rem;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--white);
  text-decoration: none;
}


/* —— Services dropdown —— */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"],
.nav-dropdown-btn[aria-current="page"] {
  border-bottom-color: var(--white);
}

.nav-dropdown-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.nav-caret {
  display: inline-block;
  font-size: 0.85em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.nav-dropdown.is-open .nav-caret,
.nav-dropdown-btn[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.15rem);
  right: 0;
  min-width: 36rem;
  max-width: min(42rem, calc(100vw - 2rem));
  padding: 1.15rem 1.25rem 1.3rem;
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 120;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.nav-dropdown.is-open .nav-dropdown-panel {
  display: block;
}

.site-nav .nav-dropdown-panel a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: none;
  padding: 0.28rem 0;
  display: block;
}

.site-nav .nav-dropdown-panel a:hover,
.site-nav .nav-dropdown-panel a[aria-current="page"] {
  border-bottom-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-dropdown-hub {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.nav-dropdown-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  gap: 1.1rem 1.75rem;
}

.nav-group-heading {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.nav-group ul {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.nav-group li {
  margin: 0;
}

@media (min-width: 801px) {
  .nav-dropdown:hover .nav-dropdown-panel,
  .nav-dropdown:focus-within .nav-dropdown-panel {
    display: block;
  }

  .nav-dropdown:hover .nav-caret,
  .nav-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
  }
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.25rem;
  text-align: left;
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 22ch;
  font-size: clamp(2.15rem, 5.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
}

.hero-body {
  margin: 0;
  max-width: 40rem;
  color: var(--grey-800);
  font-size: 1.02rem;
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding-top: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title.stacked {
  white-space: pre-line;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--grey-800);
}

.prose p:last-child {
  margin-bottom: 0;
}

.link-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* —— Hero CTAs —— */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--grey-100);
  border-color: var(--black);
  color: var(--black);
}

/* —— How we help / pillars —— */
.section-intro {
  margin: 1rem 0 2.25rem;
  max-width: 40rem;
  color: var(--grey-800);
  font-size: 1.05rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--black);
  background: var(--white);
  height: 100%;
}

.pillar-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pillar-line {
  margin: 0;
  font-weight: 500;
  color: var(--grey-800);
}

.pillar-services {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--black);
}

.pillar-blurb {
  margin: 0;
  color: var(--grey-800);
  font-size: 0.98rem;
}

.pillar-expand {
  margin-top: 0.25rem;
  border-top: 1px solid var(--grey-200);
  padding-top: 0.35rem;
}

.service-detail {
  border-bottom: 1px solid var(--grey-200);
}

.service-detail:last-child {
  border-bottom: 0;
}

.service-detail summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.service-detail summary::-webkit-details-marker {
  display: none;
}

.service-detail summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1;
}

.service-detail[open] summary::after {
  content: "−";
}

.service-detail summary:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.service-detail p {
  margin: 0 0 0.85rem;
  color: var(--grey-800);
  font-size: 0.95rem;
}

.pillar-cta {
  margin-top: auto;
  align-self: flex-start;
}

.about-block {
  max-width: 46rem;
  margin-inline: 0;
}

.about-emails {
  margin-top: 1.25rem !important;
  font-size: 0.95rem;
}

.about-emails a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-helper {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--grey-600);
  font-size: 0.95rem;
}

/* —— Services accordion —— */
.accordion {
  border-top: 1px solid var(--black);
}

.accordion-item {
  border-bottom: 1px solid var(--black);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
}

.accordion-trigger:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.accordion-icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.accordion-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--grey-800);
  font-size: 0.98rem;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.accordion-panel p {
  margin: 0 0 0.75rem;
}

.accordion-panel p:last-child {
  margin-bottom: 0;
}

/* —— Contact form —— */
.contact-intro {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--grey-800);
}

.contact-form {
  max-width: 36rem;
  margin-inline: 0;
  display: grid;
  gap: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--grey-400);
  border-radius: var(--radius-input);
  background: var(--grey-100);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #b00000;
}

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #b00000;
}

.form-field.has-error .field-error {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

.btn:hover {
  background: var(--grey-800);
  border-color: var(--grey-800);
  text-decoration: none;
}

.btn:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status.success {
  color: var(--grey-800);
}

.form-status.error {
  color: #b00000;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--grey-800);
}

/* —— Privacy —— */
.legal {
  padding-bottom: 4rem;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--grey-800);
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--grey-200);
  padding: 3rem 0 3.5rem;
  margin-top: 2rem;
}

.footer-name {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-contacts {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-contacts strong {
  font-weight: 700;
}

.footer-contacts a {
  text-decoration: none;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--grey-600);
}

/* —— 404 —— */
.error-page {
  min-height: 55vh;
  padding: 3.5rem 0 4rem;
  text-align: left;
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--grey-800);
}

/* —— Responsive —— */
@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: transparent;
    text-decoration: underline;
  }


  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0;
    border-bottom: none;
  }

  .nav-dropdown-btn:hover,
  .nav-dropdown-btn[aria-expanded="true"],
  .nav-dropdown-btn[aria-current="page"] {
    border-bottom-color: transparent;
    text-decoration: underline;
  }

  .nav-dropdown-panel {
    position: static;
    min-width: 0;
    max-width: none;
    padding: 0 0 0.65rem 0.85rem;
    border: 0;
    box-shadow: none;
  }

  .nav-dropdown-groups {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .site-nav .nav-dropdown-panel a {
    display: block;
    padding: 0.35rem 0;
  }

  .nav-dropdown-hub {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .brand-logo {
    width: auto;
    height: 48px;
  }
}

/* —— Neurodiversity page —— */
.nd-hero .nd-lead {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey-800);
}

.nd-hero .nd-bridge {
  margin: 0;
  max-width: 42rem;
  color: var(--grey-800);
}

.nd-prose {
  max-width: 42rem;
  margin-inline: 0;
}

.nd-prose h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}

.nd-position {
  font-weight: 600;
  color: var(--black) !important;
  font-size: 1.08rem;
}

.nd-label {
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  font-weight: 700;
  color: var(--black) !important;
}

.nd-areas {
  color: var(--grey-800);
  line-height: 1.75;
}

.nd-section-alt {
  background: var(--grey-100);
}

.nd-checklist {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.nd-checklist li {
  margin-bottom: 0.45rem;
  color: var(--grey-800);
}

.nd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.nd-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 1.35rem 1.25rem 1.4rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nd-card:hover,
.nd-card:focus-visible {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.nd-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nd-card p {
  margin: 0;
  color: var(--grey-800);
  font-size: 0.98rem;
  line-height: 1.55;
}

.nd-cta {
  text-align: left;
  padding-bottom: 4rem;
  border-top: 1px solid var(--grey-200);
}

.nd-cta h2 {
  margin: 0 0 1.25rem;
  max-width: 20ch;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nd-cta p {
  margin: 0 0 0.85rem;
  max-width: 40rem;
  color: var(--grey-800);
}

.nd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
}

.btn-secondary:hover {
  background: var(--grey-100);
  border-color: var(--black);
  color: var(--black);
}

@media (max-width: 900px) {
  .nd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nd-cards {
    grid-template-columns: 1fr;
  }

  .nd-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .nd-cta-actions .btn {
    width: min(100%, 18rem);
  }
}

/* —— Services hub / pillar detail —— */
.breadcrumb {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-600);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--grey-800);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero-line {
  margin-top: 0.35rem;
  max-width: 40rem;
  font-size: 1.1rem;
}

.pillar-detail {
  max-width: 44rem;
  margin-inline: 0;
}

.pillar-detail .pillar-services {
  margin-bottom: 0.75rem;
}

.pillar-detail .pillar-blurb {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.service-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--black);
}

.service-list li {
  border-bottom: 1px solid var(--grey-200);
  padding: 1.15rem 0;
}

.service-name {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-list p {
  margin: 0;
  color: var(--grey-800);
  font-size: 0.98rem;
}

.pillar-detail .pillar-cta {
  margin-top: 0.25rem;
}

.pillar-service-links {
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  list-style: none;
}

.pillar-service-links li + li {
  margin-top: 0.3rem;
}

.pillar-service-links a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-name a {
  text-decoration: none;
}

.service-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-page p {
  margin: 0 0 1.15rem;
  color: var(--grey-800);
}

.service-parent {
  font-size: 0.95rem;
}

.service-parent a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-page .btn {
  margin-top: 0.35rem;
}
