﻿/* Only what the React runtime used to inject at run time (library CSS) + small Laravel additions. */
[hidden] { display: none !important; }
.avt-mega-menu .dropdown-menu { display: none; }
.avt-mega-menu .dropdown-menu.show { display: block; }
.avt-header-wrap { z-index: 9999; }

/* CodeFalcon logo (stacked mark, so it needs a fixed height instead of the old 147x46 wordmark) */
.avt-header-wrap .col-header-row .text-center img,
.avt-mega-menu .avt-top-row .text-center img { height: 60px; width: auto; }
.avt-footer-sections .footer-logo img { height: 110px; width: auto; }
@media (max-width: 991px) {
  .avt-header-wrap .col-header-row .text-center img,
  .avt-mega-menu .avt-top-row .text-center img { height: 46px; }
  .avt-footer-sections .footer-logo img { height: 90px; }
}

/* react-fast-marquee */
.rfm-marquee-container { overflow-x: hidden; display: flex; flex-direction: row; position: relative; width: var(--width, 100%); transform: var(--transform, none); }
.rfm-marquee-container:hover div { animation-play-state: var(--pause-on-hover, paused); }
.rfm-marquee-container:active div { animation-play-state: var(--pause-on-click, paused); }
.rfm-marquee { flex: 0 0 auto; min-width: var(--min-width, 100%); z-index: 1; display: flex; flex-direction: row; align-items: center;
  animation: rfm-scroll var(--duration, 60s) linear var(--delay, 0s) var(--iteration-count, infinite); animation-play-state: var(--play, running); animation-direction: var(--direction, normal); }
.rfm-initial-child-container { flex: 0 0 auto; display: flex; min-width: auto; flex-direction: row; align-items: center; }
.rfm-child { transform: var(--transform, none); }
@keyframes rfm-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* form messages */
.avt-form-alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; color: #fff; }
.avt-form-success { background: #1c7c43; }
.avt-form-error { background: #a12b2b; }
.avt-sw-video-modal video { width: 100%; }
.collapsible-title { cursor: pointer; }

/* Mega menus (hamburger + Services): fit laptop / tablet screens */
.avt-mega-menu { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.avt-mega-menu .container-fluid { min-height: 100%; height: auto; }
@media (min-width: 992px) {
  .avt-mega-menu .avt-middle-row { align-items: center; flex-wrap: nowrap; }
  .avt-mega-menu .avt-middle-row > .avt-mega-menu-main-cls { flex: 0 0 auto; width: auto; max-width: 48%; margin-bottom: 0; }
  .avt-mega-menu .avt-middle-row > .avt-right-col { flex: 1 1 0; width: auto; min-width: 0; display: flex; justify-content: flex-end; }
  .avt-mega-menu .avt-middle-row .avt-right-col img { width: auto; max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; }
  .avt-mega-menu-main-cls .navbar-nav .nav-link { font-size: clamp(26px, 2.9vw, 46px) !important; line-height: 1.65em !important; white-space: nowrap; }
  .avt-mega-menu .avt-project-btn { font-size: clamp(26px, 2.9vw, 46px); }
}
@media (min-width: 992px) and (max-height: 700px) {
  .avt-mega-menu-main-cls .navbar-nav .nav-link { font-size: clamp(22px, 2.4vw, 36px) !important; line-height: 1.5em !important; }
}
@media (max-width: 991px) {
  .avt-mega-menu-main-cls { margin-bottom: 30px; }
  .avt-mega-menu-main-cls .navbar-nav .nav-link { white-space: normal; }
}

/* Case study detail: clear the fixed header on phones (it is ~100px tall) */
@media (max-width: 767px) {
  .avt-cs3 .avt-cs3-hero { padding-top: 120px; }
}

/* Home intro: line above "Book Your Free Discovery Session" (replaces the Google rating badge) */
.avt-home-brands-sec .avt-loved-text { max-width: 620px; margin: 2.5rem auto 1.5rem; text-align: center;
  font-size: 18px; line-height: 1.55; color: #d9d9d9; }
@media (max-width: 767px) {
  .avt-home-brands-sec .avt-loved-text { font-size: 16px; margin: 1.75rem auto 1.25rem; padding: 0 12px; }
}

/* About page: brand mark in place of the portrait cut-out */
.avt-about-img-brand { top: 0; width: 560px; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.avt-about-img-brand img { left: 0 !important; width: 260px !important; border-bottom: 0 !important;
  filter: drop-shadow(0 0 40px rgba(230, 16, 50, .45)) !important; margin: 0 auto 90px !important; }
@media (max-width: 991px) {
  .avt-about-img-brand img { width: 220px !important; margin: 0 auto 30px; }
}
