/* ==========================================================================
   Blackstone - custom site styles
   Loaded from wp-content/mu-plugins/blackstone-assets/site.css
   Update-proof: lives outside the theme, survives theme updates.
   ========================================================================== */

:root {
  --bs-dark:        #1d2d31;
  --bs-dark-2:      #17252a;
  --bs-dark-3:      #22383d;
  --bs-line:        rgba(255, 255, 255, .14);
  --bs-accent:      #ff9f33;
  --bs-accent-solid:#e58520;
  --bs-ink:         #ffffff;
  --bs-ink-soft:    rgba(255, 255, 255, .74);
  --bs-ink-faint:   rgba(255, 255, 255, .55);
  --bs-light:       #f5fafd;
  --bs-radius:      14px;
  --bs-radius-sm:   10px;
  --bs-gutter:      20px;
  --bs-maxw:        1180px;
  --bs-shadow:      0 18px 44px rgba(0, 0, 0, .28);
}

@media (min-width: 600px) { :root { --bs-gutter: 28px; } }
@media (min-width: 1024px) { :root { --bs-gutter: 40px; } }

/* --------------------------------------------------------------------------
   1. Global resets and the container model
   The theme nests several "constrained" layouts each capped at 80%, so on a
   phone the real content column collapsed to ~250px of a 390px screen.
   These rules replace that with one predictable container.
   -------------------------------------------------------------------------- */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--bs-dark);
  color: var(--bs-ink);
  /* clip, not hidden: hidden would turn body into a scroll container and
     silently break position:sticky on the header. */
  overflow-x: clip;
}

img, video, svg, iframe { max-width: 100%; height: auto; }

/* The theme does not set border-box on these, so any element that combines
   width:100% with padding (the mobile CTA button, cards, tiles) overflowed. */
.bs-wrap, .bs-header, .bs-header__bar, .bs-hero, .bs-section, .bs-footer,
.bs-btn, .bs-filter, .bs-card, .bs-tile, .bs-cta, .bs-split__media,
.bs-faq__item, .bs-faq__q, .bs-faq__answer,
.bs-mobilenav, .bs-mobilenav__list, .bs-mobilenav__cta, .bs-brand {
  box-sizing: border-box;
}

/* One shared container. Replaces the nested 80% caps. */
.bs-wrap {
  width: 100%;
  max-width: var(--bs-maxw);
  margin-inline: auto;
  padding-inline: var(--bs-gutter);
  box-sizing: border-box;
}

.bs-section { padding-block: clamp(48px, 8vw, 96px); }
.bs-section--tight { padding-block: clamp(36px, 6vw, 64px); }
.bs-section--dark { background: var(--bs-dark); }
.bs-section--alt { background: var(--bs-dark-2); }

/* Neutralise the theme's doubled-up constrained widths inside our sections. */
.bs-section .wp-block-group.is-layout-constrained > *,
.bs-section .wp-block-group.is-layout-constrained {
  max-width: none;
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */

.bs-eyebrow {
  margin: 0 0 12px;
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bs-accent);
}

.bs-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 6.2vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--bs-ink);
  text-wrap: balance;
}

.bs-title--sm { font-size: clamp(22px, 4.6vw, 30px); }

.bs-lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: clamp(15px, 3.4vw, 17px);
  line-height: 1.7;
  color: var(--bs-ink-soft);
}

.bs-head { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.bs-head .bs-lead { margin-inline: auto; }

/* The theme capitalises every word of body copy inside the FAQ. Undo it. */
.bs-section p,
.bs-section li,
.bs-faq__answer { text-transform: none; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.bs-btn:hover { transform: translateY(-2px); }
.bs-btn:focus-visible { outline: 3px solid var(--bs-accent); outline-offset: 3px; }

.bs-btn--primary { background: var(--bs-accent); border-color: var(--bs-accent); color: #1a1207; }
.bs-btn--primary:hover { background: var(--bs-accent-solid); border-color: var(--bs-accent-solid); color: #1a1207; }

.bs-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.bs-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--bs-dark); }

.bs-btn__icon { width: 18px; height: 18px; flex: none; }

.bs-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bs-btns--center { justify-content: center; }

@media (max-width: 419px) {
  .bs-btns { flex-direction: column; align-items: stretch; }
  .bs-btns .bs-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.bs-header-wrap,
header.wp-block-template-part:has(.bs-header) {
  position: sticky;
  top: 0;
  z-index: 900;
}

.bs-header {
  background: rgba(23, 37, 42, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--bs-line);
}

.bs-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

@media (min-width: 1024px) { .bs-header__bar { min-height: 76px; } }

.bs-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: none;
}

.bs-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--bs-accent), var(--bs-accent-solid));
  color: #1a1207;
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  flex: none;
}

.bs-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.bs-brand__name {
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 800;
  letter-spacing: .01em;
}
.bs-brand__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bs-accent);
  white-space: nowrap;
}

/* Desktop nav */
.bs-nav { display: none; }

@media (min-width: 1024px) {
  .bs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .bs-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
  }
  .bs-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
  .bs-nav a.is-cta {
    margin-left: 8px;
    background: var(--bs-accent);
    color: #1a1207;
    font-weight: 700;
  }
  .bs-nav a.is-cta:hover { background: var(--bs-accent-solid); color: #1a1207; }
}

/* Mobile toggle */
.bs-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}
.bs-burger:focus-visible { outline: 3px solid var(--bs-accent); outline-offset: 2px; }
.bs-burger svg { width: 22px; height: 22px; }
.bs-burger__close { display: none; }
.bs-burger[aria-expanded="true"] .bs-burger__open { display: none; }
.bs-burger[aria-expanded="true"] .bs-burger__close { display: block; }

@media (min-width: 1024px) { .bs-burger { display: none; } }

/* Mobile panel */
.bs-mobilenav {
  display: none;
  border-top: 1px solid var(--bs-line);
  background: var(--bs-dark-2);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bs-mobilenav.is-open { display: block; }

@media (min-width: 1024px) { .bs-mobilenav { display: none !important; } }

.bs-mobilenav__list {
  list-style: none;
  margin: 0;
  padding: 10px var(--bs-gutter) 22px;
}
.bs-mobilenav__list li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.bs-mobilenav__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.bs-mobilenav__list a:active { color: var(--bs-accent); }
.bs-mobilenav__cta { padding: 4px var(--bs-gutter) 24px; }
.bs-mobilenav__cta .bs-btn { width: 100%; }

/* --------------------------------------------------------------------------
   5. Hero
   Art-directed: a wide, text-free crop on large screens and a portrait
   quarry photo on phones, with the headline as real text on top.
   -------------------------------------------------------------------------- */

.bs-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76svh;
  padding-block: clamp(64px, 14vw, 120px);
  background-color: var(--bs-dark-2);
  background-image: var(--bs-hero-mobile);
  background-size: cover;
  background-position: 50% 40%;
  background-repeat: no-repeat;
  isolation: isolate;
}

@media (min-width: 768px) {
  .bs-hero {
    min-height: 62svh;
    background-image: var(--bs-hero-wide);
    background-position: 50% 50%;
  }
}

@media (min-width: 1400px) { .bs-hero { min-height: 58svh; } }

.bs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 22, 26, .84) 0%, rgba(12, 22, 26, .66) 48%, rgba(12, 22, 26, .90) 100%);
}

@media (min-width: 768px) {
  .bs-hero::before {
    background:
      linear-gradient(90deg, rgba(12, 22, 26, .90) 0%, rgba(12, 22, 26, .62) 52%, rgba(12, 22, 26, .34) 100%);
  }
}

.bs-hero__inner { max-width: 640px; }

@media (min-width: 768px) { .bs-hero__inner { max-width: 600px; } }

.bs-hero__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 8.4vw, 60px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.015em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.bs-hero__title span { color: var(--bs-accent); }

.bs-hero__sub {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(15px, 3.6vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.bs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.bs-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.bs-hero__meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bs-accent);
  flex: none;
}

/* --------------------------------------------------------------------------
   6. Feature / value cards
   -------------------------------------------------------------------------- */

.bs-grid {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  grid-template-columns: 1fr;
}

@media (min-width: 600px)  { .bs-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 600px)  { .bs-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .bs-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px)  { .bs-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .bs-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.bs-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--bs-line);
  border-radius: var(--bs-radius);
  background: var(--bs-dark-3);
  transition: border-color .2s ease, transform .2s ease;
}
.bs-card:hover { border-color: rgba(255, 159, 51, .5); transform: translateY(-3px); }

.bs-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 159, 51, .14);
  color: var(--bs-accent);
  flex: none;
}
.bs-card__icon svg { width: 24px; height: 24px; }

.bs-card__title {
  margin: 0;
  font-size: clamp(17px, 3.6vw, 19px);
  font-weight: 700;
  color: #fff;
}

.bs-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bs-ink-soft);
}

/* --------------------------------------------------------------------------
   7. Projects: filter pills + gallery
   -------------------------------------------------------------------------- */

.bs-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.bs-filter {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.bs-filter:hover { border-color: var(--bs-accent); color: #fff; }
.bs-filter:focus-visible { outline: 3px solid var(--bs-accent); outline-offset: 2px; }
.bs-filter[aria-pressed="true"] {
  background: var(--bs-accent);
  border-color: var(--bs-accent);
  color: #1a1207;
}

@media (max-width: 479px) {
  .bs-filters { gap: 8px; }
  .bs-filter { flex: 1 1 calc(50% - 4px); padding-inline: 10px; }
}

.bs-gallery {
  display: grid;
  gap: clamp(14px, 2.6vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .bs-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .bs-gallery { grid-template-columns: repeat(3, 1fr); } }

.bs-tile {
  position: relative;
  display: block;
  margin: 0;
  border-radius: var(--bs-radius);
  overflow: hidden;
  background: var(--bs-dark-3);
  border: 1px solid var(--bs-line);
}

.bs-tile.is-hidden { display: none; }

.bs-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.bs-tile:hover img { transform: scale(1.05); }

.bs-tile__cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 30px 18px 16px;
  background: linear-gradient(180deg, rgba(12, 22, 26, 0) 0%, rgba(12, 22, 26, .88) 70%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.bs-tile__cap small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bs-accent);
}

.bs-gallery__empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--bs-ink-faint);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   8. Split (image + text) blocks
   -------------------------------------------------------------------------- */

.bs-split {
  display: grid;
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .bs-split { grid-template-columns: 1fr 1fr; }
  .bs-split--flip .bs-split__media { order: 2; }
}

.bs-split__media {
  position: relative;
  border-radius: var(--bs-radius);
  overflow: hidden;
  box-shadow: var(--bs-shadow);
}
.bs-split__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bs-split__body .bs-title { text-align: left; }
.bs-split__body .bs-lead { margin-inline: 0; }

.bs-list {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.bs-list li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bs-ink-soft);
}
.bs-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 159, 51, .16);
  border: 2px solid var(--bs-accent);
}

/* --------------------------------------------------------------------------
   9. FAQ accordion
   -------------------------------------------------------------------------- */

.bs-faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }

.bs-faq__item {
  border: 1px solid var(--bs-line);
  border-radius: var(--bs-radius-sm);
  background: var(--bs-dark-3);
  overflow: hidden;
}
.bs-faq__item[open] { border-color: rgba(255, 159, 51, .45); }

.bs-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-size: clamp(15px, 3.4vw, 17px);
  font-weight: 700;
  line-height: 1.4;
}
.bs-faq__q::-webkit-details-marker { display: none; }
.bs-faq__q::marker { content: ""; }
.bs-faq__q:focus-visible { outline: 3px solid var(--bs-accent); outline-offset: -3px; }

.bs-faq__sign {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 159, 51, .16);
  border: 1px solid rgba(255, 159, 51, .5);
}
.bs-faq__sign::before,
.bs-faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--bs-accent);
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .22s ease;
}
.bs-faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.bs-faq__item[open] .bs-faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.bs-faq__answer {
  margin: 0;
  padding: 2px 18px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bs-ink-soft);
}
.bs-faq__answer a { color: var(--bs-accent); }

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */

.bs-cta {
  border-radius: var(--bs-radius);
  padding: clamp(30px, 6vw, 56px);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 159, 51, .15), rgba(255, 159, 51, 0) 62%),
    var(--bs-dark-3);
  border: 1px solid rgba(255, 159, 51, .32);
  text-align: center;
}
.bs-cta .bs-title { margin-bottom: 12px; }
.bs-cta .bs-lead { margin-bottom: 28px; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.bs-footer {
  background: var(--bs-dark-2);
  border-top: 1px solid var(--bs-line);
  padding-top: clamp(44px, 7vw, 72px);
}

.bs-footer__grid {
  display: grid;
  gap: clamp(28px, 5vw, 44px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bs-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bs-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.bs-footer h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.bs-footer__about { max-width: 42ch; font-size: 15px; line-height: 1.7; color: var(--bs-ink-soft); }

.bs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bs-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bs-ink-soft);
  font-size: 15px;
  text-decoration: none;
  transition: color .18s ease;
}
.bs-footer ul a:hover { color: var(--bs-accent); }

.bs-contact { display: grid; gap: 6px; margin-top: 22px; }
.bs-contact > a, .bs-contact > span {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding-block: 6px;
  color: var(--bs-ink-soft);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bs-contact > a:hover { color: var(--bs-accent); }
.bs-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--bs-accent); }

.bs-footer__bottom {
  margin-top: clamp(34px, 5vw, 54px);
  padding-block: 22px;
  border-top: 1px solid var(--bs-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--bs-ink-faint);
}
.bs-footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bs-ink-faint);
  text-decoration: none;
}
.bs-footer__bottom a:hover { color: var(--bs-accent); }

@media (max-width: 599px) {
  .bs-footer__bottom { justify-content: center; text-align: center; }
}

/* Keep the last band clear of the floating chat launcher, which is fixed to
   the bottom-right at every width. */
.bs-footer__bottom { padding-bottom: 84px; }

/* --------------------------------------------------------------------------
   12. Floating WhatsApp action
   -------------------------------------------------------------------------- */

.bs-wa {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
  text-decoration: none;
  transition: transform .2s ease;
}
.bs-wa:hover { transform: scale(1.06); }
.bs-wa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bs-wa svg { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   13. Accessibility helpers
   -------------------------------------------------------------------------- */

.bs-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--bs-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   14. Suppress theme leftovers we replaced
   -------------------------------------------------------------------------- */

/* WOW.js adds fade classes; if the script is slow the content must still show. */
.wow { visibility: visible !important; }

/* --------------------------------------------------------------------------
   15. Anchor offset for the sticky header
   -------------------------------------------------------------------------- */

[id] { scroll-margin-top: 84px; }
@media (min-width: 1024px) { [id] { scroll-margin-top: 96px; } }

/* --------------------------------------------------------------------------
   16. Small footer details
   -------------------------------------------------------------------------- */

.bs-contact small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-ink-faint);
}

.bs-footer .bs-brand__mark { width: 34px; height: 34px; font-size: 17px; }

/* Headings inside cards that carry no icon should not leave a gap. */
.bs-card__title:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   17. Interior pages (blog, single post, 404, plain pages)
   The theme wraps page content in a <main> with ~33px side padding and then
   caps the inner template part at 80%, so on a 390px phone the readable
   column collapsed to 259px. Undo the second cap on small screens.
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
  .wp-site-blocks main.wp-block-group {
    padding-inline: var(--bs-gutter);
  }

  .wp-site-blocks .wp-block-template-part.alignwide,
  .wp-site-blocks main .wp-block-group.is-layout-constrained.alignwide {
    max-width: 100%;
    margin-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   18. Form controls
   The theme leaves search and comment inputs unstyled, which reads as broken
   against the dark background.
   -------------------------------------------------------------------------- */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--bs-line);
  border-radius: var(--bs-radius-sm);
  background: var(--bs-dark-3);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.4;
}

input::placeholder, textarea::placeholder { color: var(--bs-ink-faint); }

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--bs-accent);
  box-shadow: 0 0 0 3px rgba(255, 159, 51, .25);
}

textarea { min-height: 140px; resize: vertical; }

/* WordPress search block */
.wp-block-search__inside-wrapper { gap: 10px; flex-wrap: wrap; }
.wp-block-search__input { flex: 1 1 180px; }

.wp-block-search__button,
.wp-block-button__link,
button[type="submit"] {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bs-accent);
  color: #1a1207;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.wp-block-search__button:hover,
button[type="submit"]:hover { background: var(--bs-accent-solid); }
