/* Brand tokens */
:root {
  --bg: #f3eee5;
  --bg-elevated: #f9f6f1;
  --card: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --accent: #c9a572;
  --accent-soft: rgba(201, 165, 114, 0.12);
  --text-main: #171717;
  --text-sub: #5f5f5f;
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 60px rgba(15, 12, 6, 0.16);
  --shadow-tiny: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, -sans-serif;
  background: radial-gradient(circle at top, #faf6ef 0, #f1ebe3 60%, #e9e1d6 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(243, 238, 229, 0.88), rgba(243, 238, 229, 0.78));
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

  .brand {
    display: flex;
    align-items: center;
  }

  /* 기존 텍스트 로고를 이미지 로고로 대체 */
  .brand-logo-img {
    height: 40px;
    width: auto;
  }

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.12);
}

/* 활성화된 네비게이션 링크 스타일 */
.nav-link.active {
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.12);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 28px;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #4a4a4a;
  border-radius: 99px;
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}

.nav-toggle span:first-child {
  top: 9px;
}

.nav-toggle span:last-child {
  bottom: 9px;
}

.nav-toggle.is-open span:first-child {
  top: 13px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  bottom: 13px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 72px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero-body {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: var(--radius-pill);
  border: none;
  font-size: 14px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(66, 44, 10, 0.35);
}

.btn.primary:hover {
  transform: none;
  box-shadow: 0 18px 40px rgba(66, 44, 10, 0.45);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn.ghost:hover {
  background: #ffffff;
  box-shadow: var(--shadow-tiny);
}

.btn.full {
  width: 100%;
}

.hero-visual {
  display: flex;
  /* 로고 컨테이너를 정확히 가운데에 배치합니다 */
  justify-content: flex-end;
  /* 좌우 여백을 제거하여 로고 카드가 배경 박스 중심에 위치하도록 합니다 */
  padding-left: 0;
}

  .hero-logo-wrap {
    position: relative;
    /* 확대된 로고 크기: 모바일에서도 적절히 조절됩니다 */
    width: clamp(360px, 48vw, 820px);
    aspect-ratio: 1 / 1;
    /* 카드 배경과 그림자를 제거하여 로고가 전체 배경에 바로 나타나도록 합니다 */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    /* 내부 요소를 가운데 정렬하여 로고의 위치를 그대로 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-left: auto;
    margin-right: 0;
    /* 테두리를 제거하여 카드 느낌을 없앱니다 */
    border: none;
  }

.hero-logo {
  display: block;
  /* 로고 이미지 크기를 컨테이너에 꽉 차도록 조정합니다 */
  width: 100%;
  height: auto;
  /* 그림자를 제거하여 로고가 평평하고 깨끗하게 보이도록 합니다 */
/* 부드러운 부유 및 빛나는 애니메이션은 그대로 유지합니다 */
  animation: none;
}

/* 내부 로고 카드: 로고 이미지를 감싸는 흰색 카드 */
.hero-logo-card {
  width: 80%;
  height: 80%;
  background: var(--card);
  /* 모서리를 더욱 둥글게 만들어 로고 카드의 사각형을 부드럽게 처리합니다 */
  border-radius: 40px;
  /* 내부 카드에는 그림자를 적용하지 않아 단순한 2단계 구조만 유지합니다 */
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 로고 링크를 카드 전체로 확장시켜 클릭 영역을 넓힙니다 */
.hero-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* 내부 링크도 동일한 둥근 모서리를 적용합니다 */
  border-radius: 40px;
  overflow: hidden;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  /* 오피스 주소 박스와 비슷한 입체감과 둥근 모서리를 부여합니다 */
  border-radius: 32px;
  padding: 24px 24px 24px;
  box-shadow: var(--shadow-soft);
  border: none;
}

.card-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.card-body {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-sub);
}

.card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-main);
}

/* About */
.section-about {
  padding-top: 48px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.body {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 18px;
}

.fact-list {
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fact-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fact-row dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-sub);
}

.fact-row dd {
  margin: 0;
  font-size: 14px;
}

.about-panel {
  display: flex;
  justify-content: flex-end;
}

.about-card {
  width: 100%;
  /* 기존 카드보다 30% 더 넓게 확장하여 정보 가독성을 높입니다 */
  max-width: 364px;
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.about-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin: 0 0 4px;
}

.about-label.mtop {
  margin-top: 14px;
}

.about-body {
  margin: 0;
  font-size: 14px;
  color: var(--text-main);
}

.about-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 165, 114, 0.4);
}

.about-body a:hover {
  border-bottom-color: rgba(201, 165, 114, 1);
}

/* Contact */
.section-contact {
  background: var(--bg-elevated);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: flex-start;
}

.info-block + .info-block {
  margin-top: 22px;
}

.info-title {
  font-size: 15px;
  margin: 0 0 8px;
}

.info-highlight {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-main);
}

.info-highlight a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 165, 114, 0.5);
}

.info-highlight a:hover {
  border-bottom-color: rgba(201, 165, 114, 1);
}

.info-list {
  margin: 0;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: flex;
  gap: 14px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.field input,
.field select,
.field textarea {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  resize: vertical;
}

.field textarea {
  min-height: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(201, 165, 114, 0.9);
  box-shadow: 0 0 0 1px rgba(201, 165, 114, 0.2);
  background: #fff;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.check input {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.form-note {
  font-size: 12px;
  color: var(--text-sub);
  min-height: 16px;
  margin-top: 4px;
}

/* Footer */
.site-footer {
  padding: 18px 0 26px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
}

/* 푸터 링크 스타일 (게시판 링크 등) */
.footer-link {
  margin-left: 12px;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.12);
}

.footer-brand {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* To top button */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(23, 23, 23, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top span {
  font-size: 20px;
}

/* Animations */
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.26));
  }
  50% {
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.4));
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-list {
    position: fixed;
    inset: 64px 0 auto 0;
    padding: 14px 20px 18px;
    flex-direction: column;
    background: rgba(243, 238, 229, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    order: -1;
    justify-content: center;
  }

  .about-layout,
  .contact-layout,
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-panel {
    justify-content: flex-start;
  }

  .field-row {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 0 16px;
  }

  .header-inner {
    height: 56px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .section {
    padding: 44px 0;
  }

  .contact-form-wrap {
    padding: 18px 14px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 36px;
    height: 36px;
  }
}
