/* ============================================
   스타리아 하이브리드 — 정보형 가이드 프론트 CSS
   차분하고 잘 정리된 구매 가이드 느낌
   ============================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --sh-primary: #002C5F;      /* 현대 네이비 */
    --sh-accent: #00AAD2;       /* 현대 시안 */
    --sh-accent-light: #e6f7fb;
    --sh-dark: #1a1a2e;
    --sh-text: #333333;
    --sh-text-light: #666666;
    --sh-bg: #f8f9fc;
    --sh-bg-alt: #ffffff;
    --sh-border: #e2e8f0;
    --sh-gold: #b8860b;
    --sh-success: #2d8a56;
    --sh-warning: #c97a2e;
    --sh-radius: 16px;
    --sh-shadow: 0 4px 24px rgba(0, 44, 95, 0.08);
    --sh-shadow-lg: 0 12px 48px rgba(0, 44, 95, 0.12);
    --sh-font: 'Pretendard Variable', 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;
    --sh-max-width: 960px;
}

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

body.stariahy-front {
    font-family: var(--sh-font);
    background: var(--sh-bg);
    color: var(--sh-text);
    line-height: 1.8;
    word-break: keep-all;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.stariahy-front .wp-site-blocks,
body.stariahy-front header,
body.stariahy-front .wp-block-template-part {
    display: none !important;
}

/* ===== 공통 ===== */
.sh-section {
    padding: 64px 24px;
    max-width: var(--sh-max-width);
    margin: 0 auto;
}

.sh-section-alt {
    background: var(--sh-bg-alt);
    padding: 64px 24px;
}
.sh-section-alt > .sh-inner {
    max-width: var(--sh-max-width);
    margin: 0 auto;
}

.sh-section-dark {
    background: var(--sh-dark);
    color: #e8e8e8;
    padding: 64px 24px;
}
.sh-section-dark > .sh-inner {
    max-width: var(--sh-max-width);
    margin: 0 auto;
}

.sh-section-navy {
    background: var(--sh-primary);
    color: #ffffff;
    padding: 64px 24px;
}
.sh-section-navy > .sh-inner {
    max-width: var(--sh-max-width);
    margin: 0 auto;
}

h2.sh-heading {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sh-primary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.sh-section-dark h2.sh-heading,
.sh-section-navy h2.sh-heading {
    color: #ffffff;
}

.sh-subheading {
    text-align: center;
    color: var(--sh-text-light);
    font-size: 1rem;
    margin-bottom: 48px;
    line-height: 1.7;
}
.sh-section-dark .sh-subheading {
    color: #aaa;
}
.sh-section-navy .sh-subheading {
    color: rgba(255,255,255,0.7);
}

/* ===== Breadcrumb ===== */
.sh-breadcrumb {
    max-width: var(--sh-max-width);
    margin: 0 auto;
    padding: 16px 24px 0;
    font-size: 0.85rem;
    color: var(--sh-text-light);
}
.sh-breadcrumb a {
    color: var(--sh-accent);
    text-decoration: none;
}
.sh-breadcrumb span { margin: 0 6px; }

/* ===== Hero ===== */
.sh-hero {
    background: linear-gradient(135deg, var(--sh-primary) 0%, #001a3a 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px 72px;
    position: relative;
    overflow: hidden;
}
.sh-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,170,210,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sh-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    position: relative;
}
.sh-hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto 32px;
    position: relative;
}
.sh-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    position: relative;
}
.sh-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ===== 카드 그리드 ===== */
.sh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.sh-card {
    background: var(--sh-bg-alt);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 32px 28px;
    transition: box-shadow 0.3s, transform 0.2s;
}
.sh-card:hover {
    box-shadow: var(--sh-shadow-lg);
    transform: translateY(-2px);
}
.sh-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.sh-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sh-primary);
    margin-bottom: 12px;
}
.sh-card p {
    font-size: 0.95rem;
    color: var(--sh-text-light);
    line-height: 1.7;
}

.sh-section-dark .sh-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.sh-section-dark .sh-card h3 {
    color: var(--sh-accent);
}
.sh-section-dark .sh-card p {
    color: #bbb;
}

/* ===== 적합/부적합 섹션 ===== */
.sh-fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.sh-fit-box {
    border-radius: var(--sh-radius);
    padding: 36px 32px;
}
.sh-fit-good {
    background: #f0faf4;
    border: 1px solid #c6f0d8;
}
.sh-fit-alt {
    background: #fef7f0;
    border: 1px solid #f5dfc6;
}
.sh-fit-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sh-fit-good h3 { color: var(--sh-success); }
.sh-fit-alt h3 { color: var(--sh-warning); }
.sh-fit-box ul {
    list-style: none;
    padding: 0;
}
.sh-fit-box li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--sh-text);
    line-height: 1.6;
}
.sh-fit-good li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sh-success);
    font-weight: 700;
}
.sh-fit-alt li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--sh-warning);
    font-weight: 700;
}

/* ===== 비교 테이블 ===== */
.sh-table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
}
.sh-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sh-bg-alt);
    font-size: 0.93rem;
}
.sh-table thead {
    background: var(--sh-primary);
    color: #fff;
}
.sh-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.sh-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--sh-border);
    color: var(--sh-text);
}
.sh-table tr:last-child td {
    border-bottom: none;
}
.sh-table tr:nth-child(even) {
    background: #f8fafd;
}

/* ===== 트림 카드 ===== */
.sh-trim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.sh-trim-card {
    background: var(--sh-bg-alt);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.sh-trim-card:hover {
    box-shadow: var(--sh-shadow-lg);
}
.sh-trim-header {
    background: var(--sh-primary);
    color: #fff;
    padding: 20px 24px;
    text-align: center;
}
.sh-trim-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.sh-trim-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sh-accent);
}
.sh-trim-body {
    padding: 24px;
}
.sh-trim-body ul {
    list-style: none;
    padding: 0;
}
.sh-trim-body li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--sh-text-light);
    border-bottom: 1px solid var(--sh-border);
}
.sh-trim-body li:last-child { border-bottom: none; }
.sh-trim-note {
    font-size: 0.82rem;
    color: #999;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--sh-border);
}

/* ===== 후기 슬라이더 ===== */
.sh-reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--sh-accent) transparent;
}
.sh-reviews-track::-webkit-scrollbar {
    height: 6px;
}
.sh-reviews-track::-webkit-scrollbar-track {
    background: transparent;
}
.sh-reviews-track::-webkit-scrollbar-thumb {
    background: var(--sh-accent);
    border-radius: 3px;
}
.sh-review-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--sh-bg-alt);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 28px 24px;
    position: relative;
}
.sh-review-card::before {
    content: '"';
    font-size: 3rem;
    color: var(--sh-accent);
    opacity: 0.3;
    position: absolute;
    top: 12px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}
.sh-review-text {
    font-size: 0.93rem;
    color: var(--sh-text);
    line-height: 1.7;
    margin-top: 16px;
}
.sh-review-meta {
    font-size: 0.82rem;
    color: #999;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--sh-border);
}

/* ===== FAQ ===== */
.sh-faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.sh-faq-item {
    border: 1px solid var(--sh-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--sh-bg-alt);
}
.sh-faq-q {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--sh-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
}
.sh-faq-q:hover {
    background: var(--sh-accent-light);
}
.sh-faq-q::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--sh-accent);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.sh-faq-item.active .sh-faq-q::after {
    content: '−';
}
.sh-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}
.sh-faq-item.active .sh-faq-a {
    max-height: 400px;
    padding: 0 24px 20px;
}
.sh-faq-a p {
    font-size: 0.93rem;
    color: var(--sh-text-light);
    line-height: 1.7;
}

/* ===== CTA 블록 ===== */
.sh-cta-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.sh-cta-block h2 {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 12px;
}
.sh-cta-block p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    font-size: 0.95rem;
    line-height: 1.7;
}
.sh-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--sh-font);
}
.sh-btn-primary {
    background: var(--sh-accent);
    color: #fff;
    border: none;
}
.sh-btn-primary:hover {
    background: #0096b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,170,210,0.3);
}
.sh-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.sh-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}
.sh-btn-white {
    background: #fff;
    color: var(--sh-primary);
    border: none;
}
.sh-btn-white:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
}

/* ===== 프로필 블록 ===== */
.sh-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--sh-radius);
    padding: 28px;
    margin-top: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.sh-profile-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sh-accent);
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}
.sh-profile-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.sh-profile-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===== 관련 글 ===== */
.sh-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.sh-post-card {
    background: var(--sh-bg-alt);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.sh-post-card:hover {
    box-shadow: var(--sh-shadow-lg);
    transform: translateY(-3px);
}
.sh-post-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--sh-border);
}
.sh-post-body {
    padding: 24px;
}
.sh-post-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sh-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}
.sh-post-body p {
    font-size: 0.88rem;
    color: var(--sh-text-light);
    line-height: 1.6;
}

/* ===== 푸터 ===== */
.sh-footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 24px 32px;
    font-size: 0.85rem;
    line-height: 1.8;
}
.sh-footer-inner {
    max-width: var(--sh-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.sh-footer h4 {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.sh-footer p { margin-bottom: 4px; }
.sh-footer-divider {
    border: none;
    border-top: 1px solid #1f2937;
    margin: 32px 0 20px;
    max-width: var(--sh-max-width);
    margin-left: auto;
    margin-right: auto;
}
.sh-footer-bottom {
    max-width: var(--sh-max-width);
    margin: 0 auto;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0 24px;
}

/* ===== 데스크톱 보정 ===== */
.sh-info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}
.sh-info-block {
    background: var(--sh-bg-alt);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 32px;
}
.sh-info-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sh-primary);
    margin-bottom: 16px;
}
.sh-info-block p, .sh-info-block li {
    font-size: 0.93rem;
    color: var(--sh-text-light);
    line-height: 1.7;
}
.sh-info-block ul {
    padding-left: 20px;
    margin: 8px 0;
}

/* ===== 면책 조항 ===== */
.sh-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 40px auto 0;
    max-width: 760px;
    font-size: 0.85rem;
    color: #92400e;
    text-align: center;
    line-height: 1.7;
}

/* ===== 이미지 관련 ===== */
.sh-hero-img-wrap {
    margin: 40px auto 0;
    max-width: 720px;
    border-radius: var(--sh-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
.sh-hero-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.sh-section-img {
    width: 100%;
    max-width: 800px;
    margin: 32px auto;
    display: block;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
    .sh-hero { padding: 56px 20px 48px; }
    .sh-hero h1 { font-size: 1.8rem; }
    .sh-hero-desc { font-size: 1rem; }
    .sh-section, .sh-section-alt, .sh-section-dark, .sh-section-navy { padding: 48px 20px; }
    h2.sh-heading { font-size: 1.5rem; }
    .sh-grid { grid-template-columns: 1fr; }
    .sh-fit-grid { grid-template-columns: 1fr; }
    .sh-info-columns { grid-template-columns: 1fr; }
    .sh-trim-grid { grid-template-columns: 1fr; }
    .sh-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .sh-review-card { flex: 0 0 260px; }
    .sh-profile { flex-direction: column; text-align: center; }
    .sh-table { font-size: 0.85rem; }
    .sh-table th, .sh-table td { padding: 10px 14px; }
    .sh-btn { padding: 14px 24px; font-size: 0.93rem; }
    .sh-posts-grid { grid-template-columns: 1fr; }
    .sh-cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .sh-hero h1 { font-size: 1.5rem; }
    .sh-hero-tag { font-size: 0.8rem; padding: 6px 14px; }
    .sh-card { padding: 24px 20px; }
    .sh-review-card { flex: 0 0 240px; padding: 24px 20px; }
    .sh-img-split { flex-direction: column; }
    .sh-img-split-item { flex: 1 1 100%; }
}

/* ===== Premium Image Elements ===== */
.sh-img-full {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.sh-img-full img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow-lg);
    margin: 48px auto;
}
.sh-img-split {
    display: flex;
    gap: 24px;
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 24px;
}
.sh-img-split-item {
    flex: 1;
    position: relative;
    border-radius: var(--sh-radius);
    overflow: hidden;
    box-shadow: var(--sh-shadow-lg);
}
.sh-img-split-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.sh-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 24px 16px 14px;
    font-size: 0.85rem;
    font-weight: 500;
}
/* Hero with background image */
.sh-hero {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.sh-breadcrumb-hero {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.sh-breadcrumb-hero a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
@media (max-width: 768px) {
    .sh-hero { min-height: 400px; }
    .sh-img-split { flex-direction: column; }
    .sh-img-split-item img { height: 200px; }
    .sh-img-full img { margin: 32px auto; }
}
