/* ─────────────────────────────────────────────────────────────────────────
   General Styles
────────────────────────────────────────────────────────────────────────── */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: #333;
  background-color: #fff;
  padding-top: 80px;
}
html,
body {
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url("Images/headerBackground.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 15px;
  text-align: center;
  z-index: 1000;
  color: white;
  transition: background-color 0.3s ease;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.scrollableHeadSec {
  margin-top: 0;
  padding-top: 80px;
  text-align: center;
  color: white;
  background-image: url("Images/headerBackground.jpeg");
  background-size: cover;
  background-position: center;
  height: 150px;
  position: relative;
  z-index: 900;
}

.scrollableHeadSec h1,
.scrollableHeadSec h2 {
  margin: 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: 37px;
}

h2 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: lighter;
  font-size: large;
}

main {
  padding: 20px;
}

.intro {
  text-align: center;
  margin-bottom: 40px;
}

.intro h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.intro p {
  font-size: 18px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Services Section
────────────────────────────────────────────────────────────────────────── */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.service {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
  overflow: hidden;
  z-index: 1;
  color: black;
}

.service h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.service p {
  font-size: 16px;
}

.service:hover {
  transform: scale(1.09);
  z-index: 1000;
  color: white;
  text-shadow: 0 0 5px black, 0 0 10px black, 0 0 15px black;
}

/* Background on hover */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8) blur(1px);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

/* Specific hover backgrounds */
.service:nth-child(1):hover::before {
  background-image: url("Images/DebtConsolidation.jpeg");
  opacity: 1;
  border-style: dashed;
}

.service:nth-child(2):hover::before {
  background-image: url("Images/DebtSettlement.jpeg");
  opacity: 1;
  content: "";
  position: absolute;
  z-index: -1;
  border-style: dashed;
}

.service:nth-child(3):hover::before {
  background-image: url("Images/FinancialAdvice.jpeg");
  opacity: 1;
  border-style: dashed;
}

/* Special animations */
@keyframes scaleUp {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.service--highlight.is-scaled {
  animation: scaleUp 0.5s forwards;
  background-image: url("Images/DebtSettlement.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1000;
  text-shadow: 0 0 5px plum, 0 0 10px yellowgreen, 0 0 15px plum;
}

.service--highlight.show-bg::before {
  opacity: 1;
}
.service--highlight {
  background-image: url("Images/DebtSettlement.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
}
/* ─────────────────────────────────────────────────────────────────────────
   Call To Action Section
────────────────────────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  margin-bottom: 40px;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #000;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: yellowgreen;
  border-color: black;
  color: #000;
  transform: scale(1.3);
}

/* ─────────────────────────────────────────────────────────────────────────
   Mobile Responsive Styles
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
    text-shadow: 0 0 5px white, 0 0 10px white, 0 0 15px white;
  }

  .service {
    width: 90%;
    opacity: 1;
  }

  /* Backgrounds always visible on mobile */
  .service:nth-child(1) {
    background: url("Images/DebtConsolidation.jpeg") center/cover no-repeat;
  }
  .service:nth-child(2) {
    background: url("Images/DebtSettlement.jpeg") center/cover no-repeat;
  }
  .service:nth-child(3) {
    background: url("Images/FinancialAdvice.jpeg") center/cover no-repeat;
  }
}
