/** 
 * 가훈좌우명 프로젝트 Styles
 * 프리미엄 붓글씨의 멋을 살린 블랙/화이트, 여백 테마
 */

/* ==================================
   Base & Resets
   ================================== */
:root {
    --color-bg: #fdfdfd;         /* 고급스러운 미색을 띈 한지 톤 */
    --color-text: #111111;       /* 먹물처럼 짙은 블랙 */
    --color-text-mut: #666666;
    --color-accent: #2e2e2e;
    --color-border: #e2e2e2;
    --font-heading: 'Noto Serif KR', serif; /* 명조체 */
    --font-body: 'Inter', 'Noto Serif KR', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-mut);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-text-mut);
    padding-bottom: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-mut);
    max-width: 600px;
    line-height: 1.8;
}

/* Typography elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--color-text);
    background-color: transparent;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.2rem;
}

/* ==================================
   Header
   ================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--color-text);
    border-radius: var(--border-radius);
}

.nav-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* ==================================
   Hero
   ================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.85; /* make it softer */
    mix-blend-mode: multiply;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(253, 253, 253, 0.7) 0%, rgba(253, 253, 253, 1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 24px;
    color: var(--color-text-mut);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #000;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-text-mut);
    margin-bottom: 48px;
    line-height: 1.8;
}

/* ==================================
   About
   ================================== */
.about-section {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
    padding: 24px 24px 0 0;
}

.about-image {
    width: 100%;
    object-fit: cover;
    border-radius: 2px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.image-deco {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    z-index: 1;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-accent);
    margin-top: 40px;
    padding-left: 24px;
    border-left: 3px solid var(--color-text);
}

/* ==================================
   Volunteer Section
   ================================== */
.volunteer-section {
    background-color: #f7f7f7;
    position: relative;
}

.volunteer-header {
    text-align: center;
    margin-bottom: 80px;
}

.volunteer-header .section-desc {
    margin: 0 auto;
}

.volunteer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.stat-item {
    background: #fff;
    padding: 60px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-mut);
    letter-spacing: 1px;
}

.volunteer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text-mut);
}

.volunteer-content p {
    margin-bottom: 24px;
}

/* ==================================
   Products
   ================================== */
.products-section {
    background-color: #fff;
}

.products-header {
    margin-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 120px;
}

.product-card {
    group: product;
    cursor: pointer;
}

.product-image-wrap {
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #f5f5f5;
    aspect-ratio: 4/5;
    position: relative;
    border-radius: var(--border-radius);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding-right: 16px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--color-text-mut);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.cta-box {
    background-color: #1a1a1a;
    color: #fff;
    padding: 100px 40px;
    text-align: center;
    border-radius: var(--border-radius);
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 48px;
}

.btn-primary.btn-large {
    background-color: #fff;
    color: #1a1a1a;
    border: none;
}

.btn-primary.btn-large:hover {
    background-color: #eee;
}

.cta-notice {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 24px;
}

/* ==================================
   Catalog Accordion & Table
   ================================== */
.catalog-container {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

.catalog-main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 12px;
    text-align: center;
}

.catalog-desc {
    text-align: center;
    color: var(--color-text-mut);
    margin-bottom: 60px;
}

.catalog-section {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-text);
}

.catalog-item {
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.catalog-item summary {
    padding: 20px 24px;
    background-color: #fcfcfc;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    user-select: none;
    transition: background-color 0.2s;
}

.catalog-item summary::-webkit-details-marker {
    display: none;
}

.catalog-item summary:hover {
    background-color: #f5f5f5;
}

.catalog-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
}

.catalog-item[open] summary::after {
    content: '−';
}

.catalog-details-content {
    padding: 0 24px 24px;
    background-color: #fff;
    overflow-x: auto;
}

.catalog-details-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    min-width: 600px;
}

.catalog-details-content th, .catalog-details-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.95rem;
}

.catalog-details-content th {
    font-weight: 600;
    color: var(--color-text-mut);
    background-color: #fafafa;
}

.catalog-details-content td strong {
    color: var(--color-text);
    font-size: 1rem;
    display: inline-block;
    padding-top: 8px;
    padding-bottom: 4px;
}

.catalog-details-content .sub-row td:first-child {
    padding-left: 32px;
    color: var(--color-text-mut);
}


/* ==================================
   Footer
   ================================== */
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--color-text-mut);
    line-height: 1.8;
}

.footer-contact p {
    color: var(--color-text-mut);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-contact strong {
    color: var(--color-text);
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-mut);
    font-size: 0.9rem;
}

/* ==================================
   Animations
   ================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-title { font-size: 3rem; }
    .volunteer-stats { grid-template-columns: 1fr; }
    .stat-item { padding: 40px 20px; }
}

@media (max-width: 600px) {
    .nav { display: none; }
    .hero-title { font-size: 2.2rem; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 40px; }
    .section { padding: 80px 0; }
    .cta-box { padding: 60px 20px; }
    .cta-title { font-size: 2rem; }
}
