@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root{
  --bg:#ffffff;
  --accent:#F5F7FA;
  --muted:rgb(0, 0, 0);
  --text:#0B1F3B;
  --card-bg:#0b0b0f;
  --muted-weak:#9CA3AF;
  --max-width:1400px;
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family:Inter,system-ui,-apple-system;
  background:var(--bg);
  color:#000;
}

/* Layout */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px;
}

/* Header */
.header{
  position:fixed;
  top:0;
  width:100%;
  z-index:100;
}
.header-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{
  font-weight:700;
  color:#000;
}
nav {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; color: #000; text-decoration: none; }
.nav-links a { text-decoration: none; color: var(--text-main); margin-left: 20px; font-size: 0.9rem; font-weight: 500; }
/* HERO */
/* 1. 부모 섹션: 중앙 정렬 속성을 완전히 제거 */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: block; /* flex 제거 */
  overflow: hidden;
}

/* 2. 컨테이너: 위쪽 여백을 줘서 상단 배치를 결정 */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* padding-top 수치로 상단 위치를 조절하세요 */
  padding-top: 200px !important; 
  margin: 0; /* 중앙 정렬 해제 */
  max-width: none; /* 너비 제한 해제 */
}

/* 3. 텍스트 박스: 왼쪽 여백(6vw)만 유지 */
.hero-left {
  margin-left: 6vw !important;
  max-width: 800px;
  text-align: left;
}

/* 4. 타이틀: 크기 및 가독성 확보 */
.hero-title {
  font-size: 64px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
  word-break: keep-all;
}

/* 5. 배경: 그라데이션이 왼쪽 상단을 확실히 가리도록 수정 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.85) 0%, /* 왼쪽 위를 아주 어둡게 */
    rgba(0, 0, 0, 0.4) 40%,
    transparent 80%
  );
}

.hero-desc {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ffffff;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: flex-start; /* 버튼들도 왼쪽 정렬 */
}

.hero-bg{
  position:absolute;
  inset:0;
  background:url(image/ex.jpg) center right / cover no-repeat;
}



/* Buttons */
.btn-primary{
  background:var(--accent);
  color:#000;
  border:none;
  padding:14px 22px;
  border-radius:999px;
  font-weight:600;
}
.btn-outline{
  background:none;
  color:#000;
  text-decoration:none;
}
/* Reveal / slide-up animation */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utility: hidden state */
.reveal{
  opacity:0;
  transform:translateY(24px);
  will-change:transform,opacity;
}

/* Show state (triggered by JS adding .show) */
.reveal.show{
  animation: slideUp 900ms cubic-bezier(.2,.9,.2,1) forwards;
}

/* Hero: staggered text reveal (animates on load, slightly slower) */
.hero-left .hero-title,
.hero-left .hero-desc,
.hero-left .hero-cta{
  opacity:0;
  transform:translateY(24px);
  will-change:transform,opacity;
  animation: slideUp 900ms cubic-bezier(.2,.9,.2,1) forwards;
}
.hero-left .hero-title{ animation-delay: 180ms; }
.hero-left .hero-desc{ animation-delay: 360ms; }
.hero-left .hero-cta{ animation-delay: 540ms; }

/* Stats section: header and items — use .reveal + .show for scroll-trigger */
.stats-section .stats-header.reveal{ transform:translateY(18px); }
.stats-section .stats-header.reveal.show{ animation-delay: 220ms; }
.stats-card .stats-item.reveal{ transform:translateY(18px); }
.stats-card .stats-item.reveal:nth-of-type(1).show{ animation-delay: 300ms; }
.stats-card .stats-item.reveal:nth-of-type(3).show{ animation-delay: 380ms; }
.stats-card .stats-item.reveal:nth-of-type(5).show{ animation-delay: 460ms; }

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .hero-left .hero-title,
  .hero-left .hero-desc,
  .hero-left .hero-cta,
  .stats-section .stats-header,
  .stats-card .stats-item{
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* SOLUTION */
/* solution 섹션 - 반응형 높이/이미지 조정 */

.solution-split {
  padding-top: 100px; /* 너무 과한 패딩 조정 */
  background-color: var(--bg); /* 블랙 배경 확정 */
}
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.solution-grid.reverse{
  direction:rtl;
}
.solution-grid.reverse > *{
  direction:ltr;
}

.eyebrow{
  font-size:14px;
  letter-spacing:.08em;
  color: #000 !important;
  
}
.solution-text h2 {
  font-size: 44px;
  word-break: keep-all;
  color: var(--text); /* 검은색(#000)으로 되어있던 것을 흰색으로 변경 */
  margin-bottom: 20px;
}

.solution-kpi strong {
  font-size: 42px; /* 크기 키움 */
  font-weight: 700;
  color: #000 !important; /* 밝은 색상으로 변경 */
  display: block;
}
.solution-kpi span {
  font-size: 16px;
  color: #000 !important; /* 보조 설명은 흐리게 */
  margin-top: 4px;
}
.solution-desc {
  color: #000 !important; /* 회색 텍스트 */
  line-height: 1.7;
  font-size: 18px;
}

/* KPI */
.solution-kpi {
  display: flex;
  gap: 60px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08); /* 밝은 선 제거하고 어두운 선으로 */
  padding-top: 24px;
}

.solution-kpi strong {
  font-size: 48px;
  font-weight: 700;
  color: #000 !important; 
  display: block;
}

.solution-kpi span {
  font-size: 15px;
  color: #000 !important; 
  margin-top: 8px;
}

/* Image */
/* 기본 이미지 스타일 */
.solution-media img {
  width: 100%;
  max-width: 650px; /* 이미지의 최대 너비 제한 */
  height: 480px;    /* 목표 이미지와 유사한 비율의 높이 설정 */
  object-fit: cover;
  border-radius: 20px;
  filter: none;     /* 흑백 처리를 원치 않으면 제거 */
}

/* PC 이상 */
@media (min-width: 1200px) {
  .solution-block {
    padding: 120px 0; /* 너무 과한 280px 패딩을 줄여 가독성을 높입니다 */
    /*background-color: #fcfcfc; /* 아주 연한 회색 */
  }
}



/* Feature 01: 배경색 적용 */
/*
.solution-split .solution-block:first-of-type{
  background-color: #fcfcfc;
}*/
/* 서비스 요약 섹션 스타일 */
.service-summary-section {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('image/ex.jpg') center/cover no-repeat;
  padding: 160px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 반반 구조 */
  gap: 60px;
  width: 100%;
}

/* 왼쪽 타이틀 스타일 */
.summary-left .sub-title {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 20px;
}

.summary-left .main-title {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 30px;
}

.summary-left .main-desc {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
}

/* 오른쪽 4개 그리드 스타일 */
.summary-right {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2x2 그리드 */
  position: relative;
}

/* 십자 경계선 효과 */
.summary-right::before { /* 세로선 */
  content: '';
  position: absolute;
  top: 0; left: 50%; width: 1px; height: 100%;
  background: rgba(0,0,0,0.06);
}
.summary-right::after { /* 가로선 */
  content: '';
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 1px;
  background: rgba(0,0,0,0.06);
}

.service-item {
  padding: 60px 40px;
  text-align: center;
  transition: background 0.3s;
}

.service-item:hover {
  background: rgba(0,0,0,0.03);
}

.icon-wrap {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 15px;
  color: #ffffff;
}

/* 반응형 모바일 */
@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .summary-right::before, .summary-right::after { display: none; }
  .service-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
}





/* Responsive */
@media (max-width:1024px){
  .solution-grid{
    grid-template-columns:1fr;
    gap:48px;
  }
  .solution-grid.reverse{
    direction:ltr;
  }
  .hero-left{
    margin-left:0;
  }
}

/* Footer Styles */
.footer {
  background-color: var(--card-bg);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: var(--muted-weak);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Top: Logo & Family Site */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.family-site select {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px; /* 알약 모양 */
  color: #666;
  outline: none;
  cursor: pointer;
  appearance: none;
  background: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"12"%20height%3D"12"%20viewBox%3D"0%200%2012%2012"><path%20fill%3D"%23666"%20d%3D"M10.293%203.293L6%207.586%201.707%203.293A1%201%200%2000.293%201.707l5%205a1%201%200%20001.414%200l5-5a1%201%200%2010-1.414-1.414z"%2F><%2Fsvg>') no-repeat right 12px center;
  background-size: 10px;
  padding-right: 35px;
}

/* Middle: Info & Policy */
.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.company-info p {
  margin: 5px 0;
  line-height: 1.6;
}

.company-info span {
  margin-right: 15px;
  color: #777;
}

.company-info strong {
  margin-right: 15px;
  color: #333;
}

.footer-links {
  text-align: right;
}

.policy-links {
  margin-bottom: 10px;
}

.policy-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  margin-left: 20px;
}

.contact-number {
  font-size: 16px;
  color: #333;
}

/* Contact Section 배경 */
.contact-section {
  background-color: #ffffff; /* 아주 어두운 회색/검정 */
  padding: 100px 0;
  text-align: center;
  color: #000;
}

/* 헤더 텍스트 */
.contact-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-header p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 50px;
}

/* 정보 카드 (반투명 박스) */
.contact-info-card {
  background-color: rgba(0, 0, 0, 0.03); /* 미세한 어두운 투명도 */
  border-radius: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  display: flex;
  padding: 40px;
  gap: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.info-item {
  flex: 1;
  text-align: center;
}

.info-item span {
  display: block;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.info-item strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 실시간 문의 버튼 */
.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #4f46e5; /* 보라색/블루 포인트 */
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-live:hover {
  background-color: #4338ca;
  transform: translateY(-3px);
}

.icon-chat {
  font-size: 18px;
}

/* 반응형 */
@media (max-width: 768px) {
  .contact-info-card {
    flex-direction: column;
    padding: 30px;
  }
  .info-item strong {
    font-size: 22px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-middle, .footer-bottom, .footer-top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .footer-links {
    text-align: left;
  }
  .policy-links a {
    margin-left: 0;
    margin-right: 20px;
  }
}
.pit-stop-section {
  background-color: #ffffff; /* 완전 블랙 배경 */
  padding: 100px 0 0 0; /* 아래쪽 여백은 이미지와 붙도록 0 */
  color: #000000;
  text-align: center;
}

.pit-header {
  margin-bottom: 60px;
  padding: 0 20px;
}

.pit-header h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.pit-header p {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 300;
}

/* 이미지 가로 나열 설정 */
.pit-image-group {
  display: flex;
  width: 100%;
  height: 600px; /* 세로로 긴 느낌 유지 */
  overflow: hidden;
}

.pit-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.5s ease; /* 호버 시 넓어지는 효과 */
  cursor: pointer;
}

.pit-item:last-child {
  border-right: none;
}

.pit-item img {
  width: 95%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%); /* 살짝 차분한 톤 */
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* 텍스트 오버레이 */
.overlay-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.8;
}

/* 호버 효과: 선택한 이미지가 넓어짐 */
.pit-item:hover {
  flex: 1.5;
}

.pit-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%); /* 호버 시 컬러 강조 */
}

/* 모바일 대응: 세로로 쌓기 */
@media (max-width: 768px) {
  .pit-image-group {
    flex-direction: column;
    height: auto;
  }
  .pit-item {
    height: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* 메인 견적 문의 버튼 (왼쪽) */
.summary-cta {
  margin-top: 50px;
}

.btn-estimate-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-estimate-main:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-3px);
}

.btn-estimate-main i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-estimate-main:hover i {
  transform: translateX(5px);
}

/* 카드 내 텍스트 링크형 버튼 (오른쪽) */
.btn-text-link {
  display: inline-block;
  margin-top: 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.btn-text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.btn-text-link:hover {
  opacity: 1;
}

.btn-text-link:hover::after {
  width: 100%;
}