/* ==========================================================================
   About Us pages: Careers, Merchandise, Consultancy, Referral
   Builds on services.css (hero, offer cards, steps, FAQs, CTA band),
   contact.css (form card, pills, chips, sidebar cards) and the tokens in style.css.
   ========================================================================== */

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

/* ---------- Image placeholder (until the client sends photos) ---------- */
.usp-ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  border-radius: var(--r-sm);
  border: 1.5px dashed rgba(97, 54, 140, 0.3);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(97, 54, 140, 0.035) 14px 28px
    ),
    var(--purple-soft);
  color: var(--purple);
}
.usp-ph svg {
  width: 34px;
  height: 34px;
  opacity: 0.7;
}
.usp-ph span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 24ch;
}
.usp-media.media-frame {
  aspect-ratio: 4 / 3;
}
.usp-media--square.usp-ph,
.usp-media--square.media-frame {
  aspect-ratio: 1 / 1;
}
.usp-media--wide.usp-ph,
.usp-media--wide.media-frame {
  aspect-ratio: 16 / 10;
}
.usp-service-hero__media .usp-ph {
  aspect-ratio: 4 / 3.4;
}

/* ---------- Shared hero ---------- */
.usp-about-hero .usp-badge-row {
  gap: 10px 20px;
}

/* ---------- Tick list ---------- */
.usp-check-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.usp-check-list li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 0.97rem;
}
.usp-check-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--orange);
}

.usp-sub-card--featured .usp-check-list li {
  color: var(--white);
}

/* ==========================================================================
   Careers
   ========================================================================== */
.usp-offer-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.usp-vacancy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.usp-vacancy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: var(--r-sm);
  transition:
    box-shadow var(--dur-m) var(--ease),
    border-color var(--dur-m) var(--ease);
}
.usp-vacancy:nth-child(even) {
  border-left-color: var(--orange);
}
.usp-vacancy:hover {
  box-shadow: var(--shadow-md);
}
.usp-vacancy__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.usp-vacancy__loc svg {
  width: 15px;
  height: 15px;
}
.usp-vacancy h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--navy);
}
.usp-vacancy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.usp-vacancy .usp-btn {
  flex-shrink: 0;
}
.usp-vacancy-none,
.usp-vacancy-note {
  color: var(--text-muted);
}
.usp-vacancy-note {
  margin: 22px 0 0;
  font-size: 0.95rem;
}
.usp-vacancy-note a {
  color: var(--purple);
  font-weight: 600;
}

.usp-recruit {
  background: var(--neutral);
}
.usp-recruit .usp-approach-steps p {
  color: var(--text-muted);
}
.usp-apply {
  scroll-margin-top: var(--nav-h);
}
.usp-vacancies {
  scroll-margin-top: var(--nav-h);
}

/* ==========================================================================
   Forms: extras on top of contact.css (selects, dates, files, steps)
   ========================================================================== */
.usp-contact-form select,
.usp-contact-form input[type="date"] {
  font-family: var(--usp-font);
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition:
    border-color var(--dur-s) var(--ease),
    box-shadow var(--dur-s) var(--ease);
}
.usp-contact-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2361368c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.usp-contact-form select:focus-visible,
.usp-contact-form input[type="date"]:focus-visible {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
}
.usp-contact-form ::placeholder {
  color: #a1a1aa;
}
.usp-optional {
  font-weight: 500;
  color: var(--text-muted);
}
.usp-pill-group--wrap {
  flex-wrap: wrap;
}

/* File upload */
.usp-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px dashed rgba(97, 54, 140, 0.35);
  border-radius: var(--r-sm);
  background: var(--purple-soft);
  cursor: pointer;
  transition:
    border-color var(--dur-s) var(--ease),
    background var(--dur-s) var(--ease);
}
.usp-file:hover,
.usp-file:focus-within {
  border-color: var(--purple);
  background: var(--purple-light);
}
.usp-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.usp-file:focus-within {
  outline: 2.5px solid var(--purple);
  outline-offset: 2px;
}
.usp-file__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--purple);
}
.usp-file__icon svg {
  width: 22px;
  height: 22px;
}
.usp-file__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.usp-file__text strong {
  font-size: 0.92rem;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usp-file__text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.usp-file.has-file {
  border-style: solid;
  border-color: var(--purple);
}

/* Numbered sections of the referral form */
.usp-form-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.usp-form-step + .usp-form-step {
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.usp-form-step legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 18px;
  font-family: var(--usp-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--purple-dark);
}
.usp-form-step__num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.85rem;
}
.usp-form-note {
  margin: 2px 0 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--orange-dark);
  background: var(--orange-light);
  border-radius: var(--r-sm);
}
.usp-form-note[hidden],
[data-toggle-field][hidden],
[data-other-field][hidden],
[data-hide-when-self][hidden] {
  display: none;
}

/* A chip that doesn't apply to the chosen office (Live-in in Glasgow) */
.usp-chip-group input:disabled + .usp-chip {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.usp-chip-group--days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.usp-chip-group--days .usp-chip {
  justify-content: center;
  padding: 9px 6px;
}
.usp-referral-form textarea[rows="2"] {
  min-height: 72px;
}
.usp-chip-group--days abbr {
  text-decoration: none;
}

/* Consent tick box */
.usp-referral-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.usp-referral-consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
}
.usp-referral-consent label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.usp-referral-consent .req {
  color: var(--orange);
}

/* Sidebar */
.usp-referral-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.usp-referral-steps {
  list-style: none;
  counter-reset: usp-ref;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.usp-referral-steps li {
  counter-increment: usp-ref;
  position: relative;
  padding-left: 42px;
  display: grid;
  gap: 2px;
}
.usp-referral-steps li::before {
  content: counter(usp-ref);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--usp-font-display);
  font-weight: 700;
  font-size: 0.82rem;
}
.usp-referral-steps strong {
  font-size: 0.95rem;
  color: var(--navy);
}
.usp-referral-steps span {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.usp-contact-card p a {
  color: var(--purple);
  font-weight: 600;
}
.usp-contact-card--flag p {
  margin-bottom: 0;
}

/* ==========================================================================
   Merchandise
   ========================================================================== */
.usp-merch-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.usp-merch-tags li {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-light);
  border-radius: var(--r-sm);
  padding: 6px 12px;
}

.usp-merch-price {
  font-family: var(--usp-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--purple);
  margin: 0 0 14px;
}
.usp-price--soon {
  font-family: var(--usp-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  white-space: nowrap;
}

/* Featured mug */
.usp-merch-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.usp-merch-feature__body h2 {
  margin-bottom: 10px;
  color: var(--purple-dark);
}
.usp-merch-feature__body > p:not(.usp-merch-price) {
  color: var(--text-muted);
  margin: 0 0 20px;
}

/* Collection */
.usp-merch-collection {
  background: var(--neutral);
}
.usp-merch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.usp-merch-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.usp-merch-card .usp-ph,
.usp-merch-card .media-frame {
  border-radius: 0;
  border-width: 0 0 1.5px;
  box-shadow: none;
}
.usp-merch-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.usp-merch-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}
.usp-merch-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.usp-merch-card__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.usp-merch-card__foot .usp-merch-price {
  margin: 0;
}

/* Why ours */
.usp-why-list--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Bundles table */
.usp-merch-bundles {
  background: var(--purple-soft);
}
.usp-bundle-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.usp-bundle-table table {
  width: 100%;
  border-collapse: collapse;
}
.usp-bundle-table th,
.usp-bundle-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.usp-bundle-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.usp-bundle-table tbody th {
  font-family: var(--usp-font-display);
  color: var(--navy);
}
.usp-bundle-table td {
  color: var(--text-muted);
}
.usp-bundle-table tbody tr:last-child > * {
  border-bottom: 0;
}
.usp-bundle-table td:last-child {
  text-align: right;
}
.usp-bundle-saving {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-dark);
}

.usp-discount-row {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.usp-discount-row li {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  background: var(--white);
  border-top: 3px solid var(--orange);
  border-radius: var(--r-sm);
}
.usp-discount-row strong {
  font-family: var(--usp-font-display);
  font-size: 1.25rem;
  color: var(--purple);
}
.usp-discount-row span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Subscriptions */
.usp-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}
.usp-sub-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.usp-sub-card--featured {
  background: var(--purple);
  border: 1.5px solid var(--purple);
  box-shadow: var(--shadow-md);
}
.usp-sub-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}
.usp-sub-card--featured h3 {
  color: var(--orange);
}
.usp-sub-card__price {
  font-family: var(--usp-font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--purple);
  margin: 0 0 22px;
}
usp-sub-card--featured .usp-sub-card__price {
  color: var(--white);
  background: none;
}
.usp-sub-card__price span {
  font-family: var(--usp-font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}
.usp-sub-card--featured .usp-sub-card__price span {
  color: var(--white);
  background: none;
}

.usp-sub-card .usp-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Consultancy
   ========================================================================== */
.usp-consult-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.usp-consult-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.usp-consult-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 18px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition:
    color var(--dur-s) var(--ease),
    border-color var(--dur-s) var(--ease);
}
.usp-consult-nav a:hover {
  color: var(--purple);
  border-bottom-color: var(--orange);
}
.usp-consult-nav .num {
  font-family: var(--usp-font-display);
  font-weight: 700;
  color: var(--orange);
}

.usp-consult-block {
  scroll-margin-top: calc(var(--nav-h) + 60px);
}
.usp-consult-block.is-flipped {
  background: var(--neutral);
}
.usp-consult-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.usp-consult-block.is-flipped .usp-consult-block__body {
  order: 2;
}
.usp-consult-block__body h2 {
  margin-bottom: 14px;
  color: var(--purple-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.usp-consult-block__lede {
  font-size: 1.08rem;
  color: var(--navy) !important;
}
.usp-consult-block__body p {
  color: var(--text-muted);
  margin: 0 0 16px;
}
.usp-consult-block__body .usp-check-list {
  margin-top: 20px;
}
.usp-consult-block__body .link-arrow {
  color: var(--purple);
}
.usp-consult-tags {
  margin-bottom: 16px;
}

/* 1 photo, or 1 large + 2 small */
.usp-consult-gallery {
  display: grid;
  gap: 14px;
}
.usp-consult-gallery--3 {
  grid-template-columns: 1fr 1fr;
}
.usp-consult-gallery--3 > :first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.usp-consult-gallery > .media-frame {
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .usp-offer-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1148px) {
  .usp-referral-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .usp-merch-feature__grid,
  .usp-consult-block__grid {
    grid-template-columns: 1fr;
  }
  .usp-consult-block.is-flipped .usp-consult-block__body {
    order: 0;
  }
  .usp-why-list--3,
  .usp-discount-row {
    grid-template-columns: 1fr;
  }
  .usp-consult-nav ul {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .usp-consult-nav ul::-webkit-scrollbar {
    display: none;
  }
  .usp-consult-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .usp-merch-grid,
  .usp-sub-grid {
    grid-template-columns: 1fr;
  }
  .usp-vacancy {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  /* Bundles: each row becomes a small card */
  .usp-bundle-table {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .usp-bundle-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .usp-bundle-table table,
  .usp-bundle-table tbody,
  .usp-bundle-table tr,
  .usp-bundle-table th,
  .usp-bundle-table td {
    display: block;
  }
  .usp-bundle-table tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 18px 20px;
    margin-bottom: 12px;
  }
  .usp-bundle-table th,
  .usp-bundle-table td {
    padding: 4px 0;
    border: 0;
  }
  .usp-bundle-table tbody th {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .usp-bundle-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--navy);
  }
  .usp-bundle-table td:last-child {
    text-align: left;
    padding-top: 12px;
  }
}

@media (max-width: 560px) {
  .usp-chip-group--days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .usp-offer-grid--4 {
    grid-template-columns: 1fr;
  }
  .usp-pill-group--wrap .usp-pill {
    flex: 1 1 auto;
  }
  .usp-consult-gallery--3 {
    grid-template-columns: 1fr;
  }
}
