/* =========================================================
   Alesstec Software - Palette & Responsive Enhancements
   ========================================================= */

:root {
  --primary-color1: #fbc014;
  --primary-color1-opc: 251, 192, 20;
  --primary-color2: #1534cc;
  --primary-color2-opc: 21, 52, 204;
}

.home2-banner-section .video-area {
  position: relative;
  overflow: hidden;
}

html,
body,
#smooth-wrapper,
#smooth-content {
  overflow-x: hidden;
  max-width: 100%;
}

.header-logo img,
.mobile-logo img,
.footer-logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Keep white client logos crisp on light testimonial cards */
body:not(.dark) .testimonial-card2 .company-logo img {
  filter: brightness(0.15);
}

/* Industry right-side editable SVG icon box */
.home2-our-work-section .our-work-img.two .single-img.alesstec-industry-icon-box {
  width: 168px !important;
  height: 168px !important;
  margin: 0 auto;
  border-radius: 22px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f6fb;
  border: 1px solid #e2e8f0;
  color: #1534cc;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.home2-our-work-section .our-work-img.two .alesstec-industry-icon-box svg {
  width: 68px;
  height: 68px;
  display: block;
}

.home2-our-work-section .our-work-img.two .alesstec-industry-icon-box i {
  font-size: 60px;
  line-height: 1;
}

body.dark .home2-our-work-section .our-work-img.two .alesstec-industry-icon-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fbc014;
}

/* Clients / Partners Marquee */
.partner-section .partner-wrap {
  margin-top: 28px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partner-section .marquee {
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 14px;
}

.partner-section .marquee__group {
  gap: 20px;
  align-items: center;
  padding: 4px 0;
}

.partner-section .marquee__group a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  height: 76px;
  padding: 14px 26px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.partner-section .marquee__group a:hover {
  transform: translateY(-2px);
  border-color: #1534cc;
  box-shadow: 0 8px 20px rgba(21, 52, 204, 0.08);
}

.partner-section .marquee__group a img {
  max-height: 40px !important;
  max-width: 135px;
  width: auto !important;
  object-fit: contain;
}

/* White PNG/WebP client logos -> dark charcoal in light mode */
body:not(.dark) .partner-section .marquee__group a img[src*="gategourmet"],
body:not(.dark) .partner-section .marquee__group a img[src*="costadelsol"],
body:not(.dark) .partner-section .marquee__group a img[src*="myg"],
body:not(.dark) .partner-section .marquee__group a img[src*="papajohns"] {
  filter: brightness(0) opacity(0.84);
}

body.dark .partner-section .marquee__group a {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .partner-section .marquee__group a img[src*="bigbox"] {
  filter: brightness(0) invert(1) opacity(0.88);
}

/* Hero compact form (right side) with hover expansion */
.home2-banner-section .banner-wrapper .right-content {
  display: flex;
  justify-content: flex-end;
  width: 470px;
  max-width: 100%;
  flex: 0 0 auto;
}

.alesstec-hero-form-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 470px;
  min-height: 620px;
  padding: 46px 38px 42px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.98);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

@media (min-width: 992px) {
  .home2-banner-section {
    min-height: 760px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    padding: 56px 0;
  }

  .home2-banner-section .video-area {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
  }

  .home2-banner-section .video-area video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home2-banner-section .banner-wrapper-wrap {
    position: relative !important;
    z-index: 2;
    width: 100%;
    padding: 0 clamp(32px, 5vw, 72px) !important;
  }

  .alesstec-hero-form-card {
    margin-top: 0;
  }

  .alesstec-hero-form-card:hover,
  .alesstec-hero-form-card:focus-within {
    transform: scale(1.06);
    border-color: #fbc014;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.6),
      0 0 0 2px rgba(251, 192, 20, 0.45);
    z-index: 5;
  }
}

/* Reduce vertical spacing between Hero and following/Clients sections */
.elementor-element-a0c8bd6 {
  margin-bottom: 48px !important;
}

.partner-section {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

.alesstec-hero-form-head {
  margin-bottom: 34px;
}

.alesstec-hero-form-head h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111827;
  margin: 0;
}

.alesstec-hero-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.alesstec-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alesstec-field-group label {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.alesstec-hero-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alesstec-hero-form input::placeholder {
  color: #6b7280;
}

.alesstec-hero-form input:focus {
  border-color: #1534cc !important;
  box-shadow: 0 0 0 3px rgba(21, 52, 204, 0.14);
}

.alesstec-hero-form input.is-error {
  border-color: #dc2626 !important;
}

.alesstec-hero-form input.is-valid {
  border-color: #16a34a !important;
}

.alesstec-hero-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding-top: 15px;
  padding-bottom: 15px;
  cursor: pointer;
  border: none;
}

.alesstec-form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #1534cc;
  text-align: center;
  min-height: 18px;
}

.alesstec-form-status.is-error {
  color: #dc2626;
}

/* Tablet & Mobile (<= 991px) */
@media (max-width: 991px) {
  .home2-banner-section .banner-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .home2-banner-section .banner-wrapper .left-content,
  .home2-banner-section .banner-wrapper .right-content {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
  }

  .alesstec-hero-form-card {
    max-width: 100%;
    transform: none;
    transform-origin: center center;
  }

  .home2-banner-section .banner-wrapper .right-content .counter-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
  }

  .section-title.three {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .home2-portfolio-section .portfolio-wrap .single-portfolio {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }

  .home2-portfolio-section .portfolio-wrap .single-portfolio .portfolio-img {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  .home2-portfolio-section .portfolio-wrap .single-portfolio .portfolio-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .home2-portfolio-section .portfolio-wrap .single-portfolio .list-item ul {
    flex-wrap: wrap;
    gap: 8px;
  }

  .home2-our-work-section .our-work-list ul li {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
  }

  .home2-our-work-section .our-work-list ul li .single-img {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    max-width: 320px;
  }

  .home2-our-work-section .our-work-list ul li .single-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home2-banner-section {
    position: relative !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: hidden;
  }

  .home2-banner-section .video-area {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .home2-banner-section .video-area video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home2-banner-section .banner-wrapper-wrap {
    position: relative !important;
    z-index: 2;
    transform: none !important;
    top: auto !important;
  }

  .home2-banner-section .banner-wrapper {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    gap: 24px;
  }

  .home2-banner-section .banner-wrapper .left-content h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 20px;
    word-break: break-word;
  }

  .home2-banner-section .banner-wrapper .left-content .button-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .home2-banner-section .banner-wrapper .right-content .counter-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home2-banner-section .counter-area {
    padding: 18px 14px;
  }

  .home2-banner-section .counter-area .number h2 {
    font-size: 2rem;
  }

  .section-title h2,
  .section-title.three h2,
  .about-content h2 {
    font-size: clamp(1.6rem, 6.8vw, 2.25rem);
    line-height: 1.2;
  }

  .about-us-section.home2-about-us,
  .our-service-section.style-2,
  .home2-portfolio-section,
  .home2-process-section,
  .home2-testimonial-section,
  .case-study-section.style-2,
  .home2-our-work-section,
  .home1-blog-section,
  .home2-footer-top-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .mb-80,
  .mb-70,
  .mb-60 {
    margin-bottom: 32px !important;
  }

  .about-content .about-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .testimonial-card2 {
    padding: 24px 18px;
  }

  .testimonial-card2 .testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .slider-btn-grp.two {
    gap: 10px;
  }

  .slider-btn-grp.two .slider-btn {
    width: 44px;
    height: 44px;
  }

  .case-study-card .case-study-img,
  .case-study-card .case-study-img img,
  .blog-card .blog-img,
  .blog-card .blog-img img,
  .home2-testimonial-section .testimonial-img,
  .home2-testimonial-section .testimonial-img img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .case-study-card.style-2 .case-study-content .counter-area {
    gap: 16px;
    flex-wrap: wrap;
  }

  .home2-footer-top-section .footer-top-content h2 {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .home2-footer-top-section .img-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .home2-footer-top-section .img-list li img {
    width: 40px;
    height: 40px;
  }

  /* Ensure mobile drawer is legible & above video */
  body.dark .main-menu.show-menu,
  body.dark .mobile-menu-area {
    background-color: #121212;
    z-index: 9999;
  }
}

/* Small Mobile (<= 420px) */
@media (max-width: 420px) {
  .alesstec-form-row {
    grid-template-columns: 1fr;
  }

  .home2-banner-section .banner-wrapper .right-content .counter-wrap {
    grid-template-columns: 1fr;
  }

  .primary-btn1 {
    width: 100%;
    justify-content: center;
  }
}