/* Color Palette & Variables */
:root {
  --bg-body: #020617;        /* Deep navy */
  --panel-surface: #0f172a;  /* Surface card navy */
  --text-main: #e5e7eb;      /* Primary light text */
  --text-muted: #cbd5f5;     /* Secondary blue-grey text */
  --brand-primary: #60a5fa;  /* Accent blue */
  --brand-focus: #a5b4fc;    /* Visible focus indigo */
  --bg-alt: #0f172a;
  --button-bg: #bb285e;      /* Brand CTA pink */
  --white: #ffffff;
  --border-color: #334155;
  --container-width: 80rem;
  --content-narrow: 52rem;
}

/* Reset & Box Model */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  font-size: 1.125rem;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* WCAG 2.4.11 / 2.4.13: High Contrast Focus Rings */
*:focus-visible {
  outline: 3px solid var(--brand-focus) !important;
  outline-offset: 3px !important;
}

/* WCAG 2.4.1: Skip Link */
.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  padding: 1rem 1.5rem;
  background: var(--brand-primary);
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* Header & Navigation */
header {
  background: var(--panel-surface);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  color: var(--text-main);
  font-size: 1.5rem;
  text-decoration: none;
}

.header-logo {
  height: 75px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-tagline {
  font-size: 1rem;
  color: var(--brand-focus);
  font-weight: 500;
  margin-top: 0.2rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-services {
  position: relative;
}

.nav-services-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-services-toggle:hover,
.nav-services-toggle:focus-visible {
  color: var(--brand-primary);
}

.nav-list a[aria-current="page"],
.nav-services-toggle[aria-current="page"] {
  border-bottom: 2px solid var(--brand-primary);
}

.services-menu,
.services-menu[hidden] {
  display: none;
}

.services-menu:not([hidden]) {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  display: block;
  width: max-content;
  min-width: 18rem;
  max-width: min(26rem, calc(100vw - 2rem));
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--panel-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 30%);
}

.services-menu a {
  display: block;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border-radius: 0.25rem;
  color: var(--text-main);
  text-decoration: none;
}

.services-menu a:hover,
.services-menu a:focus-visible {
  background: var(--bg-body);
  color: var(--brand-primary);
}

@media (min-width: 1000px) {
  .site-header .container {
    padding-inline: 4rem;
  }

  .main-nav {
    margin-right: 2rem;
  }
}

/* Typography */
h1, h2, h3 {
  color: var(--text-main);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; color: var(--brand-primary); }

p { max-width: 65ch; }

/* Left-Aligned Hero Styling */
.hero {
  padding: 3.5rem 0 3rem;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.home-hero h1 span {
  display: block;
}

.hero-intro {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
  max-width: 65ch;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero-support {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 0;
  line-height: 1.65;
}

.home-hero .hero-support + .hero-support {
  margin-top: 1rem;
}

.hero-result {
  margin-top: 1rem;
}

.hero-cta {
  margin-top: 1.5rem;
}

.services-intro {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.services-intro p {
  max-width: none;
  margin: 0;
}

.services-positioning {
  font-size: 1.2rem;
  line-height: 1.5;
}

.services-positioning strong,
.services-positioning span {
  display: block;
}

.services-promise {
  margin-top: 1rem !important;
  color: var(--brand-primary);
  font-weight: 700;
}

@media (max-width: 600px) {
  .home-hero h1 span {
    display: inline;
  }
}

/* Main Content Section Banding */
main section {
  width: 100%;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}

main section:nth-child(even) {
  background-color: var(--panel-surface);
}

main section.hero {
  background-color: var(--bg-alt);
}

/* Statement / Legal Panels */
.statement-card {
  background-color: var(--panel-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.statement-card h2,
.statement-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--brand-primary);
}

.statement-card ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.statement-card p {
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.65;
}

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

.statement-card li {
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.6;
}

.statement-card li strong {
  color: var(--text-main);
}

/* Breadcrumbs / Page Back Link */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumb-back:hover,
.breadcrumb-back:focus-visible {
  color: var(--text-main);
}

.video-card {
  background: var(--panel-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
}

.video-aspect-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.video-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  padding: 1.5rem;
}

.video-intro {
  max-width: 65ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.video-caption h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.video-caption h4 {
  margin: 1.5rem 0 0.5rem;
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.video-caption p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.video-caption .video-list-heading {
  margin-top: 1.25rem;
}

.video-caption ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.video-caption li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.video-caption li strong {
  color: var(--text-main);
}

.video-caption .video-closing {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
}

.screen-reader-enquiry {
  max-width: 100%;
  margin-top: 1.5rem;
  text-align: center;
  white-space: normal;
}

/* Buttons (WCAG 2.5.8 Touch Target Minimum 44x44px) */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  background-color: var(--button-bg);
  color: var(--white);
  border: 2px solid var(--button-bg);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.button-primary:hover {
  background-color: var(--white);
  color: var(--button-bg);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

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

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--panel-surface);
  border: 1px dashed var(--brand-primary);
  border-radius: 12px;
  padding: 1.5rem;
}

.services-page .services-grid {
  display: flex;
  flex-direction: column;
}

.services-page .service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  align-items: center;
  gap: 1.5rem 3rem;
  border: 2px dashed var(--accent-soft, #d6c1b1) !important;
  border-radius: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-page .service-card:hover {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
}

.services-page .service-card-content {
  min-width: 0;
}

.services-page .service-card-content > :last-child {
  margin-bottom: 0;
}

.services-page .service-card-action {
  grid-column: 2;
  align-self: center;
  margin: 0;
  padding: 0;
}

.services-page .service-card h3:focus {
  outline: 3px solid var(--brand-focus);
  outline-offset: 4px;
}

.service-card-read-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--brand-primary);
}

.service-card-read-more summary strong {
  color: var(--text-main);
  text-decoration: none;
}

.service-card-read-more summary span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Forms (WCAG 1.4.11 Non-Text Contrast) */
.contact-form {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.required {
  color: #f87171;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--text-muted); /* Minimum 3:1 contrast against bg */
  border-radius: 6px;
  background-color: var(--panel-surface);
  color: var(--text-main);
  font-size: 1rem;
}

/* 4 Threads Structured 2x2 Grid Layout */
.threads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .threads-grid {
    grid-template-columns: 1fr;
  }
}
/* Screen Reader Only Utility Class (WCAG 2.4.4) */
.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;
}

/* External Link & PDF Indicator Styling */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.email-link {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.external-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.15rem;
}

.trust-section {
  padding: 3.5rem 0;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
}

.trust-section ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.trust-section li {
  margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-logo {
    height: 60px;
  }

  .site-name {
    font-size: 1.75rem;
  }
}

/* Promotional & Feature Highlight Cards */
.feature-promo-card {
  border-style: solid !important;
  border-color: var(--brand-focus) !important;
  position: relative;
}

.badge-tag {
  display: inline-block;
  background-color: var(--panel-surface);
  color: var(--brand-focus);
  border: 1px solid var(--brand-focus);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.badge-tag-link {
  display: inline-block;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
}

.badge-tag-link .badge-tag {
  margin-bottom: 0;
}

.badge-tag-link:hover .badge-tag,
.badge-tag-link:focus-visible .badge-tag {
  background-color: var(--brand-focus);
  color: var(--bg-body);
  border-color: var(--brand-focus);
}

.badge-tag-link:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Contact Options Card Layout */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--panel-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Footer Styling */
footer {
  background-color: var(--panel-surface);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 1rem;
}

.footer-links a[aria-current="page"] {
  font-weight: 700;
  color: var(--brand-primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Testimonial Section Base */
.trusted-by {
  padding: var(--section-padding, 3.5rem 1.5rem);
  background-color: var(--bg-body, #020617);
}

/* Stacked List Container */
.testimonial-stacked-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Card Styling for Horizontal Rows */
.testimonial-card.horizontal {
  background: var(--panel-surface, #0f172a);
  border: 2px dashed var(--accent-soft, #d6c1b1);
  border-radius: 1rem;
  padding: 1.75rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card.horizontal:hover {
  border-color: var(--brand-primary, #60a5fa);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Left Column: Quote Text */
.testimonial-left {
  flex: 2;
}

.testimonial-quote {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-main, #e5e7eb);
}

/* Right Column: Logo & Author Details */
.testimonial-right {
  flex: 1;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.5rem;
  border-left: 1px solid var(--border-color, #1f2937);
  padding-left: 1.75rem;
}

/* Logos */
.testimonial-logo {
  max-width: 130px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
}

.testimonial-logo.soft-bg {
  background: #ffffff;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

.testimonial-logo.tall-logo {
  max-width: 150px;
  max-height: 55px;
}

.testimonial-name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main, #e5e7eb);
}

.testimonial-role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted, #cbd5f5);
}

/* Responsive Behavior for Tablets & Mobile Screens */
@media (max-width: 800px) {
  .services-menu:not([hidden]) {
    right: auto;
    left: 0;
  }

  .services-page .service-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .services-page .service-card-action {
    grid-column: 1;
  }

  .testimonial-card.horizontal {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .testimonial-right {
    align-items: flex-start;
    text-align: left;
    border-left: none;
    border-top: 1px solid var(--border-color, #1f2937);
    padding-left: 0;
    padding-top: 1rem;
    width: 100%;
  }
}

/* Keep service enquiry buttons aligned at the bottom of each card */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-action {
  width: 100%;
  margin-top: auto;
  padding-top: 1.5rem;
}

.card-enquire-btn {
  display: flex;
  width: 100%;
  text-align: center;
  white-space: normal;
}