/* ==========================================================================
   717STUDIO — layout.css
   STEP 2: Header / Hero / Glance / Services / Metrics / About / Footer / Mobile bar
   (토큰·Bootstrap 오버라이드는 style.css 참고)
   ========================================================================== */

body {
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Icons ------------------------------------------------------------------ */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header .navbar {
  min-height: var(--header-h);
  padding: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 22px;
  transition: filter var(--transition);
}

.gnb .nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}

.gnb .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.gnb .nav-link:hover,
.gnb .nav-link.is-active {
  color: var(--c-white);
}

.gnb .nav-link:hover::after,
.gnb .nav-link.is-active::after {
  transform: scaleX(1);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--c-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header.is-scrolled .brand-logo {
  filter: invert(1);
}

.site-header.is-scrolled .gnb .nav-link {
  color: var(--c-charcoal);
}

.site-header.is-scrolled .gnb .nav-link:hover,
.site-header.is-scrolled .gnb .nav-link.is-active {
  color: var(--c-black);
}

.site-header.is-scrolled .btn-gold {
  --bs-btn-bg: var(--c-black);
  --bs-btn-border-color: var(--c-black);
  --bs-btn-color: var(--c-white);
  --bs-btn-hover-bg: var(--c-gold-dark);
  --bs-btn-hover-border-color: var(--c-gold-dark);
  --bs-btn-hover-color: var(--c-white);
}

/* 햄버거 */
.navbar-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0.75rem 0.5rem;
  border: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-bar,
.toggler-bar::before,
.toggler-bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  transition: background var(--transition);
}

.toggler-bar {
  position: relative;
}

.toggler-bar::before,
.toggler-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.toggler-bar::before {
  top: -7px;
}

.toggler-bar::after {
  top: 7px;
}

.site-header.is-scrolled .toggler-bar,
.site-header.is-scrolled .toggler-bar::before,
.site-header.is-scrolled .toggler-bar::after {
  background: var(--c-black);
}

/* Offcanvas */
.offcanvas {
  --bs-offcanvas-width: min(320px, 85vw);
}

.offcanvas-logo {
  width: auto;
  height: 20px;
}

.gnb-mobile .nav-link {
  padding: 1rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-black);
  border-bottom: 1px solid var(--c-line);
}

.gnb-mobile .nav-link.is-active {
  color: var(--c-gold-dark);
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: var(--space-section-sm);
  overflow: hidden;
}

.hero-eyebrow {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--c-gold);
}

.hero-title {
  margin-bottom: var(--space-3);
  font-size: clamp(1.5rem, 5.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-white);
}

.hero-lead {
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.78);
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  margin: 0 auto;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--c-gold);
  pointer-events: none;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero .btn-outline-light {
  --bs-btn-border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 575.98px) {
  .hero-photo {
    max-height: 380px;
    margin-right: 12px;
  }
}

@media (min-width: 992px) {
  .hero {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: var(--space-section);
  }

  .hero-photo {
    max-width: 440px;
    max-height: 550px;
  }

  .hero-actions {
    flex-direction: column !important;
  }
}

/* 한눈에 보기 */
.glance {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}

.glance-grid > div {
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.glance-grid > div:nth-child(2n) {
  border-right: 0;
}

.glance-grid > div:nth-child(n + 3) {
  border-bottom: 0;
}

.glance-item {
  padding: 1.75rem 0.75rem;
  text-align: center;
}

.glance-item .icon {
  margin-bottom: 0.5rem;
  color: var(--c-gold-dark);
}

.glance-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--c-gray);
}

.glance-value {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-black);
}

.glance-value a {
  text-decoration: none;
}

.glance-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--c-charcoal);
}

@media (min-width: 992px) {
  .glance-grid > div {
    border-bottom: 0;
    border-right: 1px solid var(--c-line);
  }

  .glance-grid > div:last-child {
    border-right: 0;
  }

  .glance-item {
    padding: 2.25rem 1rem;
  }
}

/* 촬영 종류 카드 */
.service-no {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-gold-dark);
}

/* ABOUT */
.strengths {
  margin: 0;
  padding: 0;
  list-style: none;
}

.strengths li {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--c-line);
}

.strengths li:last-child {
  border-bottom: 1px solid var(--c-line);
}

.strengths .service-no {
  margin: 0.2rem 0 0;
}

.strengths h3 {
  margin-bottom: 0.35rem;
  font-size: 1.125rem;
}

.strengths p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding: 56px 0 32px;
  background: var(--c-black);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--c-gold);
}

.footer-logo {
  display: block;
  width: auto;
  height: 24px;
  margin-bottom: 1rem;
}

.footer-tag {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-info {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.4rem 0.5rem;
  margin: 0;
}

.footer-info dt {
  font-weight: 600;
  color: var(--c-gold);
}

.footer-info dd {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-copy {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

/* Mobile fixed bar ------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-black);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.mobile-bar .icon {
  width: 20px;
  height: 20px;
}

.mobile-bar a.is-primary {
  background: var(--c-gold);
  color: var(--c-black);
}

.footer-credit {
  margin: 0.4rem 0 0;
  font-size: 0.6875rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.46);
}

/* 히어로 스크롤 안내 화살표 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
}

.hero-scroll-arrow {
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border-right: 2px solid var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  transform: rotate(45deg);
  animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}

.hero-scroll:hover .hero-scroll-arrow {
  border-color: var(--c-white);
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(8px) rotate(45deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow {
    animation: none;
  }
}

/* 히어로 버튼: 둥근 알약 모양 */
.hero .btn-pill {
  min-width: 150px;
  border-radius: 999px;
}

/* 모바일·태블릿: 하단 스크롤 화살표가 버튼과 겹치지 않도록 여백 확보 */
@media (max-width: 991.98px) {
  .hero {
    padding-bottom: 88px;
  }
}

/* 히어로 키워드 4개: 인스타그램 해시태그 스타일 (# 은 CSS 로 붙여 h1 텍스트는 키워드만 유지) */
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin: 0.25rem auto 1.5rem;
  font-family: "Gowun Dodum", var(--font-base);
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #7d98ba; /* 낮은 채도의 더스티 블루 (어두운 배경 대비 약 6:1) */
}

.hero-keywords a::before {
  content: "#";
  margin-right: 0.08em;
  font-weight: 400;
  color: inherit;
}

/* 1400px 미만: 해시태그를 2×2 로 배치 (한 줄에 4개가 들어가지 않는 폭에서 3+1 로 갈라지는 것 방지) */
@media (max-width: 1399.98px) {
  .hero-keywords {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    column-gap: 1.1rem;
  }
}

/* 해시태그 링크: 밑줄 없이 같은 색, 마우스를 올리면 살짝 밝아짐 */
.hero-keywords a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-keywords a:hover,
.hero-keywords a:focus-visible {
  color: #a9c0dd;
}

/* ���� �ٷΰ��� (Ű���� ��Ŀ�� �ÿ��� ǥ��) */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--c-gold);
  color: var(--c-black);
  font-weight: 700;
}

/* 푸터 전화번호: 밑줄 표시 */
.site-footer a[href^="tel:"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}
