/*
Theme Name: Astra Child
Theme URI: https://newlawblog.ai.kr
Description: 뉴로이어 사이버범죄 전문 로펌 - Astra Child Theme
Author: 뉴로이어 법률사무소
Author URI: https://newlawblog.ai.kr
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ================================================
   뉴로이어 사이버범죄 전문 로펌 - 기본 스타일
   ================================================ */

/* 브랜드 컬러 변수 */
:root {
    --nl-primary: #0055A5;
    --nl-primary-dark: #003d7a;
    --nl-accent: #C8A96E;
    --nl-dark: #060d1f;
    --nl-text: #1a1a1a;
    --nl-border: #e4e8ef;
}

/* ════════════════════════════════════
   Astra Flex 레이아웃 완전 오버라이드
════════════════════════════════════ */

/* Astra flex 2열 → 1열 강제 */
#content .ast-container,
.ast-separate-container .ast-container,
.ast-container {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 콘텐츠 영역 100% */
#primary,
.content-area,
.ast-separate-container #primary,
.ast-right-sidebar #primary,
.ast-left-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 100% !important;
}

/* 사이드바 완전 제거 */
#secondary,
.widget-area,
.ast-sidebar-wrap,
.secondary,
.ast-right-sidebar #secondary,
.ast-left-sidebar #secondary {
    display: none !important;
    width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* site-content 풀와이드 */
#content,
.site-content,
.ast-separate-container,
.ast-page-builder-template #content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* entry 영역 */
.entry-content,
.ast-article-post,
.entry-header,
.ast-post-title-bar {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ════════════════════════════════════
   헤더 로고 크기 조정
════════════════════════════════════ */
.site-header .site-logo-img img,
.custom-logo,
.astra-logo-svg,
header .site-logo img,
.ast-site-identity img {
    max-height: 56px !important;
    width: auto !important;
    max-width: 200px !important;
}

.site-header,
.ast-site-header-wrap {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* ════════════════════════════════════
   Astra 기본 배경 강제 오버라이드
════════════════════════════════════ */
html,
body,
body.ast-page-builder-template,
.ast-separate-container,
.ast-page-builder-template .entry-content,
#page, #content,
.site,
.hfeed {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* 섹션별 배경은 각 클래스에서 제어 */
.hp-services,
.hp-cases {
    background: #f4f7fb !important;
}
.hp-hero,
.hp-cta {
    background: #060d1f !important;
}

/* 기본 폰트 */
body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif !important;
    color: var(--nl-text) !important;
    line-height: 1.7;
}

/* 링크 색상 */
a {
    color: var(--nl-primary);
}
a:hover {
    color: var(--nl-primary-dark);
}

/* 헤더 스타일 */
.site-header {
    border-bottom: 2px solid var(--nl-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* 네비게이션 */
.main-header-menu .menu-item a {
    font-weight: 500;
    font-size: 15px;
    color: #1a1a1a !important;
    transition: color 0.2s ease;
}
.main-header-menu .menu-item a:hover {
    color: var(--nl-primary) !important;
}

/* CTA 버튼 (상담 예약) */
.nl-cta-btn {
    display: inline-block;
    background: var(--nl-primary);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}
.nl-cta-btn:hover {
    background: var(--nl-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.nl-cta-btn.gold {
    background: var(--nl-accent);
}
.nl-cta-btn.gold:hover {
    background: #b8934a !important;
}

/* 섹션 공통 */
.nl-section {
    padding: 80px 0;
}
.nl-section-gray {
    background: var(--nl-gray);
    padding: 80px 0;
}
.nl-section-dark {
    background: var(--nl-dark);
    padding: 80px 0;
    color: #fff;
}

/* 섹션 타이틀 */
.nl-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}
.nl-section-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 48px;
}
.nl-title-bar {
    width: 48px;
    height: 3px;
    background: var(--nl-primary);
    margin: 16px 0 20px;
}

/* 카드 스타일 */
.nl-card {
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 8px;
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,85,165,0.1);
}
.nl-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}
.nl-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.nl-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 숫자 실적 */
.nl-stat-box {
    text-align: center;
    padding: 32px 16px;
}
.nl-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--nl-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.nl-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 성공사례 카드 */
.nl-case-card {
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nl-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.nl-case-badge {
    display: inline-block;
    background: var(--nl-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 2px;
}
.nl-case-badge.green { background: #1a7a4a; }
.nl-case-badge.red   { background: #c0392b; }
.nl-case-badge.gold  { background: var(--nl-accent); }

/* FAQ 아코디언 */
.nl-faq-item {
    border: 1px solid var(--nl-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.nl-faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.15s;
}
.nl-faq-question:hover {
    background: var(--nl-gray);
}
.nl-faq-question.active {
    color: var(--nl-primary);
    border-bottom: 1px solid var(--nl-border);
}
.nl-faq-arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
    color: var(--nl-primary);
}
.nl-faq-question.active .nl-faq-arrow {
    transform: rotate(45deg);
}
.nl-faq-answer {
    display: none;
    padding: 20px 24px;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    background: #fafafa;
}
.nl-faq-answer.open {
    display: block;
}

/* 후기 카드 */
.nl-review-card {
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 8px;
    padding: 24px;
}
.nl-review-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 12px;
}
.nl-review-text {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
}
.nl-review-author {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.nl-review-type {
    display: inline-block;
    font-size: 11px;
    background: #e8f0fb;
    color: var(--nl-primary);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* 플로팅 상담 버튼 */
.nl-floating-consult {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nl-float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nl-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    color: #fff !important;
}
.nl-float-kakao {
    background: #FEE500;
    color: #3c1e1e !important;
}
.nl-float-call {
    background: var(--nl-primary);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .nl-section { padding: 48px 0; }
    .nl-section-title { font-size: 24px; }
    .nl-stat-number { font-size: 36px; }
    .nl-floating-consult { bottom: 16px; right: 16px; }
}
