@charset "utf-8";
/* ==========================================================================
   온나라이삿짐센터 메인페이지
   작성: 2026-08-25

   구조
     1. 슬라이더 (3장)
     2. 견적 접수 진입     ← 슬라이더 바로 아래
     3. 온나라 콘텐츠
     4. 상담 CTA

   원칙
     - Bootstrap / PBMIT / 슬라이더 플러그인 미사용. 순수 CSS + 바닐라 JS.
     - theme/oncap 의 스타일과 충돌하지 않도록 전부 .gm- 네임스페이스.
     - 320px 이상에서 가로 스크롤이 생기지 않게 한다.
   ========================================================================== */

.gm-main {
    --gm-navy:   #0b1b36;
    --gm-blue:   #0f57d6;
    --gm-blue-d: #0d4ab8;
    --gm-ink:    #16233a;
    --gm-muted:  #64748b;
    --gm-line:   #e6eaf0;
    --gm-bg:     #f6f8fc;

    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--gm-ink);
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: hidden;              /* 가로 깨짐 방지 */
}
.gm-main *, .gm-main *::before, .gm-main *::after { box-sizing: border-box; }
.gm-main img { max-width: 100%; }
.gm-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   1. 슬라이더
   ========================================================================== */
.gm-slider { position: relative; width: 100%; overflow: hidden; background: #0b1b36; }
.gm-slides { position: relative; width: 100%; height: 520px; }
.gm-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease;
}
.gm-slide.is-on { opacity: 1; visibility: visible; }
.gm-slide picture, .gm-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* 글자 가독성을 위한 스크림 — 오른쪽이 진해진다 */
.gm-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,27,54,.10) 0%, rgba(11,27,54,.35) 45%, rgba(11,27,54,.72) 100%);
}
.gm-slide-body {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    text-align: right;
    color: #fff;
}
.gm-slide-body .gm-inner { display: flex; flex-direction: column; align-items: flex-end; }
.gm-slide-kicker {
    display: inline-block; margin-bottom: 12px; padding: 6px 14px;
    border-radius: 999px; background: rgba(255,255,255,.16);
    font-size: 14px; font-weight: 700; letter-spacing: .02em;
    backdrop-filter: blur(4px);
}
.gm-slide-title { margin: 0 0 12px; font-size: 42px; font-weight: 800; line-height: 1.28; color: #fff; }
.gm-slide-desc  { margin: 0 0 24px; font-size: 17px; color: rgba(255,255,255,.9); }
.gm-slide-btns  { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* 슬라이더 컨트롤 */
.gm-slider-nav {
    position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.22); color: #fff; font-size: 20px;
    cursor: pointer; display: grid; place-items: center;
    transition: background .15s ease;
}
.gm-slider-nav:hover { background: rgba(255,255,255,.4); }
.gm-slider-nav.prev { left: 18px; }
.gm-slider-nav.next { right: 18px; }
.gm-slider-dots {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px;
    display: flex; justify-content: center; gap: 8px;
}
.gm-slider-dots button {
    width: 30px; height: 5px; padding: 0; border: 0; border-radius: 99px;
    background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s ease;
}
.gm-slider-dots button.is-on { background: #fff; }

/* ==========================================================================
   2. 버튼 공통
   ========================================================================== */
.gm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 52px; padding: 13px 28px; border-radius: 8px;
    font-size: 16px; font-weight: 700; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.gm-btn--primary { background: var(--gm-blue); color: #fff; }
.gm-btn--primary:hover { background: var(--gm-blue-d); color: #fff; transform: translateY(-1px); }
.gm-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.gm-btn--ghost:hover { background: rgba(255,255,255,.26); color: #fff; }
.gm-btn--line { background: #fff; color: var(--gm-navy); border-color: var(--gm-line); }
.gm-btn--line:hover { border-color: var(--gm-blue); color: var(--gm-blue); }

/* ==========================================================================
   3. 견적 접수 안내 (4단계 프로세스)
   ========================================================================== */
.gm-estimate { padding: 48px 0 52px; background: var(--gm-bg); }
.gm-estimate__head { text-align: center; margin-bottom: 26px; }
.gm-estimate__head span { display: block; color: var(--gm-blue); font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.gm-estimate__head h2 { margin: 0 0 10px; font-size: 32px; font-weight: 800; color: var(--gm-navy); }
.gm-estimate__head p  { margin: 0; color: var(--gm-muted); font-size: 16px; }

.gm-estimate-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1040px; margin: 0 auto 30px;
}
/* 모바일 압축형 (Mobile First) */
.gm-ecard {
    background: #fff; border: 1px solid var(--gm-line); border-radius: 12px;
    padding: 16px 20px; text-align: left;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    box-shadow: 0 4px 12px rgba(15,39,71,.03);
}
.gm-ecard__num { font-size: 14px; font-weight: 800; color: var(--gm-blue); flex-shrink: 0; }
.gm-ecard__title { font-size: 16px; font-weight: 800; color: var(--gm-navy); margin: 0; white-space: normal; display: flex; align-items: center; gap: 6px; }
.gm-ecard__desc { font-size: 13px; color: var(--gm-muted); white-space: normal; }

.gm-badge-opt { 
    display: inline-block; padding: 2px 6px; border-radius: 4px;
    background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700;
}

.gm-ecard-branch {
    background: #e0e7ff; color: #3730a3;
    padding: 12px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 700;
    text-align: center;
}

.gm-estimate__actions { text-align: center; }
.gm-estimate__actions .gm-btn--primary { min-width: 240px; font-size: 17px; }
.gm-estimate__note { margin: 16px 0; color: var(--gm-muted); font-size: 14px; }
.gm-estimate__tel-wrap { margin-top: 10px; }

@media (min-width: 768px) {
    .gm-estimate-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .gm-ecard { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
    .gm-ecard__desc { white-space: normal; }
    .gm-ecard:nth-child(1) { grid-column: 1; grid-row: 1; }
    .gm-ecard:nth-child(2) { grid-column: 2; grid-row: 1; }
    .gm-ecard-branch { grid-column: 1 / 3; grid-row: 2; }
    .gm-ecard:nth-child(4) { grid-column: 1; grid-row: 3; }
    .gm-ecard:nth-child(5) { grid-column: 2; grid-row: 3; }
}

@media (min-width: 1024px) {
    .gm-estimate-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .gm-ecard:nth-child(1) { grid-column: 1; grid-row: 1; }
    .gm-ecard:nth-child(2) { grid-column: 2; grid-row: 1; }
    .gm-ecard:nth-child(4) { grid-column: 3; grid-row: 1; }
    .gm-ecard:nth-child(5) { grid-column: 4; grid-row: 1; }
    .gm-ecard-branch { grid-column: 2 / 4; grid-row: 2; margin-top: 4px; position: relative; }
    .gm-ecard-branch::before {
        content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
        border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #e0e7ff;
    }
}

/* ==========================================================================
   4. 섹션 공통
   ========================================================================== */
.gm-sec { padding: 62px 0; }
.gm-sec--gray { background: var(--gm-bg); }
.gm-sec__head { text-align: center; margin-bottom: 38px; }
.gm-sec__head span { display: block; color: var(--gm-blue); font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.gm-sec__head h2 { margin: 0 0 10px; font-size: 30px; font-weight: 800; color: var(--gm-navy); }
.gm-sec__head p  { margin: 0; color: var(--gm-muted); font-size: 16px; }

/* 회사소개 */
.gm-about { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.gm-about__text { flex: 1 1 420px; }
.gm-about__text h3 { margin: 0 0 16px; font-size: 26px; font-weight: 800; color: var(--gm-navy); line-height: 1.4; }
.gm-about__text p  { margin: 0 0 14px; color: #475569; font-size: 16px; }
.gm-about__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; }
.gm-about__list li {
    padding: 8px 15px; border: 1px solid var(--gm-line); border-radius: 999px;
    background: #fff; font-size: 14px; font-weight: 700; color: var(--gm-navy);
}
.gm-about__photo { flex: 1 1 340px; }
.gm-about__photo img { width: 100%; border-radius: 14px; display: block; }

/* 서비스 카드 */
.gm-services { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gm-service {
    display: block; padding: 26px 24px; background: #fff;
    border: 1px solid var(--gm-line); border-radius: 14px;
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.gm-service:hover { border-color: var(--gm-blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,39,71,.08); }
.gm-service strong { display: block; font-size: 19px; font-weight: 700; color: var(--gm-navy); margin-bottom: 8px; }
.gm-service p { margin: 0 0 14px; font-size: 14px; color: var(--gm-muted); }
.gm-service em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--gm-blue); }
.gm-service em::after { content: ' →'; }

/* 지역 */
.gm-areas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gm-areas span {
    padding: 11px 20px; border-radius: 999px; background: #fff;
    border: 1px solid var(--gm-line); font-size: 15px; font-weight: 700; color: var(--gm-navy);
}
.gm-areas span.is-main { background: var(--gm-navy); border-color: var(--gm-navy); color: #fff; }

/* 이사정보 */
.gm-infos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.gm-info {
    display: block; padding: 26px 24px; border-radius: 14px;
    background: #fff; border: 1px solid var(--gm-line);
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.gm-info:hover { border-color: var(--gm-blue); transform: translateY(-2px); }
.gm-info b { display: block; font-size: 13px; font-weight: 800; color: var(--gm-blue); margin-bottom: 8px; }
.gm-info strong { display: block; font-size: 18px; font-weight: 700; color: var(--gm-navy); margin-bottom: 6px; }
.gm-info span { font-size: 14px; color: var(--gm-muted); }

/* ==========================================================================
   5. 상담 CTA
   ========================================================================== */
.gm-cta { padding: 58px 0; background: var(--gm-navy); color: #fff; }
.gm-cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.gm-cta__text { flex: 1 1 340px; }
.gm-cta__text h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; color: #fff; }
.gm-cta__text p  { margin: 0; color: #c8d3e4; font-size: 16px; }
.gm-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.gm-cta__tel {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 14px 24px; border-radius: 10px; background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.24); text-decoration: none; color: #fff;
}
.gm-cta__tel small { font-size: 13px; color: #c8d3e4; }
.gm-cta__tel strong { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }

/* ==========================================================================
   6. 반응형
   ========================================================================== */
@media (max-width: 1023px) {
    .gm-slides { height: 440px; }
    .gm-slide-title { font-size: 34px; }
    .gm-services, .gm-infos { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .gm-inner { padding: 0 16px; }

    /* 모바일에서는 슬라이더를 낮춰 견적창을 첫 화면 가까이 끌어올린다 */
    .gm-slides { height: 340px; }
    .gm-slide::after {
        background: linear-gradient(180deg, rgba(11,27,54,.25) 0%, rgba(11,27,54,.55) 55%, rgba(11,27,54,.8) 100%);
    }
    .gm-slide-body { align-items: flex-start; text-align: left; justify-content: flex-end; padding-bottom: 46px; }
    .gm-slide-body .gm-inner { align-items: flex-start; }
    .gm-slide-btns { justify-content: flex-start; }
    .gm-slide-kicker { font-size: 12px; padding: 5px 11px; margin-bottom: 9px; }
    .gm-slide-title { font-size: 25px; margin-bottom: 8px; }
    .gm-slide-desc { font-size: 14px; margin-bottom: 16px; }
    .gm-slider-nav { display: none; }
    .gm-slider-dots { bottom: 14px; }

    .gm-btn { min-height: 48px; padding: 12px 20px; font-size: 15px; }

    .gm-estimate { padding: 32px 0 36px; }
    .gm-estimate__head h2 { font-size: 24px; }
    .gm-estimate__head p { font-size: 15px; }
    .gm-est-tab { flex: 1 1 calc(33.33% - 6px); min-height: 44px; padding: 8px 8px; font-size: 14px; }
    .gm-est-panel { padding: 18px 14px 16px; }
    .gm-est-grid { grid-template-columns: 1fr; }
    .gm-est-field--date { max-width: none; }
    .gm-est-submit, .gm-est-panel .gm-btn { width: 100%; }

    .gm-sec { padding: 42px 0; }
    .gm-sec__head { margin-bottom: 26px; }
    .gm-sec__head h2 { font-size: 23px; }
    .gm-services, .gm-infos { grid-template-columns: 1fr; }
    .gm-about__text h3 { font-size: 21px; }

    .gm-cta { padding: 40px 0; }
    .gm-cta__text h2 { font-size: 22px; }
    .gm-cta__btns { width: 100%; }
    .gm-cta__btns .gm-btn, .gm-cta__tel { flex: 1 1 100%; }
}

@media (max-width: 380px) {
    .gm-slides { height: 300px; }
    .gm-slide-title { font-size: 22px; }
}

/* 모션 최소화 설정을 존중한다 */
@media (prefers-reduced-motion: reduce) {
    .gm-slide { transition: none; }
    .gm-btn:hover, .gm-service:hover, .gm-info:hover { transform: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.gm-faq-tools { margin: 0 0 20px; }
.gm-faq {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px;
    max-width: 100%; margin: 0 auto; text-align: left; align-items: start;
}
.gm-faq__item { border-bottom: 1px solid var(--gm-line); background: #fff; min-width: 0; }
.gm-faq__item:first-child,
.gm-faq__item:nth-child(2) { border-top: 1px solid var(--gm-line); }
.gm-faq__btn {
    display: flex; align-items: center; width: 100%; padding: 20px 16px;
    background: transparent; border: 0; text-align: left;
    font-size: 17px; font-weight: 700; color: var(--gm-navy); cursor: pointer;
    transition: color 0.2s ease;
}
.gm-faq__icon {
    flex: 0 0 22px; width: 22px; height: 22px; margin-right: 12px;
    color: var(--gm-blue); display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; line-height: 1;
}
.gm-faq__icon::before { content: '+'; }
.gm-faq__q { flex: 1; min-width: 0; }
.gm-faq__btn[aria-expanded="true"] { color: var(--gm-blue); }
.gm-faq__btn[aria-expanded="true"] .gm-faq__icon::before { content: '\2212'; }

.gm-faq__ans {
    display: none;
    font-size: 15px; color: #475569; background: #f8fafc;
}
.gm-faq__ans.is-open { display: block; }
.gm-faq__ans-inner { padding: 0 16px 24px 50px; }
.gm-faq__ans-inner p { margin: 0 0 8px; }
.gm-faq__ans-inner p:last-child { margin: 0; }

.gm-faq__actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-top: 32px;
}

@media (max-width: 767px) {
    .gm-faq { grid-template-columns: 1fr; }
    .gm-faq__item:nth-child(2) { border-top: 0; }
    .gm-faq__btn { font-size: 15px; padding: 18px 14px; }
    .gm-faq__icon { font-size: 18px; margin-right: 10px; }
    .gm-faq__ans { font-size: 14px; }
    .gm-faq__ans-inner { padding: 0 14px 20px 46px; }
    .gm-faq__actions { flex-direction: column; align-items: stretch; }
    .gm-faq__actions .gm-btn { width: 100%; }
}
