/*
Theme Name: NovaQD Custom
Theme URI: https://novaqd.com
Author: NovaQD Team
Author URI: https://novaqd.com
Description: NovaQD custom WordPress theme with Pretendard font and brand colors.
Version: 1.0.0
License: GPL v2 or later
Text Domain: novaqd-custom
*/

/* Brand Colors */
:root {
    --color-brand: #2860AF;
    --color-brand-dark: #163E77;
    --color-brand-light: #4A7FC7;
    --color-brand-hover: #2251A0;
    --color-primary: var(--color-brand);
    --color-secondary: #2563EB;
}

/* Pretendard Font Override */
body,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif !important;
}

/* Font Smoothing */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Pretendard Font Weight Mapping */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Brand Color Classes */
.text-brand { color: var(--color-brand); }
.bg-brand { background-color: var(--color-brand); }
.bg-brand-dark { background-color: var(--color-brand-dark); }
.border-brand { border-color: var(--color-brand); }

.hover\:text-brand:hover { color: var(--color-brand); }
.hover\:bg-brand:hover { background-color: var(--color-brand); }
.hover\:border-brand:hover { border-color: var(--color-brand); }

/* ================================================
   Section Headers - Reusable Components
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--color-brand);
    font-weight: 700;
    letter-spacing: -0.18px;
    font-size: 18px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.dark .section-subtitle {
    color: #60a5fa; /* blue-400 */
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #333; /* gray-900 */
    margin-bottom: 16px;
}

.dark .section-title {
    color: white;
}

.section-description {
    color: #666; /* gray-600 */
    font-size: 18px;
    letter-spacing: -0.36px;
    margin: 0 auto;
    line-height: 1.6;
}

.dark .section-description {
    color: #9ca3af; /* gray-400 */
}

/* Section with Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.divider-text {
    font-size: 32px;
    letter-spacing: -0.64px;
    font-weight: 700;
}

.section-divider-bar {
    width: 0.375rem;
    height: 2rem;
    background-color: var(--color-brand);
}

.dark .section-divider-bar {
    background-color: #3b82f6; /* blue-500 */
}

/* ================================================
   Subpage Navigation
   ================================================ */
.subpage-nav {
    width: 100%;
    background-color: var(--color-brand);
}

.subpage-nav-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 80rem;
    margin: 0 auto;
}

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

/* 단일 네비게이션 아이템 스타일 */
.subpage-nav-container.single-item {
    display: flex;
    justify-content: center;
    grid-template-columns: none;
}

.subpage-nav-container.single-item .nav-tab {
    width: 250px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .subpage-nav-container.single-item {
        grid-template-columns: none;
    }

    .subpage-nav-container.single-item .nav-tab {
        width: 300px;
    }

    .subpage-nav-container.single-item .nav-tab.inactive {
        border-right: none;
    }
}

.nav-tab {
    padding: 1.25rem 0;
    text-align: center;
    text-decoration: none;
    display: block;
    position: relative;
    transition: all 0.3s;
}

.nav-tab.inactive {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tab.inactive:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .nav-tab.inactive {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-tab.inactive:last-child {
        border-right: none;
    }
}

.nav-tab.active {
    background-color: white;
    color: var(--color-brand);
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 1px 8px 8px rgba(0, 0, 0, 0.5));
}

.nav-tab-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.54px;
}


/* ================================================
   Hero Section
   ================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

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

.hero-subtitle {
    font-size: 24px;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.48px;
}

/* ================================================
   AOS Custom Animation Distance
   ================================================ */
/* 짧은 거리 (20px) */
[data-aos][data-aos-distance="short"] {
    --aos-distance: 20px;
}

/* 중간 거리 (50px) - 기본값 */
[data-aos][data-aos-distance="medium"] {
    --aos-distance: 50px;
}

/* 긴 거리 (100px) */
[data-aos][data-aos-distance="long"] {
    --aos-distance: 100px;
}

/* 매우 긴 거리 (150px) */
[data-aos][data-aos-distance="extra-long"] {
    --aos-distance: 150px;
}

/* fade-up 애니메이션 거리 커스터마이징 */
[data-aos="fade-up"] {
    transform: translateY(var(--aos-distance, 50px));
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* fade-down 애니메이션 거리 커스터마이징 */
[data-aos="fade-down"] {
    transform: translateY(calc(-1 * var(--aos-distance, 50px)));
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

/* fade-right 애니메이션 거리 커스터마이징 */
[data-aos="fade-right"] {
    transform: translateX(calc(-1 * var(--aos-distance, 50px)));
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* fade-left 애니메이션 거리 커스터마이징 */
[data-aos="fade-left"] {
    transform: translateX(var(--aos-distance, 50px));
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ================================================
   CEO Greeting Page Styles
   ================================================ */
.greeting-content {
    line-height: 1.8;
}

.greeting-content p {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.dark .greeting-content p {
    color: #d1d5db;
}

.ceo-image-wrapper {
    position: relative;
}

.ceo-image-wrapper::before {
    content: '';
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    background: var(--color-brand);
    opacity: 0.05;
    border-radius: 1rem;
    z-index: -1;
}

@media (max-width: 1023px) {
    .ceo-image-wrapper::before {
        display: none;
    }
}