/* Sub Visual */
.sub-section {
    padding: 40px 0;
}

.sub-section.alt {
    background: var(--bg-soft);
}

.sub-visual {
    position: relative;
    width: 100%;
    height: clamp(200px, 30vh, 320px);
    background: url('/assets/img/sub-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.sub-visual .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin: 0;
}

.sub-nav {
    background: var(--bg-soft);
    padding: 25px 40px;
    border-bottom: 1px solid #ddd;
}

.sub-wrap {
    display: flex;
    justify-content: end;
    font-size: 12px;
}

/* company location */

/* ===== Location ===== */
.loc-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.map-card,
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.map-embed {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* 16:9 비율 */
    aspect-ratio: 16 / 9;
    background: #eef2f7;
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dir-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-card .info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card .info-list li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

.contact-card .info-list li:last-child {
    border-bottom: 0;
}

.contact-card .info-list strong {
    color: var(--ink);
}

.contact-card .info-list span {
    color: var(--sub);
}

.contact-card .note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--sub);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}

@media (min-width: 960px) {
    .loc-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* product */

.tablist-wrap {
    top: 64px;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.tablist {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px 10px 2px;
}

.tab {
    appearance: none;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.tab:is(:hover, :focus-visible) {
    border-color: var(--brand);
}

.tab.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.tabpanel {
    padding-top: 16px;
}

.is-hidden {
    display: none;
}

.product-card {
    padding: 25px;
}

.product-card p {
    color: #555;
    margin: 0 10px 5px;
}

.card img {
    max-height: 200px;
    margin: 0 auto;
}

.btn-wrap {
    display: flex;
    gap: 6px;
    padding: 10px;
}

/* 모달창 */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #00000040;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 열림 상태 */
.modal.is-open {
    display: flex;
}

/* 모달 내용 래퍼 (선택) */
.modal-container {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.modal img {
    max-width: 500px;
    height: auto;
    display: block;
}

.modal-close {
    margin-top: 12px;
}

.modal-img-wrap {
    display: flex;
    gap: 20px;
}