/* =========================================================
   Main Page Styles
   - 메인 비주얼
   - 주요 사업분야
   - ABOUT
   - 시공 및 관리 실적
   - 문의 배너
   - 반응형
========================================================= */

/* =========================================================
   1. Main Visual
========================================================= */
.hero {
  position: relative;
  height: 110vh;
  min-height: 900px;
  max-height: 1100px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: 110%;
  background-position: center 75%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
}

.slide1 {
  background-image: url("/resources/user/img/mainBanner.jpg?v=4");
}

.slide2 {
  background-image: url("/resources/user/img/mainBanner2.jpg?v=1");
}

.slide3 {
  background-image: url("/resources/user/img/mainBanner3.jpg?v=1");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 35, 25, 0.72) 0%,
    rgba(0, 35, 25, 0.42) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  transform: translateY(80px);
}

.hero-sub {
  margin-bottom: 20px;
  color: #b7f5dc;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
}

.hero h2 {
  margin-bottom: 28px;
  font-size: 64px;
  line-height: 1.22;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-desc {
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.8;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Hero controls */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-controls .dot.active {
  background: #fff;
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-progress .bar {
  width: 0;
  height: 100%;
  background: #0c8c63;
  animation: progress 5s linear infinite;
}

@keyframes progress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Hero buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 56px;
  border-radius: 0;
  font-weight: 800;
  transition: 0.3s;
}

.btn.primary {
  background: #0c8c63;
  color: #fff;
}

.btn.primary:hover {
  background: #066b4a;
}

.btn.line {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn.line:hover {
  background: #fff;
  color: #0c6b4f;
}


/* =========================================================
   2. Business Section
========================================================= */
.business {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f5f8f6 100%);
}

.business-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.business-visual {
  position: relative;
}

.business-img {
  height: 560px;
  background:
    linear-gradient(rgba(0, 45, 35, 0.15), rgba(0, 45, 35, 0.15)),
    url("/resources/user/img/business.png?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  box-shadow: 30px 30px 0 #e7f1ed;
}

.business-badge {
  position: absolute;
  right: -35px;
  bottom: 45px;
  width: 190px;
  height: 150px;
  padding: 28px;
  background: #0c6b4f;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.business-badge strong {
  display: block;
  margin-bottom: 12px;
  font-size: 44px;
  line-height: 1;
}

.business-badge span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
}

.business-text > p {
  margin-bottom: 14px;
  color: #0c8c63;
  font-weight: 900;
  letter-spacing: 4px;
}

.business-text h3 {
  margin-bottom: 24px;
  color: #111;
  font-size: 44px;
  line-height: 1.32;
  font-weight: 900;
}

.business-text > span {
  display: block;
  margin-bottom: 34px;
  color: #555;
  font-size: 17px;
  line-height: 1.85;
}

.business-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.business-item {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid #e4e8e6;
  background: #fff;
  transition: 0.3s;
}

.business-item strong {
  color: #0c8c63;
  font-size: 18px;
  font-weight: 900;
}

.business-item h4 {
  margin-bottom: 6px;
  color: #222;
  font-size: 18px;
}

.business-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.business-item:hover {
  transform: translateY(-6px);
  border-color: #0c8c63;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.business-item:hover h4 {
  color: #0c8c63;
}


/* =========================================================
   3. Scroll Animation Utilities
========================================================= */
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: 1.4s ease;
}

.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-60px);
}

.fade-right {
  transform: translateX(60px);
}

.show {
  opacity: 1;
  transform: translate(0, 0);
}


/* =========================================================
   4. About Section
========================================================= */
.main-about {
  padding: 130px 0;
  background: #fff;
}

.about-head {
  margin-bottom: 46px;
}

.about-head h2 {
  max-width: 980px;
  color: #111;
  font-size: 46px;
  line-height: 1.35;
  font-weight: 900;
  word-break: keep-all;
}

.about-head > p {
  margin-bottom: 22px;
  color: #0c8c63;
  font-weight: 900;
  letter-spacing: 4px;
}

.about-wide-img {
  height: 520px;
  margin-bottom: 54px;
  overflow: hidden;
  border-radius: 0 90px 0 0;
  margin-bottom: 70px;
}

.about-wide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 7s ease;
}

.main-about:hover .about-wide-img img {
  transform: scale(1.05);
}

.about-content {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 60px;
  align-items: start;
}

.about-content > p {
  color: #444;
  font-size: 18px;
  line-height: 1.9;
  word-break: keep-all;
  max-width: 520px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #ddd;
}

.about-features div {
  padding: 26px 24px;
  border-right: 1px solid #ddd;
}

.about-features div:last-child {
  border-right: 0;
}

.about-features strong {
  display: block;
  margin-bottom: 10px;
  color: #0c8c63;
  font-size: 20px;
  font-weight: 900;
}

.about-features span {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .main-about {
    padding: 80px 0;
  }

  .about-head h2 {
    font-size: 30px;
  }

  .about-wide-img {
    height: 280px;
    margin-bottom: 34px;
    border-radius: 0 45px 0 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-content > p {
    font-size: 15px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-features div {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

  .about-features div:last-child {
    border-bottom: 0;
  }
}


/* =========================================================
   5. Works Section
========================================================= */
.works {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
}

.works-inner {
  width: 100%;
  padding-left: max(40px, calc((100% - 1180px) / 2));

  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.works-title {
  padding-top: 10px;
  opacity: 0;
  transform: translateX(-50px);
  transition: 1.4s ease;
}

.works-title.show {
  opacity: 1;
  transform: translateX(0);
}

.works-title p {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
  color: #005b96;
  font-weight: 900;
  letter-spacing: 2px;
}

.works-title p::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  background: #0c8c63;
}

.works-title h3 {
  margin-bottom: 28px;
  color: #111;
  font-size: 42px;
  font-weight: 900;
}

.works-title span {
  display: block;
  margin-bottom: 42px;
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

.works-controls {
  display: flex;
  gap: 8px;
}

.works-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #ddd;
  background: #fff;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  transition: 0.25s;
}

.works-controls button:hover {
  border-color: #0c8c63;
  background: #0c8c63;
  color: #fff;
}

.works-slider-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 80px;
}

.works-slider {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 20px;
  cursor: grab;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.works-slider::-webkit-scrollbar {
  display: none;
}

.works-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.work-card {
  flex: 0 0 380px;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.work-card.show {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover {
  transform: translateY(-6px);
}

.work-img {
  width: 100%;
  height: 400px;
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s ease;
}

.work-img::after {
  display: none;
}

.work-card:hover .work-img {
  transform: scale(1.04);
}

.work-info {
  padding: 0;
  margin-bottom: 8px;
  color: #0c8c63;
  font-size: 14px;
  font-weight: 800;
}

.work-info span {
  letter-spacing: 0.5px;
}

.work-info h4 {
  margin-top: 4px;
  color: #222;
  font-size: 22px;
  font-weight: 800;
}

.work-info p {
  margin-top: 8px;
  color: #777;
  font-size: 15px;
  line-height: 1.45;
  word-break: keep-all;
}

.work-card:hover .work-info h4 {
  color: #0c8c63;
}

@media (max-width: 1024px) {
  .works-inner {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 35px;
  }

  .work-card {
    flex-basis: 300px;
  }

  .work-img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .works-inner {
    display: block;
    max-width: calc(100% - 40px);
  }

  .works-title {
    margin-bottom: 35px;
    opacity: 1;
    transform: none;
  }

  .works-title h3 {
    font-size: 30px;
  }

  .works-title span {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .works-slider-wrap {
    overflow: visible;
    padding-bottom: 35px;
  }

  .works-slider {
    gap: 18px;
  }

  .work-card {
    flex: 0 0 82%;
    min-width: 260px;
    opacity: 1;
    transform: none;
  }

  .work-card.show {
    opacity: 1;
    transform: none;
  }

  .work-img {
    height: 220px;
    min-height: 220px;
  }

  .work-info h4 {
    font-size: 19px;
  }
}


/* =========================================================
   6. Contact Banner
========================================================= */
.contact-banner {
  padding: 75px 0;
  background:
		linear-gradient(90deg, rgba(0,55,42,0.95), rgba(12,140,99,0.88)),
		url("/resources/user/img/mainBanner2.jpg") center/cover no-repeat;
  color: #fff;
}

.contact-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-banner p {
  margin-bottom: 10px;
  color: #9ee8ff;
  font-weight: 800;
  letter-spacing: 3px;
}

.contact-banner h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 38px;
}

.contact-banner span {
  color: rgba(255, 255, 255, 0.8);
}

.contact-banner a {
  width: 160px;
  height: 54px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-banner a:hover {
	background: #fff;
	color: #0c6b4f;
}

/* =========================================================
   7. Mobile Responsive
========================================================= */
@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }

  /* Main visual */
  .hero {
    height: 620px;
    min-height: 620px;
    max-height: none;
  }

  .hero-slide {
    background-size: cover;
    background-position: center;
  }

  .hero-content {
    padding-top: 70px;
    transform: translateY(10px);
  }

  .hero-sub {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero h2 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.35;
  }

  .hero-desc {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero h2 br,
  .hero-desc br {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 140px;
    height: 46px;
    font-size: 14px;
  }

  /* Business / About */
  .business-wrap,
  .about-inner,
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .business-img,
  .about-img {
    height: 240px;
    box-shadow: 12px 12px 0 #e7f1ed;
  }

  .business-badge {
    right: 10px;
    bottom: -20px;
    width: 120px;
    height: 95px;
    padding: 16px;
  }

  .business-badge strong {
    font-size: 26px;
  }

  .business-badge span {
    font-size: 11px;
  }

  .business-text h3,
  .about-text h3 {
    font-size: 24px;
    line-height: 1.4;
  }

  .business-text span,
  .about-text span {
    font-size: 14px;
    line-height: 1.6;
  }

  .business-items {
    grid-template-columns: 1fr;
  }

  .business-item {
    padding: 16px;
  }

  /* Works */
  .works-inner {
    display: block;
    padding: 0 20px;
  }

  .works-title {
    margin-bottom: 28px;
    opacity: 1;
    transform: none;
  }

  .works-slider-wrap {
    overflow: visible;
    padding-bottom: 35px;
  }

  .works-slider {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  .work-card {
    flex: 0 0 82%;
    min-width: 260px;
    opacity: 1;
    transform: none;
  }

  .work-card.show {
    opacity: 1;
    transform: none;
  }

  .work-img {
    display: block;
    width: 100%;
    height: 220px;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Contact */
  .contact-wrap {
    flex-direction: column;
    gap: 20px;
  }

  .contact-banner h3 {
    font-size: 26px;
  }

  .contact-banner a {
    width: 140px;
    height: 48px;
  }
}


/* =========================
   MAIN DESIGN UPGRADE
========================= */

/* 메인 배너 하단 숫자 섹션 */
.main-stats {
  position: relative;
  z-index: 5;
  margin-top: -70px;
}

.main-stats .inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.stat-item {
  padding: 34px 30px;
  text-align: center;
  border-right: 1px solid #e7e7e7;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  font-size: 42px;
  font-weight: 900;
  color: #0c8c63;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 16px;
  color: #444;
  font-weight: 700;
}

/* 공통 섹션 제목 강화 */
.section-title p,
.business-text > p,
.about-text p,
.works-title p,
.about-head > p {
  position: relative;
  display: inline-block;
}

.section-title p::after,
.business-text > p::after,
.about-text p::after,
.works-title p::after,
.about-head > p::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: #0c8c63;
  margin-top: 10px;
}

/* 사업분야 아이콘 느낌 */
.business-item {
  position: relative;
  overflow: hidden;
}

.business-item::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(12, 140, 99, 0.08);
}

/* 시공실적 카드 더 고급스럽게 */
.work-card {
  position: relative;
}

.work-img {
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.work-info span {
  letter-spacing: 0.5px;
}

.work-info h4 {
  margin-top: 4px;
}

.work-card:hover .work-info h4 {
  color: #0c8c63;
}

/* 우측 하단 고정 문의 버튼 */
.quick-contact {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-contact a {
  width: 118px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c8c63;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  transition: 0.25s;
}

.quick-contact a:last-child {
  background: #003b5c;
}

.quick-contact a:hover {
  transform: translateY(-4px);
}



/* =========================================================
   main-tech
========================================================= */
.main-tech {
  position: relative;
  padding: 120px 0;
  background:
    linear-gradient(90deg, rgba(0, 45, 35, .94), rgba(0, 75, 58, .88)),
    url("/resources/user/img/mainBanner3.jpg") center/cover no-repeat;
  color: #fff;
}

.tech-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.tech-title span {
  display: block;
  margin-bottom: 18px;
  color: #9ee8c7;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
}

.tech-title h2 {
  margin-bottom: 28px;
  font-size: 44px;
  line-height: 1.35;
  font-weight: 900;
}

.tech-title p {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.tech-content {
  border-top: 1px solid rgba(255,255,255,.22);
}

.tech-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.tech-row strong {
  color: #9ee8c7;
  font-size: 20px;
  font-weight: 900;
}

.tech-row h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.tech-row p {
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .tech-wrap {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .main-tech {
    padding: 80px 0;
  }

  .tech-title h2 {
    font-size: 32px;
  }

  .tech-row {
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .tech-row h3 {
    font-size: 20px;
  }
}

/* =========================================================
   partner-section
========================================================= */
/* .partner-section{
    padding: 50px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.partner-title{
    font-size: 15px;
    font-weight: 700;
    color: #777;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 2px;
}

.partner-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.partner-row{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-row span{
    position: relative;
    padding: 0 22px;

    font-size: 16px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.partner-row span::after{
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 1px;
    height: 12px;

    background: #ddd;

    transform: translateY(-50%);
}

.partner-row span:last-child::after{
    display: none;
}
 */
.partner-section{
    padding: 50px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.partner-title{
    font-size: 15px;
    font-weight: 700;
    color: #777;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 2px;
}

.partner-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
}

.partner-list span{
    position: relative;
    padding-right: 28px;

    font-size: 16px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.partner-list span::after{
    content: "";
    position: absolute;
    right: 0;
    top: 50%;

    width: 1px;
    height: 12px;

    background: #ddd;

    transform: translateY(-50%);
}

.partner-list span:last-child::after{
    display: none;
}

.partner-list span:last-child{
    padding-right: 0;
}


/* 모바일 */
@media (max-width: 560px) {
  .main-stats .inner {
    grid-template-columns: repeat(3, 1fr); /* 가로 유지 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
  }

  .stat-item {
    padding: 18px 8px;
    border-right: 1px solid #eee;
    border-bottom: 0;
  }

  .stat-item:last-child {
    border-right: 0;
  }

  .stat-item strong {
    font-size: 22px;
  }

  .stat-item span {
    font-size: 11px;
    line-height: 1.3;
  }
}


/* =========================
   FINAL PATCH
========================= */

/* 시공실적 이미지 흐림 제거 */
.work-img::after {
  display: none;
}

/* 카드 hover 보강 */
.work-card {
  transition: 0.3s;
}

.work-card:hover {
  transform: translateY(-6px);
}

/* main-stats 모바일 겹침 방지 */
@media (max-width: 768px) {
  .main-stats {
    margin-top: 20px;
  }
}

/* 모바일 stats 카드 느낌 */
@media (max-width: 560px) {
  .main-stats .inner {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
  }
}