:root {
  --service-navy: #102235;
  --service-teal: #087f73;
  --service-aqua: #ddf7f3;
  --service-mint: #f3fcfa;
  --service-ink: #1a3040;
  --service-muted: #667784;
  --service-line: rgba(8, 127, 115, 0.14);
  --service-shadow: 0 22px 60px rgba(16, 34, 53, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.service-page-body {
  margin: 0;
  color: var(--service-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(142, 235, 221, 0.2), transparent 24rem),
    linear-gradient(180deg, #fcfdfd 0%, #f3fcfa 100%);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }

.service-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.service-header {
  position: sticky;
  top: 0.8rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(221, 247, 243, 0.18);
  border-radius: 18px;
  background: rgba(16, 34, 53, 0.92);
  color: #fff;
  box-shadow: 0 14px 35px rgba(16, 34, 53, 0.16);
  backdrop-filter: blur(18px);
}

.service-brand,
.service-header-links,
.service-header-cta {
  display: flex;
  align-items: center;
}

.service-brand { gap: 0.65rem; }

.service-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-brand span { font-weight: 900; font-size: 0.9rem; }

.service-header-links { gap: 1rem; color: rgba(255, 255, 255, 0.78); font-size: 0.78rem; }

.service-header-links a:hover { color: #fff; }

.service-header-cta {
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 11px;
  background: var(--service-aqua);
  color: var(--service-navy);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.service-header-cta svg { width: 15px; height: 15px; }

.service-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.6rem);
  min-height: 550px;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 5% -30% auto -10%;
  height: 75%;
  z-index: -1;
  background-image: linear-gradient(rgba(8, 127, 115, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 127, 115, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  pointer-events: none;
}

.service-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(8, 127, 115, 0.18);
  border-radius: 999px;
  background: rgba(221, 247, 243, 0.72);
  color: var(--service-teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.service-eyebrow svg { width: 15px; height: 15px; }

.service-hero h1 {
  max-width: 730px;
  margin: 0;
  color: var(--service-navy);
  font-size: clamp(2rem, 4.7vw, 4.1rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.service-hero h1 em { color: var(--service-teal); font-style: normal; }

.service-lead {
  max-width: 650px;
  margin: 1.2rem 0 0;
  color: var(--service-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 2.05;
}

.service-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.service-button,
.service-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 13px;
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-button { background: var(--service-teal); color: #fff; box-shadow: 0 12px 25px rgba(8, 127, 115, 0.22); }
.service-button-secondary { border: 1px solid var(--service-line); background: #fff; color: var(--service-navy); }
.service-button:hover, .service-button-secondary:hover { transform: translateY(-2px); }
.service-button svg, .service-button-secondary svg { width: 17px; height: 17px; }

.service-hero-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(142, 235, 221, 0.22);
  border-radius: 30px;
  background: linear-gradient(145deg, #102235 0%, #0b4a50 100%);
  box-shadow: var(--service-shadow);
}

.service-hero-visual::before,
.service-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.service-hero-visual::before { width: 240px; height: 240px; top: -70px; left: -55px; background: rgba(142, 235, 221, 0.2); }
.service-hero-visual::after { width: 170px; height: 170px; right: -50px; bottom: -45px; background: rgba(8, 127, 115, 0.36); }

.service-hero-image {
  position: absolute;
  inset: 1.2rem;
  width: calc(100% - 2.4rem);
  height: calc(100% - 2.4rem);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 21px;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.service-hero-visual.no-image::after {
  width: 75%;
  height: 75%;
  top: 12%;
  right: 12%;
  bottom: auto;
  background: radial-gradient(circle at 30% 28%, rgba(142, 235, 221, 0.4), transparent 18%), radial-gradient(circle at 75% 65%, rgba(221, 247, 243, 0.18), transparent 24%), linear-gradient(135deg, transparent 0 49%, rgba(142, 235, 221, 0.12) 50% 51%, transparent 52%);
  border: 1px solid rgba(142, 235, 221, 0.24);
  border-radius: 35% 65% 55% 45%;
}

.visual-caption {
  position: absolute;
  right: 1.3rem;
  bottom: 1.3rem;
  left: 1.3rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(16, 34, 53, 0.72);
  color: #fff;
  font-size: 0.72rem;
  backdrop-filter: blur(12px);
}

.visual-caption strong { color: #8eebdd; }

.service-section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.service-section.soft { background: var(--service-mint); }

.service-section-heading { max-width: 700px; margin-bottom: 1.65rem; }
.service-section-heading .service-eyebrow { margin-bottom: 0.75rem; }
.service-section-heading h2 { margin: 0; color: var(--service-navy); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.35; }
.service-section-heading p { margin: 0.7rem 0 0; color: var(--service-muted); font-size: 0.94rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.service-card {
  padding: 1.3rem;
  border: 1px solid var(--service-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(16, 34, 53, 0.05);
}

.service-card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 0.8rem; border-radius: 14px; background: var(--service-aqua); color: var(--service-teal); }
.service-card-icon svg { width: 20px; height: 20px; }
.service-card h3 { margin: 0; color: var(--service-navy); font-size: 1rem; }
.service-card p { margin: 0.45rem 0 0; color: var(--service-muted); font-size: 0.84rem; line-height: 1.9; }

.service-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; counter-reset: service-step; }
.service-step { position: relative; padding: 1.1rem; border-top: 2px solid rgba(8, 127, 115, 0.32); background: #fff; }
.service-step::before { counter-increment: service-step; content: "0" counter(service-step); display: block; margin-bottom: 0.55rem; color: var(--service-teal); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; }
.service-step h3 { margin: 0; color: var(--service-navy); font-size: 0.98rem; }
.service-step p { margin: 0.4rem 0 0; color: var(--service-muted); font-size: 0.8rem; line-height: 1.85; }

.service-note {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border-right: 3px solid var(--service-teal);
  border-radius: 11px;
  background: rgba(221, 247, 243, 0.58);
  color: var(--service-muted);
  font-size: 0.8rem;
}

.service-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.service-faq { padding: 1.1rem 1.2rem; border: 1px solid var(--service-line); border-radius: 17px; background: #fff; }
.service-faq h3 { margin: 0; color: var(--service-navy); font-size: 0.92rem; }
.service-faq p { margin: 0.35rem 0 0; color: var(--service-muted); font-size: 0.81rem; line-height: 1.9; }

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 26px;
  background: linear-gradient(120deg, var(--service-navy), var(--service-teal));
  color: #fff;
  box-shadow: 0 25px 55px rgba(8, 127, 115, 0.2);
}

.service-cta h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.4; }
.service-cta p { margin: 0.35rem 0 0; color: rgba(255, 255, 255, 0.72); font-size: 0.83rem; }
.service-cta .service-button { background: #fff; color: var(--service-navy); box-shadow: none; white-space: nowrap; }

.service-footer { padding: 1.5rem 0 2.2rem; color: var(--service-muted); font-size: 0.75rem; }
.service-footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--service-line); }
.service-footer a { color: var(--service-teal); font-weight: 800; }

.service-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.service-hub-card { padding: 1.35rem; border: 1px solid var(--service-line); border-radius: 22px; background: #fff; box-shadow: 0 14px 35px rgba(16, 34, 53, 0.06); }
.service-hub-card h2 { margin: 0; color: var(--service-navy); font-size: 1.05rem; }
.service-hub-card p { margin: 0.45rem 0 1rem; color: var(--service-muted); font-size: 0.83rem; }
.service-hub-card a { color: var(--service-teal); font-size: 0.8rem; font-weight: 900; }

@media (max-width: 860px) {
  .service-header-links { display: none; }
  .service-hero { grid-template-columns: 1fr; min-height: auto; }
  .service-hero-visual { min-height: 310px; }
  .service-grid, .service-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .service-shell { width: min(100% - 1.1rem, 1160px); }
  .service-header { top: 0.4rem; margin-top: 0.4rem; }
  .service-brand span { font-size: 0.78rem; }
  .service-header-cta { padding-inline: 0.65rem; font-size: 0.7rem; }
  .service-hero { padding-top: 3.4rem; }
  .service-hero h1 { font-size: clamp(1.9rem, 10vw, 2.8rem); }
  .service-hero-visual { min-height: 250px; border-radius: 22px; }
  .service-grid, .service-hub-grid, .service-faq-grid, .service-steps { grid-template-columns: 1fr; }
  .service-actions, .service-button, .service-button-secondary { width: 100%; }
  .service-cta { align-items: stretch; flex-direction: column; }
  .service-cta .service-button { width: 100%; }
  .service-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-button, .service-button-secondary { transition: none; }
}
