.services-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 16%,
      rgba(115, 242, 173, 0.23),
      transparent 31%
    ),
    radial-gradient(
      circle at 10% 74%,
      rgba(46, 212, 122, 0.17),
      transparent 34%
    ),
    linear-gradient(120deg, #020806 0%, #04120c 52%, #071d13 100%);
  color: var(--white);
}

.services-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(46, 212, 122, 0.12), transparent 40%),
    linear-gradient(180deg, transparent 0%, rgba(2, 8, 6, 0.22) 100%);
  pointer-events: none;
}

.services-header .navbar {
  z-index: 1000;
}

.services-hero {
  position: relative;
  z-index: 1;
  max-width: 930px;
  padding: 68px 0 125px;
  text-align: center;
}

.nav-links a.active {
  color: var(--mint);
}

.services-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(115, 242, 173, 0.24);
  border-radius: 999px;
  background: rgba(115, 242, 173, 0.08);
  padding: 9px 16px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-chip svg {
  width: 16px;
  height: 16px;
}

.services-hero h1 {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.services-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.services-page {
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(46, 212, 122, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #eef7f2 0%, var(--bg) 100%);
  padding: 54px 0 86px;
}

.services-shell {
  display: grid;
  gap: 20px;
}

.services-award {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(4, 16, 11, 0.96),
    rgba(8, 36, 22, 0.96)
  );
  color: var(--white);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 900;
}

.services-award svg {
  width: 24px;
  height: 24px;
  color: var(--green-2);
}

.services-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  padding: 17px 20px;
  color: #32443c;
  font-size: 14px;
  font-weight: 800;
}

.services-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.services-trust-row svg {
  width: 17px;
  height: 17px;
  color: #14965a;
}

.services-toolbar {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: end;
  margin-top: 16px;
}

.services-toolbar h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.services-toolbar p {
  color: var(--muted);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(4, 16, 11, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 212, 122, 0.28);
  box-shadow: var(--shadow);
}

.service-visual {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(
      circle at 18% 16%,
      rgba(115, 242, 173, 0.34),
      transparent 28%
    ),
    linear-gradient(135deg, #03100a 0%, #0b2d1d 52%, #34d47d 100%);
  padding: 18px;
  color: var(--white);
}

.service-visual.has-image {
  min-height: auto;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: #062014;
}

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

.service-visual.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.service-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: rgba(2, 8, 6, 0.72);
  color: var(--mint);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(2, 8, 6, 0.72);
  padding: 7px 10px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-body {
  padding: 18px;
}

.service-body h3 {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.service-body p {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.service-tags span {
  border: 1px solid rgba(46, 212, 122, 0.24);
  border-radius: 999px;
  background: rgba(46, 212, 122, 0.07);
  padding: 5px 8px;
  color: #22513b;
  font-size: 11px;
  font-weight: 900;
}

.service-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.service-meta-row strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.service-meta-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.service-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  min-width: 0;
  border: 0;
  border-radius: 13px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.service-action:hover {
  transform: translateY(-2px);
}

.service-action svg,
.service-action i,
.service-action .whatsapp-svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.whatsapp-svg {
  fill: currentColor;
}

.action-contact {
  background: #1fc96c;
  color: #03100a;
}

.action-more {
  border: 1px solid var(--border);
  background: #f7fbf8;
  color: #243d33;
}

.services-empty,
.services-note {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(4, 16, 11, 0.05);
}

.services-empty {
  padding: 44px 24px;
  text-align: center;
}

.services-empty svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--green);
}

.services-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-color: rgba(46, 212, 122, 0.26);
  background:
    linear-gradient(135deg, rgba(115, 242, 173, 0.16), transparent),
    var(--white);
  padding: 22px 24px;
}

.services-note strong {
  font-size: 18px;
  font-weight: 900;
}

.services-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.service-modal.is-open {
  display: block;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 6, 0.72);
  backdrop-filter: blur(10px);
}

.service-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.service-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
}

.service-modal-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 45% 40%,
      rgba(115, 242, 173, 0.34),
      transparent 34%
    ),
    linear-gradient(135deg, #03100a 0%, #0b2d1d 55%, #34d47d 100%);
  color: var(--white);
}

.service-modal-visual > span {
  position: absolute;
  left: 24px;
  bottom: 20px;
  border-radius: 999px;
  background: rgba(2, 8, 6, 0.72);
  padding: 8px 12px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-modal-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.service-modal-icon svg {
  width: 46px;
  height: 46px;
  color: var(--mint);
}

.service-modal-image {
  width: 100%;
  overflow: hidden;
  background: #062014;
}

.service-modal-image img {
  display: block;
  width: 100%;
  height: auto;
}

.service-modal-image.is-hidden {
  display: none;
}

.service-modal-content {
  padding: 28px;
}

.service-modal-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-modal-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.service-modal-head p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.service-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.service-modal-meta div {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f7fbf8;
  padding: 14px;
}

.service-modal-meta strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.service-modal-meta span {
  display: block;
  margin-top: 4px;
  font-weight: 900;
}

.service-modal-section {
  margin-top: 24px;
}

.service-modal-section h3 {
  font-size: 18px;
}

.service-modal-section ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 20px;
  color: var(--muted);
}

.service-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.service-modal-tags span {
  border: 1px solid rgba(46, 212, 122, 0.22);
  border-radius: 999px;
  background: rgba(46, 212, 122, 0.08);
  padding: 8px 12px;
  color: #145c39;
  font-size: 13px;
  font-weight: 800;
}

.service-modal-actions {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  gap: 12px;
  margin-top: 26px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .services-toolbar {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .service-modal-card {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 18px;
  }

  .service-modal-image {
    aspect-ratio: 16 / 10;
  }

  .service-modal-content {
    padding: 22px;
  }

  .service-modal-meta,
  .service-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .services-page {
    padding: 38px 0 68px;
  }

  .services-hero {
    padding: var(--sticky-nav-offset) 0 72px;
  }

  .services-hero h1 {
    font-size: 38px;
    letter-spacing: -0.05em;
  }

  .services-hero p {
    font-size: 16px;
  }

  .services-award {
    align-items: flex-start;
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .service-actions {
    grid-template-columns: 1fr;
  }

  .service-action {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .services-hero {
    padding-bottom: 96px;
  }
}

.services-note > div {
  min-width: 0;
}

.services-note .btn {
  flex: 0 0 auto;
  min-width: 170px;
  padding-inline: 22px;
  white-space: nowrap;
}

.services-note .btn svg {
  flex: 0 0 auto;
}

@media (max-width: 880px) {
  .services-note .btn {
    width: 100%;
    min-width: 0;
  }
}

/* Keep service pricing and timeline visually balanced. */
.service-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.service-meta-row strong {
  display: block;
  max-width: 190px;
  font-size: 19px;
  line-height: 1.05;
}

.service-meta-row small {
  max-width: 64px;
  text-align: left;
  line-height: 1.35;
}

/* Keep service pricing and timeline visually balanced. */
.service-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.service-meta-row strong {
  display: block;
  max-width: 190px;
  font-size: 19px;
  line-height: 1.05;
}

.service-meta-row small {
  max-width: 64px;
  text-align: left;
  line-height: 1.35;
}

/* Full service details inside the modal. */
.service-modal-details-section[hidden] {
  display: none;
}

.service-modal-details {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.service-modal-details p + p {
  margin-top: 10px;
}

.service-modal-details ul,
.service-modal-details ol {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 20px;
}
