/* Dinox service pages — Ella Clean structure, Dinox brand */

.page-service {
  padding-top: var(--headerH);
  background: #fff;
}

.svc-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 72px 0 64px;
  background-color: #0b2740;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.svc-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.svc-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(8, 28, 46, 0.62) 0%,
    rgba(8, 28, 46, 0.38) 48%,
    rgba(8, 28, 46, 0.18) 100%
  );
  pointer-events: none;
}

.svc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.svc-kicker {
  margin: 0 0 14px;
  font-family: var(--en), Poppins, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.svc-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.svc-hero-lead {
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

.svc-hero-actions,
.svc-mid-cta-actions,
.svc-bottom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.svc-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.svc-btn:hover {
  transform: translateY(-2px);
}

.svc-btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--green-rgb), 0.28);
}

.svc-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.svc-btn-soft {
  border: 1px solid rgba(var(--green-rgb), 0.4);
  color: var(--green);
  background: #fff;
}

/* hero 아래: 메인 trust 카드 스타일 재사용 */
.page-service .svc-trust-strip {
  padding: 112px 0 96px;
}

.page-service .svc-trust-strip .trust-card-desc {
  /* 서비스 페이지에서는 설명이 바로 보이도록 */
  opacity: 1;
  max-height: none;
  transform: none;
}

@media screen and (max-width: 768px) {
  .page-service .svc-trust-strip {
    padding: 72px 0 64px;
  }

  .page-service .svc-trust-strip .trust-card-link {
    background: #1f8fe0;
  }

  .page-service .svc-trust-strip .trust-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
  }

  .page-service .svc-trust-strip .trust-card-desc {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
    color: #fff;
    opacity: 1;
    max-height: none;
    transform: none;
  }

  .page-service .svc-trust-strip .trust-card-cta {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
  }
}

.svc-solution {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 128px 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(77, 184, 255, 0.22), transparent 70%),
    radial-gradient(circle at 12% 18%, rgba(77, 184, 255, 0.18), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(36, 120, 190, 0.28), transparent 42%),
    linear-gradient(160deg, #071a2e 0%, #0c2f4d 48%, #0a2238 100%);
}

.svc-solution::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
}

.svc-solution::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(77, 184, 255, 0.18);
  box-shadow:
    0 0 0 48px rgba(77, 184, 255, 0.04),
    0 0 0 96px rgba(77, 184, 255, 0.025);
}

.svc-solution .in {
  position: relative;
  z-index: 1;
}

.svc-solution h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  word-break: keep-all;
  text-shadow: 0 8px 28px rgba(7, 26, 46, 0.35);
}

.svc-solution-lead {
  margin: 0 auto 18px;
  max-width: 720px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  word-break: keep-all;
}

.svc-solution-text {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  color: rgba(210, 230, 245, 0.82);
  word-break: keep-all;
}

.svc-scope,
.svc-process,
.svc-cases,
.svc-faq {
  padding: 128px 0;
}

.svc-section-head {
  margin-bottom: 52px;
  text-align: center;
}

.svc-section-eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.svc-section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
  word-break: keep-all;
}

.svc-section-head p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray4);
  word-break: keep-all;
}

.svc-scope {
  background: #f5f7fa;
}

.svc-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
}

.svc-scope-grid.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
}

.svc-scope-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 24px;
  padding: 36px 24px 32px;
  background: #fff;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 28px rgba(28, 28, 28, 0.05);
}

.svc-scope-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.svc-scope-ico svg {
  width: 28px;
  height: 28px;
}

.svc-scope-step {
  display: block;
  margin-bottom: 12px;
  color: #9aa3ad;
  font-family: var(--en), Poppins, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.svc-scope-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #2b9ee8;
  line-height: 1.4;
  word-break: keep-all;
}

.svc-scope-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray4);
  word-break: keep-all;
}

.svc-mid-cta {
  margin-top: 56px;
  padding: 36px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(var(--green-rgb), 0.12), rgba(var(--green-rgb), 0.04));
  border: 1px solid rgba(var(--green-rgb), 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.svc-mid-cta h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  color: var(--black);
  word-break: keep-all;
}

.svc-process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b2740;
  color: #fff;
}

.svc-process-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}

.svc-process-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 26, 46, 0.55) 0%, rgba(7, 26, 46, 0.62) 45%, rgba(7, 26, 46, 0.78) 100%),
    radial-gradient(ellipse 75% 55% at 50% 25%, rgba(77, 184, 255, 0.2), transparent 68%);
}

.svc-process .in {
  position: relative;
  z-index: 2;
}

.svc-process .svc-section-head h2,
.svc-process .svc-section-head p {
  color: #fff;
}

.svc-process .svc-section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.svc-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.svc-process-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 28px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.svc-process-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.svc-process-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
}

.svc-process-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  word-break: keep-all;
}

.svc-cases {
  background: #f5f8fb;
}

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

.svc-cases-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.svc-case-card,
.svc-case-row {
  display: flex;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #e7eef5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-case-card {
  flex-direction: column;
}

.svc-case-row {
  flex-direction: row;
  align-items: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
}

.svc-case-row.is-reverse {
  flex-direction: row-reverse;
}

.svc-case-card:hover,
.svc-case-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(28, 28, 28, 0.08);
}

.svc-case-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #dde7f0;
}

.svc-case-row .svc-case-media {
  position: relative;
  flex: 0 0 33.333%;
  width: 33.333%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.svc-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.svc-case-row .svc-case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.svc-case-body {
  padding: 22px 22px 26px;
}

.svc-case-row .svc-case-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}

.svc-case-body span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.svc-case-row .svc-case-body span {
  margin-bottom: 8px;
}

.svc-case-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  word-break: keep-all;
}

.svc-case-row .svc-case-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.svc-case-body p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray4);
  word-break: keep-all;
}

.svc-case-row .svc-case-body p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.svc-case-body em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.svc-faq {
  background: #fff;
}

.svc-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 920px;
  margin-inline: auto;
}

.svc-faq-item {
  border-top: 1px solid #e6edf4;
}

.svc-faq-item:last-child {
  border-bottom: 1px solid #e6edf4;
}

.svc-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
}

.svc-faq-btn::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--green-rgb), 0.12);
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.svc-faq-item.is-open .svc-faq-btn::after {
  content: "–";
}

.svc-faq-panel {
  display: none;
  padding: 0 4px 22px;
}

.svc-faq-item.is-open .svc-faq-panel {
  display: block;
}

.svc-faq-panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray4);
  word-break: keep-all;
}

.svc-bottom-cta {
  margin-top: 48px;
  padding: 28px 28px;
  border-radius: 24px;
  background: #f5f8fb;
  border: 1px solid #e7eef5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.svc-bottom-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  color: var(--black);
}

.svc-bottom-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--gray4);
}

@media screen and (max-width: 1240px) {
  .svc-cases-grid {
    grid-template-columns: 1fr;
  }

  .svc-case-row,
  .svc-case-row.is-reverse {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .svc-case-row .svc-case-media {
    flex: none;
    width: 66.666%;
    max-width: 66.666%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .svc-case-row .svc-case-body {
    padding: 24px 22px 26px;
  }

  .svc-case-row .svc-case-body h3 {
    font-size: 20px;
  }

  .svc-scope-grid,
  .svc-scope-grid.is-cols-3,
  .svc-process-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  .svc-hero {
    min-height: 360px;
    padding: 56px 0 48px;
  }

  .svc-solution,
  .svc-scope,
  .svc-process,
  .svc-cases,
  .svc-faq {
    padding: 80px 0;
  }

  .svc-section-head {
    margin-bottom: 36px;
  }

  .svc-mid-cta {
    margin-top: 40px;
  }

  .svc-scope-grid,
  .svc-process-grid {
    grid-template-columns: 1fr;
  }

  .svc-mid-cta,
  .svc-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
