/* Fixes for Webflow static HTML export (local file:// and non-CMS hosting) */

html {
  scroll-behavior: smooth;
}

/* CMS empty states should not show when static items are present */
.w-dyn-list:has(.w-dyn-item) .w-dyn-empty {
  display: none !important;
}

/* Fallback when :has() is unsupported — hide all empty-state bars */
.w-dyn-empty {
  display: none !important;
}

/* Webflow export hides blocks until IX runs — force visible in WordPress */
html.w-mod-js [style*="opacity:0"],
html.w-mod-js [style*="opacity: 0"],
body.m2-wp-theme [style*="opacity:0"],
body.m2-wp-theme [style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Contact page — breathing room below header */
.section_contact2_hero {
  padding-top: 4.5rem !important;
  padding-bottom: 2.5rem !important;
}

@media screen and (min-width: 768px) {
  .section_contact2_hero {
    padding-top: 6rem !important;
  }
}

/* Contact form — full width of right column (match Webflow layout) */
.contact2_hero_right {
  align-items: stretch !important;
}

.contact2_hero_form-wrap,
.contact2_hero_right .jolt_form {
  width: 100%;
  max-width: none;
  align-self: stretch;
  box-sizing: border-box;
}

.contact2_hero_right .jolt_form iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100%;
}

@media screen and (min-width: 992px) {
  .contact2_hero_form-wrap {
    max-width: none !important;
    width: 100%;
  }
}

/* Blog card images fill card width */
.blog_card-img-wrap {
  width: 100%;
}

.blog_card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Case study block spans full container width */
.section_home2_case .case2_card {
  display: flex !important;
  width: 100%;
  max-width: 100%;
}

.section_home2_case .case2_img-wrap,
.section_home2_case .case2_bottom {
  width: 100%;
}

.section_home2_case .w-dyn-list,
.section_home2_case .w-dyn-items,
.section_home2_case .w-dyn-item {
  width: 100%;
}

/* Client revision: reduce halo glow on Mark portrait thumbnails */
.hero_mark-img,
.about_story_left img,
.testimonial_avatar img,
.blog_author-img {
  box-shadow: none !important;
  filter: none !important;
}

/* Hero headline letter-spacing (May 29 client) */
.section_home1_hero h1 {
  letter-spacing: 0.05em;
}

/* About Us — full width inside Mark card (May 29 mockup) */
.section_home1_hero .home1_hero_right {
  flex-direction: column;
  align-items: stretch;
}

.section_home1_hero .home1_hero_card-row {
  display: flex;
  flex-flow: row;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
}

.section_home1_hero .home1_hero_about-btn {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  text-align: center;
  box-sizing: border-box;
}

/* Home blog header — prevent empty box layout when WP injects blog strip */
.section_blog_feed .blog_hero_wrap.dark {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* FAQ accordion — theme JS (m2-faq.js), not Webflow IX */
.faq_accordion .faq_answer {
  display: none;
}

.faq_accordion.is-open .faq_answer {
  display: block;
}

.faq_accordion.is-open .faq_action-line.is-last {
  transform: rotate(0deg);
}

.faq_accordion:not(.is-open) .faq_action-line.is-last {
  transform: rotate(-90deg);
}

/* WHO I COACH intro — two columns (client revision) */
.home_coach_intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 56rem;
}

@media screen and (max-width: 767px) {
  .home_coach_intro {
    grid-template-columns: 1fr;
  }
}

/* Areas Served — three columns (May 29 client) */
.home1_about_list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Case study — no side photo */
.section_home2_case .case2_img-wrap {
  display: none !important;
}

/* Services hero — remove top photos/video block */
.section_services1_hero .services1_hero_wrap {
  display: none !important;
}

/* News page — remove bottom CTA banner */
.news-insight-page .section_home2_banner {
  display: none !important;
}

/* White Facebook icon in footer (SVG + img fallback) */
.footer .social-link[aria-label="Facebook"] {
  color: #fff;
}

.footer .social-link[aria-label="Facebook"] img,
.footer .social-link[aria-label="Facebook"] .social-link-image {
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 991px) {
  .home1_about_list {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 767px) {
  .home1_about_list {
    grid-template-columns: 1fr;
  }
}

/* About page — industries ticker (Webflow IX marquee does not run on WP) */
.industries_marquee-wrap {
  overflow: hidden;
}

.industries_marquee {
  display: flex;
  width: max-content;
  animation: m2-industries-marquee 35s linear infinite;
  will-change: transform;
}

.industries_marquee-group {
  flex-shrink: 0;
}

.industries_marquee-item {
  flex-shrink: 0;
  min-width: max-content;
}

.industries_marquee-item .heading-style-h3 {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.section_home2_process .industries_marquee {
  max-width: none;
  overflow: visible;
  padding-right: 2rem;
}

@keyframes m2-industries-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .industries_marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }

  .industries_marquee-wrap {
    overflow: visible;
    height: auto;
  }

  .industries_marquee-group {
    flex-flow: wrap;
    justify-content: center;
    margin-right: 0;
    gap: 1.5rem;
  }
}

/* Home — sector ticker under football section */
.highlights_marquee {
  display: flex;
  width: max-content;
  max-width: none;
  animation: m2-industries-marquee 30s linear infinite;
  will-change: transform;
}

.rhighlights_marquee-group {
  flex-shrink: 0;
}

.rhighlights_marquee-group .text-size-large {
  white-space: nowrap;
}

/* General Updates doc — hide redundant Schedule a Call beside forms */
.section_contact2_hero .talk_cta,
.contact2_hero_wrap .talk_cta {
  display: none !important;
}

/* About — My Approach: full-height photo panel with overlay */
.section_home2_process .home2_process_wrap {
  align-items: stretch;
  grid-template-columns: 1fr minmax(17rem, 0.42fr) !important;
}

.section_home2_process .home2_process_img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 100%;
  align-self: stretch;
}

.section_home2_process .home2_process_img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  display: block;
}

.section_home2_process .home2_process_img-overlay {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 28, 52, 0.12) 0%,
    rgba(15, 28, 52, 0.28) 50%,
    rgba(15, 28, 52, 0.48) 100%
  );
}

@media screen and (max-width: 991px) {
  .section_home2_process .home2_process_img-wrap {
    display: none !important;
  }

  .section_home2_process .home2_process_wrap {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 767px) {
  .section_home2_process .home2_process_img-wrap {
    display: none !important;
  }
}

/* Footer Facebook — white icon */
.footer .social-link[aria-label="Facebook"] {
  color: #fff;
}

/* Responsive — prevent overflow and stack layouts on small screens */
.page-wrapper,
.main-wrapper {
  overflow-x: clip;
  max-width: 100%;
}

.main-wrapper img,
.main-wrapper video,
.main-wrapper iframe {
  max-width: 100%;
}

@media screen and (max-width: 991px) {
  .home1_services_list {
    grid-template-columns: repeat(2, 1fr) !important;
    min-height: 0 !important;
  }

  .section_home2_case .case2_bottom {
    grid-template-columns: 1fr !important;
  }

  .section_home2_case .case_solutions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .home2_process_wrap {
    grid-template-columns: 1fr !important;
  }

  .contact2_hero_wrap {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 767px) {
  .home1_services_list {
    grid-template-columns: 1fr !important;
  }

  .home1_services_card {
    min-height: 0;
  }

  .footer_info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer_socials {
    display: flex;
    gap: 1rem;
  }

  .section_home1_hero .home1_hero_card-row {
    flex-direction: column;
  }

  .padding-global {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
