/* ============================================
   THERMOGRID HVAC CORP - Custom Stylesheet
   ============================================ */

/* Color Variables */
:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #1e40af;
    --light-blue: #3b82f6;
    --yellow: #fbbf24;
    --dark-yellow: #f59e0b;
    --green: #10b981;
    --dark-gray: #374151;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --black: #000000;
    --red: #ef4444;
}

/* Global Styles */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

@font-face {
    font-family: 'bootstrap-icons';
    src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/fonts/bootstrap-icons.woff2") format("woff2");
    font-display: swap; /* Это уберет ошибку */
  }

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Strip */
.header-strip {
    background-color: var(--dark-gray);
    padding: 10px 0;
    color: var(--white);
}

.header-strip a {
    color: var(--white);
    font-size: 18px;
}

.header-strip a:hover {
    color: var(--yellow);
}

/* Main Header */
.dog {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 100px;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navigation ul li a {
    color: var(--dark-gray);
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

.navigation ul li a:hover {
    color: var(--primary-blue);
}

/* Services dropdown */
.navigation ul li.nav-dropdown {
    position: relative;
}

/* Invisible hover bridge so dropdown doesn't close */
.navigation ul li.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.navigation ul li.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navigation ul li.nav-dropdown > a::after {
    content: "▾";
    font-size: 12px;
    line-height: 1;
    opacity: 0.8;
}

.navigation ul li.nav-dropdown .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    display: none;
    z-index: 2000;
}

.navigation ul li.nav-dropdown .nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-gray);
}

.navigation ul li.nav-dropdown .nav-dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.navigation ul li.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.navigation ul li.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .icon {
    width: 30px;
    height: 3px;
    background-color: var(--dark-gray);
    position: relative;
}

.hamburger .icon::before,
.hamburger .icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--dark-gray);
    left: 0;
}

.hamburger .icon::before {
    top: -10px;
}

.hamburger .icon::after {
    bottom: -10px;
}

/* Hero Banner Section */
.banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(55, 65, 81, 0.8) 0%, rgba(55, 65, 81, 0.5) 50%, transparent 100%);
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h1 {
    color: var(--white);
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner p {
    color: var(--white) !important;
    font-size: 20px;
    margin-bottom: 30px;
}

/* Buttons */
.btn1 {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-bg-red {
    background-color: var(--yellow);
    color: var(--dark-gray);
}

.btn-bg-red:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-2px);
}

.btn-bg-green {
    background-color: var(--dark-gray);
    color: var(--white);
}

.btn-bg-green:hover {
    background-color: #4b5563;
}

.btn-bg-blue {
    background-color: var(--light-blue);
    color: var(--white);
}

.btn-bg-blue:hover {
    background-color: #2563eb;
}

.text-cblack {
    color: var(--dark-gray);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: left 0.3s;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .navigation.active {
        left: 0;
    }
    
    .navigation ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .navigation ul li {
        border-bottom: 1px solid #e5e7eb;
        padding: 15px 0;
    }
    
    .navigation ul li a {
        display: block;
        font-size: 18px;
    }

    .navigation ul li.nav-dropdown > a::after {
        content: "";
    }

    .navigation ul li.nav-dropdown .nav-dropdown-menu {
        position: static;
        min-width: 0;
        border: 0;
        box-shadow: none;
        padding: 10px 0 0 0;
        display: none;
    }

    .navigation ul li.nav-dropdown .nav-dropdown-menu a {
        font-size: 16px;
        font-weight: 700;
        padding: 10px 0;
        border-radius: 0;
    }

    .navigation ul li.nav-dropdown .nav-dropdown-menu a:hover {
        background: transparent;
    }
    
    .hamburger {
        display: block;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
    
    .b-heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 60px 0;
        min-height: 400px;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .inner-banner {
        padding: 60px 0;
        min-height: 250px;
    }
    
    .inner-banner h1 {
        font-size: 36px;
    }
    
    .banner-bottom .box {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .banner-bottom .row {
        justify-content: center !important;
    }
    
    .banner-bottom .col-12 {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .banner-bottom .col-12 > .box {
        width: 100%;
        max-width: 500px;
    }
    
    .how-can-we-help,
    .services,
    .buy-today,
    .your-home,
    .faq,
    .our-location,
    .brand,
    .ac-heating,
    .product-grid,
    .lg-advantage {
        padding: 60px 0;
    }
    
    .b-heading,
    .heading {
        font-size: 24px;
    }
    
    .service {
        margin-bottom: 20px;
    }
    
    .form {
        padding: 30px 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 24px;
    }
    
    .inner-banner h1 {
        font-size: 28px;
    }
    
    .btn1 {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .banner-bottom .box h5 {
        font-size: 20px;
    }
    
    .heading {
        font-size: 22px;
    }
}

/* Mobile Call & Book Buttons */
.mobile-cta-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(128, 128, 128, 0.8);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    gap: 10px;
}

.mobile-cta-buttons.active {
    display: flex;
}

.mobile-cta-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-cta-btn.call-btn {
    background-color: #FBBD24;
    color: #374151;
}

.mobile-cta-btn.call-btn:hover {
    background-color: #e6c805;
    color: #374151;
    text-decoration: none;
}

.mobile-cta-btn.book-btn {
    background-color: #3571C6;
    color: white;
}

.mobile-cta-btn.book-btn:hover {
    background-color: #2a5ba0;
    color: white;
    text-decoration: none;
}

.mobile-cta-btn i {
    font-size: 18px;
}

/* Show mobile buttons only on mobile devices */
@media (max-width: 992px) {
    .mobile-cta-buttons {
        display: flex;
    }
    
    /* Add padding to body to prevent content from being hidden behind fixed buttons */
    body {
        padding-bottom: 80px;
    }
}

@media (min-width: 993px) {
    .mobile-cta-buttons {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ============================================
   PERF/A11Y additions (home hero + buttons)
   ============================================ */

/* PERF: Ensure hero is stable and the <img> behaves like the old background-image */
.banner { position: relative; z-index: 0; overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { z-index: -1; }
.banner__content { position: relative; z-index: 1; }

/* PERF: Optional small mobile tweak for faster perceived load */
@media (max-width: 576px) {
  .banner { min-height: 420px; }
  .banner__content { padding-top: 44px; padding-bottom: 44px; }
}

/* Accessibility: improve contrast (Lighthouse) */
.btn-bg-blue {
  background-color: #0b5ed7 !important; /* darker blue */
  color: #ffffff !important;
  border-color: #0b5ed7 !important;
}
.btn-bg-blue:hover,
.btn-bg-blue:focus {
  background-color: #084298 !important; /* even darker */
  border-color: #084298 !important;
  color: #ffffff !important;
}
.btn-bg-blue:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}
/* Brand slider centering */
.brand .swiper {
  width: 100%;
}

.brand .swiper-wrapper {
  align-items: center;
}

.brand .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand .swiper-slide img {
  display: block;
  margin: 0 auto;
}

/* Customer Reviews carousel */
.tg-reviews {
  padding: 60px 0;
  background: #F5F5F5;
}

.tg-reviews__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tg-reviews__controls {
  display: inline-flex;
  gap: 10px;
}

.tg-reviews__arrow {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tg-reviews__arrow:disabled,
.tg-reviews__arrow[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.tg-reviews__arrow:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 2px;
}

.tg-reviews__mount {
  margin-top: 24px;
  min-height: 280px;
}

.tg-reviews__sentinel {
  width: 100%;
  height: 1px;
}

.tg-reviews__scroller {
  display: flex;
  gap: 18px;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 6px;
  -webkit-overflow-scrolling: touch;
  touch-action: none;
  padding-bottom: 8px;
}

.tg-reviews__scroller::-webkit-scrollbar {
  height: 10px;
}

.tg-reviews__scroller::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

.tg-reviews__card {
  flex: 0 0 min(85vw, 360px);
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.tg-reviews__card:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 2px;
}

.tg-reviews__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: #111827;
}

.tg-reviews__date {
  font-weight: 600;
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
}

.tg-reviews__text {
  margin-top: 12px;
  color: #374151;
  font-size: 15px;
}

.tg-reviews__skeleton {
  display: flex;
  gap: 18px;
}

.tg-reviews__skeleton-card {
  flex: 0 0 min(85vw, 360px);
  height: 220px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  border-radius: 14px;
  animation: tg-reviews-shimmer 1.2s ease-in-out infinite;
}

@keyframes tg-reviews-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (min-width: 992px) {
  .tg-reviews__card,
  .tg-reviews__skeleton-card {
    flex-basis: 400px;
  }
}


/* Brand slider centering */
.brand .swiper {
    width: 100%;
  }
  
  .brand .swiper-wrapper {
    align-items: center;
  }
  
  .brand .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .brand .swiper-slide img {
    display: block;
    margin: 0 auto;
  }