/* =======================================
   SERVICES PAGE COMPONENT STYLES
======================================= */

.services-hero {
  padding: 80px 5% 60px;
  background: linear-gradient(135deg, #faf9f6 0%, #ffffff 50%, #fdf8ee 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(17, 17, 17, 0.05);
}

.services-hero-left {
  flex: 1.2;
}

.services-hero-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.services-hero-left h1 {
  font-size: 52px;
  font-weight: 900;
  color: #111111;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.services-hero-left h1 span {
  color: #d4af37;
}

.services-hero-desc {
  font-size: 16.5px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 14px;
}

.services-hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.services-hero-right img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.03);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.4s ease;
}

.services-hero-right img:hover {
  transform: translateY(-5px);
}

/* =======================================
   SERVICES GRID & BOXES
======================================= */

.services {
  padding: 80px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}

.service-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #111111;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.service-box:hover::after {
  transform: scaleX(1);
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.08);
}

.service-box i {
  font-size: 38px;
  color: #111111;
  background: rgba(212, 175, 55, 0.08);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.35s ease;
}

.service-box:hover i {
  background: #111111;
  color: #fff;
  transform: scale(1.08);
}

/* Alternate colors for variety on hover */
.service-box:nth-child(even)::after { background: #d4af37; }
.service-box:nth-child(even):hover i { background: #d4af37; }
.service-box:nth-child(3n)::after { background: #e07000; }
.service-box:nth-child(3n):hover i { background: #e07000; }

.service-box h3 {
  color: #111111;
  font-size: 20px;
  font-weight: 750;
  margin-bottom: 12px;
}

.service-box p {
  line-height: 1.7;
  color: #555;
  font-size: 14.5px;
}

/* =======================================
   RESPONSIVE — SERVICES PAGE
======================================= */

@media(max-width: 900px) {
  .services-hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
    gap: 30px;
  }
  
  .services-hero-left, .services-hero-right {
    width: 100%;
  }

  .services-hero-left h1 {
    font-size: 38px;
  }

  .services-hero-right img {
    max-width: 380px;
  }

  .services {
    grid-template-columns: 1fr 1fr;
    padding: 60px 5%;
  }
}

@media(max-width: 550px) {
  .services {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =======================================
   SERVICES SECTION HEADER
======================================= */

.services-section-header {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 10px;
  padding: 0 5%;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.services-section-subtitle {
  display: inline-block;
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.services-section-title {
  font-size: 36px;
  font-weight: 800;
  color: #111111;
  line-height: 1.2;
}

.services-section-title span {
  color: #d4af37;
}

@media(max-width: 900px) {
  .services-section-header {
    margin-top: 50px;
    margin-bottom: 0px;
  }
  .services-section-title {
    font-size: 28px;
  }
}

/* =======================================
   ENHANCED MICRO-ANIMATIONS (services page)
======================================= */

.services-hero-left h1 {
  animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.services-hero-desc {
  animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
.services-hero-tag {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Service box page-specific hover */
.service-box {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}
.service-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 38px rgba(17, 17, 17, 0.14);
}
.service-box i {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-box:hover i {
  transform: rotate(15deg) scale(1.25);
}

/* Section title animated underline */
.services-section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #111111);
  border-radius: 2px;
  margin: 10px auto 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.services-section-title.visible::after {
  width: 80px;
}

