/* 회사소개·서비스 등 내부 페이지 공통 */
.inner-main {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 80px;
}

.page-hero {
  margin-bottom: 36px;
}

.page-hero .eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: none;
}

.inner-main .consult-box {
  grid-template-columns: 1fr 1.1fr;
}

.inner-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.inner-footer .footer-nav a {
  color: #dbe4f0;
  font-size: 13px;
  font-weight: 600;
}

.about-page {
  --about-max: 1120px;
  --about-ink: #0d1b2a;
  --about-muted: #5c6570;
  --about-blue: #1a73e8;
  --about-blue-hover: #155fc2;
  --about-soft: #f5f7fa;
  margin: 0;
  background: #fff;
  color: var(--about-ink);
}

.about-intro {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 920px);
  padding: 72px 0 80px;
  overflow: hidden;
  background-color: var(--about-soft);
}

.about-intro::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background-image: url("../images/about-office.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right center;
  filter: blur(8px) saturate(0.52) brightness(1.24) hue-rotate(6deg);
  transform: scale(1.04);
}

.about-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(247, 250, 253, 0.9) 34%,
    rgba(255, 255, 255, 0.72) 64%,
    rgba(255, 255, 255, 0.5) 100%
  );
}

.about-intro__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--about-max), calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  grid-template-areas:
    "head ."
    "copy aside"
    "rest aside";
  column-gap: 80px;
  row-gap: 0;
  align-items: start;
}

.about-intro__head,
.about-intro__copy,
.about-intro__rest {
  max-width: 720px;
  text-align: left;
}

.about-intro__head {
  grid-area: head;
}

.about-intro__copy {
  grid-area: copy;
}

.about-intro__rest {
  grid-area: rest;
  margin-top: 56px;
}

.about-intro__aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: 20px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.about-intro__photo,
.about-proof {
  width: 100%;
  max-width: none;
  margin: 0;
}

.about-proof {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(26, 115, 232, 0.16);
  background: #fff;
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.06);
}

.about-proof img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
}

.about-intro__photo-frame {
  position: relative;
  padding: 1.5px;
  border-radius: 20px;
  background: linear-gradient(
    148deg,
    var(--about-blue) 0%,
    #8bb8f0 42%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

.about-intro__photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 18.5px;
  background: transparent;
  filter: saturate(0.86) contrast(0.98) brightness(1.04);
  vertical-align: top;
}

.about-intro__photo-frame::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: 18.5px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(210, 226, 246, 0.16) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  mix-blend-mode: overlay;
}

.about-intro__photo-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 14px 0 0;
  text-align: center;
}

.about-intro__sign-label {
  display: block;
  color: var(--about-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.about-intro__sign {
  display: inline-block;
  margin-top: 2px;
  color: #1e3a5f;
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  transform: rotate(-6deg);
}

.about-intro__label {
  margin: 0 0 8px;
  color: var(--about-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about-intro h1 {
  margin: 0 0 40px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--about-blue);
}

.about-intro__copy p {
  margin: 0 0 32px;
  padding: 0;
  text-indent: 0;
  text-align: left;
  color: #3f4b59;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.about-intro__copy p:last-child {
  margin-bottom: 0;
}

.about-intro__emphasize {
  color: var(--about-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: -0.02em;
}

.about-intro__close {
  color: var(--about-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: -0.02em;
}

.about-intro__cta-copy {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--about-ink);
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.about-intro__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--about-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-sizing: border-box;
}

.about-intro__cta:hover {
  background: var(--about-blue-hover);
  color: #fff;
}

@media (max-width: 1024px) {
  .about-intro__inner {
    column-gap: 48px;
  }

  .about-intro__aside {
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .about-intro {
    min-height: 0;
    padding: 48px 0 56px;
  }

  .about-intro::before {
    background-position: 70% center;
    filter: blur(10px) saturate(0.48) brightness(1.28) hue-rotate(6deg);
  }

  .about-intro::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(247, 250, 253, 0.86) 100%
    );
  }

  .about-intro__inner {
    display: flex;
    flex-direction: column;
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.86);
  }

  .about-intro__aside {
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 260px;
    margin: 8px auto 8px;
  }

  .about-intro__photo,
  .about-proof {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .about-proof {
    border-radius: 14px;
  }

  .about-intro__copy p {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .about-intro__emphasize,
  .about-intro__close {
    font-size: 18px;
  }

  .about-intro h1 {
    margin-bottom: 28px;
  }

  .about-intro__rest {
    width: 100%;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-intro__cta-copy {
    width: 100%;
    text-align: center;
  }

  .about-intro__cta {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1024px) {
  .inner-main {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 56px;
  }

  .inner-main .consult-box {
    grid-template-columns: 1fr;
  }
}

/* 서비스 목록: 고정 배경 (문답넷형 — 배경 고정, 콘텐츠만 스크롤) */
body.svc-bg {
  --svc-bg-fallback: #f5f8fc;
  background-color: var(--svc-bg-fallback);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.82) 42%,
      rgba(245, 248, 252, 0.86) 100%
    ),
    url("../images/services-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.svc-page {
  --svc-ink: #0d1b2a;
  --svc-muted: #5c6570;
  --svc-blue: #1a73e8;
  --svc-line: #e8edf2;
  background: transparent;
}

.svc-hero {
  padding: 22px 24px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(232, 237, 242, 0.95);
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.04);
  backdrop-filter: blur(6px);
}

.svc-hero h1 {
  color: var(--svc-ink);
  letter-spacing: -0.03em;
}

.svc-hero p {
  max-width: 720px;
  color: var(--svc-muted);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--svc-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.06);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.1);
}

.svc-card__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.svc-card__main:focus-visible {
  outline: 2px solid var(--svc-blue);
  outline-offset: -2px;
}

.svc-card__footer {
  padding: 0 20px 18px;
}

.svc-card:focus-visible {
  outline: 2px solid var(--svc-blue);
  outline-offset: 3px;
}

.svc-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
  border-bottom: 0;
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  /* keep logo edges sharp during card hover transforms */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.svc-card__media--brand {
  background: #fff;
  padding: 0;
}

.svc-card__media--brand img {
  object-fit: contain;
  object-position: center;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 12px;
}

.svc-card__name {
  color: var(--svc-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.svc-card__desc {
  color: var(--svc-muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.svc-card__more {
  margin-top: 0;
  color: var(--svc-blue);
  font-size: 14px;
  font-weight: 600;
}

.svc-detail {
  max-width: 720px;
}

.svc-detail__figure {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--svc-line);
  border-radius: 16px;
  background: #f5f8fc;
}

.svc-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.svc-detail h1 {
  margin: 0 0 16px;
  color: var(--svc-ink);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.svc-detail p {
  margin: 0 0 16px;
  color: var(--svc-muted);
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
}

.svc-detail p:last-of-type {
  margin-bottom: 32px;
}

.svc-detail__back {
  color: var(--svc-blue);
  font-weight: 600;
}

@media (min-width: 640px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* 모바일: fixed 배경 불안정 → scroll로 대체 */
@media (max-width: 768px) {
  body.svc-bg {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
  }

  .svc-hero {
    padding: 18px 16px;
    backdrop-filter: none;
  }

  .inner-main {
    width: 100%;
    margin: 20px 0 0;
    padding: 0 16px 24px;
    box-sizing: border-box;
  }

  .inner-main .consult-box {
    grid-template-columns: 1fr;
  }
}
