@media only screen and (max-width: 7000px) {
  .page-wrapper {
    overflow: hidden;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}
@media only screen and (max-width: 1500px) {
  .header-style-three .contact-info-box2 {
    display: none !important;
  }
  .main-header.header-style-three .header-upper .right-column {
    flex-grow: inherit;
  }
  .main-header.header-style-three .theme-btn.search-toggler {
    margin-right: 20px;
  }
  a.project-2-btn {
    right: 0;
    width: 90px;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}
@media (min-width: 1400px) {
  .ml_xxl__110 {
    margin-left: -110px;
  }
  .ml_xxl__155 {
    margin-left: -155px;
  }
  .ml_xxl_70 {
    margin-left: 70px;
  }
  .mr_xxl__18 {
    margin-right: -18px;
  }
  .ml_xxl__60 {
    margin-left: -60px;
  }
  .mr_xxl__150 {
    margin-right: -150px;
  }
  .pl_xxl_220 {
    padding-left: 220px;
  }
  .l_xxl_220 {
    left: 220px;
  }
  .mw_xxl_1510 {
    max-width: 1510px;
  }
  header.main-header.header-style-nine .auto-container {
    max-width: 100%;
    padding: 0 80px;
  }
  .banner-content-border {
    position: absolute;
    width: 1px;
    height: 222px;
    background-color: #adadad;
    top: 20px;
    left: -40px;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}
@media only screen and (max-width: 1400px) {
  .main-menu .navigation > li:nth-last-child(-n + 3) > ul > li > ul {
    left: auto;
    right: 100%;
  }
  .main-menu .navigation > li:nth-last-child(-n + 2) > ul {
    left: auto;
    right: 0;
  }
  .main-menu .navigation > li:nth-last-child(-n + 2) > ul > li > ul {
    left: auto;
    right: 100%;
  }
  .banner-style_2 h1 {
    font-size: 50px;
  }
  .header-link-btn {
    display: none;
  }

  .sidemenu-nav-toggler {
    display: none;
  }

  button.theme-btn.search-toggler {
    display: none;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}
@media only screen and (max-width: 1200px) {
  /* Default */
  .main-header .nav-outer .main-menu,
  .sticky-header {
    display: none !important;
  }
  .nav-outer .mobile-nav-toggler {
    display: block;
  }
  .banner-section .banner-slider-nav {
    display: none;
  }
  .main-header.header-style-three .theme-btn.search-toggler {
    display: none;
  }
  .main-header.header-style-three .header-upper .right-column {
    flex-grow: inherit;
    background-color: transparent;
  }
  .main-header.header-style-three .header-upper .right-column:before {
    display: none;
  }
  .main-header.header-style-three .header-upper .logo-box .logo {
    padding-bottom: 0;
  }
  .main-header.header-style-three {
    padding-top: 10px;
  }
  header.main-header.header-style-four button.theme-btn {
    display: none;
  }

  header.main-header.header-style-four .sidemenu-nav-toggler {
    display: none;
  }

  header.main-header.header-style-four .auto-container {
    padding-left: 15px;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}

@media only screen and (max-width: 1199px) {
  .banner-1-image-1,
  .banner-1-image-2,
  .line-grid-wrap {
    display: none;
  }
  .fs_176 {
    font-size: 120px;
  }
  h1.fs_70,
  h1.fs_65,
  .fs_130,
  .fs_75 {
    font-size: 55px;
  }
  h1.project-1-bottom-title {
    font-size: 60px;
  }
  h1.project-1-bottom-title {
    font-style: 35px;
  }
  .bnox_76 {
    top: 90px;
  }
  .header-style-one .auto-container {
    padding: 0 15px;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}
@media (min-width: 992px) {
  .ml-lg-130 {
    margin-left: 130px;
  }
}
@media only screen and (max-width: 991px) {
  section.banner-style-ten {
    padding-left: 0;
  }
  .banner-style-ten h2 {
    font-size: 40px;
    left: 15px;
  }
  .banner-ten-text2 {
    padding-left: 80px;
    padding-right: 30px;
  }
  .banner-ten-image img {
    min-height: 620px;
    object-fit: cover;
  }
  .image-block-1.p_relative img {
    margin-left: 0;
    margin-top: 30px;
    max-width: 100%;
  }
  .pt_355 {
    padding-top: 300px;
  }
  .auto-container {
    max-width: 700px;
  }
  .page-title h1 {
    font-size: 50px;
  }
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 3rem;
  }
  [class*="col"] + [class*="col"] .contact-info-box2 {
    border: none;
  }
  h2.fs_60 {
    font-size: 40px;
  }
  .fs_45 {
    font-size: 35px;
  }
  /*Update CSS on 13-02-2025*/
  section.banner-1-section.banner-style_2 {
    padding-bottom: 50px;
  }
  .pt_130 {
    padding-top: 50px;
  }
  .pb_90 {
    padding-bottom: 50px;
  }

  .pt_120 {
    padding-top: 50px;
  }
  /* .pt_110 {
		padding-top: 50px;
	} */
  .pt_160 {
    padding-top: 15px;
  }

  .banner-style_2 h1 {
    margin-top: 32px;
    font-size: 50px;
  }
  .banner-left-sidebar,
  .header-style-two .right-column .theme-btn,
  .header-style-two .right-column .sidemenu-nav-toggler {
    display: none;
  }
  .header-style-two .auto-container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .main-header.header-style-three .auto-container {
    padding-left: 15px;
  }
  .banner-style-three .content-box {
    padding-top: 50px;
    padding-bottom: 150px;
  }
  .banner-style-three-bg-right {
    background: #095e9e;
  }
  .main-header.header-style-three {
    pointer-events: auto;
  }
  .pb_170 {
    padding-bottom: 120px;
  }
  .banner-1-section.banner-style-three {
    padding-top: 200px;
  }
  .banner-four-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  .banner-style-four-shape-1 {
    display: none;
  }
  .banner-style-four-shape-2 {
    display: none;
  }
  .pt_200 {
    padding-top: 120px;
  }
  .bnox_77 {
    padding-top: 200px;
  }
  .project-2-wrap h2 {
    font-size: 30px;
    margin-right: 30px;
  }
  /* Desktop-specific styles */
  .desktop-view {
    display: block;
  }

  .mobile-view {
    display: none;
  }
}

/* Tablet-specific styles for BIM Solutions section (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Show desktop view, hide mobile slider on tablets */
  .desktop-view {
    display: block;
  }
  
  .mobile-view {
    display: none;
  }
  
  /* 2x2 Grid layout for BIM Solutions cards */
  .icon_box_1 {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 30px !important;
    margin-bottom: 30px;
  }
  
  /* Adjust number positioning for tablets */
  .icon_box_1 .p_absolute.t_60.r_60 {
    top: 30px !important;
    right: 30px !important;
  }
  
  /* Adjust icon size for tablets */
  .icon_box_1 i {
    font-size: 55px !important;
    margin-bottom: 25px !important;
  }
  
  /* Adjust heading size for better fit */
  .icon_box_1 h4 {
    font-size: 20px !important;
    line-height: 1.4;
    margin-bottom: 18px !important;
  }
  
  /* Adjust paragraph size */
  .icon_box_1 p {
    font-size: 15px !important;
    line-height: 1.5;
    margin-bottom: 20px !important;
  }
  
  /* Adjust link size */
  .icon_box_1 .link a {
    font-size: 13px !important;
  }
  
  /* Ensure proper spacing in row */
  .row.no-gutters > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Add spacing to section title */
  .fs_45 {
    font-size: 32px;
    line-height: 1.3;
  }

  /* About Section Tablet Styles (768px - 991px) */
  .desktop-view .image.p_relative.d_iblock img,
  .desktop-view .image.p_relative.b_40 img {
    max-width: 100%;
    height: auto;
  }
  
  .desktop-view .image.p_relative.d_iblock {
    margin-bottom: 20px !important;
  }
  
  .experience-year {
    width: 130px !important;
    height: 130px !important;
    left: 10px !important;
    bottom: 40px !important;
    padding-top: 20px !important;
  }
  
  .experience-year span {
    font-size: 42px !important;
    margin-bottom: 10px !important;
  }
  
  .experience-year {
    font-size: 14px !important;
  }
  
  .desktop-view h2.fs_45 {
    font-size: 30px !important;
    line-height: 1.25;
    margin-bottom: 20px !important;
  }
  
  .desktop-view p.fs_20 {
    font-size: 18px !important;
    line-height: 1.6;
    margin-bottom: 20px !important;
  }
  
  .desktop-view p.fs_18 {
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 30px !important;
  }
  
  .desktop-view .author-box .image img {
    width: 60px;
    height: 60px;
  }
  
  .desktop-view .author-box p.fs_20 {
    font-size: 18px !important;
  }
  
  .desktop-view .author-box p.fs_18 {
    font-size: 16px !important;
  }
  
  .desktop-view .col-lg-7.ps-lg-5 {
    padding-left: 30px !important;
  }
  
  .desktop-view .pt_160 {
    padding-top: 80px !important;
  }
  
  .desktop-view .pb_90 {
    padding-bottom: 50px !important;
  }

  /* Hide side buttons when modal is active on tablets */
  .quote-modal-overlay.active ~ .side-quote-btn,
  .quote-modal-overlay.active ~ .side-schedule-btn,
  #calendlyModal.active ~ .side-quote-btn,
  #calendlyModal.active ~ .side-schedule-btn {
    display: none !important;
  }

  /* Explore Projects Refinements for Tablets */
  #ex_projects h2.fs_45 {
    font-size: 30px !important;
    margin-bottom: 20px !important;
  }
  
  #ex_projects .link-btn {
    margin-bottom: 20px !important;
  }
  
  #ex_projects .btn-1 {
    padding: 12px 25px !important;
    font-size: 13px !important;
  }

  /* Contact Section Refinements for Tablets */
  .pt_120 {
    padding-top: 60px !important;
  }
  
  .pb_90 {
    padding-bottom: 50px !important;
  }
  
  section.pb_90.pt_120.bg_gray h2.fs_45 {
    font-size: 32px !important;
    margin-bottom: 15px !important;
  }
  
  section.pb_90.pt_120.bg_gray p.mb_30 {
    font-size: 15px !important;
    line-height: 1.5;
    margin-bottom: 20px !important;
  }
  
  .form-alt {
    margin-top: 0 !important;
  }
  
  .form-alt form input[type=text], 
  .form-alt form input[type=email], 
  .form-alt form select {
    height: 52px !important;
    font-size: 14px !important;
    padding-left: 15px !important;
  }
  
  .form-alt form .form-group {
    margin-bottom: 18px !important;
  }
  
  .form-alt .btn-1 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 13px !important;
  }
}


@media only screen and (min-width: 768px) {
  .main-menu .navigation > li > ul,
  .main-menu .navigation > li > ul > li > ul,
  .main-menu .navigation > li > .megamenu {
    display: block !important;
    visibility: hidden;
    opacity: 0;
  }
}
@media only screen and (max-width: 767px) {
  .search-popup .search-form fieldset input[type="submit"] {
    position: relative;
    margin-top: 20px;
    border-radius: 7px;
  }
  .client-logo-1-image {
    text-align: center;
  }
  .project-1-row.alt {
    column-count: 2;
  }
  [class*="col"] + [class*="col"] .contact-info-box2 {
    border: none;
    padding-top: 0;
  }
  .auto-container {
    max-width: 575px;
  }
  .header-style-one .right-column,
  br {
    display: none;
  }
  .experience-year br {
    display: block;
  }
  .blog-1-date br {
    display: block;
  }
  .whychooseus-right-box {
    padding-top: 130px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .whychooseus-1-left-box {
    padding-left: 15px;
    padding-right: 15px;
  }
  .building-site-image {
    width: 100%;
  }
  .building-site-content {
    max-width: 100%;
  }
  .building-site-wrap {
    padding: 15px;
  }
  .main-header.header-style-three .theme-btn.search-toggler {
    display: none;
  }
  .main-header.header-style-three .header-upper .logo-box .logo {
    padding-bottom: 0;
  }
  .main-header.header-style-three .header-upper .inner-container {
    flex-wrap: nowrap;
  }
  .blog-1-lower-content {
    margin-left: 0;
    padding-top: 45px;
  }
  .main-header.header-style-three .header-upper .right-column {
    flex-grow: initial;
    padding-right: 12px;
  }
  .text-block-1 .pl_60 {
    padding-left: 20px;
    padding-right: 20px;
  }
  h1.banner-1-side-text,
  .banner-style-five-shape-2 {
    display: none;
  }
  .list-2 {
    font-size: 30px;
  }
  .bnox_78 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .bnox_79 img {
    width: 100%;
  }
  .blog-1-lower-content-alt2,
  .blog-1-lower-content-alt {
    margin-left: 0;
    padding-left: 0;
  }
  p.blog-1-post-meta {
    margin-bottom: 0;
  }
  .blog-1-top-content > * {
    margin-bottom: 0;
  }
  .reply-comment.ml_100 {
    margin-left: 20px;
  }
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
  
  /* Hide Get A Quote button on mobile */
  .side-quote-btn {
    display: none !important;
  }
}
@media only screen and (max-width: 575px) {
  .banner-ten-text,
  .banner-ten-text2 {
    padding-left: 30px;
  }
  .project-2-wrap h2 {
    font-size: 20px;
  }
  .project-1-row.alt {
    column-count: 1;
  }
  
  /* Hide Get A Quote button on extra small mobile */
  .side-quote-btn {
    display: none !important;
  }
  .d-flex {
    flex-wrap: wrap;
  }
  .fs_176 {
    font-size: 60px;
  }
  p.fs_22 {
    font-size: 14px;
  }
  p {
    font-size: 16px;
  }
  p.fs_18 {
    font-size: 16px;
  }
  h2.fs_60,
  h1.fs_70,
  .fs_130,
  .fs_75,
  h1.fs_65,
  .banner-style_2 h1 {
    font-size: 35px;
    line-height: 45px;
  }
  .testimonials-1-top-content {
    padding-left: 30px;
    padding-right: 30px;
  }
  .main-header .logo img {
    width: 170px;
  }
  .project-2-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
  .text-block-2 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .bnox_75 {
    padding-left: 15px;
    padding-right: 15px;
  }
  .contact-info-box2.d-flex {
    flex-wrap: nowrap;
  }
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
  .pb_90 {
    padding-bottom: 0;
  }
  .pt_90 {
    padding-bottom: 30px;
  }
}
@media only screen and (max-width: 400px) {
  .pb_90 {
    padding-bottom: 30px;
  }
  .pt_90 {
    padding-bottom: 30px;
  }
  .scroll-to-top {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
  .scroll-to-top i {
    font-size: 16px;
  }
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
}

/* Project Cards Responsive Styles */
@media only screen and (max-width: 991px) {
  .scroll-to-top {
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
  }
  .scroll-to-top i {
    font-size: 17px;
  }
  .project-1-content {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  h4.project-1-title {
    font-size: 18px;
    line-height: 24px;
  }

  .project-1-cat {
    font-size: 16px;
    line-height: 24px;
  }

  .project-1-block {
    margin-bottom: 20px;
  }

  /* Fix BIM solutions cards for tablets */
  .icon_box_1 {
    padding: 40px 25px !important;
    text-align: center;
  }

  .icon_box_1 .p_absolute.t_60.r_60 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    text-align: center;
    margin-bottom: 20px;
  }

  .icon_box_1 i {
    font-size: 55px !important;
    margin-bottom: 25px !important;
  }

  .icon_box_1 h4 {
    font-size: 22px !important;
    margin-bottom: 18px !important;
    line-height: 1.3;
  }

  .icon_box_1 p {
    font-size: 15px !important;
    margin-bottom: 25px !important;
    line-height: 1.4;
  }
}

@media only screen and (max-width: 767px) {
  .project-1-content {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  h4.project-1-title {
    font-size: 16px;
    line-height: 22px;
  }

  .project-1-cat {
    font-size: 14px;
    line-height: 20px;
  }

  .project-1-block {
    margin-bottom: 15px;
  }

  /* Fix pagination bullets overlapping with cards */
  .swiper-pagination {
    bottom: -40px !important;
    position: relative !important;
    margin-top: 20px;
  }

  .swiper-container {
    padding-bottom: 50px;
  }
}

@media only screen and (max-width: 575px) {
  .project-1-content {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  /* Fix pagination bullets overlapping with cards on small screens */
  .swiper-pagination {
    bottom: -35px !important;
    position: relative !important;
    margin-top: 15px;
  }

  .swiper-container {
    padding-bottom: 15px;
    
  }

  /* Fix BIM solutions cards for small devices */
  .icon_box_1 {
    padding: 30px 20px !important;
    min-height: auto !important;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
  }

  .icon_box_1 .p_absolute.t_60.r_60 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    text-align: center;
    margin-bottom: 15px;
  }

  .icon_box_1 i {
    font-size: 50px !important;
    margin-bottom: 20px !important;
  }

  .icon_box_1 h4 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    line-height: 1.3;
  }

  .icon_box_1 p {
    font-size: 14px !important;
    margin-bottom: 20px !important;
    line-height: 1.4;
  }

  .icon_box_1 .link a {
    font-size: 12px !important;
  }

  h4.project-1-title {
    font-size: 14px;
    line-height: 20px;
  }

  .project-1-cat {
    font-size: 12px;
    line-height: 18px;
  }

  .project-1-block {
    margin-bottom: 10px;
  }

  .swiper-container.four-item-carousel .swiper-slide {
    width: 100% !important;
  }
}

/* ===================== FOOTER STYLE ===================== */
:root {
  --footer-bg: #001a66;
  --footer-panel: #02103a;
  --accent: #0ea5e9;
  --muted: #bfc7cf;
  --link: #e6eef6;
  --divider: rgba(255, 255, 255, 0.06);
}

.btn-reset {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
.btn-reset:focus {
  outline: none;
  box-shadow: none;
}

.mega-footer {
  background: linear-gradient(
    180deg,
    var(--footer-panel) 0%,
    var(--footer-bg) 100%
  );
  color: var(--link);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  padding-top: 48px;
  padding-bottom: 0; /* bottom handled by .footer-bottom */
}

.mega-footer .footer-top {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 18px;
}

/* heading with left accent */
.footer-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--link);
}
.footer-heading::before {
  content: "";
  width: 6px;
  height: 28px;
  background: var(--accent);
  display: inline-block;
  border-radius: 2px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: max-height 0.28s ease;
  overflow: hidden;
}
.footer-list li {
  padding: 10px 0;
  width: 220px;
  border-bottom: 1px solid var(--divider);
  font-size: 0.95rem;
  color: var(--link);
}
.footer-list li:last-child {
  border-bottom: none;
}
.footer-list a {
  color: var(--link);
  text-decoration: none;
}
.footer-list a:hover {
  color: var(--link);
  text-decoration: underline;
}

.muted-desc {
  color: var(--link);
  font-size: 0.95rem;
  line-height: 1.45;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.social-link + .social-link {
  margin-left: 6px;
}

/* footer bottom */
.footer-bottom {
  background: #0b0b0b;
  border-top: 1px solid var(--divider);
  color: rgba(255, 255, 255, 0.65);
}

/* Desktop: show lists fully */
@media (min-width: 992px) {
  .footer-list {
    max-height: 999px;
    overflow: visible;
  }
  .toggle-icon {
    display: none !important;
  }
}

/* Mobile: collapse lists by default (closed) */
@media (max-width: 991.98px) {
  /* Fix for nested columns in mobile view */
  .mega-footer .footer-top .row > [class*="col-"] > .row > [class*="col-"],
  .mega-footer
    .footer-top
    .row
    > [class*="col-"]
    > .row
    > [class*="col-"]
    .footer-list {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Add border to the parent column that contains nested columns */
  .mega-footer .footer-top .row > [class*="col-"].has-nested {
    position: relative;
    padding-bottom: 16px;
  }

  /* Add spacing between nested sections */
  .nested-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--divider);
  }

  /* Remove top border from first nested section */
  .nested-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  /* Ensure nested section headings match the style */
  .nested-section .footer-heading {
    padding: 12px 0;
  }

  /* Fix spacing for nested lists */
  .nested-section .footer-list {
    margin-left: 0;
    padding-left: 18px;
  }
  /* Ensure the footer column containers have consistent vertical spacing */
  .mega-footer .footer-top .row > [class*="col-"] {
    padding-top: 16px;
    padding-bottom: 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Make button a 2-column flex layout: left = accent+title, right = fixed chevron */
  .footer-toggle.footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ensures title at left and chevron at right */
    width: 100%;
    gap: 12px;
    background: transparent;
    padding: 12px 16px;
    border: 0;
    color: var(--link);
    text-align: left;
  }

  /* left group so accent bar stays inside flow and title truncates properly */
  .footer-heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* allow truncation */
    flex: 1 1 auto;
  }

  /* small left accent placed as a normal inline element (no absolute) */
  .footer-heading-accent {
    width: 6px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex: 0 0 auto;
    margin-left: 0;
  }

  /* the text - allow truncation so chevron stays in same column */
  .footer-heading-title {
    display: block;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    color: var(--link);
    line-height: 1;
  }

  /* chevron fixed column — exact same width for every heading */
  .toggle-icon {
    flex: 0 0 36px; /* fixed column width */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--link);
    transition: transform 0.28s ease;
    transform-origin: center;
  }

  /* rotate when expanded (your JS toggles aria-expanded) */
  .footer-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
  }

  /* lists collapsed by default, open via .footer-list.open class (your JS uses that) */
  .footer-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.28s ease;
    padding-left: 16px;
    margin: 0;
  }
  .footer-list.open {
    max-height: 1200px; /* large enough to show all items */
    padding-bottom: 12px;
  }

  /* ensure list items have even spacing */
  .footer-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--link);
    font-size: 0.95rem;
  }

  /* reduce differences between sections (remove extra margins) */
  .mega-footer .row .footer-heading,
  .mega-footer .row .footer-list {
    margin: 0;
  }

  /* hide accent bar on mobile (since it's now inline) */
  .footer-heading::before {
    display: none;
  }

  /* tighten list spacing on mobile */
  .footer-list li + li {
    margin-top: 0;
  }
}

/* ===================== STICKY ACTION BUTTONS ===================== */
.quote-btn {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  white-space: nowrap;
  min-width: 160px;
  justify-content: center;
}

.quote-btn:hover {
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

.schedule-btn {
  position: fixed;
  left: 25px;
  bottom: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  white-space: nowrap;
  min-width: 160px;
  justify-content: center;
}

.schedule-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
}

.sticky-btn i {
  font-size: 16px;
}

/* ===================== CUSTOM MODALS ===================== */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.custom-modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  width: 600px;
  height: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Quote Form Styles */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .quote-btn {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 14px;
    font-size: 13px;
    min-width: 140px;
    flex-direction: column;
    gap: 6px;
  }

  .quote-btn span {
    display: none;
  }

  .quote-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .schedule-btn {
    left: 15px;
    bottom: 20px;
    padding: 10px 14px;
    font-size: 13px;
    min-width: 140px;
  }

  .schedule-btn span {
    display: none;
  }

  .schedule-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    max-height: 95%;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .quote-btn {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .schedule-btn {
    left: 10px;
    bottom: 15px;
  }

  .quote-btn,
  .schedule-btn {
    width: 45px;
    height: 45px;
  }

  .sticky-btn i {
    font-size: 14px;
  }
}

@media only screen and (max-width: 400px) {
  .project-1-content {
    left: 5px;
    right: 5px;
    bottom: 5px;
  }

  h4.project-1-title {
    font-size: 12px;
    line-height: 18px;
  }

  .project-1-cat {
    font-size: 11px;
    line-height: 16px;
  }
}
