/* (주)삼성메탈 메인 (2026-09-29) — index.html 과 짝. 모든 규칙은 .sm 아래에만 둔다. */
.sm {
  --sm-green: #1f4f47;
  --sm-green-dk: #13332e;
  --sm-orange: #d9772b;
  --sm-ink: #1c2321;
  --sm-sub: #5b6664;
  --sm-bg: #f4f6f5;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  color: var(--sm-ink);
  word-break: keep-all;
}
.sm *, .sm *::before, .sm *::after { box-sizing: border-box; }
.sm h2, .sm h3, .sm p, .sm dl, .sm dd { margin: 0; }
.sm img { display: block; max-width: 100%; }
.sm-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* 상단 비주얼 — 사진 슬라이드(페이드) 위에 문구 고정 · 점 인디게이터는 index.html 끝 스크립트가 만든다 (2026-10-08) */
.sm-hero {
  position: relative;
  display: flex; align-items: center;
  min-height: 90vh;
  overflow: hidden;
  background: var(--sm-green-dk);
  color: #fff;
  padding: 150px 0 110px;
}
.sm-hero-slides { position: absolute; inset: 0; }
.sm-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.sm-hero-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.sm .sm-hero-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.sm-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 34, 30, .72) 0%, rgba(10, 34, 30, .42) 50%, rgba(10, 34, 30, .08) 100%);
}
.sm-hero > .sm-wrap { width: 100%; }
.sm-hero-in { position: relative; z-index: 2; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.sm-hero-dots { position: absolute; left: 50%; bottom: 30px; z-index: 3; transform: translateX(-50%); display: flex; gap: 10px; }
.sm-hero-dot { width: 34px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer; background: rgba(255, 255, 255, .4); transition: width .3s ease, background-color .2s ease; }
.sm-hero-dot.is-on { width: 52px; background: var(--sm-orange); }
@media (prefers-reduced-motion: reduce) {
  .sm-hero-slide, .sm-hero-slide.is-on, .sm-hero-dot { transition: none; }
}
.sm-hero-brand { font-size: 15px; font-weight: 700; letter-spacing: .28em; opacity: .85; }
.sm-hero-title {
  display: inline-block; margin-top: 18px; padding-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em;
  border-bottom: 3px solid var(--sm-orange);
}
.sm-hero-list { margin-top: 40px; display: grid; gap: 22px; max-width: 760px; }
.sm-hero-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.sm-hero-list dt { font-size: 18px; font-weight: 700; }
.sm-hero-list dd { font-size: 17px; line-height: 1.7; opacity: .92; }
.sm-hero-list dd span { opacity: .8; }

/* 섹션 공통 */
.sm-sec { padding: 100px 0; }
.sm-sec-alt { background: var(--sm-bg); }
.sm-head { margin-bottom: 44px; }
.sm-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sm-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--sm-orange); }
.sm-title { margin-top: 10px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.sm-more { font-size: 15px; font-weight: 600; color: var(--sm-green); text-decoration: none; }
.sm-more:hover { text-decoration: underline; }

/* 취급제품 */
.sm-prod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sm-card { background: #fff; border: 1px solid #e3e8e6; }
.sm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sm-card-body { padding: 24px 22px 28px; }
.sm-card-eng { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--sm-sub); }
.sm-card h3 { margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--sm-green); }
.sm-card-body > p:last-child { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--sm-sub); }

/* 포트폴리오 */
.sm-pf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sm-pf a { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.sm-pf img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.sm-pf a:hover img { transform: scale(1.05); }
.sm-pf span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  font-size: 15px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}

/* 견적문의 */
.sm-cta { background: var(--sm-green); color: #fff; padding: 64px 0; }
.sm-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sm-cta-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.sm-cta-desc { margin-top: 8px; font-size: 16px; opacity: .85; }
.sm-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sm-btn {
  display: inline-block; padding: 15px 30px; font-size: 16px; font-weight: 700;
  background: var(--sm-orange); color: #fff; text-decoration: none; border: 1px solid var(--sm-orange);
}
.sm-btn-line { background: transparent; border-color: rgba(255, 255, 255, .6); }
.sm-btn:hover { opacity: .9; }

@media (max-width: 1024px) {
  .sm-prod, .sm-pf { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sm-hero { min-height: 80vh; padding: 110px 0 70px; }
  .sm-hero::before { background: rgba(10, 34, 30, .6); }
  .sm-hero-dots { bottom: 22px; }
  .sm-hero-list > div { grid-template-columns: 1fr; gap: 6px; }
  .sm-hero-list dd { font-size: 15px; }
  .sm-sec { padding: 64px 0; }
  .sm-prod { grid-template-columns: 1fr; }
  .sm-pf { gap: 10px; }
}
