/* ========================================
   SERVICE DETAIL PAGE - Elegant Design
   ======================================== */

/* Hero Header */
.service-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.85) 0%,
    rgba(17, 17, 17, 0.4) 50%,
    rgba(17, 17, 17, 0.2) 100%
  );
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px 60px;
}

.service-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.service-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.service-hero-line {
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 24px;
  opacity: 0;
  animation: slideInLeft 0.6s ease 0.6s forwards;
}

/* Main Content Area */
.service-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 120px;
}

/* Service Section - Alternating Layout */
.service-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.service-section:last-child {
  margin-bottom: 0;
}

.service-section.reverse {
  direction: rtl;
}

.service-section.reverse > * {
  direction: ltr;
}

/* Text Block */
.service-text {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.service-text .section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.service-text h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--color-black);
  margin: 0 0 24px;
  line-height: 1.2;
}

.service-text p {
  font-size: 17px;
  color: var(--soft-black);
  line-height: 1.8;
  margin: 0 0 20px;
}

.service-text p:last-of-type {
  margin-bottom: 0;
}

.accent-line {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 32px;
}

/* CTA Button */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.service-cta:hover {
  background: #4a6a4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 122, 94, 0.3);
}

.service-cta svg {
  transition: transform 0.3s ease;
}

.service-cta:hover svg {
  transform: translateX(4px);
}

/* Image Block */
.service-image {
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.service-image::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: 16px;
  z-index: 0;
  opacity: 0.5;
}

.service-section.reverse .service-image::before {
  right: auto;
  left: -16px;
}

.service-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Single Section Layout (no alternating) */
.service-single {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media screen and (max-width: 1024px) {
  .service-hero-content {
    padding: 0 40px 50px;
  }

  .service-content {
    padding: 80px 40px 100px;
  }

  .service-section,
  .service-single {
    gap: 50px;
  }

  .service-section {
    margin-bottom: 100px;
  }

  .service-text h2 {
    font-size: 30px;
  }

  .service-text p {
    font-size: 16px;
  }

  .service-image img {
    height: 380px;
  }

  .service-image::before {
    top: -12px;
    right: -12px;
  }

  .service-section.reverse .service-image::before {
    left: -12px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media screen and (max-width: 768px) {
  .service-hero {
    height: 40vh;
    min-height: 300px;
  }

  .service-hero-content {
    padding: 0 24px 40px;
  }

  .service-hero-label {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .service-hero h1 {
    font-size: 32px;
  }

  .service-hero-line {
    width: 60px;
    margin-top: 20px;
  }

  .service-content {
    padding: 60px 24px 80px;
  }

  .service-section,
  .service-single {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-section {
    margin-bottom: 80px;
  }

  .service-section.reverse {
    direction: ltr;
  }

  .service-image {
    order: -1;
  }

  .service-image::before {
    display: none;
  }

  .service-image img {
    height: 280px;
    border-radius: 12px;
  }

  .service-text .section-tag {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .service-text h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .service-text p {
    font-size: 15px;
    line-height: 1.7;
  }

  .accent-line {
    width: 50px;
    margin-top: 24px;
  }

  .service-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    margin-top: 32px;
  }
}
