
/* ── 공통 ── */
.section-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}
.patent-section,
.trademark-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

.trademark-section {
    background: var(--white);
    max-width: 100%;
    padding: 80px 0;
}
.trademark-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── 카드 그리드 ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

/* ── 특허 카드 ── */
.patent-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(44,59,82,0.07);
    border: 1.5px solid rgba(44,59,82,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}
.patent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(44,59,82,0.14);
}

/* 이미지 영역 */
.card-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.patent-card:hover .card-img img {
    transform: scale(1.04);
}

/* 이미지 없을 때 placeholder */
.card-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--silver);
}
.card-img-placeholder .icon {
    font-size: 40px;
    opacity: 0.5;
}
.card-img-placeholder span {
    font-size: 12px;
}

/* 확대 오버레이 */
.card-img::after {
    content: '🔍';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 28px;
    background: rgba(44,59,82,0.7);
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.patent-card:hover .card-img::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 카드 정보 */
.card-info {
    padding: 18px 20px;
    border-top: 1.5px solid rgba(44,59,82,0.06);
}
.card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.badge-patent {
    background: rgba(74,143,212,0.12);
    color: var(--accent);
}
.badge-trademark {
    background: rgba(232,168,53,0.15);
    color: #b07d10;
}
.badge-cert-kor {
    background: rgba(44,59,82,0.1);
    color: var(--navy);
}
.badge-cert-eng {
    background: rgba(93,187,138,0.15);
    color: #2a7a52;
}

/* ── 인증서 섹션 ── */
.cert-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

/* 인증서 카드 — 가로형 (썸네일 + 정보) */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.cert-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(44,59,82,0.07);
    border: 1.5px solid rgba(44,59,82,0.06);
    display: flex;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(44,59,82,0.13);
}

/* 썸네일 */
.cert-thumb {
    width: 90px;
    min-width: 90px;
    background: #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.cert-card:hover .cert-thumb img {
    transform: scale(1.06);
}
.cert-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--silver);
    font-size: 11px;
}
.cert-thumb-placeholder .icon {
    font-size: 28px;
    opacity: 0.5;
}
.cert-thumb::after {
    content: '🔍';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 18px;
    background: rgba(44,59,82,0.65);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.cert-card:hover .cert-thumb::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 인증서 카드 정보 */
.cert-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.cert-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.cert-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}
.cert-number {
    font-size: 12px;
    color: var(--silver);
}

.cert-card:nth-child(1) { animation-delay: 0.05s; }
.cert-card:nth-child(2) { animation-delay: 0.10s; }
.cert-card:nth-child(3) { animation-delay: 0.15s; }
.cert-card:nth-child(4) { animation-delay: 0.20s; }
.cert-card:nth-child(5) { animation-delay: 0.25s; }
.cert-card:nth-child(6) { animation-delay: 0.30s; }

@media (max-width: 768px) {
    .cert-grid { grid-template-columns: 1fr; }
}
.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.4;
}
.card-number {
    font-size: 12px;
    color: var(--silver);
}

/* ── 모달 ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: var(--white);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    background: #f0f2f5;
}
.modal-info {
    padding: 20px 24px;
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.modal-number {
    font-size: 13px;
    color: var(--silver);
}
.modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── 애니메이션 ── */
.patent-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.patent-card:nth-child(1) { animation-delay: 0.05s; }
.patent-card:nth-child(2) { animation-delay: 0.10s; }
.patent-card:nth-child(3) { animation-delay: 0.15s; }
.patent-card:nth-child(4) { animation-delay: 0.20s; }
.patent-card:nth-child(5) { animation-delay: 0.25s; }
.patent-card:nth-child(6) { animation-delay: 0.30s; }

/* ── 반응형 ── */
@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
}