/* Avista rebuild — rules that bypass the Breakdance CSS compiler.
   Loaded by avista-bd-bridge.php. Added 2026-08-09. */
.avh-work-grid .avh-card.avh-card-offset { margin-top: 110px; }
@media (max-width: 767px) {
  .avh-work-grid .avh-card.avh-card-offset { margin-top: 0; }
}

/* Brand logos: black & white, color on hover, 3 rows of 6 */
.avh-logos-grid .avh-logo-img { filter: grayscale(1); opacity: 0.6; transition: filter 300ms ease, opacity 300ms ease; }
.avh-logos-grid .avh-logo-img:hover { filter: grayscale(0); opacity: 1; }
.avh-logos-grid { row-gap: 56px; }

/* Cards: never underline inner text (theme a:hover underlines anchors) */
a.avh-card, a.avh-card:hover, a.avh-card:focus { text-decoration: none; }

/* Contact form (Gravity Forms) - hairline Cuberto-style fields (elevated specificity vs theme GF styles) */
body .av-contact-form .gform_wrapper { max-width: none; }
body .av-contact-form .gfield { margin-bottom: 30px; }
body .av-contact-form .gfield_label { font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0.12em; text-transform: uppercase; color: #6B7280 !important; }
body .av-contact-form input[type="text"],
body .av-contact-form input[type="email"],
body .av-contact-form input[type="tel"],
body .av-contact-form textarea {
  width: 100%; font-size: 20px !important; color: #111827 !important; padding: 12px 0 !important;
  border: 0 !important; border-bottom: 1px solid #E5E7EB !important; border-radius: 0 !important;
  background: transparent !important; transition: border-color 200ms ease;
}
body .av-contact-form input:focus, body .av-contact-form textarea:focus {
  outline: none !important; border-bottom-color: #F40300 !important; box-shadow: none !important;
}
body .av-contact-form textarea { min-height: 140px; resize: vertical; }
body .av-contact-form input[type="submit"], body .av-contact-form .gform_button {
  font-size: 18px !important; font-weight: 700 !important; color: #fff !important; background: #F40300 !important;
  border: 0 !important; border-radius: 99px !important; padding: 16px 42px !important; cursor: pointer;
  transition: background 250ms ease !important;
}
body .av-contact-form input[type="submit"]:hover, body .av-contact-form .gform_button:hover { background: #111827 !important; color: #fff !important; }
body .av-contact-form .gform_footer { padding: 8px 0 0; }

/* Legal pages: readable long-form typography inside the PostContent column */
.av-legal-body h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; color: #111827; margin: 48px 0 16px; }
.av-legal-body h3 { font-size: 22px; font-weight: 700; color: #111827; margin: 36px 0 12px; }
.av-legal-body p { margin: 0 0 18px; }
.av-legal-body ul, .av-legal-body ol { margin: 0 0 18px; padding-left: 24px; }
.av-legal-body li { margin-bottom: 8px; }
.av-legal-body a { color: #F40300; text-decoration: none; }
.av-legal-body a:hover { text-decoration: underline; }

/* --- Header: scrolled-state background (class toggled by avista-header-scroll.php) --- */
.av-header { transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease, padding .25s ease; }
body.av-scrolled .av-header {
  padding-top: 14px;
  padding-bottom: 14px;
  background-color: rgba(247, 248, 250, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(20, 20, 26, 0.07);
}

/* --- Header: compact layout on narrow screens --- */
.av-btn-pill { white-space: nowrap; }
@media (max-width: 640px) {
  .av-header-inner { gap: 10px; }
  .av-logo { flex-shrink: 1; min-width: 0; margin-right: auto; }
  .av-logo-img, .av-logo img { width: 86px; height: auto; }
  .av-btn-pill { font-size: 15px; padding: 10px 16px; }
  .av-btn-circle, .av-menu-btn { flex-shrink: 0; }
}
@media (max-width: 360px) {
  .av-btn-pill { font-size: 14px; padding: 9px 12px; }
  .av-logo-img, .av-logo img { width: 76px; }
}

/* --- Legacy ACF content rendered inside Breakdance pages (case-study bodies etc.) ---
   The old theme's Bootstrap CSS no longer loads; these rules give the legacy
   markup (.text-block, .visual-items, .row/.col-*) the new design language. */
.breakdance .text-block.type2 { max-width: 1140px; margin: 0 auto; padding: 48px 20px; }
.breakdance .text-block.type2 .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 48px; align-items: start; }
.breakdance .text-block.type2 [class*="col-"] { width: auto; max-width: none; }
.breakdance .text-block.type2 h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; margin: 6px 0 0; }
.breakdance .text-block.type2 p { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; font-weight: 500; color: #14141a; margin: 0 0 18px; }
.breakdance .text-block.type2 a { color: #e63329; text-decoration: none; }
.breakdance .text-block.type2 a:hover { color: #e63329; text-decoration: underline; }
.breakdance .text-block.type2 ul { list-style: none; margin: 0 0 16px; padding: 0; }
.breakdance .text-block.type2 li { font-size: 18px; margin: 0 0 8px; color: #14141a; }

/* work-list variant: nested two-column link lists (Our role / Our partners) */
.breakdance .work-list.text-block.type2 > .container > .row { grid-template-columns: 1fr; }
.breakdance .work-list .row .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.breakdance .work-list h2 { margin-bottom: 14px; }

/* image showcases */
.breakdance .visual-items-holder { max-width: 1140px; margin: 0 auto; padding: 24px 20px; }
.breakdance .visual-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.breakdance .visual-items figure { margin: 0; }
.breakdance .visual-items .img { border-radius: 20px; overflow: hidden; }
.breakdance .visual-items .img img { display: block; width: 100%; height: auto; }
.breakdance .visual-items figcaption { font-size: 15px; color: #6b7280; margin-top: 12px; }

/* illustration sections */
.breakdance .illustration-section { max-width: 1140px; margin: 24px auto; padding: 0 20px; }
.breakdance .illustration-section img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* legacy buttons become Cuberto text links (FontAwesome no longer loads) */
.breakdance a.btn { display: inline-block; margin-top: 8px; padding: 0; border: none; font-size: 17px; font-weight: 600; color: #e63329; text-decoration: none; }
.breakdance a.btn:hover { color: #14141a; }
.breakdance a.btn::after { content: " \2192"; }
.breakdance a.btn .fa { display: none; }

.breakdance .bde-shortcode .container { width: 100%; }

@media (max-width: 767px) {
  .breakdance .text-block.type2 { padding: 32px 20px; }
  .breakdance .text-block.type2 .row { grid-template-columns: 1fr; }
}

/* feature statements (heading-holder): big claim left, supporting text right */
.breakdance .heading-holder { max-width: 1140px; margin: 0 auto; padding: 56px 20px 24px; }
.breakdance .heading-holder .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.breakdance .heading-holder h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; color: #14141a; margin: 0; }
.breakdance .heading-holder .txt p { font-size: 18px; line-height: 1.55; color: #4b5563; margin: 0 0 14px; }
@media (max-width: 767px) {
  .breakdance .heading-holder .row { grid-template-columns: 1fr; }
  .breakdance .heading-holder { padding: 36px 20px 12px; }
}

/* paired feature columns (infotext-section) */
.breakdance .infotext-section { max-width: 1140px; margin: 0 auto; padding: 40px 20px; }
.breakdance .infotext-section .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; align-items: start; }
.breakdance .infotext-section h2 { font-size: 24px; font-weight: 600; color: #14141a; margin: 0 0 10px; }
.breakdance .infotext-section .txt p { font-size: 17px; line-height: 1.6; color: #4b5563; margin: 0 0 12px; }

/* client testimonials (quote-block) */
.breakdance .testimonials-holder { max-width: 900px; margin: 0 auto; padding: 64px 20px; }
.breakdance .quote-block blockquote { margin: 0; padding: 0; border: none; }
.breakdance .quote-block q { quotes: none; }
.breakdance .quote-block q::before, .breakdance .quote-block q::after { content: ""; }
.breakdance .quote-block q p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 500; color: #14141a; margin: 0 0 28px; }
.breakdance .quote-block cite { display: grid; grid-template-columns: auto auto; gap: 2px 14px; justify-content: start; align-items: center; font-style: normal; }
.breakdance .quote-block cite img { grid-row: 1 / 3; height: 44px; width: auto; max-width: 120px; object-fit: contain; }
.breakdance .quote-block cite strong { font-size: 16px; color: #14141a; }
.breakdance .quote-block cite span { font-size: 14px; color: #6b7280; }

@media (max-width: 767px) {
  .breakdance .infotext-section .row { grid-template-columns: 1fr; }
  .breakdance .testimonials-holder { padding: 44px 20px; }
}

/* CTA links following statement text need breathing room */
.av-about-inner .avh-learn { display: inline-block; margin: 32px 0 56px; }

/* --- Nav button hover system: eclipse fill, right to left --- */
a.av-btn-pill {
  background-image: linear-gradient(#14141a, #14141a);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 100% 50%;
  transition: background-size .4s cubic-bezier(.4, 0, .2, 1), border-color .25s ease, transform .2s ease;
}
a.av-btn-pill:hover {
  color: #fff;
  background-color: #f40300;
  background-size: 100% 100%;
  border-color: #14141a;
  transform: scale(1.03);
}
a.av-btn-pill:active { transform: scale(0.97); }

/* Circles (language toggle, burger, overlay close): same eclipse + invert */
a.av-btn-circle, div.av-menu-btn, .av-overlay-close {
  background-image: linear-gradient(#14141a, #14141a);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 100% 50%;
  transition: background-size .3s cubic-bezier(.4, 0, .2, 1), border-color .25s ease, color .25s ease, transform .2s ease;
}
a.av-btn-circle:hover, div.av-menu-btn:hover, .av-overlay-close:hover {
  background-size: 100% 100%;
  border-color: #14141a;
  color: #fff;
  transform: scale(1.06);
}
div.av-menu-btn:hover span, .av-overlay-close:hover span { color: #fff; }
a.av-btn-circle:active, div.av-menu-btn:active, .av-overlay-close:active { transform: scale(0.94); }

/* Keyboard focus parity with hover states */
a.av-btn-pill:focus-visible, a.av-btn-circle:focus-visible, .av-menu-btn:focus-visible {
  outline: 2px solid #f40300;
  outline-offset: 3px;
}

/* Logo wall: more breathing space */
.avh-logos .avh-logos-grid { gap: 64px 72px; max-width: 1160px; }
.avh-logos .avh-logo-img { max-height: 44px; }
@media (max-width: 1023px) {
  .avh-logos .avh-logos-grid { gap: 48px 48px; }
}
@media (max-width: 767px) {
  .avh-logos .avh-logos-grid { gap: 40px 32px; }
  .avh-logos .avh-logo-img { max-height: 38px; }
}
