/* Homepage / marketing layout — responsive positioning only (brand look unchanged) */

.site-brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-brand-logo {
  display: block;
  width: 190px;
  height: auto;
  max-width: 190px;
  max-height: 118px;
  object-fit: contain;
  margin: 0;
}

.ft-header-section.header-style-three .ft-brand-logo img.site-brand-logo,
.ft-header-section.header-style-three .m-brand-logo img.site-brand-logo {
  margin-left: 0;
  max-height: 118px;
  width: 190px;
  height: auto;
}

.ft-header-top-actions {
  gap: 8px;
}

/* Auth shortcut in main bar — mobile/tablet only (desktop uses top-right bar) */
.ft-header-auth-btn {
  display: none;
}

.ft-header-auth-btn a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  padding: 8px 14px;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 999px;
  background-color: #ed1c24;
  text-decoration: none;
}

.ft-header-auth-btn a:hover {
  background-color: #fff;
  color: #ed1c24 !important;
}

/* ----- Tablet & mobile ----- */
@media screen and (max-width: 991px) {
  .ft-header-section.header-style-three {
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    position: sticky;
    padding: 0;
    background-color: #000;
    box-shadow: 0 1px 0 rgba(237, 28, 36, 0.85);
  }

  .ft-header-section.header-style-three .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ft-header-section.header-style-three .ft-header-top {
    display: none !important;
  }

  .ft-header-section.header-style-three .ft-header-main-menu {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    padding: 8px 0;
  }

  .ft-header-section.header-style-three .ft-brand-logo {
    flex: 0 1 auto;
    max-width: min(46vw, 150px);
    max-height: none;
  }

  .ft-header-section.header-style-three .ft-brand-logo img.site-brand-logo,
  .site-brand-logo {
    width: auto;
    max-width: 100%;
    max-height: 44px;
    height: 44px;
    margin-left: 0 !important;
  }

  .ft-header-section.header-style-three .ft-header-main-menu-cta {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .ft-header-section.header-style-three .ft-main-navigation {
    display: none !important;
  }

  .ft-header-section.header-style-three .ft-header-cta-btn {
    margin: 0 6px 0 0 !important;
  }

  .ft-header-section.header-style-three .ft-header-cta-btn a {
    padding: 8px 12px !important;
    font-size: 11px !important;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 999px;
  }

  .ft-header-auth-btn {
    display: block;
    margin-right: 6px;
  }

  .ft-header-auth-btn a {
    padding: 8px 12px;
    font-size: 11px;
  }

  .ft-header-section.header-style-three .mobile_menu {
    position: static;
    flex: 0 0 auto;
  }

  .ft-header-section.header-style-three .mobile_menu_button,
  .ft-header-section.sticky-on.header-style-three .mobile_menu_button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    line-height: 1;
    font-size: 20px;
  }

  .mobile_menu_content .m-brand-logo img.site-brand-logo {
    width: auto;
    max-width: 160px;
    max-height: 56px;
    height: auto;
  }

  /* Hero / slider sits under sticky header cleanly */
  #ft-slider-3,
  .ft-slider-section-3 {
    margin-top: 0;
  }

  #ft-slider-3 .rs-module-wrap,
  #rev_slider_29_1_wrapper {
    margin-top: 0 !important;
  }

  /* Content sections — breathing room for phones */
  .ft-about-section-2,
  .ft-portfolio-section-2,
  .ft-service-section-2,
  .ft-blog-section-2 {
    padding: 40px 0 !important;
  }

  .ft-about-text-wrapper-2 .ft-section-title-2 h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .ft-about-img-2-wrapper {
    padding-left: 0 !important;
    padding-top: 20px;
  }

  .ft-about-feature-wrapper-2 {
    margin-top: 24px;
  }

  .ft-about-feature-wrapper-2 .ft-about-feature-list-item {
    padding: 14px 10px;
  }

  /* Fixed side CTA — smaller and less obstructive on phones */
  .btn-cta-contact {
    font-size: 0.85rem !important;
    padding: 10px 14px 28px !important;
    right: -28px !important;
    top: 42%;
  }
}

@media screen and (max-width: 575px) {
  .ft-header-section.header-style-three .ft-header-main-menu {
    min-height: 58px;
    gap: 8px;
  }

  .ft-header-section.header-style-three .ft-brand-logo {
    max-width: min(42vw, 130px);
  }

  .ft-header-section.header-style-three .ft-brand-logo img.site-brand-logo,
  .site-brand-logo {
    max-height: 38px;
    height: 38px;
  }

  .ft-header-section.header-style-three .ft-header-cta-btn a {
    padding: 7px 10px !important;
    font-size: 10px !important;
  }

  .ft-header-auth-btn a {
    padding: 7px 10px;
    font-size: 10px;
  }

  .ft-header-section.header-style-three .mobile_menu_button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* Hide floating side CTA on very small screens — header already has Book a Demo */
  .btn-cta-contact {
    display: none !important;
  }
}

/* Large phones / small tablets landscape */
@media screen and (min-width: 576px) and (max-width: 991px) {
  .ft-header-section.header-style-three .ft-brand-logo img.site-brand-logo {
    max-height: 48px;
    height: 48px;
  }
}

/* Footer logo stays proportional on all screens */
.ft-footer-section-2 .site-brand-logo,
.ft-footer-widget .site-brand-logo {
  width: auto;
  max-width: 180px;
  max-height: 90px;
  height: auto;
}

@media screen and (max-width: 575px) {
  .ft-footer-section-2 .site-brand-logo,
  .ft-footer-widget .site-brand-logo {
    max-width: 140px;
    max-height: 64px;
  }

  .ft-newslatter-content-3 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    text-align: left;
  }

  .ft-newslatter-content-3 .ft-newslatter-btn {
    width: 100%;
  }

  .ft-newslatter-content-3 .ft-newslatter-btn a {
    width: 100%;
  }
}
