/* ==========================================================================
   Buildsoftech — WordPress-specific styles on top of theme.css
   (popup, header icons, content/prose, pagination, buttons, contact, footer).
   Uses the design tokens defined in theme.css (:root).
   ========================================================================== */

/* Elements toggled with the `hidden` attribute must stay hidden even when a class gives
   them display:flex/grid (e.g. form success messages shown only after submitting). */
[hidden] {
  display: none !important;
}

/* ---------- Accessibility helpers ---------- */
.bst-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 10px 16px;
  border-radius: 8px;
}
.bst-skip-link:focus {
  left: 8px;
}
.bst-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.bst-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
button {
  font-family: inherit;
}

/* ---------- Logos: fixed height on every page ----------
   WooCommerce's stylesheet sets `.woocommerce-page img { height: auto }`, which blew the
   header logo up to its full 1677px on shop/cart/checkout pages. Lock the size here. */
body .site-header .logo-img {
  height: 26px !important;
  width: auto !important;
  max-width: none !important;
}
body .site-footer .footer-logo {
  height: 28px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* Home: the office banner under the numbers was removed, so the numbers now sit
   directly above the services list — drop the space that used to hold the banner. */
.stats-section {
  padding-bottom: 0 !important;
}
.stats-section .stats-grid {
  margin-bottom: 0 !important;
}

/* Home "team at work" banner: crop instead of stretching the photo. */
.team-experiences-banner .banner-img {
  object-fit: cover;
  object-position: center;
}

/* ---------- Header: account + cart icons, button version of "Request a quote" ---------- */
.btn-request-quote {
  white-space: nowrap;
}
.header-right {
  display: flex !important;
  align-items: center;
  gap: 14px;
}
.bst-header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.bst-header-icon:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
.bst-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-orange-accent);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.bst-cart-count.is-empty {
  display: none;
}
button.btn-request-quote {
  background: transparent;
  cursor: pointer;
}
.desktop-nav .sub-menu li.active > a {
  color: var(--color-accent-blue);
}
.bst-drawer-actions {
  padding: 16px 20px 20px;
}
.bst-drawer-quote {
  width: 100%;
  border: none;
  border-radius: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  cursor: pointer;
}
.mobile-menu-list li.active > .mobile-item-row > a,
.mobile-menu-list li.active > a {
  color: var(--color-white);
}

/* Service icons in the home list (inline SVG instead of PNG) */
.service-icon-wrap .bst-icon {
  display: block;
  color: var(--color-primary);
}
.bst-card-icon .bst-icon {
  color: var(--color-primary);
}

/* ---------- Generic buttons ---------- */
.bst-dark-pill,
.bst-outline-pill,
.bst-light-pill,
.bst-outline-light-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.bst-dark-pill {
  background: var(--color-primary);
  color: var(--color-white);
}
.bst-dark-pill:hover {
  background: var(--color-accent-blue);
  color: var(--color-white);
}
.bst-dark-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-primary);
}
.bst-outline-pill {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.bst-outline-pill:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.bst-light-pill {
  background: var(--color-white);
  color: var(--color-primary);
}
.bst-light-pill:hover {
  background: var(--color-orange-accent);
}
.bst-outline-light-pill {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}
.bst-outline-light-pill:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
.bst-text-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent-blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.bst-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition-fast);
}
.bst-whatsapp-btn:hover {
  background: #1ebe5b;
  color: #fff;
}
.bst-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
button.btn-hero-pill,
button.cta-inline-btn,
button.sv-intro-btn,
button.ss-cta-btn,
button.join-us-link {
  border: none;
  cursor: pointer;
}
button.btn-hero-pill {
  border: 1px solid var(--color-white);
}
button.cta-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.join-us-link {
  background: none;
  padding: 0;
}

/* Services archive card actions */
.bst-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bst-quote-link {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.bst-quote-link:hover {
  background: var(--color-accent-blue);
}
.service-card-box h6 a {
  color: inherit;
}
.bst-card-icon {
  display: block;
  width: 72px;
  height: 72px;
}

/* ---------- Inner page hero (compact) ---------- */
.subpage-hero.bst-compact-hero {
  min-height: 0;
  padding: 190px 0 110px;
}
.bst-page-hero .hero-heading {
  font-size: clamp(2.6rem, 5.5vw, 64px);
  margin-bottom: 20px;
}
.bst-page-hero .hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
}
.subpage-hero.bst-contact-hero {
  min-height: 520px;
}

/* ---------- Page body + prose (pages, blog posts, service intro) ---------- */
.bst-page-section {
  padding: 100px 0 120px;
  background: var(--color-white);
}
.bst-narrow {
  max-width: 900px;
  margin: 0 auto;
}
.bst-prose {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7em;
  font-weight: 500;
}
.bst-prose > * + * {
  margin-top: 16px;
}
.bst-prose h2,
.bst-prose h3,
.bst-prose h4 {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.25em;
  margin-top: 40px;
}
.bst-prose h2 {
  font-size: 32px;
}
.bst-prose h3 {
  font-size: 26px;
}
.bst-prose h4 {
  font-size: 22px;
}
.bst-prose ul,
.bst-prose ol {
  padding-left: 24px;
}
.bst-prose ul {
  list-style: disc;
}
.bst-prose ol {
  list-style: decimal;
}
.bst-prose li + li {
  margin-top: 6px;
}
.bst-prose a {
  color: var(--color-accent-blue);
  text-decoration: underline;
}
.bst-prose strong {
  color: var(--color-primary);
}
.bst-prose blockquote {
  border-left: 3px solid var(--color-orange-accent);
  padding: 8px 0 8px 20px;
  font-family: var(--font-primary);
  font-size: 20px;
  color: var(--color-primary);
}
.bst-prose img {
  border-radius: 16px;
  height: auto;
}
.bst-service-intro p + p {
  margin-top: 14px;
}
.bst-service-intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-text);
  max-width: 560px;
}

/* Blog detail: article uses bst-prose; headings keep the bs-* sizes */
.bs-article.bst-prose h2 {
  font-size: 32px;
  line-height: 40px;
  margin: 43px 0 16px;
}
.bs-article.bst-prose h3 {
  font-size: 26px;
  line-height: 34px;
  margin: 36px 0 14px;
}
.bs-article.bst-prose > p {
  margin: 16px 0;
}
.bst-post-cta {
  margin-top: 70px;
}
.bst-post-cta h5 {
  margin: 0;
}
.bst-post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.bs-tag {
  transition: background var(--transition-fast), color var(--transition-fast);
}
.bs-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.bs-meta-row.bst-no-featured {
  margin-top: 60px;
}

/* ---------- Pagination / empty state ---------- */
.bst-pagination {
  margin-top: 56px;
}
.bst-pagination .nav-links,
.bst-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bst-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid var(--color-border-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
}
.bst-pagination ul.page-numbers {
  border: none;
  height: auto;
}
.bst-pagination .page-numbers.current,
.bst-pagination a.page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.bst-empty-state {
  text-align: center;
  padding: 40px 0;
}
.bst-empty-state h3 {
  font-family: var(--font-primary);
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.bst-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.search-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.search-form .search-field {
  border: 1px solid var(--color-border-gray);
  border-radius: 25px;
  padding: 11px 20px;
  min-width: 240px;
}
.search-form .search-submit {
  border: none;
  border-radius: 25px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 11px 22px;
  cursor: pointer;
}

/* ---------- Contact page ---------- */
a.contact-detail-item {
  color: inherit;
  transition: transform var(--transition-fast);
}
a.contact-detail-item:hover {
  transform: translateX(4px);
}
.bst-contact-closing {
  padding: 0 0 120px;
  background: var(--color-white);
}
.bst-closing-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.4em;
  margin: 16px 0 20px;
}
.bst-closing-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6em;
  color: var(--color-text);
}

/* Form messages */
.bst-form-error {
  color: #c62828;
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0 12px;
}
.bst-inline-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0 10px;
}
.bst-inline-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #1e9e52;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bst-inline-success p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5em;
  color: var(--color-primary);
  max-width: 300px;
}
.bst-modal-done {
  max-width: 220px;
  margin-top: 6px;
}
.contact-form select {
  appearance: auto;
}

/* ---------- Footer contact column ---------- */
.bst-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bst-footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.5em;
}
.bst-footer-contact i {
  width: 18px;
  margin-top: 4px;
  color: var(--color-white);
}
.bst-footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}
.bst-footer-contact a:hover {
  color: var(--color-white);
}

/* ---------- Enquiry popup ---------- */
.bst-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bst-modal[hidden] {
  display: none;
}
.bst-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 24, 0.6);
  backdrop-filter: blur(3px);
}
.bst-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: 20px;
  padding: 44px 40px 36px;
  box-shadow: 0 30px 80px rgba(2, 7, 24, 0.35);
  animation: bst-pop 0.22s ease-out;
}
@keyframes bst-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.bst-modal-open {
  overflow: hidden;
}
.bst-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-light);
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
}
.bst-modal-title {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2em;
  margin-bottom: 10px;
  padding-right: 36px;
}
.bst-modal-sub {
  font-size: 15px;
  line-height: 1.5em;
  color: var(--color-text);
  margin-bottom: 24px;
}
.bst-enquiry-form .bst-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bst-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.bst-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.bst-field input,
.bst-field select,
.bst-field textarea {
  width: 100%;
  border: 1px solid var(--color-border-gray);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-primary);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast);
}
.bst-field input:focus,
.bst-field select:focus,
.bst-field textarea:focus {
  border-color: var(--color-accent-blue);
}
.bst-submit-btn {
  width: 100%;
  border: none;
  border-radius: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.bst-submit-btn:hover {
  background: var(--color-accent-blue);
}
.bst-submit-btn:disabled {
  opacity: 0.6;
}
.bst-modal-success {
  text-align: center;
  padding: 10px 0;
}
.bst-modal-success .bst-modal-title {
  padding-right: 0;
}
.bst-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #1e9e52;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ---------- Home testimonials carousel ----------
   All slides share one grid cell, so the box keeps the height of the longest review and the
   page never jumps while sliding. */
.bst-t-track {
  display: grid;
}
.bst-t-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.5s;
}
.bst-t-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.bst-t-slide.is-leaving {
  transform: translateX(-40px);
}
.bst-t-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}
.bst-t-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.bst-t-arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.bst-t-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bst-t-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--color-border-gray);
  cursor: pointer;
  transition: width var(--transition-fast), background var(--transition-fast);
}
.bst-t-dot.is-active {
  width: 28px;
  background: var(--color-primary);
}
@media (max-width: 767px) {
  .bst-t-controls {
    margin-top: 26px;
    gap: 14px;
  }
  .bst-t-arrow {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bst-t-slide,
  .bst-t-slide.is-active {
    transition: none;
    transform: none;
  }
}

/* ---------- Service detail: "What we offer" — full width, 3 cards per row ---------- */
.ss-col.ss-col-full {
  max-width: none;
}
.ss-col-full .ss-offer-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ss-col-full .ss-offer-card {
  padding: 32px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.ss-col-full .ss-offer-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.ss-col-full .ss-offer-card :is(h3,h6) {
  font-size: 22px;
  line-height: 30px;
  margin-bottom: 14px;
}
@media (max-width: 1024px) {
  .ss-col-full .ss-offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .ss-col-full .ss-offer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ss-col-full .ss-offer-card {
    padding: 28px 22px;
  }
  .ss-col-full .ss-offer-card :is(h3,h6) {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 12px;
  }
}

/* ---------- Responsive ---------- */
/* Product pages also carry the account + cart icons; below 1200px there is no room
   for the "Request a quote" button next to the full menu, so the icons replace it. */
@media (max-width: 1200px) {
  body.woocommerce-page .btn-request-quote {
    display: none;
  }
}

@media (max-width: 1024px) {
  .bst-header-icon {
    width: 38px;
    height: 38px;
  }
}

/* Our menu is longer than the original design's, so it no longer fits next to the logo
   and button between 769px and 1100px: switch to the hamburger there too. */
@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }
  .mobile-hamburger {
    display: block;
  }
  .btn-request-quote {
    display: none;
  }
  .header-right {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  body .site-header .logo-img {
    height: 20px !important;
  }
  body .site-footer .footer-logo {
    height: 23px !important;
  }
  .header-inner {
    gap: 10px;
  }
  .header-logo {
    flex-shrink: 1;
    min-width: 0;
  }
  .header-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .bst-header-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .bst-cart-count {
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
  }
  .subpage-hero.bst-compact-hero {
    padding: 130px 0 60px;
  }
  .bst-page-hero .hero-heading {
    font-size: 34px;
  }
  .subpage-hero.bst-contact-hero {
    min-height: 0;
    padding: 130px 0 60px;
  }
  .bst-page-section {
    padding: 50px 0 60px;
  }
  .bst-prose h2,
  .bs-article.bst-prose h2 {
    font-size: 22px;
    line-height: 28px;
  }
  .bst-prose h3,
  .bs-article.bst-prose h3 {
    font-size: 19px;
    line-height: 26px;
  }
  .bs-article.bst-prose > p,
  .bst-prose {
    font-size: 14px;
    line-height: 1.6em;
  }
  .bst-post-cta {
    margin-top: 40px;
  }
  .bst-modal {
    padding: 12px;
    align-items: flex-end;
  }
  .bst-modal-dialog {
    padding: 36px 22px 26px;
    border-radius: 20px 20px 16px 16px;
  }
  .bst-modal-title {
    font-size: 21px;
  }
  .bst-enquiry-form .bst-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .bst-contact-closing {
    padding-bottom: 60px;
  }
  .bst-section-cta {
    margin-top: 32px;
  }
  .bst-card-actions {
    gap: 12px;
  }
  /* Service titles vary in length ("Web Development", "Social Media Marketing") — let them wrap. */
  .ss-hero-title {
    white-space: normal;
  }
  .ss-hero-highlight {
    display: inline;
  }
}

/* Service page: the design's fixed-width columns (780 + 480, 513 + 513) only fit a 1280px
   container; let them shrink so 1025–1320px screens don't scroll sideways. */
@media (min-width: 1025px) {
  .ss-intro-text {
    flex: 1 1 780px;
    min-width: 0;
  }
  .ss-form-card {
    flex: 0 1 480px;
    min-width: 0;
  }
  .ss-tools-text {
    flex: 1 1 513px;
    min-width: 0;
  }
  .ss-tools-grid {
    flex: 0 1 513px;
    min-width: 0;
  }
}

/* ---------- Policy pages (template-legal.php) ---------- */
.bst-policy-section {
  padding-top: 60px;
}
.bst-policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.bst-policy-nav a {
  padding: 10px 20px;
  border: 1px solid rgba(8, 10, 12, 0.15);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bst-policy-nav a:hover {
  border-color: var(--color-primary);
}
.bst-policy-nav a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.bst-prose.bst-policy h2 {
  font-size: 26px;
  line-height: 1.3em;
  margin-top: 48px;
}
.bst-prose.bst-policy h3 {
  font-size: 20px;
  margin-top: 28px;
}
.bst-prose.bst-policy > h2:first-child {
  margin-top: 0;
}
.bst-policy-summary {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 28px 32px;
}
.bst-prose .bst-policy-summary > * + * {
  margin-top: 12px;
}
.bst-policy-summary .bst-policy-summary-title {
  font-family: var(--font-primary);
  font-size: 18px;
  color: var(--color-primary);
}
.bst-policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5em;
}
.bst-policy th,
.bst-policy td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(8, 10, 12, 0.1);
}
.bst-policy th {
  color: var(--color-primary);
  background: var(--color-bg-light);
}
.bst-policy-table-wrap {
  overflow-x: auto;
}
.bst-policy-contact {
  margin-top: 64px;
  padding: 36px 40px;
  border-radius: 16px;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bst-policy-contact h2 {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 8px;
}
.bst-policy-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bst-policy-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 600;
}
.bst-policy-contact-links i {
  width: 18px;
  text-align: center;
  color: var(--color-orange-accent);
}

/* Footer bottom row (copyright, policy links, socials): small, light and quiet */
.site-footer .footer-bottom-row {
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 28px;
  border-top-color: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer .copyright-text {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.bst-footer-legal,
.site-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.bst-footer-legal a,
.site-footer .footer-socials a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.bst-footer-legal a:hover,
.site-footer .footer-socials a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* "You agree to our Privacy Policy" line under enquiry forms */
form .bst-form-consent {
  margin: 0;
  font-size: 12px;
  line-height: 1.5em;
  font-weight: 500;
  text-align: center;
  color: rgba(8, 10, 12, 0.55);
}
form .bst-form-consent a {
  color: inherit;
  text-decoration: underline;
}
.contact-form .bst-form-consent {
  text-align: left;
  margin-top: 14px;
}
.bst-modal .bst-form-consent {
  margin-top: 12px;
}

@media (max-width: 767px) {
  .site-footer .footer-bottom-row {
    gap: 10px;
    padding-top: 22px;
    font-size: 12px;
  }
  .bst-footer-legal,
  .site-footer .footer-socials {
    gap: 4px 16px;
  }
  .bst-footer-legal a,
  .site-footer .footer-socials a {
    font-size: 12px;
  }
  .bst-policy-section {
    padding-top: 36px;
  }
  .bst-policy-nav {
    margin-bottom: 32px;
    gap: 8px;
  }
  .bst-policy-nav a {
    padding: 8px 14px;
    font-size: 13px;
  }
  .bst-prose.bst-policy h2 {
    font-size: 21px;
    margin-top: 36px;
  }
  .bst-prose.bst-policy h3 {
    font-size: 17px;
  }
  .bst-policy-summary {
    padding: 22px 20px;
  }
  .bst-policy-contact {
    padding: 28px 22px;
    margin-top: 48px;
  }
  .bst-policy-contact h2 {
    font-size: 20px;
  }
}
