/* 쓰리원 v7 (2026-11) — 레퍼런스(오케이플랜) 구성 참고: 짧은 제목·가운데 정렬·일정한 카드 격자, 오른쪽 간편상담.
   site.css → v2 → v4 → v5 → v6-bright 다음에 로드해 덮어쓴다. 색 토큰은 v6-bright를 그대로 쓴다. */

/* ── 공통 제목: 크기를 줄이고 가운데로 ── */
.section { padding: 76px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: .01em; margin: 0 0 8px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; }
.sec-title-ko { font-weight: 700 !important; letter-spacing: -.02em !important; }
.sec-title-ko em { font-style: normal; color: var(--red-500); }
.sec-more { text-align: center; margin-top: 40px; }
.btn-more { background: #444; color: #fff; padding: 14px 54px !important; border-radius: 2px; font-size: 14px !important; letter-spacing: .04em; }
.btn-more:hover { background: var(--red-500); color: #fff; }

.editorial-head { display: block; text-align: center; margin-bottom: 40px; }
.editorial-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.02em; margin-bottom: 8px; }
.editorial-head .lead { font-size: 16px; margin: 0 auto; max-width: 720px; }
.editorial-head .section-actions { justify-content: center; margin-top: 18px; }
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.section-head { text-align: center; }

/* ── 메인 히어로: 사진을 살리고 글자는 흰색 가운데 ── */
.hero-v7 { position: relative; background: #222; color: #fff; }
.hero-v7 .hero-slide { min-height: 640px; align-items: flex-start; }
.hero-v7 .hero-bg { opacity: 1; background-position: center; }
.hero-v7 .hero-slide::after { background: rgba(0, 0, 0, .52); }
.hero-v7 .hero-content { max-width: 880px; padding: 104px 24px 170px; text-align: center; }
.hero-v7 .hero-title { color: #fff; font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 16px; }
.hero-v7 .hero-title span:last-child { box-shadow: none; }
.hero-v7 .hero-sub { color: #fff; max-width: none; margin: 0 auto 30px; font-size: clamp(.98rem, 1.5vw, 1.12rem); }
.hero-v7 .hero-actions { justify-content: center; }
.hero-v7 .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .75); background: transparent; }
.hero-v7 .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
.hero-v7 .hero-nav { bottom: 132px; }
.hero-v7 .hero-nav .container { justify-content: center; }
.hero-v7 .hero-dot { background: rgba(255, 255, 255, .45); }
.hero-v7 .hero-dot.on { background: var(--red-500); }
.hero-facts { position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hero-fact { display: block; padding: 16px 18px; background: #fff; color: var(--charcoal); text-align: center; border-radius: 2px; transition: transform .18s ease, box-shadow .18s ease; }
.hero-fact:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.hero-fact strong { display: block; font-size: 20px; letter-spacing: -.02em; color: var(--red-600); }
.hero-fact span { display: block; margin-top: 2px; font-size: 13px; color: #555; }

/* ── 시공실적 카드 ── */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card { display: block; color: var(--charcoal); }
.work-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-cap { display: block; padding: 14px 2px 0; }
.work-cap small { display: block; color: var(--red-600); font-size: 13px; font-weight: 700; }
.work-cap strong { display: block; margin-top: 3px; font-size: 17px; font-weight: 600; line-height: 1.4; }

/* ── 강점 3칸 ── */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-grid li { padding: 18px 28px; text-align: center; border-right: 1px solid var(--line); }
.why-grid li:last-child { border-right: 0; }
.why-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; margin-bottom: 18px; }
.why-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--red-500); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-grid p { margin: 0; font-size: 19px; line-height: 1.5; }
.why-grid strong { color: var(--red-500); }

/* ── 제품 카드 6칸 ── */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prod-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; background: var(--gray-100); }
.prod-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.prod-card:hover img { transform: scale(1.04); }
.prod-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .78)); }
.prod-cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.prod-cap strong { display: block; font-size: 20px; }
.prod-cap span { display: block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .9); }

/* ── 사진 띠 ── */
.photo-band { position: relative; padding: 96px 0; text-align: center; color: #fff; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('/site/assets/img/blog/flex-12m/flex-12m-05.jpg') center / cover no-repeat; }
.photo-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 8px; letter-spacing: -.02em; }
.photo-band p { margin: 0 0 26px; font-size: 17px; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .8); padding: 11px 28px !important; font-size: 15px !important; border-radius: 2px; }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

.video-narrow { max-width: 900px; margin: 0 auto; }

/* ── 진행 순서 6칸 ── */
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.step-grid li { position: relative; padding: 0 16px 26px; background: #fff; border: 1px solid var(--line); border-top: 0; text-align: center; margin-top: 30px; }
.step-grid li::before, .step-grid li::after { content: ""; position: absolute; top: 0; width: calc(50% - 30px); height: 1px; background: var(--red-500); }
.step-grid li::before { left: 0; }
.step-grid li::after { right: 0; }
.step-ico { display: grid; place-items: center; width: 60px; height: 60px; margin: -30px auto 14px; border-radius: 50%; background: var(--red-500); }
.step-ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-grid strong { display: block; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--red-600); font-size: 18px; }
.step-grid p { margin: 0; color: #555; font-size: 14px; line-height: 1.7; }
.step-tel { margin: 26px 0 0; text-align: center; color: #555; }
.step-tel a { color: var(--red-600); font-weight: 700; }

.home-contact { background: #fff; border-top: 0; }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

/* ── 서브 페이지 배너: 사진 + 짙은 덮개, 흰 글자 ── */
.page-hero { padding: 66px 0; border-bottom: 0; }
.page-hero:not(.has-photo) { background: var(--gray-50); }
.page-hero.has-photo { color: #fff; background-image: linear-gradient(rgba(0, 0, 0, .52), rgba(0, 0, 0, .52)), var(--page-image); background-position: center; }
.page-hero.has-photo h1 { color: #fff; }
.page-hero.has-photo .page-hero-sub { color: #fff; }
.page-hero.has-photo .eyebrow { color: var(--yellow-400); }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.02em; margin-bottom: 6px; }
.anchor-nav ul { justify-content: center; }

/* ── 제품안내: 제목 + 카드 2장 한 줄 ── */
.product-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.product-row-head { padding-top: 6px; }
.product-row-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.02em; margin-bottom: 8px; padding-top: 14px; border-top: 3px solid var(--red-500); display: inline-block; }
.product-row-head p { margin: 0; color: var(--muted); }
.product-row .card { height: 100%; display: flex; flex-direction: column; }
.product-row .card-thumb { display: block; aspect-ratio: 4 / 3; }
.product-row .card-body { display: block; min-height: 0; }
.product-row .card-body strong { display: block; font-size: 17px; }
.product-row .card-summary { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.ev-promo { grid-template-columns: 240px minmax(0, 1fr); }
.ev-promo-copy .text-link { margin-top: 6px; }

/* ── 시공실적: 같은 크기 3칸 ── */
.archive-section { padding-top: 48px; }
.archive-filters { margin: 0 auto 12px; }
.archive-section .result-count { text-align: center; }
.project-archive { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.project-card, .project-card:nth-child(6n + 5) { grid-column: auto; transform: none; box-shadow: none; border: 1px solid var(--line); border-radius: 0; }
.project-card:hover, .project-card:nth-child(6n + 5):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-open { height: 100%; }
.project-copy { padding: 18px 20px 20px; }
.project-copy strong { font-size: 18px; letter-spacing: -.02em; }
.project-meta { margin-bottom: 8px; }
.project-summary { margin-top: 8px; font-size: 14px; line-height: 1.65; }
.project-copy .card-cta { margin-top: 12px; }

/* 운영부터 있던 문제: span이라 사진 칸 비율이 안 먹어 사진이 글자를 덮었다 */
.card-thumb, .card-body { display: block; }
.card-body strong { display: block; }
.card-summary { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.process-panel-media img { object-fit: cover; }

/* ── 보유장비: 같은 크기 3칸 ── */
.editorial-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-gallery .card, .editorial-gallery .card:nth-child(n) { grid-column: auto; }
.editorial-gallery .card-thumb, .editorial-gallery .card:nth-child(n) .card-thumb { aspect-ratio: 4 / 3; }
.facility-grid .card-body { min-height: 0; }

/* ── 회사소개 ── */
.company-overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: start; }
.company-overview h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.company-overview .lead { color: #555; margin-bottom: 22px; }
.company-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--charcoal); font-size: 15px; }
.company-table th, .company-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.company-table th { width: 130px; background: var(--gray-50); font-weight: 700; white-space: nowrap; }
.company-table a { color: var(--red-600); font-weight: 600; }
.company-photo { margin: 0; overflow: hidden; }
.company-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.year-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.year-grid li { padding: 22px; background: #fff; border-top: 3px solid var(--red-500); }
.year-grid strong { display: block; font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px; }
.year-grid span { color: #555; font-size: 15px; }
.patent-editorial-grid { align-items: stretch; }
.safe-patent-card { min-height: 280px; box-shadow: none; border: 1px solid var(--line); }
.safe-patent-card .patent-graphic strong { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.story-layout { min-height: 460px; }
.story-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.catalog-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.catalog-cards article { padding: 24px; border: 1px solid var(--line); text-align: center; }
.catalog-cards strong { display: block; font-size: 18px; margin-bottom: 8px; }
.catalog-cards div { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.catalog-cards .text-link { margin-top: 4px; }
.contact-panel.is-wide { position: static; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.contact-panel.is-wide .contact-map { aspect-ratio: auto; min-height: 360px; border-bottom: 0; }

/* ── 전기차 ── */
.ev-intro h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.ev-points li { border-radius: 0; }

/* ── 간편상담 패널 ── */
.qc { position: fixed; z-index: 90; top: calc(var(--header-h) + 16px); right: 0; display: flex; align-items: flex-start; transform: translateX(330px); transition: transform .24s ease; }
.qc.is-open { transform: none; }
.qc-tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 44px; padding: 12px 0 16px; border: 0; background: var(--red-500); color: #fff; cursor: pointer; font: inherit; font-weight: 700; box-shadow: -4px 4px 16px rgba(0, 0, 0, .18); }
.qc-tab:hover { background: var(--red-600); }
.qc-tab-arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 18px; line-height: 1; transform: rotate(180deg); transition: transform .24s ease; }
.qc.is-open .qc-tab-arrow { transform: none; }
.qc-tab-text { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .12em; font-size: 16px; }
.qc-panel { width: 330px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 20px 22px 22px; background: #fff; box-shadow: -4px 6px 26px rgba(0, 0, 0, .2); }
.qc-head { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.qc-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--red-500); font-size: 21px; letter-spacing: -.02em; }
.qc-head svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qc-close { display: none; }
.qc-form { display: grid; gap: 8px; }
.qc-field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.qc-field input, .qc-field textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #DDD; border-radius: 0; background: #F4F4F4; color: var(--charcoal); font: inherit; font-size: 15px; }
.qc-field textarea { resize: vertical; min-height: 72px; }
.qc-field input:focus, .qc-field textarea:focus { outline: 2px solid var(--red-500); outline-offset: -1px; background: #fff; }
.qc-attach { margin: 4px 0 0; color: #555; font-size: 13px; line-height: 1.7; }
.qc-attach a { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--red-500); color: #fff; font-weight: 700; font-size: 12px; }
.qc-agree { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.qc-agree label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.qc-agree input { width: 17px; height: 17px; accent-color: var(--red-500); }
.qc-agree button { padding: 0; border: 0; background: none; color: #2F6FB0; font: inherit; cursor: pointer; }
.qc-notice { margin: 0; padding: 9px 10px; background: var(--gray-50); color: #555; font-size: 12.5px; line-height: 1.6; }
.qc-notice a { color: var(--red-600); text-decoration: underline; }
.qc-error { margin: 0; color: var(--red-600); font-size: 13px; font-weight: 700; }
.qc-submit { width: 100%; padding: 13px; border: 0; background: var(--red-500); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.qc-submit:hover { background: var(--red-600); }
.qc-submit:disabled { opacity: .6; cursor: default; }
.qc-done { padding: 14px 4px 6px; text-align: center; }
.qc-done strong { display: block; font-size: 17px; margin-bottom: 8px; }
.qc-done p { margin: 0 0 6px; color: #555; font-size: 14px; }
.qc-done a { color: var(--red-600); font-weight: 700; }
.qc-backdrop { display: none; }

/* ── 오른쪽 아래 고정 버튼 ── */
.float-actions { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.float-btn { display: flex; align-items: center; gap: 9px; padding: 7px 18px 7px 7px; border-radius: 999px; background: #fff; color: var(--charcoal); font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.float-btn svg { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--red-500); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-btn:hover { color: var(--red-600); }
.back-to-top { right: 24px; bottom: 132px; width: 44px; height: 44px; border: 0; border-radius: 0; background: var(--red-500); color: #fff; font-size: 16px; }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .project-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-row-head { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .work-grid, .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-overview { grid-template-columns: 1fr; }
  .contact-panel.is-wide { grid-template-columns: 1fr; }
  .contact-panel.is-wide .contact-map { min-height: 280px; }
  .ev-promo { grid-template-columns: 1fr; }
  .hero-v7 .hero-content { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero-v7 .hero-slide { min-height: 480px; }
  .hero-v7 .hero-content { padding-top: 76px; padding-bottom: 96px; }
  .hero-v7 .hero-nav { display: none; }
  .hero-facts { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px; padding-bottom: 12px; background: var(--gray-50); max-width: none; }
  .hero-fact { padding: 12px; border: 1px solid var(--line); }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid li { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 12px; }
  .why-grid li:last-child { border-bottom: 0; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-actions { display: none; }
  .back-to-top { right: 16px; bottom: 82px; }

  /* 모바일: 탭 없이 아래에서 올라오는 패널 */
  .qc { top: auto; bottom: 0; left: 0; right: 0; display: block; transform: translateY(100%); visibility: hidden; transition: transform .24s ease, visibility .24s; }
  .qc.is-open { transform: none; visibility: visible; }
  .qc-tab { display: none; }
  .qc-panel { width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; }
  .qc-head { position: relative; }
  .qc-close { display: block; position: absolute; right: -6px; top: -6px; width: 36px; height: 36px; border: 0; background: none; color: #555; font-size: 26px; line-height: 1; cursor: pointer; }
  .qc-backdrop.is-open { display: block; position: fixed; z-index: 86; inset: 0; background: rgba(0, 0, 0, .45); }

  /* 모바일 하단 바: 전화상담 · 간편상담 */
  .mobile-quote-bar { gap: 8px; justify-content: stretch; padding: 8px 12px; }
  .mobile-quote-bar .btn { flex: 1; }
  .mobile-quote-bar .btn-line { border-color: var(--charcoal); color: var(--charcoal); }
}
/* 2026-11-24: 기존 3줄 모티프를 살린 홈페이지용 로고. 원본 파일은 별도 보존. */
.brand-logo.brand-logo-web { height: 46px; width: auto; object-fit: contain; }
.footer-logo.footer-logo-web { height: 44px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
@media (max-width: 980px) {
  .brand-logo.brand-logo-web { height: 38px; }
}

@media (max-width: 560px) {
  .work-grid, .prod-grid, .project-archive, .editorial-gallery, .year-grid, .catalog-cards { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; }
  .company-table th { width: 96px; padding: 10px; }
  .company-table td { padding: 10px; }
}
