:root {
  --navy: #061d3b;
  --blue: #087df5;
  --ink: #102746;
  --muted: #63748a;
  --line: #dce6f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, 'Noto Sans KR', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background-color: #f4f8fc;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

/* ----------------------------------
   상단 고정 헤더 (높이: 76px)
---------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: rgba(6, 29, 59, 0.98);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand .logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.nav nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 14px;
}

.nav nav a {
  cursor: pointer;
}

.nav nav a:hover,
.nav nav a.active {
  color: #70b7ff;
  font-weight: 700;
}

.top-call,
.btn {
  display: inline-block;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 13px;
}

.top-call,
.primary {
  background: #087df5;
  color: #fff;
}

.menu {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

/* ----------------------------------
   탭별 화면 제어
---------------------------------- */
.tab-content {
  display: none !important;
  width: 100%;
  min-height: calc(100vh - 76px); 
}

.tab-content.active {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ----------------------------------
   1. 홈 화면 (Hero) - 배경 이미지 크기 및 정렬 최적화
---------------------------------- */
.hero-banner {
  position: relative;
  background-color: #031226;
  color: #fff;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

/* 홈 화면 전용 배경 서버실 이미지 크기 맞춤 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') no-repeat center right / cover;
  z-index: 0;
}

/* 홈 화면 전용 그라데이션 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 18, 38, 0.94) 0%, rgba(5, 25, 52, 0.8) 50%, rgba(3, 18, 38, 0.3) 100%);
  z-index: 1;
}

.hero-content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  width: min(1280px, calc(100% - 40px));
  margin: auto;
  padding: 40px 0;
}

.hero-left .eyebrow {
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-left h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.1;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}

.hero-left h1 strong {
  color: #ffffff;
}

.hero-left p:not(.eyebrow) {
  font-size: 16.5px;
  color: #dbeafe;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-right {
  min-height: 380px;
}

.actions {
  display: flex;
  gap: 14px;
}

.outline {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(6, 29, 59, 0.4);
}

.outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ----------------------------------
   공통 섹션 규격
---------------------------------- */
.section {
  padding: 50px 0;
  width: 100%;
}

.light {
  background: #f4f8fc;
}

.navy {
  background: var(--navy);
  color: #fff;
}

.section-head {
  margin-bottom: 25px;
  text-align: left;
}

/* ----------------------------------
   2. 회사소개
---------------------------------- */
.about-full {
  max-width: 950px;
  margin: auto;
  width: 100%;
}

.about-full p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 10px;
}

.lead-quote {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--ink) !important;
  background: #eef5fc;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid var(--blue);
  margin: 15px 0 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}

.value-box {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(10, 35, 70, 0.05);
  border: 1px solid var(--line);
}

.value-box.trust { border-top: 4px solid var(--blue); }
.value-box.speed { border-top: 4px solid var(--navy); }

.value-box b {
  font-size: 17px;
  display: block;
  margin-bottom: 6px;
}

.value-box.trust b { color: var(--blue); }
.value-box.speed b { color: var(--navy); }

.value-box p { font-size: 13.5px !important; margin: 0; }

.company-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  margin-top: 20px;
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.company-facts div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eef3f8;
  font-size: 13.5px;
}

.company-facts b { color: #17477b; }

/* ----------------------------------
   3. 시공실적
---------------------------------- */
.history-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: auto;
  width: 100%;
}

.history-year-group {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.year-badge {
  font-size: 28px;
  font-weight: 800;
  color: #48a8ff;
  min-width: 80px;
}

.history-items {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-items li {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.history-items .month { color: #70b7ff; font-weight: 700; min-width: 40px; }
.history-items .desc { color: #e3efff; }

/* ----------------------------------
   4. 주요발주처
---------------------------------- */
.clients-image {
  width: 100%;
  max-width: 880px;
  display: block;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ----------------------------------
   5. 보유면허
---------------------------------- */
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.license-card {
  display: block;
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(11, 44, 84, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.license-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 44, 84, 0.1);
}

.license-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
}

.license-card h3 { font-size: 16px; margin: 10px 0 4px; }
.license-card p { font-size: 12.5px; color: #64748b; margin: 0; }

/* ----------------------------------
   6. 시공사례 (갤러리)
---------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(13, 48, 88, 0.05);
}

.case-img-wrap {
  width: 100%;
  height: 180px;
  background: #f0f4f8;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-info { padding: 16px 20px; }
.case-info .tag {
  background: #eef5fc;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}
.case-info h3 { font-size: 17px; margin: 6px 0 4px; }
.case-info p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ----------------------------------
   7. 사업분야
---------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 48, 88, 0.05);
}

.service-grid span { color: var(--blue); font-weight: 800; }
.service-grid h3 { font-size: 18px; margin: 10px 0 6px; }
.service-grid p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ----------------------------------
   8. 견적문의
---------------------------------- */
.contact {
  background: linear-gradient(110deg, #0a2d58, #087df5);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.contact p { color: #d5e8ff; }

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label { font-size: 13px; font-weight: 700; }

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px;
  border: 1px solid #d5e0ed;
  border-radius: 8px;
  font: inherit;
}

.full { grid-column: 1 / -1; }
button { border: 0; cursor: pointer; }

/* ----------------------------------
   푸터
---------------------------------- */
footer {
  background: #03152c;
  color: #c4d2e5;
  padding: 20px 0;
  width: 100%;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.footer-brand { color: #fff; }
.footer p { margin: 2px 0; }

/* ----------------------------------
   반응형 (Media Queries)
---------------------------------- */
@media (max-width: 1020px) {
  .nav nav { gap: 10px; font-size: 13px; }
  .license-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
  }
  .hero-right {
    display: none;
  }
}

@media (max-width: 900px) {
  .case-grid, .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-facts { grid-template-columns: 1fr 1fr; }
  .history-year-group { flex-direction: column; gap: 8px; }
}

@media (max-width: 850px) {
  .tab-content.active { min-height: auto; padding: 40px 0; }
  .nav nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: var(--navy);
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
  .nav nav.open { display: flex; }
  .menu { display: block; margin-left: auto; }
  .top-call { display: none; }
  .values-grid, .contact-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .case-grid, .service-grid, .license-grid, .company-facts {
    grid-template-columns: 1fr;
  }
}