/* ==========================================================================
   Assessment Psychology — Global Stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Switzer Fallback';
  src: local('Arial');
  size-adjust: 100.45%;
  ascent-override: 97.56%;
  descent-override: 24.89%;
  line-gap-override: 8.96%;
}

:root {
  --white:        #ffffff;
  --light:        #f4f7f6;
  --dark:         #17302b;
  --dark-2:       #1f3f38;
  --ink:          #17302b;
  --ink-soft:     #455853;
  --muted:        #5a706b;
  --border:       #dde8e4;
  --accent:       #2f7d6b;
  --accent-dk:    #256356;
  --accent-lt:    rgba(47,125,107,0.08);
  --warm:         #c97b4a;
  --warm-lt:      rgba(201,123,74,0.10);
  --warm-on-dark: #e0995f;
  --on-dark:      #ffffff;
  --on-dark-soft: #b8cfc9;
  --on-dark-line: rgba(255,255,255,0.12);
  --maxw:         1200px;
  --font:         'Switzer', 'Switzer Fallback', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --z-sticky:     1000;
  --z-backdrop:   1050;
  --z-drawer:     1100;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--light { background: var(--light); }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--on-dark-soft); }

h1 { font-size: clamp(32px, 4.5vw, 48px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 20px; }
.lede { font-size: 19px; color: var(--ink-soft); }
.muted { color: var(--muted); }

.center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 48px; }
.section-head.left { margin-left: 0; }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn-primary { transition: none; } }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13.5px 30px;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.section--dark .btn-outline { color: var(--on-dark-soft); border-color: var(--on-dark-line); }
.section--dark .btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(23,48,43,0.08); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .btn-primary { padding: 11px 22px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span, .hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.hamburger { flex-direction: column; gap: 5px; }
.hamburger span { margin: 0; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta .btn-primary { display: none; }
  .hamburger { display: inline-flex; }
}

/* Mobile drawer — must live as direct children of <body>, sibling to header */
#drawerBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,48,43,0.45);
  z-index: var(--z-backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#drawerBackdrop.open { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #drawerBackdrop { transition: none; } }

#mobileDrawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
#mobileDrawer.open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { #mobileDrawer { transition: none; } }

.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer-close { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); padding: 8px; min-width: 44px; min-height: 44px; }
#mobileDrawer nav { display: flex; flex-direction: column; gap: 4px; }
#mobileDrawer nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}
#mobileDrawer .btn-primary { margin-top: 24px; text-align: center; }

/* ---- Trust strip ---- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ---- Trust band (dark, 4 items) ---- */
.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-band-grid .item { font-size: 14px; font-weight: 700; letter-spacing: 0.03em; color: var(--white); }
@media (max-width: 800px) {
  .trust-band-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Hero ---- */
.hero { padding: 64px 0 80px; background: var(--white); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Card (triage form card) ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 36px;
}
.card h2 { margin-bottom: 6px; font-size: 20px; }
.card .card-note { font-size: 13px; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Service / feature blocks ---- */
.service-block {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}
.service-block .price { font-size: 30px; font-weight: 700; color: var(--accent); margin: 12px 0; }
.service-block .price small { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }

.feature-item { border-top: 1px solid var(--border); padding-top: 20px; }
.feature-item h3 { margin-bottom: 8px; }

/* ---- Steps ---- */
.step {
  display: flex;
  gap: 20px;
}
.step .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.step .step-body h3 { margin-bottom: 6px; }

/* ---- Pricing ---- */
.price-total {
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 40px;
  text-align: center;
}

/* ---- Pricing: value block (price card + included checklist) ---- */
.pricing-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border: 1px solid var(--border);
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .pricing-block { grid-template-columns: 1fr; }
}
.pricing-block .price-side {
  background: var(--light);
  border-top: 3px solid var(--accent);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-block .price-side .price-total { font-size: 40px; }
.pricing-block .included-side {
  padding: 40px;
  border-top: 3px solid transparent;
}
@media (max-width: 800px) {
  .pricing-block .included-side { border-top: 1px solid var(--border); }
}
.pricing-block .included-side h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.included-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.included-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.included-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 7px;
  height: 13px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.reassurance-note {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.value-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--ink-soft);
}

/* ---- Comparison table ---- */
.table-scroll {
  overflow-x: auto;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}
.compare-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 34%;
}
.compare-table td.col-highlight, .compare-table th.col-highlight {
  background: var(--accent-lt);
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th {
  border-bottom: none;
}
.cell-yes, .cell-no {
  position: relative;
  padding-left: 40px !important;
  color: var(--ink-soft);
}
.cell-yes::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 19px;
  width: 7px;
  height: 13px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.cell-no::before {
  content: '\00d7';
  position: absolute;
  left: 20px;
  top: 12px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* ---- Time / booking picker (injected into enquiry forms by main.js) ---- */
.time-picker {
  margin: 22px 0;
  padding: 20px;
  background: var(--light);
  border: 1px solid var(--border);
}
.time-picker .tp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip-group:last-child { margin-bottom: 0; }
.chip {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
@media (prefers-reduced-motion: reduce) { .chip { transition: none; } }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.time-picker .tp-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- Sticky mobile CTA bar (injected by main.js) ---- */
.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(23,48,43,0.10);
  padding: 12px 16px;
  display: none;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-bar.hide-for-form { transform: translateY(100%); }
@media (prefers-reduced-motion: reduce) {
  .sticky-cta-bar { transition: none; }
}
.sticky-cta-bar .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
}
@media (max-width: 900px) {
  .sticky-cta-bar { display: block; }
}

/* ---- Tools list ---- */
.tool-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.tool-item h3 { margin-bottom: 6px; font-size: 17px; }
.tool-item .tool-name { color: var(--accent); font-weight: 700; }

/* ---- FAQ accordion ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  display: none;
  padding: 0 0 22px;
  color: var(--ink-soft);
  max-width: 760px;
}
.faq-item.open .faq-a { display: block; }

/* ---- Blog ---- */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.post-list .post-row:last-child { border-bottom: 1px solid var(--border); }
.post-row .post-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.post-row .post-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.post-row:hover .post-title { color: var(--accent); }

.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 1.6em; }
.post-body p { color: var(--ink-soft); }

/* ---- CTA strip ---- */
.cta-strip { text-align: center; }
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: var(--on-dark-soft); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  border-top: 3px solid var(--accent);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h3 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--on-dark-soft); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--warm-on-dark); }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--on-dark-line);
  padding: 24px 0;
  font-size: 12.5px;
  color: var(--on-dark-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .ahpra-line { max-width: 640px; }

/* ---- Forms ---- */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  min-height: 44px;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  border-width: 2px;
  padding: 11px 13px;
}
.form-row.error input,
.form-row.error select {
  border-color: var(--warm);
}
.form-error-msg {
  display: none;
  color: var(--warm);
  font-size: 12.5px;
  margin-top: 6px;
}
.form-row.error .form-error-msg { display: block; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-submit { width: 100%; text-align: center; margin-top: 8px; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---- Location grids ---- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 24px;
}
@media (max-width: 800px) { .location-grid { grid-template-columns: repeat(2, 1fr); } }
.location-grid a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.location-grid a:hover { color: var(--accent); }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-size: 80px; font-weight: 700; color: var(--accent); }

/* ---- Utility ---- */
.hairline { border-top: 1px solid var(--border); }
.mt-0 { margin-top: 0; }
.small { font-size: 13px; }
