/* =========================================
   MOBILE-FIRST STYLE — SERVICES PAGE
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
.top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-bottom: 4px solid #00a651;
  border-bottom-right-radius: 50px;
  background-color: white;
}

.logo-container {
  display: flex;
  gap: 70px;
  align-items: center;
}

.logo-container img {
  width: 200px;
}

.logo-container i {
  border: 1px solid #29367d;
  padding: 5px;
  border-radius: 5px;
}
.logo-container i:hover {
  background-color: #00a651;
  color: white;
}

.header-info {
  padding: 10px 20px;
  display: none;
}

.info-box h3 {
  font-size: 14px;
  color: #00a651;
}

.info-box p,
a {
  font-size: 12px;
  text-decoration: none;
  color: #29367d;
  font-weight: 600;
}

/* ── Hero ── */
.header-hero {
  background:
    linear-gradient(rgba(0, 0, 255, 0.2), rgba(0, 0, 255, 0.116)),
    url("../images/hero.webp") no-repeat;
  background-size: cover;
  background-position: center;
}

.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}

nav {
  display: flex;
  justify-content: space-evenly;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: white;
}
nav a:hover {
  text-decoration: 2px underline;
}

.hero p {
  color: white;
  text-align: center;
  font-size: 10px;
  width: 80%;
}

.hero button {
  padding: 7px 15px;
  color: white;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.345),
    rgba(38, 37, 37, 0.861)
  );
  border: 1px solid #00a651;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  margin-bottom: 20px;
}
.hero button:hover {
  background-color: rgb(32, 32, 32);
}
.hero button a {
  color: white;
}

/* ── Services Intro ── */
.services-intro {
  padding: 30px 20px;
  text-align: center;
}

.services-intro h2 {
  color: #1f435d;
  margin-bottom: 15px;
}

.services-intro p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Service Cards Grid ── */
.services-grid-section {
  padding: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #00a651;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(41, 54, 125, 0.12);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f435d, #29367d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon i {
  font-size: 28px;
  color: white;
}

.service-card h3 {
  color: #1f435d;
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.service-link {
  color: #00a651;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.service-link:hover {
  color: #1f435d;
}

/* ── Detail Blocks ── */
.service-details {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-details h2 {
  color: #1f435d;
  text-align: center;
  margin-bottom: 30px;
}

.detail-block {
  background: #f4f7f9;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #00a651;
}

.detail-block h3 {
  color: #29367d;
  font-size: 18px;
  margin-bottom: 10px;
}

.detail-block p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* ── CTA Section ── */
.services-cta {
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
}

.cta-content h2 {
  color: #29367d;
  margin-bottom: 15px;
}

.cta-content p {
  color: #1a5f91;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta-btn {
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn.primary {
  background: #00a651;
  color: white;
}
.cta-btn.primary:hover {
  background: #00783a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.cta-btn.secondary {
  background: transparent;
  color: #29367d;
  border:  2px solid #29367d;
}
.cta-btn.secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ── Footer ── */
footer {
  background: linear-gradient(90deg, #1f435d, #418cc3);
  text-align: center;
  color: white;
}

footer nav {
  padding-top: 10px;
}

footer h2 {
  margin: 10px;
  font-size: 18px;
  color: white;
}

footer p,
ul li a,
footer p a {
  color: white;
  font-size: 14px;
  font-weight: normal;
  padding: 0 10px;
}

footer .details {
  padding: 20px 0;
}
footer ul {
  list-style: none;
}

.copyright {
  background-color: #00a651;
  text-align: center;
  padding: 10px 0;
  margin-top: 15px;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (min-width: 768px) {
  .top-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 30px;
  }

  .header-info {
    display: flex;
    gap: 20px;
  }

  .hero p {
    font-size: 14px;
    width: 60%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-info h3 {
    font-size: 16px;
  }
  .header-info p,
  a {
    font-size: 14px;
  }
  .logo-container img {
    width: 250px;
  }
  .logo-container i {
    display: none;
  }

  .header-hero {
    background-position: center;
    background-size: cover;
    height: 120vh;
  }

  .hero {
    gap: 20px;
    height: 90vh;
  }
  .hero p {
    font-size: 18px;
    width: 50%;
  }
  .hero button {
    font-size: 16px;
    padding: 10px 25px;
  }

  nav {
    justify-content: center;
    margin-left: 30px;
    gap: 60px;
    padding-right: 50px;
  }
  nav a {
    font-size: 16px;
  }

  .services-intro {
    padding: 60px 50px;
  }
  .services-intro h2 {
    font-size: 30px;
  }
  .services-intro p {
    font-size: 16px;
  }

  .services-grid-section {
    padding: 20px 50px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .service-card {
    padding: 35px 30px;
  }
  .service-card h3 {
    font-size: 20px;
  }
  .service-card p {
    font-size: 15px;
  }

  .service-details {
    padding: 60px 50px;
  }
  .service-details h2 {
    font-size: 30px;
  }
  .detail-block h3 {
    font-size: 22px;
  }
  .detail-block p {
    font-size: 16px;
  }

  .services-cta {
    padding: 70px 50px;
  }
  .cta-content h2 {
    font-size: 30px;
  }
  .cta-content p {
    font-size: 16px;
  }

  footer .navbar {
    display: flex;
    gap: 20px;
    padding: 20px 0;
  }

  footer .navbar a,
  footer li a,
  footer p a {
    color: white;
    font-weight: normal;
    text-decoration: none;
  }

  footer .details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 55px;
    width: 100%;
    padding: 40px 100px;
    text-align: left;
  }

  .copyright {
    height: 40px;
    vertical-align: middle;
    padding-top: 15px;
  }

  .whatsapp-float {
    color: white;
    background-color: #00a651;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 30px;
    position: fixed;
    top: 570px;
    right: 50px;
  }
  .whatsapp-float:hover {
    transform: scale(1.2);
    background-color: #00783a;
    transition: all 0.3s;
  }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */

[data-animate] {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

[data-animate="up"] {
  transform: translateY(60px);
}
[data-animate="down"] {
  transform: translateY(-60px);
}
[data-animate="left"] {
  transform: translateX(-80px);
}
[data-animate="right"] {
  transform: translateX(80px);
}
[data-animate="scale"] {
  transform: scale(0.85);
}
[data-animate="fade"] {
  transform: none;
}

[data-animate].revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

[data-delay="1"] {
  transition-delay: 0.15s;
}
[data-delay="2"] {
  transition-delay: 0.3s;
}
[data-delay="3"] {
  transition-delay: 0.45s;
}
[data-delay="4"] {
  transition-delay: 0.6s;
}

@keyframes softBounce {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}
.whatsapp-float {
  animation: softBounce 2.5s ease-in-out infinite;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  box-shadow: 0 6px 18px rgba(0, 166, 81, 0.35);
}

footer .navbar a {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
footer .navbar a:hover {
  color: #00a651;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .whatsapp-float {
    animation: none !important;
  }
}
