/* 이보험 웹사이트 스타일시트 - 스토리 중심 디자인 */

/* 변수 */
:root {
  --primary-color: #e67e22;
  --secondary-color: #f39c12;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --success-color: #27ae60;
  --warning-color: #f1c40f;
  --danger-color: #e74c3c;
  --text-color: #333;
  --light-text: #f4f4f4;
  --border-color: #ddd;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
}

/* 기본 스타일 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-subtitle:before,
.section-subtitle:after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: var(--primary-color);
  margin: 0 10px;
  vertical-align: middle;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

/* 헤더 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav .nav-list {
  display: flex;
}

.main-nav .nav-link {
  padding: 0.5rem 1rem;
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.main-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav .nav-link:hover:after,
.main-nav .nav-link.active:after {
  width: 70%;
}

.header-cta .phone-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.header-cta .phone-btn i {
  margin-right: 5px;
}

.header-cta .phone-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* 히어로 섹션 */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('../images/hero-bg.txt');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(230, 126, 34, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.primary-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  border: 2px solid #fff;
  transition: var(--transition);
}

.secondary-btn:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 나의 이야기 섹션 */
.story {
  padding: 100px 0;
  background-color: #fff;
}

.story-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.story-image {
  flex: 1;
  position: relative;
}

.story-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: var(--box-shadow);
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.2;
}

.story-text {
  flex: 1;
}

.story-text .highlight {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--primary-color);
}

.story-signature {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.story-signature img {
  height: 60px;
  margin-right: 15px;
}

.signature-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 500;
}

/* 보험 여정 섹션 */
.journey {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.journey-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  z-index: 1;
  box-shadow: var(--box-shadow);
}

.timeline-content {
  width: 45%;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content:before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content:before {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content:before {
  left: -10px;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content .age {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

.timeline-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.timeline-products li {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* 보험상품 섹션 */
.products {
  padding: 100px 0;
  background-color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card:hover:before {
  transform: scaleX(1);
}

.product-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  font-weight: 500;
}

.product-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.product-link:hover i {
  transform: translateX(5px);
}

/* 성공사례 섹션 */
.success {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.success-stories {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story-card {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.story-image {
  flex: 0 0 300px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-details {
  flex: 1;
  padding: 30px;
}

.story-details h3 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.client-name {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.story-result {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.result-item {
  flex: 1;
  background-color: rgba(230, 126, 34, 0.1);
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

.result-title {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 5px;
}

.result-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 보험이야기 블로그 섹션 */
.blog {
  padding: 100px 0;
  background-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-weight: 500;
}

.blog-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.blog-link:hover i {
  transform: translateX(5px);
}

.blog-more {
  text-align: center;
  margin-top: 50px;
}

.more-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.more-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* 상담 신청 섹션 */
.contact {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-intro .highlight {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-methods {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background-color: rgba(230, 126, 34, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-item h3 {
  margin-bottom: 5px;
}

.contact-form {
  flex: 1;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.form-header {
  margin-bottom: 20px;
}

.form-header h3 {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.privacy-policy {
  display: flex;
  align-items: center;
}

.privacy-policy input {
  width: auto;
  margin-right: 10px;
}

.submit-btn {
  display: inline-block;
  width: 100%;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

/* 푸터 */
.footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 70px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h3 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-social h3 {
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-social h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.copyright {
  margin-bottom: 15px;
}

.footer-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

/* 플로팅 상담 버튼 */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99;
}

.floating-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.floating-phone:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

.floating-consult {
  display: flex;
  align-items: center;
  background-color: var(--dark-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.floating-consult i {
  margin-right: 10px;
}

.floating-consult:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateX(-10px);
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 스타일 */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .story-content {
    flex-direction: column;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-content {
    width: 80%;
    margin: 60px 0 0 0 !important;
  }
  
  .timeline-icon {
    top: 0;
  }
  
  .timeline-content:before {
    display: none;
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 70px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 1000;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav .nav-list {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav .nav-link {
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .story-card {
    flex-direction: column;
  }
  
  .story-image {
    flex: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .timeline-content {
    width: 90%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-consult span {
    display: none;
  }
  
  .floating-consult {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0;
  }
  
  .floating-consult i {
    margin-right: 0;
  }
} 