/*
Theme Name: Acheron Code Theme
Theme URI: https://acheron.ai.kr
Author: 비랜딩 (blanding.kr)
Author URI: https://blanding.kr
Description: 아케론 공식 사이트를 Elementor 없이 PHP, HTML, CSS, JavaScript로 구동하는 전용 테마입니다.
Version: 1.0.0
Text Domain: acheron-code
*/

:root {
    --acheron-bg: #030614;
    --acheron-surface: #0f172a;
    --acheron-line: #1e293b;
    --acheron-text: #f8fafc;
    --acheron-muted: #94a3b8;
    --acheron-blue: #38bdf8;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--acheron-bg);
    color: var(--acheron-text);
    font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body,
body * {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    background: #fff;
    color: #111;
}

.site-main,
.acheron-static-page,
.acheron-shortcode-page,
.acheron-static-content,
.acheron-shortcode-content {
    width: 100%;
    min-height: 50vh;
}

.acheron-static-content > .elementor,
.acheron-static-content .e-con,
.acheron-static-content .elementor-element,
.acheron-static-content .elementor-widget-container,
.acheron-shortcode-content > div {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.acheron-dynamic-single {
    overflow-x: clip;
}

.agent-profile-list {
    display: grid;
    gap: 13px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: #cbd5e1;
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    line-height: 1.7;
}

.agent-profile-list li {
    position: relative;
    padding-left: 22px;
    word-break: keep-all;
}

.agent-profile-list li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #38bdf8;
    content: "•";
    font-weight: 900;
}

@media (max-width: 768px) {
    .agent-profile-list {
        width: 100%;
        text-align: left;
    }
}

/* Elementor가 제공하던 Swiper 표시 기능을 가벼운 테마 코드로 대체합니다. */
.acherom-work-container .swiper {
    position: relative;
    overflow: hidden;
}

.acherom-work-container .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.acherom-work-container .acheron-mini-swiper .swiper-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.acherom-work-container .acheron-mini-swiper .swiper-slide.is-active {
    display: block;
}

.acherom-work-container .swiper-button-next,
.acherom-work-container .swiper-button-prev {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(3, 6, 20, 0.55);
    color: #fff;
    cursor: pointer;
}

.acherom-work-container .swiper-button-prev {
    left: 18px;
}

.acherom-work-container .swiper-button-next {
    right: 18px;
}

.acherom-work-container .swiper-button-prev::after,
.acherom-work-container .swiper-button-next::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.acherom-work-container .swiper-button-prev::after {
    content: "‹";
}

.acherom-work-container .swiper-button-next::after {
    content: "›";
}

.acherom-work-container .swiper-pagination {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 18px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.acherom-work-container .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.acherom-work-container .swiper-pagination-bullet.is-active {
    width: 24px;
    border-radius: 10px;
    background: #fff;
}

/* 헤더/푸터 코드 스니펫이 비활성화된 경우에만 표시되는 안전장치입니다. */
.acheron-theme-header {
    position: relative;
    z-index: 1000;
    display: flex;
    min-height: 86px;
    padding: 14px clamp(20px, 5vw, 72px);
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #070b18;
}

.acheron-theme-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.acheron-theme-brand img {
    display: block;
    max-height: 52px;
    width: auto;
}

.acheron-theme-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 42px);
}

.acheron-theme-nav a {
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.acheron-theme-nav .is-contact {
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.acheron-theme-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.acheron-theme-footer {
    padding: 64px clamp(20px, 5vw, 72px) 34px;
    border-top: 1px solid var(--acheron-line);
    background: #050505;
    color: var(--acheron-muted);
}

.acheron-theme-footer-inner {
    display: grid;
    max-width: 1450px;
    margin: 0 auto;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 60px;
}

.acheron-theme-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 32px;
}

.acheron-theme-footer p {
    margin: 6px 0;
}

.acheron-theme-footer-bottom {
    display: flex;
    max-width: 1450px;
    margin: 42px auto 0;
    padding-top: 22px;
    justify-content: space-between;
    border-top: 1px solid var(--acheron-line);
}

.acheron-content-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 150px 0 90px;
}

.acheron-entry-card {
    padding: clamp(24px, 4vw, 56px);
    border: 1px solid var(--acheron-line);
    border-radius: 20px;
    background: var(--acheron-surface);
}

.acheron-entry-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
}

.acheron-entry-meta {
    margin-bottom: 34px;
    color: var(--acheron-muted);
}

.acheron-entry-content {
    color: #dbe4f0;
}

.acheron-entry-content a {
    color: var(--acheron-blue);
}

.acheron-post-list {
    display: grid;
    gap: 22px;
}

.acheron-post-card {
    padding: 30px;
    border: 1px solid var(--acheron-line);
    border-radius: 16px;
    background: var(--acheron-surface);
}

.acheron-post-card h2 {
    margin: 0 0 8px;
}

.acheron-post-card a {
    text-decoration: none;
}

@media (max-width: 980px) {
    .acheron-theme-menu-toggle {
        display: grid;
        place-items: center;
    }

    .acheron-theme-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
    }

    .acheron-theme-nav.is-open {
        display: flex;
    }

    .acheron-theme-nav a {
        color: #111827;
    }

    .acheron-theme-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .acheron-theme-header {
        min-height: 70px;
    }

    .acheron-theme-brand img {
        max-height: 38px;
    }

    .acheron-theme-footer-bottom {
        gap: 16px;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
