/* ==========================================================================
   어반픽스 — HUB (전체 서비스 안내)
   ========================================================================== */

:root {
  --cream: #FAFAF8;
  --ink-light: #EEF0F0;
  --accent: #C97A3A;
  --text: #23272A;

  --font-display: Georgia, 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --container: 1220px;
  --edge: clamp(1.25rem, 5vw, 4rem);

  --gap-section: clamp(4rem, 10vw, 8rem);
  --gap-block: clamp(2rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

section { padding: var(--gap-section) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(35, 39, 42, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  transition: padding .25s ease;
}
.site-header.is-compact .wrap { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text);
}
.brand span { color: var(--accent); }
.brand-icon { border-radius: 50%; flex-shrink: 0; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: clamp(0.8rem, 2vw, 1.6rem); }
.main-nav a {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.78;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { opacity: 1; border-color: var(--accent); }
.header-cta {
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent); color: var(--cream); }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { order: 2; padding: 0.45rem 0.85rem; font-size: 0.82rem; }
  .brand { order: 1; }
  .mobile-nav { display: block; position: relative; order: 3; }
  .mobile-nav summary {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.4rem 0 0.4rem 1rem;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { color: var(--accent); }
  .mobile-nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--cream);
    border: 1px solid rgba(35,39,42,0.12);
    padding: 0.6rem 0;
    min-width: 10rem;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(35,39,42,0.08);
  }
  .mobile-nav li a { display: block; padding: 0.55rem 1.1rem; font-size: 0.92rem; }
}

/* ---------- Opening ---------- */
.opening {
  padding-top: clamp(3.5rem, 10vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.opening .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.3rem;
  display: block;
}
.opening h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: clamp(1.3rem, 3vw, 2rem);
}
.opening .lede {
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.85;
  color: rgba(35,39,42,0.86);
}
.opening .lede p + p { margin-top: 1rem; }

/* ---------- Split Hero (image + text) ---------- */
.split-hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-hero.flip .wrap { direction: rtl; }
.split-hero.flip .wrap > * { direction: ltr; }
.split-hero .media { border-radius: 3px; overflow: hidden; }
.split-hero .media img { width: 100%; height: auto; }
.hero-slider { position: relative; aspect-ratio: 4/5; background: var(--ink-light); }
.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slider .slide.is-active { opacity: 1; }
.split-hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.3rem;
  display: block;
}
.split-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}
.split-hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  line-height: 1.85;
  color: rgba(35,39,42,0.86);
}
.split-hero .lede p + p { margin-top: 1rem; }
@media (max-width: 800px) {
  .split-hero .wrap { grid-template-columns: 1fr; }
  .split-hero .media { order: -1; }
}

/* ---------- Section heading (shared) ---------- */
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head .en {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  display: block;
}
.section-head h2 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
.section-head .sub { margin-top: 0.8rem; max-width: 34rem; color: rgba(35,39,42,0.78); }

/* ---------- Category Rows (MAIN) — 사진 왼쪽 / 주제 오른쪽 ---------- */
.category-list { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.2rem); }
.category-row {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: clamp(1.5rem, 4vw, 2.8rem);
  align-items: center;
  padding-bottom: clamp(1.5rem, 3vw, 2.2rem);
  padding-left: 1rem;
  border-bottom: 1px solid rgba(35,39,42,0.1);
  border-left: 2px solid transparent;
  transition: border-color .25s ease;
}
.category-list .category-row:last-child { border-bottom: none; padding-bottom: 0; }
.category-row:hover { border-left-color: var(--accent); }
.category-row .img-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; background: var(--ink-light); }
.category-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-row:hover img { transform: scale(1.04); }
.category-row .cap .kr { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); transition: color .2s ease; }
.category-row:hover .cap .kr { color: var(--accent); }
.category-row .cap .arrow { color: var(--accent); margin-left: 0.4rem; }
.category-row .cap .desc { margin-top: 0.6rem; font-size: 0.95rem; color: rgba(35,39,42,0.72); max-width: 32rem; }
.category-row .cap .detail { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.6; color: rgba(35,39,42,0.55); max-width: 36rem; }
@media (max-width: 640px) {
  .category-row { grid-template-columns: 1fr; }
}

/* ---------- Rhythm Gallery (real work photos, varied sizes) ---------- */
.rhythm-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.rhythm-gallery figure { border-radius: 3px; overflow: hidden; margin: 0; background: var(--ink-light); }
.rhythm-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhythm-gallery .g-a { grid-column: span 5; grid-row: 1; aspect-ratio: 3/4; }
.rhythm-gallery .g-b { grid-column: span 7; grid-row: 1; align-self: stretch; }
.rhythm-gallery .g-c { grid-column: span 4; aspect-ratio: 1/1; }
.rhythm-gallery .g-d { grid-column: span 4; aspect-ratio: 1/1; }
.rhythm-gallery .g-e { grid-column: span 4; aspect-ratio: 1/1; }
.rhythm-gallery .g-f { grid-column: span 6; aspect-ratio: 4/3; }
.rhythm-gallery .g-g { grid-column: span 6; aspect-ratio: 4/3; }
.rhythm-gallery .g-h { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 760px) {
  .rhythm-gallery .g-a, .rhythm-gallery .g-b, .rhythm-gallery .g-c,
  .rhythm-gallery .g-d, .rhythm-gallery .g-e, .rhythm-gallery .g-f,
  .rhythm-gallery .g-g, .rhythm-gallery .g-h {
    grid-column: span 12;
    grid-row: auto;
    aspect-ratio: 4/3;
  }
}

/* ---------- About ---------- */
.about-block { max-width: 42rem; }
.about-block p { font-size: 1.02rem; color: rgba(35,39,42,0.85); }
.about-block p + p { margin-top: 1rem; }

/* ---------- Member Grid (CATEGORY page — real site cards) ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}
.member-card { display: block; border-radius: 3px; overflow: hidden; border: 1px solid rgba(35,39,42,0.08); }
.member-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--ink-light); }
.member-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.member-card:hover img { transform: scale(1.04); }
.member-card .cap { padding: 1rem 1.1rem 1.2rem; }
.member-card .cap .kr { font-size: 1.05rem; font-weight: 700; }
.member-card .cap .intent { margin-top: 0.4rem; font-size: 0.88rem; color: rgba(35,39,42,0.65); }
.member-card .cap .go { margin-top: 0.7rem; font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* ---------- Back to main link ---------- */
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9rem; color: rgba(35,39,42,0.6); }
.back-link:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq .item { border-top: 1px solid rgba(35,39,42,0.12); }
.faq .item:last-child { border-bottom: 1px solid rgba(35,39,42,0.12); }
.faq .item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.6rem 1.1rem 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  gap: 0.7rem;
  position: relative;
}
.faq .item summary::-webkit-details-marker { display: none; }
.faq .item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.2rem;
}
.faq .item[open] summary::after { content: '–'; }
.faq .q-mark { color: var(--accent); }
.faq .a { padding: 0 1.6rem 1.2rem 1.6rem; color: rgba(35,39,42,0.8); font-size: 0.96rem; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.2;
}
.final-cta p { margin-top: 1.2rem; font-size: 1.02rem; color: rgba(35,39,42,0.8); }
.cta-button {
  display: inline-block;
  margin-top: clamp(1.8rem, 4vw, 2.4rem);
  border: 1px solid var(--accent);
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}
.cta-button:hover { background: var(--accent); color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(35,39,42,0.12);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ink-light);
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.footer-brand span { color: var(--accent); }
.footer-info { margin-top: 1rem; font-size: 0.9rem; color: rgba(35,39,42,0.75); line-height: 2; }
.footer-tel { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.footer-tel-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; max-width: 20rem; }
.footer-nav a { font-size: 0.9rem; opacity: 0.78; }
.footer-nav a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(35,39,42,0.1);
  font-size: 0.8rem;
  color: rgba(35,39,42,0.55);
}
