/*
 * HUGH 브랜드 리뉴얼 - 마스터 디자인 가이드북 (v2.0 - 애니메이션 버그 수정)
 * Creative Director: Gemini
 */

/* --- 1. 기본 및 폰트 설정 --- */
@font-face {
    font-family: 'SBAggroL';
    src: url('font/SB%20어그로OTF%20L.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SBAggroM';
    src: url('font/SB%20어그로OTF%20M.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'SBAggroB';
    src: url('font/SB%20어그로OTF%20B.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
    --bg-dark: #121212; 
    --surface-dark: #1E1E1E;
    --primary-text: #EAEAEA;
    --secondary-text: #A0A0A0;
    --accent-ember: #FFA000;
    --accent-ember-hover: #FFC107;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.8;
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--primary-text);
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px; /* body padding 대신 container에 적용 */
}

/* --- 2. 타이포그래피 --- */
h1, h2 {
    font-family: 'SBAggroM', serif;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    
}

h3 {
    font-family: 'SBAggroL', serif;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    word-break: keep-all;
}

p {
  word-break: keep-all;
}

.highlight {
    font-family: 'SBAggroB', sans-serif;
    font-weight: normal;
    color: var(--accent-ember);
}

/* --- 3. 공통 컴포넌트 (네비게이션, 헤더, 섹션, 푸터) --- */
nav {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--surface-dark);
    margin-bottom: 40px;
}

nav a {
    margin: 0 15px;
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-ember);
    text-decoration: underline;
}


header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; 
}

header .brand-intro {
    font-size: 1.3em;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 20px auto 40px;
}

section {
    padding: 80px 40px;
    margin-bottom: 20px;
    border-radius: 12px;
    background-color: var(--surface-dark);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- 애니메이션을 적용할 섹션만 투명하게 만듭니다. --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.9em;
    color: var(--secondary-text);
}

/* --- 4. 버튼 및 상호작용 --- */
.cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 15px 35px;
    background: linear-gradient(145deg, var(--accent-ember), #FF8F00);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.3);
    border: none;
}

.cta-button:hover {
    background: linear-gradient(145deg, var(--accent-ember-hover), #FFA000);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.learn-more-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 18px;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--accent-ember);
    background-color: transparent;
    border: 2px solid var(--accent-ember);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.learn-more-button:hover {
    background-color: var(--accent-ember);
    color: var(--bg-dark);
}

/* --- 5. 카드 디자인 --- */
.service-grid, .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card, .action-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover, .action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.5);
    border-color: var(--accent-ember);
}

.service-card h3, .action-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    color: var(--accent-ember);
}

.philosophy-block {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-dark);
    border-left: 5px solid var(--accent-ember);
    border-radius: 4px;
}
.philosophy-block ul { padding-left: 20px; }
.philosophy-block li { margin-bottom: 10px; }

/* --- 6. 상세 페이지 전용 스타일 --- */
.service-detail-section {
    padding: 40px;
}
.service-detail-section h2 {
    border-bottom: 2px solid var(--accent-ember);
    padding-bottom: 15px;
}
.test-item, .counseling-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--surface-dark);
}
.test-item:last-child, .counseling-item:last-child {
    border-bottom: none;
}
.test-item h3, .counseling-item h3 {
    font-family: 'SBAggroB', sans-serif;
    color: var(--primary-text);
    margin: 0;
    font-size: 1.6em;
}

.counseling-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}


/* --- 7. 기타 컴포넌트 (책 갤러리, 푸터 아이콘 등) --- */
.book-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.book-gallery img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}
.book-gallery img:hover {
    transform: scale(1.05);
}

#all-channels {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}
.social-icons a {
    display: inline-block;
    color: var(--secondary-text);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: var(--accent-ember);
    transform: scale(1.2);
}
.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* --- 8. 반응형 --- */
@media (max-width: 768px) {
    header h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    section { padding: 40px 20px; }
    .service-grid, .action-grid, .counseling-grid { grid-template-columns: 1fr; }
    nav a { margin: 0 10px; font-size: 0.9em;}
}

