/* ===================================================================
   살롱 루미에르 (theme/07) - 보조 스타일
   본문은 Tailwind utility 중심. 이 파일은 grid 명시구조 / full-bleed /
   overflow / slider 보정 / CDN 한계 보정 / 버튼·카드 컴포넌트만 담당.
   포인트색(accent): #B76E79
   =================================================================== */

:root {
  --accent: #B76E79;
  --accent-dark: #a35e69;
  --ink: #111827;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* CDN Tailwind 환경에서 큰 컨테이너 overflow 방지 */
img { max-width: 100%; }

/* ===================== 섹션 공통 타이틀 ===================== */
.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.8125rem;            /* 13px */
  letter-spacing: 0.35em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-eyebrow.\!text-left { text-align: left; }

.section-title {
  text-align: center;
  font-size: 1.875rem;             /* 30px base */
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }   /* 40px */
}
@media (min-width: 1280px) {
  .section-title { font-size: 3rem; }      /* 48px */
}
.section-title.\!text-left { text-align: left; }
.section-title.\!text-white { color: #fff; }

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 0.9375rem;            /* 15px */
  line-height: 1.7;
  color: #6b7280;
}
@media (min-width: 768px) { .section-desc { font-size: 1rem; } }
.section-desc.\!text-white\/60 { color: rgba(255,255,255,0.6); }

/* ===================== 버튼 ===================== */
/* display는 HTML 측 Tailwind 유틸(inline-flex / flex / hidden)이 담당한다.
   여기서 display 를 강제하면 반응형 hidden 유틸을 덮어쓰므로 지정하지 않음. */
.btn-accent,
.btn-dark,
.btn-outline,
.btn-ghost-light {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease,
              border-color .25s ease, transform .15s ease, box-shadow .25s ease;
}
/* accent (포인트) */
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(183,110,121,0.6);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(183,110,121,0.7); }
.btn-accent:active { transform: translateY(0); box-shadow: 0 4px 12px -6px rgba(183,110,121,0.6); }
.btn-accent:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* dark (어두운 알약) */
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-dark:active { transform: translateY(0); }

/* outline (흰 배경 라인) */
.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid #e5e7eb;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }

/* ghost light (반투명 흰색 - 어두운 배경/이미지 위) */
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); border-color: #fff; transform: translateY(-2px); }
.btn-ghost-light:active { transform: translateY(0); }

/* ===================== 헤더 / 네비 ===================== */
#siteHeader.is-scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 24px -16px rgba(0,0,0,0.25);
}
.nav-link {
  color: #374151;
  border-radius: 9999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--accent); }

.m-link { color: #374151; transition: color .2s, background-color .2s; }
.m-link:hover, .m-link.is-active { color: var(--accent); background: rgba(183,110,121,0.06); }

/* hero scroll line */
.scroll-line { animation: scrollPulse 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ===================== Services grid ===================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; } }
@media (min-width: 1280px) { .svc-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }

.svc-card {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.svc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.svc-card:hover .svc-img { transform: scale(1.08); }
.svc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
  transition: background .3s ease;
}
.svc-card:hover .svc-overlay { background: linear-gradient(to top, rgba(183,110,121,0.85) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 100%); }
.svc-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.1rem 1.25rem;
}
.svc-more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.7rem;
  font-size: 0.75rem; font-weight: 600;
  color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.svc-card:hover .svc-more { opacity: 1; transform: translateY(0); }

/* ===================== About grid ===================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; }
}
.about-grid > * { min-width: 0; }

/* ===================== Portfolio masonry grid ===================== */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-auto-rows: 180px;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .folio-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    grid-auto-rows: 230px;
    gap: 1rem;
  }
}
.folio-item {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #f3f4f6;
}
/* 큰 세로(좌측) - 2행 차지 */
.folio-tall { grid-row: span 2; }
/* 넓은 카드(하단) - 2열 차지(PC) */
@media (min-width: 768px) { .folio-wide { grid-column: span 2; } }

.folio-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.folio-item:hover .folio-img { transform: scale(1.07); }
.folio-cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.folio-item:hover .folio-cap { opacity: 1; }
.folio-tag {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.folio-name { color: #fff; font-size: 0.95rem; font-weight: 700; }

/* ===================== Team grid ===================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; } }

.team-card {
  position: relative;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111;
}
.team-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .6s ease, filter .5s ease;
}
.team-card:hover .team-img { filter: grayscale(0); transform: scale(1.06); }
.team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 100%);
}
.team-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 1.1rem;
}
.team-role-top {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
  color: #fff;
  background: rgba(183,110,121,0.9);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
}

/* ===================== Reviews ===================== */
.review-swiper { overflow: visible; }
.review-card {
  height: 100%;
  background: #fff;
  border: 1px solid #f1f1f0;
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 10px 30px -22px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.review-stars i {
  font-size: 15px;
  line-height: 1;
  color: var(--accent);
}
.review-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #4b5563;
  flex: 1;
}
.review-author {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #f1f1f0;
}
.review-ava {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(183,110,121,0.12);
  color: var(--accent);
  font-weight: 700; font-size: 0.9rem;
}
.review-aname { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.review-acat { font-size: 0.75rem; color: #9ca3af; margin-top: 1px; }

/* swiper pagination */
.review-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: #d1d5db; opacity: 1;
  transition: width .3s ease, background .3s ease;
  border-radius: 9999px;
}
.review-pagination .swiper-pagination-bullet-active {
  width: 26px; background: var(--accent);
}

/* ===================== Location ===================== */
.loc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .loc-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 3.5rem; }
}
.loc-grid > * { min-width: 0; }
.loc-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(183,110,121,0.1);
  color: var(--accent);
}

/* ===================== Footer grid ===================== */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr; gap: 2rem; }
}
.footer-grid > * { min-width: 0; }

/* ===================== Footer family-site select ===================== */
.family-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.family-select:hover { border-color: var(--accent); }
.family-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.family-select option { color: #1a1a1a; }
.family-select-caret {
  position: absolute;
  top: 50%; right: 1rem;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

/* ===================== 진입 팝업 ===================== */
#introPopup.is-open { display: flex; }
#introPopup.is-open #popupOverlay { opacity: 1; }
#introPopup.is-open #popupCard { opacity: 1; transform: none; }

/* ===================== Mobile menu open state ===================== */
/* Tailwind 4 의 translate-x-full 은 transform 이 아니라 translate 속성을
   사용하므로(translate:100%), 열림 상태는 translate 로 직접 제어한다. */
#menuPanel { transition: translate .3s ease; }
#mobileMenu.is-open { display: block; }
#mobileMenu.is-open #menuOverlay { opacity: 1; }
#mobileMenu.is-open #menuPanel { translate: 0 0 !important; }
body.menu-lock { overflow: hidden; }

/* ===================== Top button visible ===================== */
#topBtn.is-visible { opacity: 1; pointer-events: auto; }

/* AOS 비활성 시 콘텐츠가 가려지지 않도록(보조) */
[data-aos]:not(.aos-animate) { will-change: opacity, transform; }
