/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #002d5b;
  --navy-light: #003d7a;
  --accent: #e8740c;
  --accent-hover: #d16400;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --border: #e0e4e8;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --max-width: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  word-break: keep-all;
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER & NAV ===== */
.header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.nav { display: flex; gap: 8px; align-items: center; }

.nav > a,
.nav-dropdown > a {
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown > a:hover,
.nav-dropdown > a.active {
  color: var(--navy);
  background: var(--bg-gray);
}

.nav > a.cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
}

.nav > a.cta:hover {
  background: var(--navy-light);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--bg-gray);
  color: var(--navy);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition);
}

.hero .btn:hover {
  background: var(--accent-hover);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ===== PRODUCT CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

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

.category-card__image {
  height: 180px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  padding: 20px;
}

.category-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.category-card__type {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.category-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== PRODUCT SIDEBAR LAYOUT (infeed-style) ===== */
.product-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.product-sidebar {
  position: sticky;
  top: 100px;
}

.product-sidebar__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 8px;
}

.product-sidebar__list {
  border: 1px solid var(--border);
}

.product-sidebar__list li {
  border-bottom: 1px solid var(--border);
}

.product-sidebar__list li:last-child {
  border-bottom: 1px solid var(--border);
}

.product-sidebar__list a {
  display: block;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
  word-break: keep-all;
}

.product-sidebar__list a:hover,
.product-sidebar__list li.active a {
  background: var(--navy);
  color: #fff;
}

.two-col-list {
  columns: 2;
  column-gap: 32px;
  list-style: disc;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}
.two-col-list li {
  break-inside: avoid;
}

.product-main .category-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ===== PRODUCT TABLE ===== */
.product-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.product-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.product-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.product-table tbody tr:hover {
  background: var(--bg-gray);
}

.product-table .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--transition);
}

.product-table .btn-download:hover {
  background: var(--navy-light);
}

/* ===== TRUST STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}

.stat__label {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ===== ABOUT PAGE ===== */
.about-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.timeline {
  max-width: 700px;
  margin: 48px auto 0;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--navy);
  border-radius: 50%;
}

.timeline-item__year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-item__text {
  font-size: 0.95rem;
  color: var(--text);
}

/* ===== MAP ===== */
.map-section {
  margin-top: 48px;
}

.map-embed {
  width: 100%;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.address-info {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text);
}

.address-info p {
  margin-bottom: 4px;
}

/* ===== CASES GALLERY ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-card__image {
  height: 200px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.case-card__body {
  padding: 16px;
}

.case-card__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.case-card__meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-info strong {
  display: inline-block;
  width: 80px;
  color: var(--navy);
}

.contact-form h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover {
  background: var(--accent-hover);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-info p {
  margin-bottom: 4px;
}

.footer-logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--navy);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }

  .nav.open { display: flex; }

  .nav > a,
  .nav-dropdown > a {
    padding: 12px 16px;
    border-radius: var(--radius);
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .nav-dropdown .nav-dropdown-menu {
    display: block;
  }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.4rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-sidebar {
    position: static;
  }

  .product-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    border: none;
    gap: 8px;
  }

  .product-sidebar__list li {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
  }

  .product-sidebar__list a {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .footer .container { flex-direction: column; }
}
