/* ==========================================================================
   Foxisa service section — self-contained styles
   Ported from the Foxisa template so the section keeps its original look
   while living inside the Davis (Laravel) template. No extra JS required:
   the Foxisa owl-carousel is rendered here as a responsive CSS grid.
   ========================================================================== */

.foxisa-service-section {
  position: relative;
  z-index: 1;
  background: #070d1b;
  overflow: hidden;
  padding: 100px 0;
}

@media (max-width: 991px) {
  .foxisa-service-section { padding: 80px 0; }
}

.foxisa-service-section .foxisa-section-title {
  text-align: left;
  max-width: 685px;
  margin-bottom: 50px;
}

.foxisa-service-section .foxisa-section-title h2 {
  color: #fec544;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.foxisa-service-section .foxisa-section-title h3 {
  color: #fff;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: capitalize;
  margin: 0;
}

@media (max-width: 767px) {
  .foxisa-service-section .foxisa-section-title h3 { font-size: 28px; }
}

/* Card grid replaces the owl-carousel — 3 x 2 layout for 6 projects */
.foxisa-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
}

@media (max-width: 991px) {
  .foxisa-service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .foxisa-service-grid { grid-template-columns: 1fr; padding: 0 10px; }
}

.foxisa-service-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 460px;
  border-radius: 6px;
}

.foxisa-service-card::before {
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 100%;
  content: "";
  background: radial-gradient(272.74% 97.55% at 66.64% 8.36%, rgba(7, 13, 27, 0) 0%, rgba(7, 13, 27, 0.92) 99.98%);
  transition: all 0.4s ease-in-out;
  z-index: 1;
}

.foxisa-service-card .image {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.foxisa-service-card .content {
  position: relative;
  left: 0;
  top: 0;
  height: 100%;
  min-height: 460px;
  display: flex;
  z-index: 11;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 40px 40px 40px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .foxisa-service-card .content { padding: 30px; }
}

.foxisa-service-card .content::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: #0a101e;
  transition: all 1.5s ease-in-out;
  z-index: -1;
}

.foxisa-service-card .content .icon {
  transition: all 1.5s ease-in-out;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.foxisa-service-card .content .icon img { width: 60px; height: 60px; object-fit: contain; }

.foxisa-service-card .content .text span {
  display: inline-block;
  color: #fec544;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.66px;
}

.foxisa-service-card .content .text h2 { margin: 0 0 20px; }

.foxisa-service-card .content .text h2 a {
  color: #fff;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  text-transform: capitalize;
  transition: all 1.5s ease-in-out;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  text-decoration: none;
}

.foxisa-service-card .content .text p {
  transition: all 1.5s ease-in-out;
  color: #5e5f63;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

.foxisa-service-card .content .text .service-single-link {
  width: 76px;
  height: 47px;
  line-height: 47px;
  border-radius: 23.5px;
  background: #fec544;
  display: inline-block;
  text-align: center;
  margin-top: 30px;
  position: relative;
}

.foxisa-service-card .content .text .service-single-link i {
  color: #222;
  font-size: 16px;
  line-height: 47px;
}

/* Rotate a plain up-arrow to mimic Foxisa's "arrow-top-right" glyph */
.foxisa-service-card .content .text .service-single-link .st-fa-rotate {
  transform: rotate(45deg);
}

/* Hover reveal — mirrors the Foxisa interaction */
.foxisa-service-card:hover::before { width: 100%; }
.foxisa-service-card:hover .content::before { width: 0; }
.foxisa-service-card:hover .content .text p { color: #c2c2c2; }

.foxisa-service-section .foxisa-shape {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  max-width: 45%;
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   Contact form flash messages (Laravel session/validation feedback)
   ========================================================================== */
.st-alert-success,
.st-alert-error {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}
.st-alert-success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}
.st-alert-error {
  background: rgba(238, 55, 54, 0.10);
  border: 1px solid rgba(238, 55, 54, 0.5);
  color: #ee3736;
}
.st-alert-error ul { margin: 0; padding-left: 18px; }
