/*
Theme Name: Blocksy Child
Template: blocksy
Description: Child theme for Blocksy
Version: 1.0.0
*/

/* === Sprint A (promoted to live 2026-10-30) — nav, CTA polish, hero H1 fix. Consent/chat blocks NOT promoted. === */
/* P0.5 Desktop nav: stop Contact Us wrapping around ~1280px */
@media (min-width: 1000px) and (max-width: 1400px) {
  .header-menu-ctn,
  .ct-header [data-id="menu"],
  header .ct-menu,
  .elementskit-navbar-nav-default {
    flex-wrap: nowrap !important;
  }
  .ct-header .menu > li > a,
  .elementskit-navbar-nav > li > a,
  header nav a {
    white-space: nowrap;
  }
  .ct-header .menu,
  .elementskit-navbar-nav {
    gap: 0.35rem !important;
    column-gap: 0.35rem !important;
  }
  .ct-header .menu > li > a,
  .elementskit-navbar-nav > li > a {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    font-size: 0.92em !important;
  }
}


/* === Sprint A CTA polish — 2026-09-06 === */
/* Match Get in Touch / established hermosa render CTA language; kill HA pink defaults. */

/* Nested CTA row container (Elementor wrap) */
.tv-hero-cta-row,
.elementor-element-tvHeroRw,
.elementor-element-tvNsCtaR,
.elementor-element-tvBcCtaR {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important; /* match centered hero copy */
  gap: 14px !important;
  width: 100% !important;
  max-width: 100%;
}

.tv-hero-cta-row > .tv-hero-cta,
.elementor-element-tvHeroRw > .tv-hero-cta,
.elementor-element-tvNsCtaR > .tv-hero-cta,
.elementor-element-tvBcCtaR > .tv-hero-cta,
.elementor-element.tv-hero-cta {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
}

/* Fallback if wrap missing: force parent into wrapping row */
.elementor-element-6847582,
.elementor-element-0cdc4088,
.elementor-element-daa5d9c3 {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  column-gap: 14px;
  row-gap: 16px;
}
.elementor-element-6847582 > :not(.tv-hero-cta):not(.tv-hero-cta-row):not(.elementor-element-tvHeroRw),
.elementor-element-0cdc4088 > :not(.tv-hero-cta):not(.tv-hero-cta-row):not(.elementor-element-tvNsCtaR),
.elementor-element-daa5d9c3 > :not(.tv-hero-cta):not(.tv-hero-cta-row):not(.elementor-element-tvBcCtaR) {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100%;
}

.tv-hero-cta .ha-creative-btn-wrap {
  display: inline-block;
  margin: 0;
  --ha-ctv-btn-bg-clr: #D93636;
  --ha-ctv-btn-bg-hvr-clr: #121212;
  --ha-ctv-btn-border-clr: #D93636;
  --ha-ctv-btn-border-hvr-clr: #121212;
  --ha-ctv-btn-txt-clr: #FFFFFF;
  --ha-ctv-btn-txt-hvr-clr: #FFFFFF;
}

.tv-hero-cta .ha-creative-btn.ha-stl--hermosa {
  padding: 12px 40px !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0.5em;
}

.tv-hero-cta--primary .ha-creative-btn-wrap {
  --ha-ctv-btn-bg-clr: #D93636;
  --ha-ctv-btn-bg-hvr-clr: #121212;
  --ha-ctv-btn-border-clr: #D93636;
  --ha-ctv-btn-border-hvr-clr: #121212;
  --ha-ctv-btn-txt-clr: #FFFFFF;
  --ha-ctv-btn-txt-hvr-clr: #FFFFFF;
}

.tv-hero-cta--secondary .ha-creative-btn-wrap {
  --ha-ctv-btn-bg-clr: rgba(255, 255, 255, 0.08);
  --ha-ctv-btn-bg-hvr-clr: #D93636;
  --ha-ctv-btn-border-clr: rgba(255, 255, 255, 0.55);
  --ha-ctv-btn-border-hvr-clr: #D93636;
  --ha-ctv-btn-txt-clr: #FFFFFF;
  --ha-ctv-btn-txt-hvr-clr: #FFFFFF;
}

.tv-hero-cta--secondary .ha-creative-btn.ha-stl--hermosa.ha-eft--render {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.tv-hero-cta--secondary .ha-creative-btn.ha-stl--hermosa.ha-eft--render::before {
  background: rgba(255, 255, 255, 0.08);
}

.tv-hero-cta .ha-creative-btn:focus-visible {
  outline: 2px solid #D93636;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .tv-hero-cta-row,
  .elementor-element-tvHeroRw,
  .elementor-element-tvNsCtaR,
  .elementor-element-tvBcCtaR {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .tv-hero-cta-row > .tv-hero-cta,
  .elementor-element.tv-hero-cta {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
  .tv-hero-cta .ha-creative-btn-wrap,
  .tv-hero-cta .ha-creative-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* === /Sprint A CTA polish === */

/* === Sprint A promote fixes — 2026-10-30 === */
/* P1-8 + P0-4: the longer homepage H1 must not climb into the nav row at laptop widths */
@media (min-width: 1025px) {
  .elementor-element-136f4f9 .heading-section-title {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
  .elementor-element-136f4f9 .heading-title {
    font-size: clamp(44px, 3.75vw, 60px) !important;
    line-height: 1.12 !important;
    text-wrap: balance;
  }
}
/* Header CTA: keep "Get in Touch" on one line */
[data-elementor-type="header"] .ha-creative-btn {
  white-space: nowrap;
}
/* === /Sprint A promote fixes === */
