@charset "UTF-8";
/* ============================================================
   main.css — 메인(홈) 페이지 전용
   시안 : reference/designPage/SONGPRO Main.dc.html
   ============================================================ */

/* ------------------------------------------------------------
   1. 섹션 공통
   ------------------------------------------------------------ */
.section {
    padding-block: 96px;
    background: var(--c-bg);
}

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

.section--line-top {
    border-top: 1px solid var(--c-border);
}

.section--line-bottom {
    border-bottom: 1px solid var(--c-border);
}

.section__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section__inner--wide-gap {
    gap: 56px;
}

.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.section-head--tight {
    gap: 12px;
}

.section-head__eyebrow {
    color: var(--c-brand);
    font-size: 17px;
    line-height: 25.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-head__lead {
    color: var(--c-text-sub);
    font-size: 15px;
    line-height: 22.5px;
}

.section-head__title {
    color: var(--c-text-strong);
    font-size: 32px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head__desc {
    max-width: 720px;
    color: var(--c-text-sub);
    font-size: 17px;
    line-height: 25.5px;
    text-wrap: pretty;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

/* ------------------------------------------------------------
   2. 히어로
   ------------------------------------------------------------ */
.hero {
    background: var(--c-bg-dark);
    overflow: hidden;
}

.hero__visual {
    width: 100%;
    /* 첫 화면을 가득 채운다. svh 는 모바일 주소창을 제외한 실제 한 화면 높이 */
    height: 100vh;
    height: 100svh;
    background: var(--c-bg-dark) url('../img/main_01.jpg') center / cover no-repeat;
}

/* ------------------------------------------------------------
   3. PROFILE
   ------------------------------------------------------------ */
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: transform var(--t-dur) var(--t-ease), box-shadow var(--t-dur) var(--t-ease);
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.profile-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-md);
}

.profile-card__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-card__title {
    color: var(--c-text-strong);
    font-size: 19px;
    line-height: 28.5px;
    font-weight: 700;
}

.profile-card__period {
    color: var(--c-text-sub);
    font-size: 15px;
    line-height: 22.5px;
    font-weight: 700;
}

.profile-card__list {
    color: var(--c-text-sub);
    font-size: 15px;
    line-height: 24px;
}

.profile-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ------------------------------------------------------------
   4. SERVICE
   ------------------------------------------------------------ */
.service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
}

.service-card__title {
    color: var(--c-text-strong);
    font-size: 19px;
    line-height: 28.5px;
    font-weight: 700;
}

.service-card__desc {
    color: var(--c-text-sub);
    font-size: 15px;
    line-height: 24px;
    text-wrap: pretty;
}

.service-card__action {
    display: flex;
    padding-top: 4px;
}

/* ------------------------------------------------------------
   5. CLIENTS
   ------------------------------------------------------------ */
.clients-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.clients-group__label {
    color: var(--c-brand);
    font-size: 17px;
    line-height: 25.5px;
    font-weight: 700;
}

/* 로고 무한 흐름 — 목록을 두 벌 이어 붙이고 -50% 지점까지 이동시켜 끊김 없이 반복한다 */
.clients-marquee {
    width: 100%;
    overflow: hidden;
}

.clients-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: clients-scroll-left 120s linear infinite;
}

.clients-marquee__track--public {
    animation: clients-scroll-right 300s linear infinite;
}

.clients-marquee__track--private {
    animation: clients-scroll-left 50s linear infinite;
}

.clients-marquee__logo {
    flex-shrink: 0;
    /* 좁은 화면에서 가로로 긴 로고가 잘리지 않도록 폭을 제한한다 (넓은 화면에서는 걸리지 않음) */
    max-width: 70vw;
    object-fit: contain;
}

/* 줄마다 로고 크기와 간격이 다르다 */
.clients-marquee__track--gov .clients-marquee__logo {
    max-height: 100px;
    margin-inline: 60px;
}

.clients-marquee__track--public .clients-marquee__logo {
    max-height: 80px;
    margin-inline: 20px;
}

.clients-marquee__track--private .clients-marquee__logo {
    max-height: 60px;
    margin-inline: 10px;
}

@keyframes clients-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes clients-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* 모션 최소화 설정에서는 흐름을 멈추고 가로 스크롤로 볼 수 있게 한다 */
@media (prefers-reduced-motion: reduce) {
    .clients-marquee {
        overflow-x: auto;
    }

    .clients-marquee__track {
        animation-name: none !important;
    }
}

/* ------------------------------------------------------------
   6. 강의노트 및 자료 (DATA & CHAT)
   ------------------------------------------------------------ */
.notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.notes__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-md);
}

.notes__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notes__eyebrow {
    color: var(--c-brand);
    font-size: 17px;
    line-height: 25.5px;
    font-weight: 700;
}

.notes__title {
    color: var(--c-text-strong);
    font-size: 32px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.notes__desc {
    color: var(--c-text-sub);
    font-size: 15px;
    line-height: 24px;
}

.notes__list {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.notes__row {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 20px;
    align-items: start;
    padding-block: 20px;
    border-top: 1px solid var(--c-border);
}

.notes__row:last-child {
    border-bottom: 1px solid var(--c-border);
}

/* 링크로 만든 행 — 마우스를 올려도 아무 변화가 없고 커서만 손 모양이 된다.
   (cursor: pointer 는 a[href] 의 기본값이라 따로 지정하지 않는다)
   키보드로 이동할 때는 브라우저 기본 외곽선이 위치를 알려 준다.

   [주의] :hover 를 함께 적어야 한다. common.css 의 전역 a:hover 가
          글자 색과 밑줄을 바꾸는데, 선택자 하나만으로는 그 규칙에 밀린다. */
.notes__row--link,
.notes__row--link:hover {
    color: inherit;
    text-decoration: none;
}

.notes__row-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notes__row-title {
    color: var(--c-text);
    font-size: 15px;
    line-height: 24px;
}

.notes__row-note {
    color: var(--c-text-muted);
    font-size: 13px;
    line-height: 19.5px;
}

/* ------------------------------------------------------------
   7. 문의 및 요청 CTA
   ------------------------------------------------------------ */
.contact-cta {
    padding-block: 121px;
    background: var(--c-bg-darker) url('../img/connect.jpg') center / cover no-repeat;
    color: var(--c-text-invert);
}

.contact-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.contact-cta__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-cta__title {
    font-size: 36px;
    line-height: 54px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.contact-cta__desc {
    color: var(--c-text-invert-sub);
    font-size: 17px;
    line-height: 25.5px;
}

.contact-cta__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background: var(--c-bg-dark);
    border-radius: var(--r-md);
    text-align: left;
}

.contact-cta__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-cta__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-cta__label {
    color: var(--c-text-muted);
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: 0.06em;
}

.contact-cta__value {
    color: var(--c-text-invert);
    font-size: 17px;
    line-height: 25.5px;
}

/* ------------------------------------------------------------
   8. 반응형
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .section {
        padding-block: 72px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notes {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-cta {
        padding-block: 96px;
    }
}

@media (max-width: 768px) {
    .section {
        padding-block: 56px;
    }

    .section__inner,
    .section__inner--wide-gap {
        gap: 32px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section-head__title,
    .notes__title {
        font-size: 24px;
        line-height: 36px;
    }

    .section-head__desc {
        font-size: 15px;
        line-height: 22.5px;
    }

    .profile-card__title,
    .service-card__title {
        font-size: 17px;
        line-height: 25.5px;
    }

    .notes__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* 1열로 바뀌면 태그가 가로 전체로 늘어나므로 내용 폭으로 고정 */
    .notes__row .tag {
        justify-self: start;
    }

    .contact-cta {
        padding-block: 72px;
    }

    .contact-cta__title {
        font-size: 28px;
        line-height: 42px;
    }
}
