/* ===========================
   CLEAN FINAL CSS (FULL FILE)
   - Fixed header top (desktop + mobile)
   - Mobile top bar: brand + Call + burger on ONE LINE
   - No search button (hidden)
   - Dropdowns (Services/Brands) scrollable on mobile
   - Footer dropdowns work + scrollable
   =========================== */

/* ===== BASE ===== */
body {
  font-family: 'Roboto', sans-serif;
  color: #000000;
  background-color: #ffffff;
  padding-top: 80px; /* чтобы контент не залезал под fixed header */
}

@media (max-width: 575.98px) {
  body { padding-top: 95px; } /* чуть больше из-за mobile bar */
}

.layout_padding { padding: 75px 0; }
.layout_padding2 { padding: 45px 0; }
.layout_padding2-top { padding-top: 45px; }
.layout_padding2-bottom { padding-bottom: 45px; }
.layout_padding-top { padding-top: 75px; }
.layout_padding-bottom { padding-bottom: 75px; }

.custom_heading-container {
  display: flex;
  justify-content: center;
  text-align: center;
}
.custom_heading-container h3 {
  text-transform: uppercase;
  font-weight: bold;
  color: #000000;
  position: relative;
}
.custom_heading-container h3::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 50px;
  height: 7px;
  transform: translateX(-50%);
  background-color: #ff4f5a;
  border-radius: 15px;
}

.btn-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
}
.btn-box a {
  color: #1d1d1d;
  margin-right: 15px;
  font-size: 18px;
}
.btn-box hr {
  width: 75px;
  height: 1.2px;
  border: none;
  background-color: #464646;
  margin: 0;
}

a, a:hover, a:focus { text-decoration: none; }
a:hover, a:focus { color: initial; }

.btn, .btn:focus {
  outline: none !important;
  box-shadow: none;
}

/* ================== HEADER / NAVBAR (FIXED) ================== */
.sub_page .hero_area { height: auto; }
.hero_area.sub_pages { height: auto; }

.hero_area { overflow: visible !important; } /* важно для скролла dropdown */

.header_section {
  background-color: #000000;
  font-family: "Poppins", sans-serif;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}
.header_section .container-fluid {
  padding-right: 25px;
  padding-left: 25px;
}

.custom_nav-container { padding: 5px 0; }

.custom_nav-container,
.navbar,
.navbar-collapse {
  overflow: visible !important; /* важно для scroll dropdown */
}

.custom_nav-container .navbar-nav .nav-item .nav-link {
  padding: 10px 30px;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.custom_nav-container .navbar-nav .nav-item .nav-link::before {
  content: "";
  display: none;
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 17px;
  height: 4px;
  transform: translateX(-50%);
  background-color: #ff4f5a;
  border-radius: 5px;
}
.custom_nav-container .navbar-nav .nav-item .nav-link:hover::before { display: block; }

/* ===== ACTIVE: only underline (no old block) ===== */
.custom_nav-container .navbar-nav .nav-item.active > a::before { display: none !important; }

.custom_nav-container .navbar-nav .nav-item.active > a {
  position: relative;
}
.custom_nav-container .navbar-nav .nav-item.active > a::after {
  content: "";
  position: absolute;
  left: 30px;   /* совпадает с padding */
  right: 30px;
  bottom: 5px;
  height: 3px;
  background: #e30000;
  border-radius: 2px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-brand img { width: 45px; margin-right: 5px; }
.navbar-brand span {
  font-weight: bold;
  font-size: 24px;
  color: #ffffff;
}

/* ===== Search button: remove ===== */
.custom_nav-container .nav_search-btn { display: none !important; }

/* ===== Dropdown in header ===== */
.navbar-nav .dropdown:hover > .dropdown-menu { display: block; }

.navbar-nav .dropdown-menu {
  background-color: #000000;
  border-radius: 0;
  margin-top: 0;
  border: none;
  min-width: 220px;
}

.navbar-nav .dropdown-item {
  color: #ffffff;
  padding: 8px 20px;
  font-size: 14px;
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background-color: #ffffff;
  color: #000000;
}

/* =========================== CALL BUTTON IN HEADER (RIGHT)
   HTML: <div class="nav-call-btn"><a href="tel:+15718885424">📞 Call</a></div>
   =========================== */
.nav-call-btn {
  display: flex;
  align-items: center;
  margin-left: 15px;
}
.nav-call-btn a,
.nav-call-btn a:visited,
.nav-call-btn a:hover,
.nav-call-btn a:focus,
.nav-call-btn a:active {
  background-color: #28a745;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 30px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nav-call-btn a:hover {
  background-color: #218838;
  transform: scale(1.05);
}

/* ================== MOBILE HEADER BAR (ONE LINE)
   Requires HTML:
   <div class="mobile-header-bar">
     <div class="mh-brand">Atlant Appliance repair DMV</div>
     <div class="mh-actions">
       <a class="mh-call-btn" href="tel:+15718885424">Call</a>
       <button class="navbar-toggler mh-toggler"...><span class="navbar-toggler-icon"></span></button>
     </div>
   </div>
   ================== */
.mobile-header-bar { display: none; }

@media (max-width: 575.98px) {
  .mobile-header-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 12px;
  }

  .mobile-header-bar .mh-brand {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }

  .mobile-header-bar .mh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .mobile-header-bar .mh-call-btn {
    background: #28a745;
    color: #ffffff !important;
    padding: 7px 12px;
    border-radius: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-header-bar .mh-toggler {
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 10px;
    outline: none;
  }

  /* hide duplicated navbar brand on very small screens */
  .navbar-brand { display: none !important; }

  /* hide call button in navbar on phone (we have it in mobile bar) */
  .nav-call-btn { display: none !important; }

  /* hide any old duplicate toggler inside navbar */
  .navbar .navbar-toggler:not(.mh-toggler) { display: none !important; }
}

/* ===== Hamburger icon (white, no inner span) ===== */
.navbar-toggler { border: 1px solid rgba(255,255,255,0.35) !important; }
.navbar-toggler:focus { outline: none !important; box-shadow: none !important; }

.navbar-toggler .navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  width: 24px;
  height: 18px;
  box-shadow: 0 8px 0 #fff; /* middle line */
  border-radius: 2px;
}
.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}
.navbar-toggler .navbar-toggler-icon::before { top: 0; }
.navbar-toggler .navbar-toggler-icon::after { top: 16px; }

/* ================== DROPDOWN SCROLL (mobile + desktop) ================== */

/* Mobile: dropdown menus become full-width + scrollable */
@media (max-width: 991.98px) {
  .custom_nav-container .navbar-nav .nav-item .nav-link {
    display: block !important;
    width: 100% !important;
    text-align: left;
    padding: 12px 16px;
  }

  .custom_nav-container .navbar-nav .nav-item.active > a::after {
    left: 16px;
    right: 16px;
    bottom: 4px;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;

    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-nav .dropdown-item { white-space: normal; }
}

/* Desktop: long dropdown lists scroll */
@media (min-width: 992px) {
  #navbarDropdownBrands + .dropdown-menu,
  #navbarDropdownServices + .dropdown-menu {
    max-height: 420px;
    overflow-y: auto;
  }
}

/* ================ SLIDER ================ */
.slider_section .row { align-items: center; }
.slider_section .img-box img { width: 90%; }
.slider_section .detail-box h1 {
  font-weight: bold;
  font-size: 4rem;
  color: #1a2e35;
}
.slider_section .detail-box h1 span { color: #ff4f5a; }
.slider_section .slider_nav-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slider_section .slider_nav-box .custom_carousel-control { display: flex; }

.slider_section .carousel-control-prev,
.slider_section .carousel-control-next {
  position: unset;
  width: 50px;
  height: 50px;
  opacity: 1;
  background-repeat: no-repeat;
  background-size: 20px;
  background-position: center;
}
.slider_section .carousel-control-prev {
  left: 2%;
  background-image: url(../images/left-arrow-black.png);
}
.slider_section .carousel-control-prev:hover {
  background-image: url(../images/left-arrow.png);
}
.slider_section .carousel-control-next {
  right: 2%;
  background-image: url(../images/right-arrow-black.png);
}
.slider_section .carousel-control-next:hover {
  background-image: url(../images/right-arrow.png);
}

/* фон для секций под слайдером (домашняя) */
.bg {
  background-image: url(../images/bg.jpg);
  background-size: cover;
}

/* ================ ABOUT ================ */
.about_section { text-align: center; }
.about_section .img-box img { width: 350px; }

/* ================ SERVICE ================ */
.service_section {
  text-align: center;
  position: relative;
}
.service_section .custom_heading-container { margin-bottom: 15px; }
.service_section .service_container { padding: 45px 0 75px 0; }
.service_section .img-box img { height: 200px; }
.service_section .detail-box { margin-top: 10px; text-align: center; }
.service_section .detail-box h6 a,
.service_section .detail-box h6 {
  color: #ff4f5a;
  font-weight: 600;
}
.service_section .detail-box p {
  font-size: 14px;
  line-height: 1.4;
}
.service_section .detail-box .btn-box a { color: #ff4f5a; }

.service_section::before {
  content: "";
  width: 200px;
  height: 175px;
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  background-size: cover;
  /* background-image: url(../images/worker.png); */
}

/* Центрируем заголовок OUR SERVICES на services.html */
.service-heading-center { justify-content: center; }

/* ================ WORK SECTION ================ */
.work_section { background-color: #ff4f5a; }
.work_section .custom_heading-container h3 { color: #ffffff; }
.work_section .custom_heading-container h3::before { background-color: #ffffff; }

.work_section .work_container {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  padding: 45px 0;
}
.work_section .work_container .box {
  width: 275px;
  height: 275px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 0 20px 0;
  background-color: #ffffff;
  border-radius: 5px;
  margin: 45px 10px;
  box-shadow: 0 0 8px 0px rgba(0,0,0,0.1);
}
.work_section .work_container .box .img-box { width: 150px; }
.work_section .work_container .box .img-box img { width: 100%; }
.work_section .work_container .box .name { margin-top: 10px; }

.work_section .work_container .box.b-1,
.work_section .work_container .box.b-3 { animation: odd-box-animate 1s infinite; }
.work_section .work_container .box.b-2,
.work_section .work_container .box.b-4 { animation: even-box-animate 1s infinite; }

@keyframes odd-box-animate {
  0% { transform: translateY(45px); }
  50% { transform: translateY(-45px); }
  100% { transform: translateY(45px); }
}
@keyframes even-box-animate {
  0% { transform: translateY(-45px); }
  50% { transform: translateY(45px); }
  100% { transform: translateY(-45px); }
}

.work_section .btn-box a { color: #ffffff; }
.work_section .btn-box hr { background-color: #ffffff; }

/* ================ CONTACT SECTION ================ */
.contact_section input,
.contact_section select {
  width: 100%;
  border: 0;
  padding: 15px 12px;
  background-color: #f2f2f2;
  outline: none;
  margin: 10px 0;
}
.contact_section input::placeholder,
.contact_section select::placeholder { color: #3a3a3a; }

.contact_section button {
  background-color: #ff4f5a;
  padding: 12px 55px;
  outline: none;
  border: 1px solid #ff4f5a;
  color: #fff;
  margin-top: 25px;
}
.contact_section button:hover {
  color: #ff4f5a;
  background-color: transparent;
}

/* ================ CLIENT SECTION ================ */
.client_section .client_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 600px;
  border: 1px solid #cccccc;
  padding: 45px 35px 35px 25px;
  background-color: #ffffff;
  margin: 0 auto;
}
.client_section .client_container .detail-box p { text-align: center; }
.client_section .client_container .client_id {
  display: flex;
  align-items: center;
  margin-top: 25px;
}
.client_section .client_container .client_id .img-box {
  width: 75px;
  margin-right: 10px;
}
.client_section .client_container .client_id .img-box img { width: 100%; }
.client_section .client_container .client_id .name h5 { text-transform: uppercase; }
.client_section .client_container .client_id .name h6 { color: #ff4f5a; }

/* ================ INFO SECTION / FOOTER TOP ================ */
.info_section {
  background-color: #ff4f5a;
  color: #ffffff;
}
.info_section a { color: #ffffff; }
.info_section h4 {
  text-transform: uppercase;
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: bold;
}
.info_section .info-logo h2 {
  font-weight: bold;
  font-size: 2rem;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 5px;
  margin-right: 15px;
}
.info_section .info-nav ul { padding-left: 15px; }
.info_section .info-nav ul li {
  list-style-type: none;
  position: relative;
  margin: 3px 0;
}
.info_section .info-nav ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  border-radius: 100%;
}
.info_section .info-contact h6 { color: #000000; font-size: 18px; }
.info_section .info-contact .call { margin-top: 20px; }
.info_section .discover ul { padding: 0; }
.info_section .discover ul li {
  list-style-type: none;
  margin: 5px 0;
}

/* =========== FOOTER SECTION =========== */
.footer_section {
  background-color: #ffffff;
  padding: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}
.footer_section p {
  color: #171717;
  margin: 0;
  text-align: center;
}
.footer_section a { color: #171717; }

/* =========================== ABOUT PAGE / GLOBAL ADD-ONS =========================== */
.section-block { margin-top: 40px; }
.info-list { margin: 10px 0 0 18px; padding: 0; }
.info-list li { margin-bottom: 6px; line-height: 1.5; }

/* =========================== HUBSPOT =========================== */
#hubspot-messages-iframe-container {
  bottom: 110px !important;
  right: 25px !important;
}
@media (max-width: 768px) {
  #hubspot-messages-iframe-container {
    bottom: 90px !important;
    right: 15px !important;
  }
}

/* =========================== FOOTER DROPDOWNS (Services / Brands) =========================== */
.info-nav .footer-has-dropdown { position: relative; }

.info-nav .footer-dropdown {
  display: none !important;
  margin-top: 5px;
  padding-left: 0;
  max-height: 260px;           /* scroll for long lists */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.info-nav .footer-dropdown li::before { content: none !important; }
.info-nav .footer-dropdown li {
  list-style-type: none;
  margin: 2px 0;
}
.info-nav .footer-dropdown li a {
  display: block;
  padding: 3px 0;
  color: #ffffff;
  font-size: 14px;
}
.info-nav .footer-dropdown li a:hover,
.info-nav .footer-dropdown li a:focus {
  background-color: #ffffff;
  color: #000000;
}

@media (min-width: 992px) {
  .info-nav .footer-has-dropdown:hover > .footer-dropdown { display: block !important; }
}

@media (max-width: 991.98px) {
  .info-nav .footer-has-dropdown:hover > .footer-dropdown { display: none !important; }
  .info-nav .footer-has-dropdown.open > .footer-dropdown { display: block !important; }
}


/* =========================
   BRANDS GRID (MOBILE-FIRST)
   ========================= */

.brands-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* ✅ 2 колонки на мобиле */
  gap: 12px;
  margin-top: 22px;
}

/* Card */
.brand-card{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  /* ✅ комфортная высота для пальца */
  min-height: 52px;
  padding: 12px 10px;

  background:#fff;
  border:1px solid #e6e6e6;
  border-radius: 10px;

  font-weight:700;
  font-size: 14px;
  line-height: 1.15;

  color:#000;
  text-decoration:none;

  /* ✅ быстрый и лёгкий эффект */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

/* ✅ эффект "нажатия" на мобиле */
.brand-card:active{
  transform: scale(0.98);
  border-color: #e30000;
}

/* Планшет: 3 колонки */
@media (min-width: 576px){
  .brands-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .brand-card{
    min-height: 60px;
    font-size: 15px;
  }
}

/* Небольшой десктоп: 4 колонки */
@media (min-width: 992px){
  .brands-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .brand-card{
    min-height: 74px;
    font-size: 16px;
  }

  /* Hover только на устройствах с мышью */
  .brand-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    border-color:#e30000;
  }
}

/* Большой десктоп: 5-6 колонок автоматически */
@media (min-width: 1200px){
  .brands-grid{
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}
/* ===== RELATED BRANDS TABLE STYLE ===== */

.brands-grid-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.brand-table-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: #000000;
  transition: 0.25s ease;
}

.brand-table-card:hover {
  background: #f8f8f8;
  border-color: #e30000;
  transform: translateY(-2px);
}

/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width: 991.98px) {
  .brands-grid-table {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .brands-grid-table {
    grid-template-columns: repeat(1, 1fr);
  }
}
