/* ═══════════════════════════════════════════
   Brand V2 — 브랜드 홈페이지 전용 CSS
   /assets/brand-v2.css
   ═══════════════════════════════════════════ */

/* --- 브랜드 헤더 --- */
.brand-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
    transition: box-shadow 0.3s;
}
.brand-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.brand-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-800, #1e293b);
    text-decoration: none;
    white-space: nowrap;
}
.brand-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.brand-nav-item {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600, #4b5563);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.brand-nav-item:hover,
.brand-nav-item.active {
    background: var(--gray-50, #f9fafb);
    color: var(--navy-800, #1e293b);
}
.brand-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white, #fff);
    background: var(--navy-600, #1e3a5f);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.brand-nav-cta:hover {
    background: var(--navy-700, #172d4a);
}
.brand-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.brand-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-600, #4b5563);
    transition: transform 0.3s;
}

/* ===== brand-hero v3: 2 layouts × 3 colors ===== */

/* --- Color Themes (CSS Variables) --- */
.brand-hero--navy {
    --hero-bg-start: #1a2744;
    --hero-bg-end: #1e3a5f;
    --hero-accent: #c8a96e;
    --hero-accent-hover: #d4b87e;
    --hero-badge-bg: rgba(200,169,110,0.15);
    --hero-badge-text: #c8a96e;
    --hero-stat-border: rgba(255,255,255,0.15);
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255,255,255,0.78);
}
.brand-hero--forest {
    --hero-bg-start: #1a3a2a;
    --hero-bg-end: #234d38;
    --hero-accent: #d4c9a8;
    --hero-accent-hover: #e0d6b8;
    --hero-badge-bg: rgba(212,201,168,0.15);
    --hero-badge-text: #d4c9a8;
    --hero-stat-border: rgba(255,255,255,0.15);
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255,255,255,0.78);
}
.brand-hero--slate {
    --hero-bg-start: #1e293b;
    --hero-bg-end: #334155;
    --hero-accent: #63b3ed;
    --hero-accent-hover: #7cc4f5;
    --hero-badge-bg: rgba(99,179,237,0.15);
    --hero-badge-text: #63b3ed;
    --hero-stat-border: rgba(255,255,255,0.15);
    --hero-text: #ffffff;
    --hero-text-muted: rgba(255,255,255,0.78);
}

/* --- Base Hero --- */
.brand-hero {
    position: relative;
    padding: 120px 0 60px;
    color: var(--hero-text);
    overflow: hidden;
}

/* --- Split Layout --- */
.brand-hero--split {
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
}
.brand-hero--split .brand-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.brand-hero--split .brand-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.brand-hero--split .brand-hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    object-fit: cover;
    aspect-ratio: 4/3;
}
.brand-hero--split .brand-hero-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Overlay Layout --- */
.brand-hero--overlay {
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
}
.brand-hero--overlay .brand-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}
.brand-hero--overlay .brand-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hero-bg-start) 60%, transparent 100%);
    opacity: 0.7;
}
.brand-hero--overlay .brand-hero-grid {
    position: relative;
    z-index: 2;
}
.brand-hero--overlay .brand-hero-content {
    max-width: 680px;
}

/* --- Hero Content Common --- */
.brand-hero-content {
    position: relative;
    z-index: 2;
}
.brand-hero-badge {
    display: inline-block;
    padding: 5px 16px;
    background: var(--hero-badge-bg);
    color: var(--hero-badge-text);
    border: 1px solid var(--hero-badge-text);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.brand-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--hero-text, #fff);  /* S166: 테마별 텍스트 색상 */
}
.brand-hero-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hero-text-muted);
    margin-bottom: 24px;
    max-width: 560px;
}

/* --- Stats (신뢰지표) --- */
.brand-hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding: 16px 0;
    border-top: 1px solid var(--hero-stat-border);
    border-bottom: 1px solid var(--hero-stat-border);
}
.brand-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand-hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hero-accent);
    letter-spacing: -0.02em;
}
.brand-hero-stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--hero-text-muted);
    letter-spacing: 0.02em;
}

/* --- Hero Actions --- */
.brand-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--hero-accent);
    color: var(--hero-bg-start);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}
.btn-accent:hover {
    background: var(--hero-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* --- btn-outline-light (공통) --- */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: transparent;
    color: var(--hero-text, #fff);
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

/* --- Responsive --- */
@media (max-width: 768px) {

    .brand-hero--split .brand-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-hero-stats {
        gap: 16px;
    }
    .brand-hero-stat-value {
        font-size: 1.2rem;
    }
    .brand-hero--split .brand-hero-visual {
        order: -1;
    }
    .brand-hero--split .brand-hero-img {
        max-width: 100%;
        border-radius: 12px;
    }
    .brand-hero--overlay {
        min-height: 400px;
    }
}


/* --- 블로그 하이라이트 (메인 페이지) --- */
.brand-highlight-section {
    padding: 48px 0;
}
.brand-highlight-section:nth-child(even) {
    background: var(--gray-50, #f9fafb);
}
.brand-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.brand-highlight-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.brand-cat-badge {
    display: inline-block;
    padding: 6px 16px;
    color: var(--white, #fff);
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}
.brand-highlight-more {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy-600, #1e3a5f);
    text-decoration: none;
}
.brand-highlight-more:hover {
    text-decoration: underline;
}

/* --- 블로그 카드 그리드 --- */
.brand-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.brand-blog-grid-full {
    grid-template-columns: repeat(3, 1fr);
}
.brand-blog-card {
    display: block;
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}
.brand-blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.brand-blog-card-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100, #f3f4f6);
}
.brand-blog-card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-blog-card-body {
    padding: 16px;
}
.brand-blog-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--navy-800, #1e293b);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-blog-card-body p {
    font-size: 0.82rem;
    color: var(--gray-500, #6b7280);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-blog-card-date {
    font-size: 0.78rem;
    color: var(--gray-400, #9ca3af);
}

/* --- 카테고리 페이지 --- */
.brand-category-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}
.brand-category-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.brand-category-desc {
    font-size: 0.9rem;
    color: var(--gray-500, #6b7280);
}
.brand-empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--gray-400, #9ca3af);
}
.brand-empty-state p {
    margin-top: 12px;
    font-size: 0.9rem;
}

/* --- 업체 소개 (company-info) --- */
.brand-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--navy-800, #1e293b);
}
.brand-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--navy-800, #1e293b);
}
.brand-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.brand-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.brand-info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.brand-info-icon {
    font-size: 1.1rem;
    min-width: 28px;
    text-align: center;
    padding-top: 2px;
}
.brand-info-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-400, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.brand-info-value {
    font-size: 0.95rem;
    color: var(--gray-700, #374151);
    line-height: 1.5;
}
.brand-info-phone {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-600, #1e3a5f);
    text-decoration: none;
}
.brand-info-phone:hover {
    text-decoration: underline;
}
.brand-info-map-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--navy-600, #1e3a5f);
    text-decoration: none;
    font-weight: 500;
}
.brand-info-map-link:hover {
    text-decoration: underline;
}
.brand-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.brand-info-tag {
    padding: 4px 12px;
    background: var(--gray-100, #f3f4f6);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--gray-600, #4b5563);
}
.brand-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.brand-review-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fffbeb;
    border-radius: 12px;
}
.brand-review-score {
    font-size: 2.4rem;
    font-weight: 700;
    color: #f59e0b;
}
.brand-review-stars {
    color: #f59e0b;
    font-size: 1.1rem;
}
.brand-review-count {
    font-size: 0.82rem;
    color: var(--gray-500, #6b7280);
    margin-top: 2px;
}
.brand-gallery-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.brand-gallery-compact img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--gray-100, #f3f4f6);
}
.brand-services-section {
    padding-top: 32px;
    border-top: 1px solid var(--gray-200, #e5e7eb);
}
.brand-services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.brand-service-chip {
    padding: 8px 18px;
    background: var(--navy-600, #1e3a5f);
    color: var(--white, #fff);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- 커스텀 페이지 --- */
.brand-custom-section {
    padding-top: 100px;
}
.brand-custom-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}
.brand-custom-img {
    width: 100%;
    display: block;
    border-radius: 0;
}
.brand-custom-images .brand-custom-img:first-child {
    border-radius: 12px 12px 0 0;
}
.brand-custom-images .brand-custom-img:last-child {
    border-radius: 0 0 12px 12px;
}
.brand-custom-images .brand-custom-img:only-child {
    border-radius: 12px;
}
.brand-custom-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700, #374151);
}
.brand-custom-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- 하단 CTA --- */
.brand-bottom-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--navy-800, #1e293b) 0%, var(--navy-600, #1e3a5f) 100%);
    color: var(--white, #fff);
    text-align: center;
}
.brand-bottom-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.brand-bottom-cta p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 24px;
}
.brand-bottom-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 브랜드 푸터 --- */
.brand-footer {
    background: var(--gray-50, #f9fafb);
    padding: 32px 0;
    border-top: 1px solid var(--gray-200, #e5e7eb);
}
.brand-footer-info {
    margin-bottom: 16px;
}
.brand-footer-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-800, #1e293b);
    margin-bottom: 8px;
}
.brand-footer-contact {
    font-size: 0.85rem;
    color: var(--gray-500, #6b7280);
    margin-bottom: 4px;
}
.brand-footer-contact a {
    color: var(--navy-600, #1e3a5f);
    text-decoration: none;
}
.brand-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    font-size: 0.8rem;
    color: var(--gray-400, #9ca3af);
}
.brand-powered-by a {
    color: var(--navy-600, #1e3a5f);
    text-decoration: none;
    font-weight: 500;
}
.brand-powered-by a:hover {
    text-decoration: underline;
}

/* --- 모바일 전화 플로팅 버튼 --- */
.brand-fab-phone {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: var(--navy-600, #1e3a5f);
    color: var(--white, #fff);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.2s;
}
.brand-fab-phone:hover {
    transform: scale(1.05);
}

/* --- body 패딩 (fixed header) --- */
.brand-page {
    padding-top: 0;  /* hero가 padding-top으로 커버 */
}

/* --- 반응형 --- */
@media (max-width: 1024px) {
    .brand-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .brand-mobile-toggle {
        display: flex;
    }
    .brand-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white, #fff);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--gray-200, #e5e7eb);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    .brand-nav-links.active {
        display: flex;
    }
    .brand-nav-cta {
        margin-left: 0;
        justify-content: center;
    }
    .brand-hero {
        padding: 100px 0 48px;
           grid-template-columns: 1fr;
    }
    .brand-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .brand-gallery-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .brand-fab-phone {
        display: flex;
    }
    .brand-bottom-cta h2 {
        font-size: 1.3rem;
    }
    .brand-custom-section {
        padding-top: 80px;
    }
}
