/* =============================================================
   ECOSTAR – RESPONSIVE STYLESHEET
   Breakpoints follow Bootstrap 5 defaults:
     xs  < 576px
     sm  ≥ 576px
     md  ≥ 768px
     lg  ≥ 992px
     xl  ≥ 1200px
     xxl ≥ 1400px

   Strategy:
     - Mobile-first overrides where possible
     - Desktop-down overrides for complex layouts
     - Section-scoped (same parent classes as style.css)
   ============================================================= */


/* -------------------------------------------------------------
   LARGE SCREENS (≥ 1200px)
   ------------------------------------------------------------- */
@media (min-width: 1200px) {
  :root {
    --section-py: 100px;
  }

  
}


/* -------------------------------------------------------------
   MEDIUM SCREENS (≤ 991px)  — tablet landscape & below
   ------------------------------------------------------------- */
@media (max-width: 991.98px) {
  :root {
    --section-py: 60px;
  }

  /* Navbar: switch from pill to flat on collapse */
  .site-header .navbar {
    border-radius: 16px;
    padding: 10px 16px;
  }

  .site-header .navbar-collapse {
    padding: 16px 0 8px;
    border-top: 1px solid #c8d8ea;
    margin-top: 8px;
  }

  .site-header .nav-link {
    padding: 10px 6px;
  }

  .site-header .nav-cta {
    margin-top: 12px;
    width: fit-content;
  }

  /* Hero */
  .hero-section {
    min-height: 520px;
  }

  .hero-section .hero-content {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-section h1 {
    font-size: 38px;
    line-height: 50px;
  }

  .hero-section .hero-form-wrap {
    margin-bottom: -140px;
  }

  .hero-section .hero-contact-card {
    padding: 36px 32px;
  }

  /* About (stats + who we are + financeit) */
  .about-section {
    padding-top: 180px;
  }

  .about-section .stats-item {
    padding: 24px 16px;
  }

  .about-section .financeit-card {
    padding: 40px 36px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 32px;
  }

  .testimonials-section .owl-prev {
    left: 0;
  }

  .testimonials-section .owl-next {
    right: 0;
  }
}


/* -------------------------------------------------------------
   TABLET SCREENS (≤ 767px)
   ------------------------------------------------------------- */
@media (max-width: 767.98px) {
  :root {
    --section-py: 50px;
  }

  .section-title { font-size: 32px; }
  .section-subtitle { font-size: 16px; }

  /* Buttons */
  .btn-primary-solid,
  .btn-primary-outline,
  .btn-white-solid,
  .btn-white-outline,
  .btn-dark-solid {
    padding: 12px 28px;
  }

  .btn-lg {
    padding: 15px 36px;
    font-size: 16px;
  }

  /* Navbar: full-rounded becomes small radius */
  .site-header .navbar {
    border-radius: 12px;
  }

  /* Hero */
  .hero-section {
    min-height: unset;
  }

  .hero-section h1 {
    font-size: 32px;
    line-height: 44px;
  }

  .hero-section > .hero-content p {
    font-size: 16px;
  }

  .hero-section .hero-form-wrap {
    margin-bottom: -100px;
  }

  .hero-section .hero-contact-card {
    padding: 28px 22px;
  }

  /* About (stats + who we are + financeit) */
  .about-section {
    padding-top: 130px;
  }

  .about-section .stats-item {
    border-right: none;
    border-bottom: 1px solid #d4e3f0;
  }

  .about-section .stats-item:last-child {
    border-bottom: none;
  }

  .about-section .financeit-card {
    padding: 32px 24px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 24px;
  }

  .testimonial-author {
    flex-direction: column;
  }

  .author-info {
    text-align: center;
  }

  .testimonials-section .owl-carousel.owl-loaded .owl-item.active + .owl-item {
    margin-left: 10px;
  }
}


/* -------------------------------------------------------------
   MOBILE SCREENS (≤ 575px)
   ------------------------------------------------------------- */
@media (max-width: 575.98px) {
  :root {
    --section-py: 40px;
  }

  .section-title { font-size: 28px; }

  /* Navbar: square on mobile */
  .site-header .navbar {
    border-radius: 8px;
  }

  /* Hero */
  .hero-section h1 {
    font-size: 30px;
    line-height: 40px;
  }

  .hero-section .hero-badge-icon {
    width: 52px;
    height: 52px;
  }

  .hero-section .hero-badge-icon i {
    font-size: 20px;
  }

  .hero-section .hero-form-wrap {
    margin-bottom: -60px;
  }

  .hero-section .hero-contact-card {
    padding: 24px 16px;
    border-radius: 12px;
  }

  /* About (stats + who we are + financeit) */
  .about-section {
    padding-top: 90px;
  }

  .about-section .financeit-card {
    padding: 24px 16px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 20px 16px;
    margin: 10px 5px;
  }

  .testimonial-card .quote-icon {
    font-size: 36px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
  }

  .google-logo {
    width: 50px;
  }

  /* Full-width buttons on small screens when used in a stack */
  .btn-stack-mobile .btn-primary-solid,
  .btn-stack-mobile .btn-primary-outline,
  .btn-stack-mobile .btn-white-solid,
  .btn-stack-mobile .btn-white-outline,
  .btn-stack-mobile .btn-dark-solid {
    width: 100%;
    justify-content: center;
  }
}


/* -------------------------------------------------------------
   REQUESTED VIEWPORT REFINEMENTS
   Targets: 1600, 1400, 1366, 1200, 992, 768, 600, 500, 450, 375
   ------------------------------------------------------------- */
body {
  min-width: 320px;
}

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

main {
  overflow: hidden;
}

.btn-primary-solid,
.btn-primary-outline,
.btn-white-solid,
.btn-white-outline,
.btn-dark-solid,
.btn-text-link {
  max-width: 100%;
}



@media (max-width: 1600px) {


  .hero-section .hero-content {
    padding: 70px 8vw;
  }

  .site-header .navbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-section {
    padding-top: 360px;
  }

  .inner-banner .content {
    padding: 120px 0px;
  }
}

@media (max-width: 1400px) {
  body {
    font-size: 18px;
  }

  h1,
  .h1,
  .hero-section h1 {
    font-size: 46px;
    line-height: 58px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 38px;
    line-height: 1.32;
  }

  .navbar-brand img {
    width: 180px;
  }

  .site-header .nav-link,
  .site-header .nav-link.active {
    font-size: 16px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .site-header .nav-cta {
    padding-right: 12px;
  }


  .hero-section .hero-content {
    padding: 60px 7vw;
  }

  .hero-section .hero-contact-card {
    padding: 38px 42px;
  }

  .about-section {
    padding-top: 350px;
  }

  .hvac-services-section .item-card,
  .hvac-distributor-section .item {
    padding: 26px;
  }

  .service-areas-section .item {
    padding: 42px;
  }
}

@media (max-width: 1366px) {
  h1,
  .h1,
  .hero-section h1 {
    font-size: 42px;
    line-height: 54px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 36px;
  }

  .site-header .navbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar-brand img {
    width: 168px;
  }

  .site-header .nav-link,
  .site-header .nav-link.active {
    padding-left: 6px;
    padding-right: 6px;
  }

  .site-header .nav-cta {
    gap: 8px;
    padding: 8px 10px 8px 8px;
  }

  .site-header .nav-cta-icon {
    width: 34px;
    height: 34px;
  }

  .site-header .nav-cta-text strong {
    font-size: 16px;
  }



  .hero-section .hero-content {
    padding: 54px 6vw;
  }

  .hero-section .hero-badge {
    margin-bottom: 18px;
  }

  footer .newsletter .btn-primary-solid {
    right: 21%;
  }

  footer ul.quick-links li,footer ul.contact li, footer .logo-left p {
    font-size: 16px;
  }

  .inner-banner-usps .usp-card{
    height: 100%;
  }

  .why-ecostar-about-section ul.checkpoints li {
    font-size: 20px;
  }
}

@media (max-width: 1200px) {
  :root {
    --section-py: 70px;
  }

  body {
    font-size: 17px;
  }

  h1,
  .h1,
  .hero-section h1 {
    font-size: 38px;
    line-height: 50px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 34px;
    line-height: 1.3;
  }

  .section-padding {
    padding-top: 70px;
  }

  .site-header .navbar {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 10px 16px;
    justify-content: space-between;
  }

  .navbar-brand img {
    width: 170px;
  }

  .topbar {
    display: none;
  }

  .navbar-expand-lg .navbar-toggler {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 58px;
    height: 42px;
    padding: 0;
  }

  .site-header .navbar-toggler-icon {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0;
    background: #fff;
    background-image: none;
    border-radius: 999px;
  }

  .navbar-expand-lg .navbar-collapse {
    display: none !important;
    flex-basis: 100%;
    width: 100%;
  }

  .navbar-expand-lg .navbar-collapse.show,
  .navbar-expand-lg .navbar-collapse.collapsing {
    display: block !important;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100%;
  }

  .site-header .navbar-collapse {
    padding: 16px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin-top: 10px;
  }

  .site-header .nav-link,
  .site-header .nav-link.active {
    font-size: 16px;
    padding: 10px 4px;
  }

  .site-header .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0;
  }

  .site-header .nav-cta {
    width: fit-content;
    margin-top: 12px;
  }

  .hero-section {
    padding-top: 90px;
  }

  .hero-section .hero-content {
    padding: 48px 5vw;
  }

  .hero-section .hero-contact-card {
    padding: 34px 36px;
  }

  .about-section {
    padding-top: 360px;
  }

  .hvac-distributor-section .item .image-area-right img {
    margin-top: 0;
  }

  .why-ecostar-section .cards {
    flex-wrap: wrap;
  }

  .why-ecostar-section .item {
    width: calc(33.333% - 12px);
  }

  .team-section {
    height: auto;
    padding-bottom: 70px;
  }

  .cta-section .form-area {
    width: 100%;
    padding: 34px;
    margin-top: -60px;
  }

  footer .newsletter .form-control {
    width: 84%;
  }

  .testimonials-section .logo-area{
    flex-wrap: wrap;
    gap: 20px;
  }

  .hvac-services-section .item-card ul.item-features li {
    width: 100%
  }

  footer ul.quick-links li {
    width: 100%;
  }

  footer ul.quick-links li, footer ul.contact li, footer .logo-left p{
    width: 100%;
    font-size: 14px;
  }

  footer .copyright .item p{
    font-size: 14px;
  }

  footer .copyright .item img{
    width: 200px;
  }

  .inner-banner {
    padding-top: 65px;
  }
  .inner-banner .content {
    padding: 50px 0px 120px;
  }
}

@media (max-width: 992px) {
  :root {
    --section-py: 60px;
  }

  body {
    font-size: 16px;
  }

  h1,
  .h1,
  .hero-section h1 {
    font-size: 34px;
    line-height: 44px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 30px;
    line-height: 1.3;
  }

  .section-padding {
    padding-top: 60px;
  }

  .hero-section {
    height: auto;
    min-height: 0;
    padding-top: 110px;
    padding-bottom: 50px;
    background-position: center top;
  }

  .hero-section .hero-content {
    padding: 46px 24px 28px;
  }

  .hero-section .hero-form-wrap {
    margin-bottom: 0;
  }

  .about-section {
    padding-top: 60px;
  }

  .about-section .about-row {
    margin-bottom: 42px;
  }

  .hvac-distributor-section .item .logo-area .row.g-3 > [class*="col-"] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .hvac-distributor-section .item .image-area-right {
    margin-top: 28px;
  }

  .hvac-services-section .item-card ul.item-features li {
    width: calc(50% - 12px);
  }

  .testimonials-section .logo-area {
    flex-wrap: wrap;
  }

  .testimonials-section .logo-area img {
    max-width: 130px;
  }

  .team-section {
    margin-top: 60px;
    padding-bottom: 60px;
  }

  .team-section img {
    margin: 0px auto
  }

  .showroom-section .image-area-right,
  .service-areas-section img {
    margin-top: 28px;
  }

  .cta-section {
    padding-top: 60px;
  }

  .cta-section .form-area {
    margin: 0;
  }

  .cta-section .right-content {
    padding-left: 0;
    margin-top: 36px;
  }

  footer .main-footer .row {
    row-gap: 36px;
  }

  p br{
    display: none;
  }

  footer {
    text-align: center;
  }

  footer .newsletter .btn-primary-solid{
    top: 30px;
    right: 1%;
  }

  footer .newsletter .form-control {
    width: 100%;
  }

  footer ul.quick-links li, footer ul.contact li, footer .logo-left p, footer ul.social{
    justify-content: center;
  }

  .hvac-services-section.services {
    background: none;
  }

  .inner-banner .content {
    padding: 40px 0px 70px;
  }
  .location-detail-section.contact-page .phone-btn p small {
    display: none;
  }

  .faqs-section .nav-tabs .nav-link {
    font-size: 20px;
  }


}

@media (max-width: 768px) {
  :root {
    --section-py: 50px;
  }

  h1,
  .h1,
  .hero-section h1 {
    font-size: 32px;
    line-height: 42px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 28px;
    line-height: 1.32;
  }

  .section-padding {
    padding-top: 50px;
  }

  .content br,
  .showroom-section br,
  .cta-section br {
    display: none;
  }

  .btn-primary-solid,
  .btn-primary-outline,
  .btn-white-solid,
  .btn-white-outline,
  .btn-dark-solid {
    white-space: normal;
    line-height: 1.25;
    padding: 12px 24px;
  }

  .site-header {
    padding-top: 10px;
  }

  .site-header .navbar {
    border-width: 3px;
    border-radius: 14px;
  }

  .hero-section {
    padding-bottom: 42px;
  }

  .hero-section .hero-content {
    padding: 40px 18px 24px;
  }

  .hero-section .hero-contact-card {
    padding: 26px 22px;
  }

  .hero-section .hero-contact-card h3 {
    font-size: 25px;
  }

  .about-section .stats-number {
    font-size: 2.2rem;
  }

  .about-section .financeit-card {
    padding: 28px 22px;
  }

  .hvac-distributor-section .item .logo-area .row.g-3 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .hvac-services-section .item-card .top {
    align-items: flex-start !important;
  }

  .why-ecostar-section {
    padding: 58px 0;
    margin-top: 58px;
  }

  .why-ecostar-section .item {
    width: calc(50% - 10px);
  }

  .testimonials-section .reviews-card {
    flex-wrap: wrap;
    width: 100%;
  }

  .service-areas-section .item {
    padding: 30px;
  }

  footer .newsletter .form-control {
    width: 100%;
  }

  footer .newsletter .btn-primary-solid {
    position: static;
    width: 100%;
  }

  footer ul.quick-links li {
    width: 100%;
    font-size: 16px;
  }

  footer .contact li,
  footer .contact a {
    overflow-wrap: anywhere;
  }

  footer .copyright .item {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --section-py: 42px;
  }

  h1,
  .h1,
  .hero-section h1 {
    font-size: 30px;
    line-height: 39px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 27px;
    line-height: 1.32;
  }

  .section-padding {
    padding-top: 42px;
  }

  .container,
  .container-fluid {
    --bs-gutter-x: 1.5rem;
  }

  .navbar-brand img {
    width: 150px;
  }

  .hero-section {
    padding-top: 96px;
  }

  .hero-section .hero-badge {
    gap: 10px !important;
  }

  .hero-section .hero-badge-label {
    letter-spacing: 0.06em;
    padding: 10px 16px 10px 46px;
  }

  .hero-section .hero-btn-icon {
    width: 44px;
    height: 44px;
  }

  .hero-section .hero-phone-btn {
    padding: 5px 22px 5px 5px;
  }

  .hero-section .hero-contact-card,
  .cta-section .form-area,
  .hvac-services-section .item-card,
  .hvac-distributor-section .item,
  .service-areas-section .item {
    padding: 22px 18px;
  }

  .hero-section .hero-content .d-flex.flex-wrap > .btn-primary-solid,
  .why-ecostar-section .d-flex.flex-wrap > .btn-primary-solid,
  .showroom-section .d-flex.flex-wrap > .btn-primary-solid,
  .financeit-card .btn-primary-solid,
  .service-areas-section .btn-primary-solid,
  .cta-section .btn-primary-solid {
    width: 100%;
  }

  .hvac-services-section .item-card ul.item-features li {
    width: 100%;
  }

  .hvac-services-section .item-card .btn-more {
    float: none;
    width: 100%;
    justify-content: center;
  }

  .testimonials-section.bottom .item .quote-icon i {
    font-size: 58px;
  }

  .cta-section .right-content .image-area-right {
    margin-top: 0 !important;
  }
}

@media (max-width: 500px) {
  .site-header .navbar {
    padding: 8px 12px;
  }

  .navbar-brand img {
    width: 136px;
  }

  .navbar-expand-lg .navbar-toggler {
    width: 52px;
  }

  .hero-section .hero-content {
    padding: 36px 14px 22px;
  }

  .hero-section .hero-badge-icon {
    width: 50px;
    height: 50px;
  }

  .hero-section .hero-badge-icon img {
    width: 32px;
  }

  .hero-section .hero-badge-label {
    margin-left: -42px;
    padding-left: 44px;
  }

  .hero-section .form-control,
  .hero-section .form-select,
  .cta-section .form-area .form-control,
  .cta-section .form-area .form-select {
    height: auto;
    min-height: 52px;
  }

  .about-section .stats-item {
    padding: 20px 10px;
  }

  .about-section .stats-number {
    font-size: 2rem;
  }

  .reviews-card img {
    max-width: 130px;
  }
  .hero-phone-btn .hero-btn-icon i {
    display: none;
  }
}

@media (max-width: 450px) {
  h2,
  .h2,
  .section-title {
    font-size: 26px;
  }

  .btn-primary-solid,
  .btn-primary-outline,
  .btn-white-solid,
  .btn-white-outline,
  .btn-dark-solid {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-section .hero-badge {
    align-items: flex-start !important;
  }

  .hero-section .hero-badge-label {
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .hero-section .hero-contact-card h3 {
    font-size: 25px;
  }

  .hvac-distributor-section .item .logo-area .row.g-3 > [class*="col-"],
  .why-ecostar-section .item {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .hvac-services-section .item-card .top {
    flex-direction: column;
  }

  .testimonials-section .reviews-card {
    gap: 10px !important;
    padding: 14px;
  }

  footer .newsletter h3 {
    font-size: 25px;
  }
}

@media (max-width: 375px) {
  :root {
    --section-py: 36px;
  }

  h1,
  .h1,
  .hero-section h1 {
    font-size: 30px;
    line-height: 38px;
  }

  h2,
  .h2,
  .section-title {
    font-size: 25px;
    line-height: 1.3;
  }

  .section-padding {
    padding-top: 36px;
  }

  .container,
  .container-fluid {
    --bs-gutter-x: 1rem;
  }

  .navbar-brand img {
    width: 126px;
  }

  .hero-section .hero-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-section .hero-contact-card,
  .cta-section .form-area,
  .hvac-services-section .item-card,
  .hvac-distributor-section .item,
  .service-areas-section .item,
  .about-section .financeit-card {
    padding: 18px 14px;
  }

  .hero-section .hero-badge-label {
    margin-left: 0;
    padding-left: 14px;
  }

  .about-section .stats-row {
    margin-bottom: 20px;
  }

  .testimonials-section .logo-area img {
    max-width: 88px;
  }
}
