
/* ==========================================================
   VIJAY ENTERPRISES
   OUR SERVICES SECTION

   Website:
   https://vijayenterprises1986.in/

   Services: 6

   Responsive:
   Desktop: 3 columns
   Tablet: 2 columns
   Mobile: Horizontal swipe carousel

   Design:
   - Navy / royal blue
   - Gold accents
   - Local WebP images
   - Gradient image overlays
   - Consistent card heights
   - Accessible interactions
========================================================== */


/* ==========================================================
   01. SECTION VARIABLES
========================================================== */

.ve-services {
  --services-blue: #203f83;
  --services-dark: #112b48;
  --services-gold: #e5c28e;
  --services-text: #586577;
  --services-border: #e1e7ef;
  --services-gap: 24px;

  position: relative;

  width: 100%;

  padding: 88px 0 92px;

  background: #f8fafc;

  scroll-margin-top: 90px;
}

.ve-services,
.ve-services *,
.ve-services *::before,
.ve-services *::after {
  box-sizing: border-box;
}


/* ==========================================================
   02. CONTAINER
========================================================== */

.ve-services .ve-services-container {
  width: 100%;
  max-width: 1320px;

  margin-inline: auto;

  padding-inline: 24px;
}


/* ==========================================================
   03. SECTION HEADER
========================================================== */

.ve-services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 48px;

  margin-bottom: 38px;
}

.ve-services-header-main {
  flex: 1 1 auto;

  max-width: 765px;
  min-width: 0;
}


/* ==========================================================
   04. EYEBROW
========================================================== */

.ve-services-eyebrow {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 17px;

  color: var(--services-blue);

  font-family: "Inter", sans-serif;

  font-size: 11px;
  font-weight: 750;

  line-height: 1.5;
  letter-spacing: 1.6px;
}

.ve-services-eyebrow-line {
  display: block;

  flex: 0 0 30px;

  width: 30px;
  height: 2px;

  background: var(--services-blue);
}


/* ==========================================================
   05. SECTION HEADING
========================================================== */

.ve-services-header h2 {
  margin: 0 0 17px;

  color: var(--services-dark);

  font-family:
    "Plus Jakarta Sans", sans-serif;

  font-size: clamp(33px, 3.2vw, 43px);
  font-weight: 800;

  line-height: 1.2;
  letter-spacing: -1.5px;
}

.ve-services-header h2 span {
  color: var(--services-blue);
}


/* ==========================================================
   06. SECTION INTRODUCTION
========================================================== */

.ve-services-intro {
  max-width: 730px;

  margin: 0;

  color: var(--services-text);

  font-family: "Inter", sans-serif;

  font-size: 16px;
  font-weight: 400;

  line-height: 1.85;
}


/* ==========================================================
   07. HEADER SIDE CONTENT
========================================================== */

.ve-services-header-aside {
  flex: 0 0 267px;

  padding-left: 20px;
  margin-bottom: 4px;

  border-left: 2px solid #d5dfed;
}

.ve-services-header-label {
  display: block;

  margin-bottom: 9px;

  color: var(--services-blue);

  font-family: "Inter", sans-serif;

  font-size: 11px;
  font-weight: 750;

  line-height: 1.5;
  letter-spacing: 1.4px;
}

.ve-services-header-aside p {
  margin: 0;

  color: var(--services-text);

  font-family: "Inter", sans-serif;

  font-size: 13px;

  line-height: 1.8;
}


/* ==========================================================
   08. GRID WRAPPER
========================================================== */

.ve-services-carousel {
  width: 100%;
  min-width: 0;
}


/* ==========================================================
   09. SERVICES GRID — DESKTOP
========================================================== */

.ve-services-track {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: var(--services-gap);

  width: 100%;
  min-width: 0;

  overflow: visible;

  scroll-snap-type: none;
  scroll-behavior: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ve-services-track::-webkit-scrollbar {
  display: none;
}


/* ==========================================================
   10. SERVICE CARD
========================================================== */

.ve-service-card {
  position: relative;

  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  width: 100%;
  min-width: 0;

  min-height: 505px;

  margin: 0;

  background: #24384d;

  border-radius: 13px;

  overflow: hidden;

  scroll-snap-align: none;
  scroll-margin-top: 105px;
}


/* ==========================================================
   11. IMAGE CONTAINER
========================================================== */

.ve-service-image {
  position: absolute;

  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: #314359;
}


/* ==========================================================
   12. LOCAL WEBP IMAGE
========================================================== */

.ve-service-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1);

  transition:
    transform 650ms
    cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================================
   13. IMAGE GRADIENT OVERLAY
========================================================== */

.ve-service-shade {
  position: absolute;

  inset: 0;
  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(7, 22, 40, 0.08) 0%,
      rgba(7, 22, 40, 0.2) 28%,
      rgba(7, 22, 40, 0.6) 52%,
      rgba(7, 22, 40, 0.91) 78%,
      rgba(7, 22, 40, 0.98) 100%
    );
}


/* ==========================================================
   14. CARD CONTENT
========================================================== */

.ve-service-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 100%;
  min-width: 0;

  padding: 145px 26px 27px;

  color: #ffffff;
}


/* ==========================================================
   15. CATEGORY LABEL
========================================================== */

.ve-service-category {
  display: block;

  margin-bottom: 11px;

  color: var(--services-gold);

  font-family: "Inter", sans-serif;

  font-size: 10.5px;
  font-weight: 750;

  line-height: 1.55;
  letter-spacing: 1px;

  text-transform: uppercase;
}


/* ==========================================================
   16. SERVICE TITLE
========================================================== */

.ve-service-content h3 {
  margin: 0 0 12px;

  color: #ffffff;

  font-family:
    "Plus Jakarta Sans", sans-serif;

  font-size: clamp(23px, 2vw, 28px);
  font-weight: 750;

  line-height: 1.28;
  letter-spacing: -0.7px;
}


/* ==========================================================
   17. SERVICE DESCRIPTION
========================================================== */

.ve-service-content p {
  max-width: 355px;

  margin: 0 0 20px;

  color: rgba(255, 255, 255, 0.94);

  font-family: "Inter", sans-serif;

  font-size: 14px;
  font-weight: 400;

  line-height: 1.72;
}


/* ==========================================================
   18. ENQUIRY LINK
========================================================== */

.ve-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  width: 100%;
  min-height: 48px;

  margin-top: auto;
  padding: 12px 0 0;

  color: #ffffff;

  background: transparent;

  border-top:
    1px solid rgba(255, 255, 255, 0.35);

  font-family: "Inter", sans-serif;

  font-size: 13px;
  font-weight: 650;

  line-height: 1.5;

  text-decoration: none;

  transition: color 200ms ease;
}

.ve-service-link:hover {
  color: var(--services-gold);
}


/* ==========================================================
   19. LINK ARROW
========================================================== */

.ve-service-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  border:
    1px solid rgba(255, 255, 255, 0.55);

  border-radius: 50%;

  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.ve-service-link-arrow svg {
  display: block;

  width: 17px;
  height: 17px;

  stroke-width: 1.8;
}

.ve-service-link:hover
.ve-service-link-arrow {
  color: var(--services-dark);

  background: #ffffff;
  border-color: #ffffff;

  transform: translate(2px, -2px);
}


/* ==========================================================
   20. IMAGE HOVER
========================================================== */

@media (hover: hover) and (pointer: fine) {

  .ve-service-card:hover
  .ve-service-image img {
    transform: scale(1.045);
  }

}


/* ==========================================================
   21. MOBILE CAROUSEL CONTROLS
========================================================== */

.ve-services-controls {
  display: none;

  align-items: center;
  justify-content: center;

  gap: 17px;

  margin-top: 25px;
}


/* ==========================================================
   22. PREVIOUS / NEXT BUTTON
========================================================== */

.ve-services-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  margin: 0;
  padding: 0;

  color: var(--services-dark);

  background: #ffffff;

  border: 1px solid #d5deea;
  border-radius: 50%;

  cursor: pointer;

  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.ve-services-arrow svg {
  width: 18px;
  height: 18px;

  stroke-width: 1.8;
}

.ve-services-arrow:hover:not(:disabled) {
  color: #ffffff;

  background: var(--services-blue);
  border-color: var(--services-blue);
}

.ve-services-arrow:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}


/* ==========================================================
   23. PAGINATION CONTAINER
========================================================== */

.ve-services-pagination {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;
}


/* ==========================================================
   24. PAGINATION DOT
========================================================== */

.ve-services-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 20px;
  min-height: 44px;

  padding: 0 2px;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.ve-services-dot span {
  display: block;

  width: 16px;
  height: 4px;

  background: #c8d3e1;

  border-radius: 10px;

  transition:
    width 200ms ease,
    background-color 200ms ease;
}

.ve-services-dot.is-active {
  min-width: 35px;
}

.ve-services-dot.is-active span {
  width: 31px;
  background: var(--services-blue);
}


/* ==========================================================
   25. ACCESSIBILITY
========================================================== */

.ve-service-link:focus-visible {
  outline: 3px solid var(--services-gold);
  outline-offset: 4px;
}

.ve-services-arrow:focus-visible,
.ve-services-dot:focus-visible,
.ve-services-track:focus-visible {
  outline: 3px solid var(--services-blue);
  outline-offset: 4px;
}


/* ==========================================================
   26. LAPTOP
========================================================== */

@media (max-width: 1199.98px) {

  .ve-services {
    padding: 78px 0 82px;
  }

  .ve-services .ve-services-container {
    padding-inline: 20px;
  }

  .ve-services-header {
    gap: 28px;
  }

  .ve-services-header-aside {
    flex-basis: 230px;
  }

  .ve-service-card {
    min-height: 490px;
  }

  .ve-service-content {
    padding: 135px 22px 23px;
  }

  .ve-service-content h3 {
    font-size: 24px;
  }

  .ve-service-content p {
    font-size: 13.5px;
  }

}


/* ==========================================================
   27. TABLET — TWO COLUMNS
========================================================== */

@media (max-width: 991.98px) {

  .ve-services {
    --services-gap: 18px;

    padding: 70px 0 75px;
  }

  .ve-services-header {
    margin-bottom: 31px;
  }

  .ve-services-header-aside {
    display: none;
  }

  .ve-services-header h2 {
    font-size: 37px;
  }

  .ve-services-track {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .ve-service-card {
    min-height: 480px;
  }

  .ve-service-content {
    padding: 130px 24px 25px;
  }

  .ve-service-content h3 {
    font-size: 25px;
  }

  .ve-service-content p {
    font-size: 14px;
  }

}


/* ==========================================================
   28. MOBILE — SWIPE CAROUSEL
========================================================== */

@media (max-width: 767.98px) {

  .ve-services {
    --services-gap: 14px;

    padding: 55px 0 63px;

    scroll-margin-top: 72px;
  }

  .ve-services .ve-services-container {
    padding-inline: 16px;
  }

  .ve-services-header {
    margin-bottom: 26px;
  }

  .ve-services-eyebrow {
    margin-bottom: 13px;

    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .ve-services-header h2 {
    margin-bottom: 15px;

    font-size: clamp(28px, 7vw, 35px);

    line-height: 1.22;
    letter-spacing: -1.1px;
  }

  .ve-services-intro {
    font-size: 14.5px;

    line-height: 1.8;
  }

  /*
    Native horizontal carousel.
    Existing js/services.js controls
    previous, next and pagination.
  */

  .ve-services-track {
    display: flex;
    flex-wrap: nowrap;

    gap: var(--services-gap);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;

    padding: 0 1px 2px;
  }

  .ve-service-card {
    flex: 0 0 calc(100% - 2px);

    width: calc(100% - 2px);

    min-height: 510px;

    border-radius: 11px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .ve-service-content {
    padding: 125px 23px 24px;
  }

  .ve-service-category {
    font-size: 10px;
  }

  .ve-service-content h3 {
    font-size: 26px;
  }

  .ve-service-content p {
    max-width: 100%;

    font-size: 14px;
    line-height: 1.72;
  }

  .ve-service-link {
    font-size: 13px;
  }

  .ve-services-controls {
    display: flex;

    margin-top: 22px;
  }

}


/* ==========================================================
   29. SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

  .ve-services .ve-services-container {
    padding-inline: 14px;
  }

  .ve-service-card {
    min-height: 525px;
  }

  .ve-service-content {
    padding: 125px 22px 23px;
  }

  .ve-service-content h3 {
    font-size: 25px;
  }

  .ve-service-content p {
    font-size: 13.8px;
    line-height: 1.7;
  }

  .ve-service-link {
    gap: 8px;
    font-size: 12.5px;
  }

}


/* ==========================================================
   30. EXTRA SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

  .ve-services .ve-services-container {
    padding-inline: 12px;
  }

  .ve-services-header h2 {
    font-size: 28px;
  }

  .ve-services-intro {
    font-size: 14px;
  }

  .ve-service-card {
    min-height: 550px;
  }

  .ve-service-content {
    padding: 120px 19px 21px;
  }

  .ve-service-content h3 {
    font-size: 24px;
  }

  .ve-service-content p {
    font-size: 13.5px;
    line-height: 1.66;
  }

  .ve-service-link {
    font-size: 12px;
  }

  .ve-service-link-arrow {
    flex-basis: 36px;

    width: 36px;
    height: 36px;
  }

  .ve-services-controls {
    gap: 10px;
  }

  .ve-services-pagination {
    gap: 4px;
  }

  .ve-services-dot {
    min-width: 17px;
    padding: 0 1px;
  }

  .ve-services-dot span {
    width: 12px;
  }

  .ve-services-dot.is-active {
    min-width: 26px;
  }

  .ve-services-dot.is-active span {
    width: 24px;
  }

}


/* ==========================================================
   31. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .ve-services-track {
    scroll-behavior: auto;
  }

  .ve-service-image img,
  .ve-service-link,
  .ve-service-link-arrow,
  .ve-services-arrow,
  .ve-services-dot span {
    animation: none !important;
    transition: none !important;
  }

  .ve-service-card:hover
  .ve-service-image img {
    transform: none;
  }

}


/* ==========================================================
   32. PRINT SUPPORT
========================================================== */

@media print {

  .ve-services {
    padding: 25px 0;
    background: #ffffff;
  }

  .ve-services-track {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    overflow: visible;
  }

  .ve-service-card {
    min-height: 300px;

    break-inside: avoid;
  }

  .ve-services-controls {
    display: none !important;
  }

  .ve-service-image,
  .ve-service-shade {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

}


/* ==========================================================
   END OF SERVICES CSS
========================================================== */
