@charset "UTF-8";

.clearfix::after {
  content: "";
  clear: both;
  display: block;
}

/* --- 초기화 및 공통 스타일 --- */
:root {
  --primary-color: #2c5ba7;
  /* 메인 파란색 */
  --dark-bg: #000000;
  /* AI 섹션 배경 */
  --light-bg: #f5f9fc;
  /* 헤더 배경 */
  --text-color: #333;
  --gray-text: #666;
  --white: #fff;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 30px;
  background-color: var(--primary-color);
}

.section-sub {
  font-size: 1.35em;
  opacity: 0.7;
  max-width: 52ch;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 500;
  transition: 0.3s;
  font-size: 1.16em;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.btn-outline {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid #ccc;
  margin-left: 10px;
}

/* --- 1. 헤더 (Hero Section) --- */
main {
  background: url(../img/main.jpg);
  padding: 40px 0 0 0;
  height: 85vh;
  position: relative;
  overflow: hidden;
}

main .container {
  height: 100%;
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
}

.hero-text {
  flex: 1.5;
  min-width: 440px;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.3;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.hero-text b {
  color: #71bc1b;
}
.hero-text p {
  color: var(--gray-text);
  margin-bottom: 50px;
  font-size: 20px;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  border-radius: 20px 20px 0 0;
  max-height: 400px;
  object-fit: cover;
}

/* --- 2. 파란띠 (Info Bar) --- */
.info-bar {
  background-color: #204d8e;
  color: var(--white);
  padding: 15px 0;
  font-size: 1.5em;
}

.info-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-bar .phone {
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- 3. 왜 금강보청기인가 (Features) --- */
.why-section {
  padding: 80px 0;
  background: url(../img/sec1_bg.jpg);
  background-size: cover;
}

.why-layout {
  display: flex;
  gap: 110px;
  flex-wrap: wrap;
}

.why-image {
  flex: 1;
  min-width: 300px;
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.why-list {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 15px;
}
.why-text h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.why-text p {
  font-size: 1.15rem;
  color: var(--gray-text);
}

/* --- 4. AI 섹션 (Dark Banner) --- */
.ai-section {
}

.ai-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.ai-text {
  text-align: left;
}

.ai-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.ai-text h2 span {
  color: #f1c40f;
}

/* 노란색 강조 */
.ai-text p {
  color: #aaa;
}

.ai-visual {
  max-width: 400px;
}

/* --- 5. 제품 소개 (Products) --- */
.product-section {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.product-section .section-title {
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

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

.prod-img-area {
  height: 200px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-info {
  padding: 25px;
  text-align: center;
}

.prod-info h3 {
  font-size: 1.6rem;
  padding-top: 20px;
  margin-bottom: 10px;
}

.prod-info p {
  font-size: 1.2rem;
  color: var(--gray-text);
  margin-bottom: 15px;
}

.prod-tag {
  font-size: 1rem;
  color: #999;
  border: 1px solid #ddd;
  padding: 3px 10px;
  border-radius: 20px;
}

/* --- 6. 오시는 길 (Location) --- */
.location-section {
  padding: 80px 0;
}

.location-layout {
  display: flex;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loc-info {
  flex: 1;
  background-color: #2b4075;
  color: white;
  padding: 50px;
  min-width: 300px;
}

.loc-info h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 20px;
}

.info-item {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
}

.info-item i {
  color: #8baae8;
  margin-top: 5px;
}

.info-item h4 {
  font-size: 1.1rem;
  color: #8baae8;
  margin-bottom: 5px;
}

.info-item h2 {
  font-size: 2em;
}

.info-item p {
  font-size: 1.26em;
}

.call-btn {
  background: white;
  color: #2b4075;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  margin-top: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-gap: 8px;
  font-size: 18px;
}

.loc-map {
  flex: 2;
  min-height: 400px;
  background: #eee;
  overflow: hidden;
}

.loc-map .root_daum_roughmap {
  width: 100%;
  height: 550px !important;
}

.loc-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  main {
    background-image: url(../img/mainm.jpg);
    background-size: cover;
  }
  .hero-text {
    padding-bottom: 130px;
  }
  .btn-outline {
    display: none;
  }
  .section-title {
    font-size: 2em;
  }
  .section-sub {
    font-size: 1.3em;
  }
  .hero-text h1 {
    font-size: 2.6rem;
    max-width: 14ch;
  }

  .hero-text h1 span {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1.3em;
  }

  .hero-image {
    display: none;
  }

  .info-bar {
    display: none;
  }
  .why-section {
      padding: 60px 15px;
      grid-gap: 30px;
    background: #f6f9fc;
  }
  .why-layout {
     grid-gap: 30px;
  }
  .why-text h3 {
    font-size: 1.42em;
  }
  .why-text p {
    font-size: 1.21em;
  }
.product-section,
.location-section {
  padding: 60px 15px 0;
}

.section-title::before {
  height: 100%;
  left: -3px;
}


.loc-map .root_daum_roughmap {
  width: 100%;
  height: 350px !important;
}

.loc-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

  /* 모바일에서 이미지 숨김 처리 */
  .why-layout,
  .location-layout {
    flex-direction: column;
  }

  .ai-text {
    text-align: center;
  }

  .info-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
