/* =========================================================
   Honour Tech | Front Page
   File: style.css
   Usage:
   <link rel="stylesheet" href="css/style.css">
   ========================================================= */

/* [추가] 전체 페이지 가로 스크롤 방지 핵심 설정 */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 가로로 삐져나오는 요소들을 강제로 숨김 */
    margin: 0;
    padding: 0;
}

/* =========================
     기본 스타일 및 레이아웃 초기화
========================= */

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

.inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* =========================
     공통 섹션 스타일 (Section 2~5)
========================= */

:root{
  --section-pad: 80px;
  --bg-white: #ffffff;
  --bg-soft: #f5f5f7;
}

.performance,
.lineup-product-portfolio,
.references {
  padding: var(--section-pad) 0;
  background: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.lineup-product-portfolio {
  background: var(--bg-soft);
}

/* =========================
     공통 카드 그리드
========================= */
.card-container{
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 24px;
  margin-top: 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
}

@media (max-width: 1200px){
  .card-container { grid-template-columns: repeat(3, minmax(260px, 280px)); }
}
@media (max-width: 950px){
  .card-container { grid-template-columns: repeat(2, minmax(260px, 320px)); }
}
@media (max-width: 640px){
  .card-container { grid-template-columns: repeat(1, minmax(260px, 320px)); }
}

.card{
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e5e7;
  border-radius: 18px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.card h3{
  margin: 0 0 8px 0;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 0;
}

/* =========================
      타이포그래피 시스템
========================= */

.section-header .t2,
.section-header .t3 {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    width: 100%; 
    box-sizing: border-box;
}

h1, h3, h4 {
    font-family: 'Montserrat','Noto Sans KR',sans-serif;
    font-weight: 600;
    margin: 0;
    color: #1d1d1f;
}

h2{
    font-family: 'Montserrat','Noto Sans KR',sans-serif;
    font-weight: 600;
    margin: 0;
    display: inline-block;
    color: #005aa7;
    background: linear-gradient(90deg, #003865 0%, #0072ce 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.t1 { 
    font-size: clamp(18px, 2.2vw, 24px); 
    word-break: keep-all;
    color: #3a3a3c;
}

.t2 { 
    font-size: clamp(15px, 1.8vw, 20px); 
    color: #6e6e73; 
    margin-top: 20px; 
    text-align: center; 
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.t3 { 
    font-size: clamp(14px, 1.2vw, 16px); 
    color: #515154; 
    line-height: 1.7; 
    word-break: keep-all;
}

.section-header {
    text-align: center;
    margin: 60px 0 60px 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-header h2 { 
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.2;
    word-break: keep-all;
}

html {
  word-break: keep-all;
  line-break: strict;
}


/* =========================
     내비게이션 바
========================= */
nav {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #000000;
    box-sizing: border-box; /* 패딩 계산 포함 */
}

nav .inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;    
    padding: 0 20px;    
    box-sizing: border-box; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a{
    color:#ffffff;
    text-decoration:none;
    font-weight:400;
    transition: font-weight .2s;
    text-transform: capitalize;
}

.nav-logo{
    color:#ffffff;
    text-decoration:none;
    font-size:18px;
    font-weight:600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: 0.3s;
}

/* --- 모바일 환경 대응 (768px 이하) --- */
@media (max-width: 768px) {
    nav .inner-container {
        padding: 0 20px !important; 
    }

    .menu-toggle {
        display: flex;
        margin-left: auto; /* 우측 끝으로 밀어냄 */
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: fixed; 
        top: 40px; 
        left: 0;
        width: 100vw;
        height: calc(100vh - 40px);
        background: #000000;
        padding: 40px 0;
        gap: 30px;
        text-align: center;
        border-top: 1px solid #333;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
    }
}

/* =========================
    히어로 영역
========================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden; /* 히어로 영역 밖으로 나가는 글자 차단 */
}

.hero-content {
    max-width: 980px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
  margin: 0 0 36px;
  font-family: 'Montserrat', sans-serif;
  /* 모바일에서 제목이 너무 커서 화면을 뚫고 나가는 현상 방지 */
  font-size: clamp(28px, 5vw, 48px); 
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-subtitle{
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 980px;
    margin: 0 0 40px 0;
    font-size: clamp(16px, 1.0vw + 12px, 21px);
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    overflow-wrap: break-word;
}

#page-home .hero {
    background-image:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('../assets/hero/nanobubble-Industrial-ozone-oxygen-honour-tech.png');
}

/* =========================
    아코디언 및 버튼
========================= */

.faq-question h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.faq { 
    padding: 80px 0; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background-color: #f5f5f7;
}
.faq-container { max-width: 900px; margin: 0 auto; width: 100%; }
.faq-item { border-bottom: 1px solid #e5e5e7; }
.faq-question {
    width: 100%; padding: 25px 0; display: flex;
    justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer;
}
.icon-plus { position: relative; width: 20px; height: 20px; transition: 0.4s; }
.icon-plus::before { content: ''; position: absolute; top: 9px; left: 0; width: 100%; height: 2px; background: #1d1d1f; }
.icon-plus::after { content: ''; position: absolute; top: 0; left: 9px; width: 2px; height: 100%; background: #1d1d1f; }
.faq-item.active .icon-plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer-content { padding: 0 25px 25px 25px; }

.cta-button {
    display: inline-block; padding: 16px 32px;
    background-color: #0071e3; color: #ffffff;
    text-decoration: none; border-radius: 30px; font-weight: 600;
}


/* =========================
    Contact 섹션 스타일
========================= */

.contact-section {
    padding: 100px 0;
    background-color: #f2f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-container {
    flex: 1.2;
    background-color: #f5f5f7;
    padding: 40px;
    border-radius: 18px;
}

.contact-form-container h3 {
    margin-bottom: 30px;
    font-size: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e5e7;