/* 폼탱크 시공 - 공통 스타일시트 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  background-color: #f5f5f5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #003366;
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* 상단 유틸리티 바 */
.topbar {
  background: #001f3d;
  color: #b9cbe0;
  font-size: 13px;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a.topbar-contact {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
.topbar a.topbar-contact:hover {
  color: #FF8C00;
}

/* 헤더 */
.header {
  background-color: #003366;
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.logo {
  font-size: 22px;
  font-weight: 900;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #FF8C00;
}

.nav-menu .nav-cta {
  background-color: #FF8C00;
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
}
.nav-menu .nav-cta:hover {
  background-color: #DC7700;
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* 컨테이너 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}
.section-alt {
  background-color: white;
}
.eyebrow {
  display: block;
  text-align: center;
  color: #FF8C00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 30px;
  font-weight: 900;
  color: #003366;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: #666;
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 16px;
}

/* 태그 필 */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef3f8;
  color: #003366;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 12px;
}

/* 통계 바 */
.stats-bar {
  background: #ffffff;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  padding: 28px 0;
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-bar-grid .stat {
  padding: 0 10px;
  border-left: 1px solid #eef0f3;
}
.stats-bar-grid .stat:first-child {
  border-left: none;
}
.stats-bar-grid .stat .num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: #003366;
  letter-spacing: -0.02em;
}
.stats-bar-grid .stat .num span.unit {
  font-size: 16px;
  font-weight: 700;
  color: #FF8C00;
  margin-left: 2px;
}
.stats-bar-grid .stat .label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

/* 히어로 섹션 - 좌우 분할형 */
.hero {
  background: linear-gradient(180deg, #eef4fb 0%, #f5f5f5 100%);
  padding: 64px 20px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  text-align: left;
}

.hero-content .eyebrow {
  text-align: left;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 900;
  color: #003366;
  margin-bottom: 18px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.hero-stats .stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #dde3ea;
  color: #003366;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hero-stats .stat-badge svg {
  width: 18px;
  height: 18px;
  stroke: #FF8C00;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 520px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px -20px rgba(0, 51, 102, 0.35);
  border: 4px solid #ffffff;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #FF8C00, #ffb648);
  border-radius: 24px;
  z-index: 0;
  opacity: 0.9;
}
.hero-visual .hero-image {
  position: relative;
  z-index: 1;
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  z-index: 2;
  background: #ffffff;
  color: #003366;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF8C00;
  display: inline-block;
}

.page-hero {
  background: linear-gradient(135deg, #003366 0%, #00509e 100%);
  color: white;
  padding: 44px 20px;
  text-align: center;
}
.page-hero .tag-pill {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}
.page-hero .breadcrumb {
  color: #b9cbe0;
  margin-bottom: 10px;
}
.page-hero .breadcrumb a {
  color: #ffffff;
}
.page-hero h1 {
  font-size: 30px;
  margin-bottom: 10px;
}
.page-hero p {
  color: #dbe7f5;
  max-width: 640px;
  margin: 0 auto;
}

/* 버튼 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FF8C00;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(255, 140, 0, 0.5);
}

.btn-primary:hover {
  background-color: #DC7700;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(255, 140, 0, 0.6);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #003366;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #003366;
  min-height: 44px;
  font-size: 16px;
}
.btn-outline:hover {
  background-color: #003366;
  color: white;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* 카드 그리드 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border: 1px solid #eef0f3;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 51, 102, 0.25);
  border-color: #FF8C00;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background-color: #e9edf2;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.08);
}

.card-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 51, 102, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: #003366;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: #FF8C00;
  text-decoration: none;
  font-weight: 700;
  transition: gap 0.2s ease;
}
.card:hover .card-link {
  gap: 10px;
}

/* 뱃지 */
.badge {
  display: inline-block;
  background-color: #eef3f8;
  color: #003366;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* 포트폴리오 갤러리 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e9edf2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0,20,45,0.85) 0%, rgba(0,20,45,0) 100%);
}

/* 본문 콘텐츠 (정보성 페이지) */
.content-section {
  max-width: 860px;
  margin: 0 auto;
}
.content-section h2 {
  font-size: 23px;
  color: #003366;
  margin: 30px 0 12px;
}
.content-section h3 {
  font-size: 18px;
  color: #003366;
  margin: 20px 0 8px;
}
.content-section p {
  margin-bottom: 12px;
  color: #333;
}
.content-section ul,
.content-section ol {
  margin: 0 0 12px 22px;
  color: #333;
}
.content-section li {
  margin-bottom: 5px;
}
.content-image {
  width: 100%;
  border-radius: 10px;
  margin: 18px 0;
  max-height: 340px;
  object-fit: cover;
}

.breadcrumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
}
.breadcrumb a {
  color: #003366;
  text-decoration: none;
}

/* 본문 + 사이드바 2단 레이아웃 */
.content-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.content-layout .content-section {
  max-width: none;
  margin: 0;
}
.content-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-cta-card {
  background: linear-gradient(135deg, #003366 0%, #00509e 100%);
  color: white;
  border-radius: 14px;
  padding: 22px;
}
.sidebar-cta-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.sidebar-cta-card p {
  font-size: 13px;
  color: #dbe7f5;
  margin-bottom: 14px;
  line-height: 1.5;
}
.sidebar-box {
  background: white;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar-box h4 {
  color: #003366;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-links a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.sidebar-links a:hover {
  background: #eef4fb;
  color: #003366;
}
.sidebar-box .phone-line {
  font-size: 15px;
  font-weight: 800;
  color: #003366;
}

/* FAQ */
.faq-section {
  margin: 20px 0;
}

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

.faq-card {
  background-color: white;
  padding: 22px;
  border-radius: 10px;
  border-left: 4px solid #FF8C00;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-card h3 {
  font-size: 16px;
  color: #003366;
  margin-bottom: 12px;
  line-height: 1.5;
}

.faq-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 관련 페이지 링크 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.related-links a {
  background: white;
  border: 1px solid #dde3ea;
  color: #003366;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.related-links a:hover {
  border-color: #FF8C00;
  color: #FF8C00;
}

/* 상담 페이지 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.contact-info-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  row-gap: 14px;
}
.contact-info-card dt {
  font-weight: 700;
  color: #003366;
}
.contact-phone-block {
  background: #003366;
  color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin-bottom: 24px;
}
.contact-phone-block .phone-number {
  font-size: 32px;
  font-weight: 900;
  color: #FF8C00;
  margin: 10px 0;
  letter-spacing: 0.02em;
}
.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  width: 100%;
  height: 320px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 700;
  color: #003366;
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dde3ea;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* 사이트맵 페이지 */
.sitemap-category {
  margin-bottom: 36px;
}
.sitemap-category h2 {
  color: #003366;
  font-size: 20px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF8C00;
}
.sitemap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.sitemap-list li {
  background: white;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.sitemap-list a {
  color: #003366;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.sitemap-list p {
  color: #777;
  font-size: 13px;
  margin-top: 6px;
}

/* 모바일 하단 고정 CTA */
.mobile-cta-bar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 90;
  padding: 10px 14px;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* 푸터 */
.footer {
  background-color: #003366;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4,
.footer-section h5 {
  color: #FF8C00;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-section a {
  color: #dbe7f5;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
  color: #FF8C00;
}

.footer-bottom {
  border-top: 1px solid #2d5580;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #9db6d1;
  max-width: 1200px;
  margin: 0 auto;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 16px;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-image {
    height: 400px;
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
  }
  .topbar-tags {
    display: none;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .content-sidebar .sidebar-cta-card,
  .content-sidebar .sidebar-box {
    flex: 1;
    min-width: 260px;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #003366;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-menu.open {
    max-height: 400px;
  }
  .nav-menu li {
    border-top: 1px solid #12447a;
  }
  .nav-menu a {
    padding: 14px 20px;
  }
  .nav-menu .nav-cta {
    margin: 12px 20px;
    border-radius: 6px;
  }

  .hero {
    padding: 40px 15px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content .eyebrow {
    text-align: center;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    margin: 0 auto;
  }
  .hero-image {
    height: 260px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual::before {
    width: 90px;
    height: 90px;
  }
  .hero-badge {
    left: 12px;
    font-size: 12px;
    padding: 8px 14px;
  }
  .page-hero h1 {
    font-size: 24px;
  }

  .card-grid,
  .card-grid-4,
  .faq-grid,
  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 170px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
  .gallery-item.span-2 {
    grid-column: span 2;
    grid-row: span 1;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }
  .stats-bar-grid .stat {
    border-left: none;
    border-top: 1px solid #eef0f3;
    padding-top: 14px;
  }
  .stats-bar-grid .stat:nth-child(-n+2) {
    border-top: none;
    padding-top: 0;
  }

  .content-sidebar {
    flex-direction: column;
  }

  .topbar-inner {
    justify-content: center;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-info-card dl {
    grid-template-columns: 80px 1fr;
  }

  .mobile-cta-bar {
    display: block;
  }
}
