/* =============================================
   ADCORP Service Pages — Shared Styles
   ============================================= */

/* ── Page Hero ───────────────────────────────── */

.page-hero {
  padding-top: calc(68px + clamp(3.5rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, var(--color-brand-light) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero--dark {
  background: var(--color-gray-900);
}

.page-hero--dark::before {
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,54,89,0.25) 0%, transparent 70%);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

.page-hero__breadcrumb a {
  color: var(--color-gray-500);
  transition: color var(--duration-fast);
}

.page-hero__breadcrumb a:hover { color: var(--color-brand); }

.page-hero__breadcrumb-sep { color: var(--color-gray-300); }

.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}

.page-hero__inner--full {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.page-hero__icon {
  width: 64px;
  height: 64px;
  background: var(--color-brand-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255,54,89,0.15);
}

.page-hero--dark .page-hero__icon {
  background: rgba(255,54,89,0.2);
  border-color: rgba(255,54,89,0.4);
}

.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--fw-black);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin-bottom: var(--space-5);
}

.page-hero--dark .page-hero__title { color: var(--color-white); }

.page-hero__desc {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--color-gray-700);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.page-hero--dark .page-hero__desc { color: rgba(255,255,255,0.65); }

.page-hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Visual Card */
.page-hero__visual {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.page-hero--dark .page-hero__visual {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* ── Service Definition ──────────────────────── */

.service-def {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-12);
}

.service-def__text {
  font-size: clamp(var(--text-base), 1.4vw, var(--text-lg));
  color: var(--color-gray-700);
  line-height: var(--leading-loose);
}

.service-def__text strong { color: var(--color-dark); }

/* ── Checklist (이런 상황에 필요합니다) ─────────── */

.checklist-section__title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: var(--space-8);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.checklist__item:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

.checklist__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-brand-light);
  border: 1.5px solid rgba(255,54,89,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist__check::after {
  content: '✓';
  font-size: 11px;
  color: var(--color-brand);
  font-weight: var(--fw-bold);
}

.checklist__text {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-normal);
}

/* ── Process Steps ───────────────────────────── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(to right, var(--color-brand), var(--color-brand-light));
  z-index: 0;
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.step-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step-card__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.step-card__title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.step-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-loose);
}

/* ── Channel / Feature Grid ──────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-item {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-item:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-item__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  line-height: 1;
}

.feature-item__title {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.feature-item__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-loose);
}

/* ── FAQ ─────────────────────────────────────── */

.faq-section {
  max-width: 800px;
  margin-inline: auto;
}

.faq-section__title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: var(--space-10);
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast);
}

.faq-item.open {
  border-color: var(--color-brand);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  background: var(--color-white);
  list-style: none;
  user-select: none;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question:hover { background: var(--color-surface-alt); }

.faq-item.open .faq-item__question { color: var(--color-brand); }

.faq-item__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  transition: all var(--duration-normal) var(--ease-out);
  line-height: 1;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.faq-item__answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-loose);
  background: var(--color-white);
}

.faq-item.open .faq-item__answer { display: block; }

/* Schema: hide from visual but keep for crawlers */
.faq-schema { display: none; }

/* ── Related Links ───────────────────────────── */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.related-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.related-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.related-card__icon { font-size: 1.5rem; flex-shrink: 0; }

.related-card__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.related-card__text span {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

/* ── Mini CTA Banner ─────────────────────────── */

.mini-cta {
  background: linear-gradient(135deg, var(--color-brand) 0%, #3B5BFF 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.mini-cta__text h2 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.mini-cta__text p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: var(--leading-loose);
}

.mini-cta__buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Section Header util ─────────────────────── */

.sh {
  margin-bottom: var(--space-12);
}

.sh--center { text-align: center; }

.sh__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.sh__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.sh__desc {
  font-size: clamp(var(--text-base), 1.4vw, var(--text-lg));
  color: var(--color-gray-700);
  line-height: var(--leading-loose);
  max-width: 600px;
}

.sh--center .sh__desc { margin-inline: auto; }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1024px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__visual { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .checklist { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .mini-cta { flex-direction: column; align-items: flex-start; }
  .page-hero__cta { flex-direction: column; }
}

/* SVG 아이콘 컬러 (이모지 대체) */
.page-hero__icon svg { color: var(--color-brand); }
.feature-item__icon svg { color: var(--color-brand); }
.related-card__icon { display: inline-flex; align-items: center; }
.related-card__icon svg { color: var(--color-brand); }
