/**
 * SOT Experience Center — Visual consistency (Hero · Cards · CTA)
 * layout-width.css: 폭 / visual-consistency.css: 시각 밀도·타이포·카드·CTA
 */

:root {
    --sot-hero-padding-y: clamp(2.25rem, 4vw, 3rem);
    --sot-section-padding-y: clamp(2.5rem, 4vw, 3.5rem);
    --sot-hero-gap-next: 0;
}

/* ── Hero typography ── */
.page-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.content-hero .page-hero-title,
.phase2-hero .page-hero-title {
    color: #fff;
}

/* Hero H1 > 본문 H2 보장 */
.content-hero .page-hero-title,
.phase2-hero .page-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.bk-section-title {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

/* ── Hero spacing ── */
.content-hero,
.phase2-hero {
    padding-block: var(--sot-hero-padding-y);
    margin-bottom: var(--sot-hero-gap-next);
}

.hero-page-cta {
    margin-top: 1.25rem;
}

.content-hero.text-center .hero-page-cta,
.content-hero .container.text-center .hero-page-cta {
    justify-content: center;
}

/* ── Card equal height ── */
.card-grid-equal > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.card-grid-equal > [class*="col-"] > .solution-card,
.card-grid-equal > [class*="col-"] > .catalog-card,
.card-grid-equal > [class*="col-"] > .case-card-v2,
.card-grid-equal > [class*="col-"] > a.case-card-v2 {
    flex: 1;
    height: 100%;
}

.solution-card,
.connect-card,
.gallery-item,
.catalog-card,
.case-card-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card .btn,
.catalog-card .btn,
.connect-card .card-cta,
.gallery-item .card-cta {
    margin-top: auto;
    align-self: flex-start;
}

.catalog-card .btn {
    align-self: center;
}

.connect-grid {
    align-items: stretch;
}

.connect-grid .connect-card {
    height: 100%;
}

.gallery-item figcaption {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.solution-card ul {
    flex: 1;
}

/* ── CTA consistency (link-style) ── */
.cta-link-more::after {
    content: ' →';
}

@media (max-width: 390px) {
    .content-hero,
    .phase2-hero {
        padding-block: clamp(1.75rem, 5vw, 2.25rem);
    }

    .hero-page-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-page-cta .btn {
        width: 100%;
    }
}

/* ── Home experience cards (repositioning) ── */
.home-exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.home-exp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--sot-border, #e0e0e0);
    border-radius: var(--sot-radius, 12px);
    box-shadow: var(--sot-shadow, 0 2px 8px rgba(0,0,0,.06));
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.home-exp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13,71,161,.12);
    color: inherit;
}

.home-exp-card--primary {
    border-color: #90caf9;
    background: linear-gradient(180deg, #f3f9ff 0%, #fff 100%);
}

.home-exp-icon {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.home-exp-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sot-blue-dark, #002171);
    margin-bottom: .5rem;
}

.home-exp-card p {
    flex: 1;
    font-size: .92rem;
    color: var(--sot-muted, #666);
    margin-bottom: 1rem;
}

.home-exp-link {
    font-size: .88rem;
    font-weight: 600;
    color: var(--sot-blue, #0d47a1);
}

.hero-landing .hero-cta {
    flex-wrap: wrap;
    gap: .5rem;
}

/* ── Experience flow CTA bar ── */
.experience-flow-cta {
    padding: 1.25rem 0;
    background: #f0f4f8;
    border-top: 1px solid var(--sot-border, #e0e0e0);
    border-bottom: 1px solid var(--sot-border, #e0e0e0);
}

.experience-flow-cta__lead {
    font-size: .92rem;
    color: var(--sot-muted, #666);
    margin: 0;
}

@media (max-width: 390px) {
    .home-exp-grid {
        grid-template-columns: 1fr;
    }

    .experience-flow-cta__actions .btn {
        flex: 1 1 100%;
    }
}
