/* VS Recruitment — front-end. Palette is not decorative: orange is hover + ticks only. */

:root {
  --canvas: #F7F5F2;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #5C5660;
  --teal: #00A9CE;
  --wine: #6B2D5C;
  --orange: #F58220;
  --line: rgba(26, 26, 26, 0.1);
  --font-head: Fraunces, Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 72rem;
  --narrow: 42rem;
  --header: 4.25rem;
  --radius: 0.5rem;
  --shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--wine);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.85rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--wine);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

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

.btn:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 3px;
}

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

.container.narrow {
  width: min(100% - 1.75rem, var(--narrow));
}

.center { text-align: center; }

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.site-logo img {
  height: 2.75rem;
  width: auto;
}

.site-logo a {
  display: block;
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--wine);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0.9rem 1.25rem;
}

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

.primary-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.primary-nav .menu a {
  color: var(--wine);
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 0.45rem 0.2rem;
}

.primary-nav .menu a:hover {
  color: var(--orange);
}

.primary-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.9rem;
}

.primary-nav .btn {
  align-self: flex-start;
}

body.nav-open {
  overflow: hidden;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-cta {
  background: var(--teal);
  color: var(--white);
}

.btn-cta:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Type helpers
   ========================================================================== */

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 0.45rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--orange);
}

.fineprint {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Hero
   ========================================================================== */

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

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-copy h1 {
  color: var(--wine);
  margin-bottom: 0.7rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.4rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.4rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.32rem;
  height: 0.62rem;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
}

.hero-portrait {
  margin: 0;
}

.hero-portrait img,
.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-portrait figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* Sections
   ========================================================================== */

.section {
  padding: 2.75rem 0;
}

.section-tint {
  background: var(--white);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-more {
  margin-top: 1.4rem;
}

.split {
  display: grid;
  gap: 1.75rem;
}

.sector-grid,
.post-grid,
.quote-grid {
  display: grid;
  gap: 1rem;
}

.sector-card,
.post-card,
.quote-card,
.fee-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.section-tint .sector-card,
.section-tint .post-card,
.section-tint .quote-card,
.section-tint .fee-card {
  background: var(--canvas);
}

.sector-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease;
}

.sector-card:hover {
  border-color: var(--orange);
  color: inherit;
}

.sector-card h3 {
  margin-bottom: 0.4rem;
}

.post-card {
  padding: 0;
  overflow: hidden;
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-link:hover {
  color: inherit;
}

.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.post-card-body h3 {
  margin-bottom: 0.35rem;
}

.fee-card {
  align-self: start;
}

.fee-amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--wine);
  margin: 0;
  line-height: 1;
}

.fee-label {
  color: var(--muted);
  margin: 0.35rem 0 1rem;
  font-weight: 600;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.45rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.32rem;
  height: 0.62rem;
  border: solid var(--orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.quote-card p {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.quote-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--wine);
}

.cta-band {
  background: var(--wine);
  color: var(--white);
}

.cta-band h2,
.cta-band .kicker {
  color: var(--white);
}

.cta-band .lede,
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
}

.cta-band a:not(.btn) {
  color: #fff;
}

.cta-band .btn-cta {
  background: var(--teal);
}

.cta-band .enquiry-form {
  background: var(--white);
  color: var(--ink);
  padding: 1.2rem;
  border-radius: var(--radius);
}

.cta-band .enquiry-form .kicker,
.cta-band .enquiry-form label {
  color: var(--ink);
}

/* How it works
   ========================================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.plain-steps {
  padding-left: 1.15rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--wine);
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.faq summary:hover {
  color: var(--orange);
}

.faq details p {
  margin: 0.55rem 0 0.2rem;
  color: var(--muted);
}

/* Content
   ========================================================================== */

.entry-content > *:first-child { margin-top: 0; }

.entry-content h2,
.entry-content h3 {
  margin-top: 1.4em;
}

.entry-content a {
  color: var(--teal);
}

.entry-content a:hover {
  color: var(--orange);
}

.article-cta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.about-split {
  align-items: start;
}

.portrait-frame {
  margin: 0;
}

/* Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.4rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

/* Form
   ========================================================================== */

.enquiry-form {
  display: grid;
  gap: 0.15rem;
}

.form-field {
  margin: 0 0 0.85rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.form-field .req {
  color: var(--wine);
}

.form-field input,
.form-field select,
.form-field textarea,
.search-form input[type="search"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.55rem 0.7rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
}

.form-field--check label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-field--check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex: none;
}

.form-actions {
  margin: 0.4rem 0 0;
}

.form-notice {
  padding: 0.7rem 0.85rem;
  border-radius: 0.35rem;
  margin: 0 0 1rem;
}

.form-notice--ok {
  background: #e7f7fb;
  color: var(--ink);
}

.form-notice--err {
  background: #fdece3;
  color: var(--ink);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #d8d4d0;
  padding: 2.5rem 0 0;
  margin-top: 0;
}

.site-footer a {
  color: #d8d4d0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.footer-heading {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.footer-tag {
  color: #bdb8b4;
  max-width: 18rem;
}

.footer-menu,
.footer-menu .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.35rem;
}

.footer-legal p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.site-logo--footer img {
  height: 2.5rem;
  width: auto;
  background: var(--white);
  border-radius: 0.3rem;
  padding: 0.15rem;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding: 0.9rem 0;
  font-size: 0.88rem;
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: space-between;
}

.footer-base p { margin: 0; }

/* Cookie bar
   ========================================================================== */

.cookie-bar {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(26, 26, 26, 0.06);
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-bar-inner {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.cookie-bar p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pagination / search
   ========================================================================== */

.navigation.pagination {
  margin-top: 1.75rem;
}

.page-numbers {
  display: inline-flex;
  min-width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  margin-right: 0.25rem;
  text-decoration: none;
  color: var(--wine);
  border-radius: 0.3rem;
}

.page-numbers.current {
  background: var(--wine);
  color: var(--white);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.search-form input[type="search"] {
  flex: 1;
}

.search-form input[type="submit"] {
  background: var(--teal);
  color: var(--white);
  border: 0;
  border-radius: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.search-form input[type="submit"]:hover {
  background: var(--orange);
}

/* Desktop
   ========================================================================== */

@media (min-width: 48rem) {
  .hero-grid,
  .split,
  .about-split,
  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }

  .about-split,
  .contact-layout,
  .section-tint.split {
    align-items: start;
  }

  .sector-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }

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

  .section {
    padding: 3.5rem 0;
  }
}

@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    gap: 1.5rem;
  }

  .primary-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 1.25rem;
    margin-left: auto;
  }

  .primary-nav .menu {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.1rem;
  }

  .primary-nav .menu > li {
    position: relative;
  }

  .primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    box-shadow: var(--shadow);
    padding: 0.4rem 0;
    display: none;
  }

  .primary-nav .sub-menu a {
    padding: 0.4rem 0.85rem;
  }

  .primary-nav .menu-item-has-children:hover > .sub-menu,
  .primary-nav .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  body.nav-open {
    overflow: visible;
  }

  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-grid .quote-card:nth-child(4),
  .quote-grid .quote-card:nth-child(5) {
    grid-column: span 1;
  }

  .hero-portrait img {
    max-width: 28rem;
    margin-left: auto;
  }
}

@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;
  }
}

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

.site-logo--header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-logo--header::after,
.site-logo--footer::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  background: var(--orange);
  margin-top: 0.4rem;
}

.hero-portrait img,
.portrait-frame img {
  object-fit: contain;
  object-position: center top;
  background: #141414;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--wine);
}

.form-grid {
  display: grid;
  gap: 0.15rem;
}
@media (min-width: 45rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-span, .form-field--check, .consent { grid-column: 1 / -1; }
}

.primary-nav.is-open .sub-menu {
  display: block;
}
