@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-rgb: 30, 58, 138;
  --accent: #ef4444;
  --accent-orange: #f97316;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #ffffff;
  --bg-sub: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  --hero-gradient: linear-gradient(180deg, #e0f2fe 0%, #ffffff 100%);
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --hover-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.12);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-light);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-light);
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

/* Sections Spacer */
section {
  padding: 100px 20px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-block;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title span.highlight {
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Grid of 4 sectors rising up */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  perspective: 1000px;
}

.sector-card-anim {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-decoration: none;
  color: var(--text-main);
  text-align: left;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(60px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.6s ease,
              box-shadow 0.4s ease, 
              background-color 0.4s ease;
}

.sector-card-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered transition delays will be set via JS */

.sector-card-anim:hover {
  transform: translateY(-8px) scale(1.02);
  background: #ffffff;
  box-shadow: var(--hover-shadow);
  border-color: rgba(37, 99, 235, 0.2);
}

.sector-card-anim .step-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.sector-card-anim .icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(30, 58, 138, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 24px;
  transition: var(--transition);
}

.sector-card-anim:hover .icon-box {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.sector-card-anim h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sector-card-anim p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Sections Common Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

/* Intro Cards Section */
.intro-section {
  background-color: var(--bg-sub);
}

.intro-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.intro-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.intro-body {
  margin-bottom: 30px;
}

.intro-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.intro-step span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.intro-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intro-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.intro-features {
  list-style: none;
}

.intro-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 15px;
}

.intro-features i {
  color: var(--accent-orange);
}

.intro-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
  margin-top: 20px;
}

.intro-price {
  font-size: 14px;
  color: var(--text-muted);
}

.intro-price strong {
  font-size: 20px;
  color: var(--text-main);
  font-weight: 800;
}

.intro-btn {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.intro-btn:hover {
  gap: 12px;
  color: var(--primary);
}

/* Reviews Horizontal Slider Section */
.reviews-section {
  background-color: var(--bg-main);
  position: relative;
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 60px) / 3);
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(30, 58, 138, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-badge {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 30px;
}

.review-badge.tag-점검 { background: #e0f2fe; color: #0369a1; }
.review-badge.tag-공사 { background: #fee2e2; color: #b91c1c; }
.review-badge.tag-보험 { background: #ffedd5; color: #c2410c; }
.review-badge.tag-관리 { background: #dcfce7; color: #15803d; }

.review-rating {
  color: #fbbf24;
}

.review-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.review-img-box {
  position: relative;
  height: 110px;
}

.review-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-img-box span {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.review-content {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 70px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.review-user-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.review-user-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-btn {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: var(--transition);
  color: var(--text-main);
  font-size: 18px;
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Contact Info CTA banner */
.contact-banner {
  max-width: 1200px;
  margin: 60px auto 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-radius: var(--border-radius);
  padding: 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(30, 58, 138, 0.25);
}

.contact-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -150px;
  right: -50px;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-info p {
  font-size: 15px;
  opacity: 0.85;
}

.contact-details {
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-phone {
  font-size: 32px;
  font-weight: 900;
  color: #60a5fa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-phone span {
  color: #fca5a5;
}

/* Footer styling */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 20px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-info h4 {
  color: white;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-links h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Responsive CSS */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    flex: 0 0 calc((100% - 30px) / 2);
  }
}

@media (max-width: 768px) {
  .nav-menu, .btn-cta {
    display: none;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    flex: 0 0 100%;
  }
  .contact-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    align-items: center;
  }
  .contact-details {
    flex-direction: column;
    gap: 15px;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
