/* 그리고북 - 정적 HTML 스타일시트 */

/* ============================================
   1. 기본 설정 및 색상 정의
   ============================================ */

:root {
  /* 브랜드 색상 */
  --blue-primary: #1e3a8a;      /* 신뢰의 파란색 */
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --orange-500: #f97316;        /* 따뜻한 오렌지 */
  --orange-600: #ea580c;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-900: #111827;
  
  /* 한지색 팔레트 */
  --hanji-light: #faf8f4;
  --hanji-dark: #1e3330;
  --hanji-gold: #d4a853;
  
  /* 타이포그래피 */
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  
  /* 간격 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* 그림자 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* 전환 */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* ============================================
   2. 리셋 및 기본 스타일
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   3. 헤더 및 네비게이션
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-slow);
  background-color: rgba(250, 248, 244, 0.98);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #e8e0d0;
}

header.scrolled {
  background-color: rgba(250, 248, 244, 0.98);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid #e8e0d0;
}

header:not(.scrolled) {
  background-color: rgba(250, 248, 244, 0.98);
  backdrop-filter: blur(4px);
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 4.5rem;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--gray-900);
  display: none;
}

header.scrolled .logo-text {
  color: var(--gray-900);
}

@media (min-width: 640px) {
  .logo-text {
    display: inline;
  }
}

/* 데스크탑 네비게이션 */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-item {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  border-radius: 0.125rem;
  color: #3a3a3a;
}

header.scrolled .nav-item {
  color: #3a3a3a;
}

header.scrolled .nav-item:hover {
  color: var(--blue-900);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 0.125rem;
  background-color: var(--hanji-gold);
  transition: width var(--transition-base);
  width: 0;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 80%;
}

/* 투고 버튼 */
.submit-btn {
  display: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.125rem;
  background-color: var(--blue-900);
  color: var(--hanji-light);
  transition: background-color var(--transition-base);
}

@media (min-width: 1024px) {
  .submit-btn {
    display: inline-block;
  }
}

.submit-btn:hover {
  background-color: #3a5f50;
}

/* 모바일 메뉴 버튼 */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.125rem;
  transition: color var(--transition-base);
  color: var(--blue-900);
}

header.scrolled .menu-toggle {
  color: var(--blue-900);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* 모바일 메뉴 */
.nav-mobile {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all var(--transition-base);
  background-color: rgba(250, 248, 244, 0.98);
  backdrop-filter: blur(4px);
  border-top: 1px solid #e8e0d0;
}

.nav-mobile.open {
  display: block;
  max-height: 500px;
  opacity: 1;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile-list {
  list-style: none;
  padding: 1rem;
}

.nav-mobile-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.125rem;
  transition: all var(--transition-base);
  color: #3a3a3a;
}

.nav-mobile-item:hover,
.nav-mobile-item.active {
  background-color: rgba(45, 74, 62, 0.1);
  color: var(--blue-900);
}

.nav-mobile-submit {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.125rem;
  background-color: var(--blue-900);
  color: var(--hanji-light);
  margin-top: 0.5rem;
  border-top: 1px solid #e8e0d0;
  transition: background-color var(--transition-base);
}

.nav-mobile-submit:hover {
  background-color: #3a5f50;
}

/* ============================================
   4. 메인 콘텐츠
   ============================================ */

main {
  padding-top: 5rem;
  min-height: 100vh;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   5. 섹션 스타일
   ============================================ */

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--blue-900);
  margin-bottom: 2rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 1rem;
}

/* ============================================
   6. 버튼 스타일
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.125rem;
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--orange-500);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--orange-600);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-900);
  border: 2px solid var(--blue-900);
}

.btn-outline:hover {
  background-color: var(--blue-900);
  color: var(--white);
}

/* ============================================
   7. 카드 스타일
   ============================================ */

.card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ============================================
   8. 푸터
   ============================================ */

footer {
  background-color: #2d5047;
  color: #c8bfb0;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

footer::before {
  content: '';
  display: block;
  height: 0.25rem;
  background: linear-gradient(to right, transparent, var(--hanji-gold), transparent);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.625rem;
}

.footer-section a {
  font-size: 0.875rem;
  color: #b8b8b8;
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: #f97316;
}

.footer-logo {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 20rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}


.footer-brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #e8e8e8;
  margin: 0;
}

.footer-brand-tagline {
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #b8b8b8;
  margin: 0.25rem 0 0 0;
}

.footer-description {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.6;
  margin: 1rem 0 0 0;
}

.contact-icon {
  margin-right: 0.5rem;
}

.footer-description {
  font-size: 0.875rem;
  color: #1e3a8a;
  line-height: 1.6;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-content .footer-section:nth-child(3) {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}

.footer-content .footer-section:nth-child(3) ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-content .footer-section:nth-child(3) h4 {
  display: none;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-content .footer-section:nth-child(3) {
    grid-column: auto;
    flex-direction: column;
  }
  
  .footer-content .footer-section:nth-child(3) ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.footer-section p {
  font-size: 0.875rem;
  color: #1e3a8a;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-section p strong {
  color: #1e3a8a;
}

.footer-section p a {
  color: #1e3a8a;
  text-decoration: none;
}

.footer-section p a:hover {
  color: #f97316;
  text-decoration: underline;
}

.footer-policy-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.footer-policy-bottom h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-policy-bottom ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0;
}

.footer-policy-bottom li {
  margin: 0;
}

.footer-policy-bottom a {
  font-size: 0.875rem;
  color: #1e3a8a;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-policy-bottom a:hover {
  color: #f97316;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #1e3a8a;
  margin: 0;
  margin-top: 0.75rem;
}

.footer-info {
  font-size: 0.875rem;
  color: #a89e90;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #a89e90;
}

.footer-bottom a {
  color: #a89e90;
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: var(--hanji-gold);
}

/* ============================================
   9. 반응형 디자인
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* ============================================
   10. 유틸리티 클래스
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-lg); }
.mt-3 { margin-top: var(--spacing-xl); }
.mt-4 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-xl); }
.mb-4 { margin-bottom: var(--spacing-2xl); }

.py-1 { padding: var(--spacing-md) 0; }
.py-2 { padding: var(--spacing-lg) 0; }
.py-3 { padding: var(--spacing-xl) 0; }
.py-4 { padding: var(--spacing-2xl) 0; }

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.gap-1 { gap: var(--spacing-md); }
.gap-2 { gap: var(--spacing-lg); }
.gap-3 { gap: var(--spacing-xl); }

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* 푸터 스타일 - 흰색 박스 통합 레이아웃 */
.footer-white-box {
    background-color: white;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-main-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* 로고 영역 */
.footer-logo-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    height: 90px;
    width: auto;
}

.footer-brand-text h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1a1a1a;
}

.footer-brand-text > p {
    margin: 0.15rem 0 0 0;
    font-size: 0.8rem;
    color: #666;
}

.footer-description {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
}

/* 바로가기 영역 */
.footer-links-area h4,
.footer-contact-area h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.footer-links-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-area li {
    margin-bottom: 0.3rem;
}

.footer-links-area a {
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-area a:hover {
    color: #f97316;
}

/* 연락처 영역 */
.footer-contact-area p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.footer-contact-area a {
    color: #1e3a8a;
    text-decoration: none;
}

.footer-contact-area a:hover {
    color: #f97316;
}

.contact-icon {
    margin-right: 0.3rem;
}

/* 하단: 정책 + 카피라이트 */
.footer-bottom-row {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-policy-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-policy-links a {
    font-size: 0.75rem;
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-policy-links a:hover {
    color: #f97316;
}

.footer-policy-links span {
    color: #d1d5db;
    font-size: 0.75rem;
}

.footer-copyright {
    font-size: 0.7rem;
    color: #999;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .footer-white-box {
        padding: 1.5rem;
    }

    .footer-main-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

