/* ==========================================================================
   상림소프트 메인 (theme/basic/css/main.css)
   - 모든 클래스는 .sr- 접두사 (그누보드 기본 CSS와 충돌 방지)
   - 색상은 :root 변수 한 곳에서 관리
   ========================================================================== */

:root {
    --sr-ink: #14201A;
    --sr-muted: #55645A;
    --sr-bg: #F4F6F1;
    --sr-white: #FFFFFF;
    --sr-dark: #0E1F17;
    --sr-dark-2: #16301F;
    --sr-dark-3: #060F0A;
    --sr-dark-4: #0A1711;
    --sr-lime: #A4E23A;
    --sr-green: #3C7A1E;
    --sr-soft: #B9C7BC;
    --sr-soft-2: #A9B8AC;
    --sr-chip: #E4E9DF;
    --sr-light: #F2F5EE;
    --sr-inner: 1200px;
    --sr-gutter: 24px;
}

/* ---------- 기본 ---------- */
.sr :where(ul, dl, dd, p, h1, h2) { margin: 0; padding: 0; }
.sr :where(ul) { list-style: none; }
.sr :where(a) { color: inherit; text-decoration: none; }
.sr :where(a:hover) { color: var(--sr-lime); }
.sr :where(img) { display: block; max-width: 100%; }
.sr :where(button, input, select, textarea) { font: inherit; border: 0; border-radius: 0; }
.sr :where(button) { cursor: pointer; }
.sr-inner { max-width: var(--sr-inner); margin: 0 auto; padding: 0 var(--sr-gutter); box-sizing: border-box; }

/* ---------- 공통 컴포넌트 ---------- */
.sr-section { padding: 96px 0; }
.sr-section--white { background: var(--sr-white); }
.sr-section--dark { background: var(--sr-dark); color: var(--sr-light); }

.sr-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; color: var(--sr-green); }
.sr-eyebrow--lime { color: var(--sr-lime); }
.sr-title { margin-top: 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
.sr-title--lg { font-size: 44px; line-height: 1.2; }

.sr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; font-size: 16px; font-weight: 800; }
.sr-btn--lime { background: var(--sr-lime); color: var(--sr-dark); }
.sr a.sr-btn--lime:hover { color: var(--sr-dark); background: #B6EE55; }
.sr-btn--dark { background: #1B3A29; color: var(--sr-light); }
.sr-btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }

.sr-grid { display: grid; gap: 24px; margin-top: 48px; }
.sr-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sr-grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* ---------- 헤더 ---------- */
 
.sr-header { position: sticky; top: 0; z-index: 30; background: var(--sr-dark); color: var(--sr-light); }

.sr-hero, .sr-section { scroll-margin-top: 80px; }

.sr-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.sr-logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: 0.04em; }
.sr-logo__img { height: 44px; width: auto; }
.sr-logo__accent { color: var(--sr-lime); }

.sr-gnb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.sr-gnb__cta { padding: 0 20px; font-size: 14px; letter-spacing: 0.06em; }

.sr-header__toggle { display: none; width: 44px; height: 44px; padding: 0 10px; background: transparent; flex-direction: column; justify-content: center; gap: 6px; }
.sr-header__toggle span { display: block; height: 2px; background: var(--sr-light); }
.iansui-regular {
  font-family: "Iansui", cursive;
  font-weight: 400;
  font-style: normal;
}
/* ---------- 히어로 ---------- */
.sr-hero {
    position: relative;
    overflow: hidden;
    color: var(--sr-light);
    background:
        linear-gradient(rgba(8, 24, 16, 0.58), rgba(8, 24, 16, 0.58)),
        url(../img/hero.jpg) center / cover no-repeat;
}
.sr-hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; padding-top: 120px; padding-bottom: 112px; }
.sr-hero__main { flex: 1 1 560px; min-width: 0; }
.sr-hero__title { margin-top: 24px; font-size: clamp(38px, 6vw, 76px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.sr-hero__desc { margin-top: 28px; max-width: 560px; font-size: 19px; line-height: 1.7; color: var(--sr-soft); }
.sr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.sr-hero__tel { flex: 0 1 300px; display: flex; flex-direction: column; gap: 16px; }
.sr-hero__tel li { padding: 24px 28px; background: rgba(22, 48, 31, 0.74);border:1px solid #133e2a; }
.sr-hero__tel-label { display: block; font-size: 13px; letter-spacing: 0.1em; color: var(--sr-soft-2); }
.sr-hero__tel-num { display: block; margin-top: 6px; font-size: 30px; font-weight: 800; }
.sr-hero__mark { position: absolute; right: 24px; top: 500px; font-size: 120px; line-height: 1; font-weight: 100; color: rgba(164, 226, 58, 0.16); writing-mode: vertical-rl; font-family: "Iansui", cursive;}

/* ---------- 강점 ---------- */
.sr-card { display: flex; flex-direction: column; gap: 8px; padding: 32px; background: var(--sr-bg); }
.sr-card__no { font-size: 14px; font-weight: 800; color: var(--sr-green); }
.sr-card__en { margin-top: 8px; font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.sr-card__ko { font-size: 16px; line-height: 1.6; color: var(--sr-muted); }

/* ---------- 서비스 ---------- */
.sr-service { display: flex; flex-direction: column; gap: 12px; padding: 36px; background: var(--sr-dark-2); }
.sr-service__en { font-size: 20px; font-weight: 800; }
.sr-service__ko { font-size: 15px; font-weight: 700; color: var(--sr-lime); }
.sr-service__desc { font-size: 16px; line-height: 1.7; color: var(--sr-soft); }

/* ---------- 작업물 ---------- */
#sr-works{ background-color:#f1f1f1 }

.sr-works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sr-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-tabs__btn { min-height: 44px; padding: 0 22px; background: var(--sr-chip); color: var(--sr-ink); font-size: 15px; font-weight: 700; }
.sr-tabs__btn.is-active { background: var(--sr-dark); color: var(--sr-lime); }

.sr-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.sr-works__item { background: var(--sr-white); }
.sr-works__item[hidden] { display: none; }
.sr-works__thumb { position: relative; display: flex; align-items: flex-end; height: 168px; padding: 16px; box-sizing: border-box; overflow: hidden; }
.sr-works__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-works__tag { position: relative; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--sr-white); }
.sr-works__name { padding: 20px 20px 24px; font-size:15px; font-weight: 700; line-height: 1.4; text-align:center; letter-spacing:-0.5px; }

/* 썸네일 미등록 시 자리표시 색 */
.sr-tone-0 { background: #1E4A30; }
.sr-tone-1 { background: #24503A; }
.sr-tone-2 { background: #2C5A44; }
.sr-tone-3 { background: #1A3F4A; }
.sr-tone-4 { background: #2A3F5A; }
.sr-tone-5 { background: #3A4A2A; }

/* ---------- 클라이언트 ---------- */
.sr-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.sr-chips li { padding: 14px 24px; background: var(--sr-bg); font-size: 17px; font-weight: 700; }
.sr-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; font-size: 16px; line-height: 1.6; color: var(--sr-muted); }
/* 클라이언트: 연두 배경 섹션 */
.sr-section--lime { background: var(--sr-white); color: var(--sr-dark); }
.sr-section--lime .sr-eyebrow { color: var(--sr-dark); }
.sr-section--lime .sr-chips li { padding: 18px 32px; background: var(--sr-dark); color: var(--sr-lime); font-size: 20px; }
.sr-section--lime .sr-names { gap: 12px; }
.sr-section--lime .sr-names li { padding: 20px 24px; background: rgba(14, 31, 23, 0.1); color: var(--sr-dark); font-size: 17px; font-weight: 700; }



/* ---------- 클라이언트 로고 (client 게시판) ---------- */
.sr-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.sr-logos__item { min-width: 0; }
.sr-logos__box { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 16px; background: var(--sr-white); box-sizing: border-box; overflow: hidden; }
.sr-logos__box img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sr-logos__ph { font-size: 15px; font-weight: 800; text-align: center; color: var(--sr-muted); overflow-wrap: anywhere; }
.sr-logos__name { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; text-align: center; color: var(--sr-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-logos__more { margin-top: 32px; text-align: center; }
@media (max-width: 1100px) { .sr-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .sr-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
    .sr-logos__box { padding: 12px; }
    .sr-logos__name { font-size: 13px; }
}



/* ---------- 문의 ---------- */
.sr-contact { display: flex; flex-wrap: wrap; gap: 64px; }
.sr-contact__info { flex: 1 1 440px; min-width: 0; }
.sr-contact__list { display: flex; flex-direction: column; margin-top: 40px; font-size: 17px; line-height: 1.6; }
.sr-contact__list dt { margin-top: 20px; font-size: 13px; letter-spacing: 0.1em; color: var(--sr-soft-2); }
.sr-contact__list dt:first-child { margin-top: 0; }
.sr-contact__tel { font-size: 26px; font-weight: 800; }

.sr-form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 40px; background: var(--sr-dark-2); }
.sr-form__title { font-size: 20px; font-weight: 800; }
.sr-form__row { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--sr-soft); }
.sr-form__row input,
.sr-form__row select,
.sr-form__row textarea { padding: 0 16px; background: var(--sr-dark); color: var(--sr-light); font-size: 16px; }
.sr-form__row input,
.sr-form__row select { height: 52px; }
.sr-form__row textarea { padding: 14px 16px; resize: vertical; }
.sr-form__submit { width: 100%; }

/* ---------- 푸터 / 하단 고정바 ---------- */
.sr-footer { background: var(--sr-dark-4); color: var(--sr-soft-2); font-size: 14px; }
.sr-footer .sr-inner { padding-top: 32px; padding-bottom: 32px; }

.sr-quickbar { position: sticky; bottom: 0; z-index: 20; background: var(--sr-dark-3); color: var(--sr-light); }
.sr-quickbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.sr-quickbar__info { display: flex; flex-direction: column; gap: 4px; }
.sr-quickbar__main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 16px; font-weight: 800; }
.sr-quickbar__label { font-size: 13px; font-weight: 600; color: var(--sr-soft-2); }
.sr-quickbar__addr { font-size: 13px; line-height: 1.5; color: var(--sr-soft-2); }
.sr-quickbar__cta { height: 48px; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 960px) {
    .sr-header__toggle { display: flex; }
    .sr-gnb { display: none; width: 100%; padding-bottom: 16px; }
    .sr-gnb.is-open { display: block; }
    .sr-gnb__list { flex-direction: column; align-items: stretch; gap: 0; }
    .sr-gnb__list li a { display: flex; align-items: center; min-height: 48px; }
    .sr-gnb__cta { justify-content: center; margin-top: 8px; }
    .sr-hero__mark { display: none; }
}

@media (max-width: 767px) {
    .sr { --sr-gutter: 20px; }
    .sr-section { padding: 56px 0; }
    .sr-title, .sr-title--lg { font-size: 28px; line-height: 1.3; }
    .sr-grid { margin-top: 24px; gap: 12px; }
    .sr-grid--3, .sr-grid--2 { grid-template-columns: 1fr; }

    .sr-logo__img { height: 36px; }
    .sr-logo { font-size: 20px; }
    .sr-header__inner { min-height: 64px; }

    .sr-hero__inner { padding-top: 56px; padding-bottom: 48px; gap: 28px; }
    .sr-hero__desc { margin-top: 20px; font-size: 16px; }
    .sr-hero__actions { flex-direction: column; margin-top: 28px; }
    .sr-hero__actions .sr-btn { width: 100%; }
    .sr-hero__tel { flex: 1 1 100%; gap: 10px; }
    .sr-hero__tel li { padding: 16px 20px; }
    .sr-hero__tel-num { font-size: 24px; }

    .sr-card { padding: 20px 24px; }
    .sr-service { padding: 24px; }
    .sr-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
    .sr-works__thumb { height: 88px; }
    .sr-works__name { padding: 12px 12px 16px; font-size: 14px; }
    .sr-chips { margin-top: 24px; }
    .sr-chips li { padding: 12px 18px; font-size: 15px; }


    .sr-section--lime .sr-chips li { padding: 14px 20px; font-size: 16px; }
    .sr-section--lime .sr-names li { padding: 16px 20px; font-size: 15px; }
    .sr-contact { gap: 32px; }
    .sr-form { padding: 24px; gap: 14px; }

    /* 하단 고정바: 전화 2개 + 상담신청만 */
    .sr-quickbar__inner { flex-wrap: nowrap; gap: 8px; padding-left: 12px; padding-right: 12px; }
    .sr-quickbar__info { flex: 1 1 auto; min-width: 0; }
    .sr-quickbar__main { flex-wrap: nowrap; gap: 8px; font-size: 14px; }
    .sr-quickbar__main a { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; height: 48px; background: var(--sr-dark-2); line-height: 1.2; }
    .sr-quickbar__label { font-size: 11px; }
    .sr-quickbar__sub-item, .sr-quickbar__addr { display: none !important; }
    .sr-quickbar__cta { flex: 0 0 88px; padding: 0; font-size: 14px; }
}
