@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;600;700&display=swap');

/* Small custom stylesheet for the recruitment demo site */
:root {
  /* Exact hex values copied from https://www.stroke.org.uk/ */
  --brand-purple: #391171; /* deep purple used across the site */
  --brand-blue: #006170;   /* adjusted blue for WCAG AA contrast with white */
  --brand-yellow: #FFD251; /* accent / call-to-action yellow */
  --brand-purple-dark: #2d0f55; /* slightly darker purple for hover states */
  --brand-green: #008a00;  /* success / positive */
  --muted-bg: #F5F5F5;     /* page background used on stroke site */
  --text: #1A1A1A;         /* primary text colour on stroke site */
  --muted-text: #555555;   /* darker muted text for WCAG AA */
  --brand-dark: #343a40;   /* dark / footer-like shade */
}

body { 
  font-family: 'Public Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background-color: var(--muted-bg);
}

/* Headings: apply Stroke-like typographic styling */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Public Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; color: var(--muted-text); }

p.lead {
  font-size: 1rem; 
}

/* Make Bootstrap display classes match the header weights */
.display-5 { font-weight: 700; letter-spacing: -0.02em; }


/* Sticky footer layout: make page a column and let main grow */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

/* Ensure navbar is at least 100px tall and contents are vertically centered */
.navbar {
  min-height: 100px;
}

/* Make the container fill the navbar height and centre items */
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Keep brand vertically centered and scale logo for the taller navbar */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Adjust logo size (tweak values if you want a different visual) */
.navbar-brand img {
  height: 60px;
  max-height: 80px;
  width: auto;
}

/* Center the toggler and nav links vertically on small screens */
.navbar-toggler {
  align-self: center;
}

/* Slightly reduce vertical padding on nav links so they align nicely */
.navbar-nav .nav-link {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

footer.footer {
  flex-shrink: 0;
}

/* Header subtle background */
header { background: linear-gradient(90deg, rgba(107,43,127,0.03), rgba(107,43,127,0.03)); }

/* Card images sizing */
.card img { object-fit: cover; height: 200px; }

/* Footer links */
.footer a { text-decoration: none; color: #ffffff; }

/* Responsive tweak */
@media (max-width: 575px) {
  .card img { height: 160px; }
}

.bg-primary { background-color: var(--brand-purple) !important; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,0.95); }
.navbar-dark .navbar-nav .nav-link.active { color: #fff; font-weight:600; }
.navbar-dark .navbar-brand { color: #fff; }

.btn-primary {
  background-color: var(--brand-purple);
  border-color: var(--brand-purple);
}
.btn-primary:hover, .btn-primary:focus {
  /* hover/focus state for purple primary */
  background-color: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
}

.footer {
  background-color: var(--brand-purple) !important;
  color: #ffffff;
  padding: 2rem 0;
  .fine-print {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
  }
}

/* Footer links: keep readable on purple */
.footer a {
  text-decoration: none;
  color: #ffffff;
}

/* Ensure footer children inherit the color and maintain readability */
.footer .container,
.footer p,
.footer small {
  color: inherit;
}

.bg-secondary { background-color: rgba(57,17,113,0.08) !important; color: #fff; }

/* Testimonials / 'What clients say' section */
.clients-say {
  background-color: var(--muted-bg);
  color: var(--text);
  padding: 4rem 0;
}

/* Limit width and increase spacing for the testimonial cards */
.clients-say .container {
  max-width: 1100px;
}

.clients-say .row {
  gap: 1.5rem;
}

/* Make each blockquote look like a card on a subtle muted background */
.clients-say .blockquote {
  background: #ffffff; /* white quote cards */
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(23,8,50,0.08);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clients-say .blockquote p {
font-size: 1.25rem;
    line-height: 1.6;
    /* font-style: italic; */
    color: var(--text);
    margin: 0 0 1rem 0;
}

.clients-say .blockquote-footer {
  color: var(--muted-text);
  font-weight: 600;
  margin-top: auto;
}

@media (max-width: 767px) {
  .clients-say { padding: 2rem 0; }
  .clients-say .blockquote { padding: 1rem; min-height: auto; }
  .clients-say .blockquote p { font-size: 1rem; }
}

/* Clickable cards: make the whole card a focusable link */
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}

section.clickable-cards a {
  text-decoration: none;
}

.card-link:focus {
  outline: none;
}

/* Visible focus ring for keyboard users */
.card-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(107,43,127,0.12), 0 12px 30px rgba(23,8,50,0.12);
  border-radius: 12px;
}

Ensure images remain rounded with the card
.card-link .card-img-top {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}


/* Utility for using the accent color */
.text-accent { color: var(--brand-yellow) !important; }
.bg-accent { background-color: var(--brand-yellow) !important; color: #1a1a1a; }

/* Small accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* Dropdowns: use brand purple background and readable white text */
.dropdown-menu {
  background-color: var(--brand-purple) !important;
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(57,17,113,0.12);
}

.dropdown-menu .dropdown-item {
  color: #ffffff;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: var(--brand-purple-dark) !important;
  color: #ffffff;
}

.dropdown-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Ensure navbar dropdowns pick up the same styling */
.navbar .dropdown-menu {
  background-color: var(--brand-purple) !important;
}

/* Focus ring for keyboard users */
.dropdown-item:focus {
  outline: 3px solid rgba(255,210,81,0.18);
  outline-offset: 2px;
}

/* Make the collapsed nav menu (mobile) use the brand purple */
#navMenu,
.navbar-collapse,
.navbar-collapse.collapse,
.navbar-collapse.show,
#navMenu.collapse.show {
  background-color: var(--brand-purple);
}

/* Navbar links inside the collapse should be white and have an accent hover */
.navbar-collapse .nav-link,
#navMenu .nav-link {
  color: #ffffff !important;
}

.navbar-collapse .nav-link:hover,
.navbar-collapse .nav-link:focus,
#navMenu .nav-link:hover,
#navMenu .nav-link:focus {
  color: var(--brand-yellow) !important;
  background: transparent;
}

@media (max-width: 992px) {
  /* On large screens, hide the collapsed nav menu */
  #navMenu { 
    padding: 20px;
    position: absolute;
    width: 100%;
    top: 99px;
    left: 0;
   }
}

iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  body {
    box-shadow: none !important;
    margin: 0 !important;
    padding:0 !important;
  }
  .form-all {
    box-shadow: none !important;
    margin: 0 !important;
    padding:0 !important;
  }
  .formFooter {
    display: none !important;
  }
  div.formFooter-heightMask {
    display: none !important;
  }
}

.text-and-media {
  .media-container {
    img {
      width: 350px;
    }
  }
}