/* ============================================================
   HUGH Tiling – Main Stylesheet
   Color palette:
     Primary Blue   #1A6FBF
     Mid Blue       #3A9AD9
     Light Blue     #EFF6FF / #DBEAFE
     White          #FFFFFF
     Text Dark      #1E293B
     Text Mid       #475569
     Text Light     #94A3B8
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #1E293B;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: #1A6FBF;
  color: #fff;
  border-color: #1A6FBF;
}
.btn--primary:hover { background: #155fa3; border-color: #155fa3; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,111,191,0.3); }
.btn--outline {
  background: transparent;
  color: #1A6FBF;
  border-color: #1A6FBF;
}
.btn--outline:hover { background: #EFF6FF; }
.btn--full { width: 100%; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-sm--primary {
  background: #EFF6FF;
  color: #1A6FBF;
  border-color: #BFDBFE;
}
.btn-sm--primary:hover { background: #1A6FBF; color: #fff; border-color: #1A6FBF; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { display: flex; align-items: center; }
.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A6FBF;
  letter-spacing: -0.3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: #1A6FBF; background: #EFF6FF; }
.nav-link--highlight {
  background: #1A6FBF;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-link--highlight:hover { background: #155fa3; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1E293B;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 40%, #BFDBFE 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26,111,191,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.hero-badge {
  display: inline-block;
  background: rgba(26,111,191,0.12);
  color: #1A6FBF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(26,111,191,0.2);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1E293B;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-title--accent { color: #1A6FBF; }
.hero-desc {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.9);
  width: fit-content;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1A6FBF;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.78rem; color: #64748B; font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: #E2E8F0; }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3A9AD9;
  margin-bottom: 10px;
}
.section-badge--light { color: #93C5FD; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-title--light { color: #fff; }
.section-desc { font-size: 0.95rem; color: #64748B; line-height: 1.8; }
.section-desc--light { color: #BFDBFE; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { padding: 88px 0; background: #F8FAFC; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(26,111,191,0.12); }
.product-card--featured {
  border-color: #1A6FBF;
  box-shadow: 0 8px 32px rgba(26,111,191,0.15);
}

.product-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

/* Tile pattern visuals (CSS-drawn) */
.product-img--1 {
  background-color: #E8EEF3;
  background-image:
    linear-gradient(45deg, #D4DDE6 25%, transparent 25%),
    linear-gradient(-45deg, #D4DDE6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #D4DDE6 75%),
    linear-gradient(-45deg, transparent 75%, #D4DDE6 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}
.product-img--1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,245,250,0.5) 0%, rgba(200,220,235,0.6) 100%);
}

.product-img--2 {
  background-color: #D4C4A8;
  background-image:
    repeating-linear-gradient(0deg, rgba(180,155,110,0.3) 0px, transparent 3px, transparent 20px, rgba(180,155,110,0.3) 20px),
    repeating-linear-gradient(90deg, rgba(180,155,110,0.15) 0px, transparent 2px, transparent 30px, rgba(180,155,110,0.15) 30px);
}
.product-img--2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,200,170,0.4) 0%, rgba(180,145,95,0.3) 100%);
}

.product-img--3 {
  background-color: #1A6FBF;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 18px 18px;
}
.product-img--3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,154,217,0.5) 0%, rgba(26,111,191,0.8) 100%);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-badge--new { background: #1A6FBF; color: #fff; }
.product-badge--best { background: #F59E0B; color: #fff; }
.product-badge--eco { background: #10B981; color: #fff; }

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3A9AD9;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 10px;
  line-height: 1.4;
}
.product-desc {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}
.price-label { display: block; font-size: 0.72rem; color: #94A3B8; margin-bottom: 2px; }
.price-value { font-size: 1.05rem; font-weight: 700; color: #1A6FBF; }
.price-value small { font-size: 0.78rem; font-weight: 400; color: #94A3B8; }

.products-more { text-align: center; margin-top: 40px; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calculator {
  padding: 88px 0;
  background: linear-gradient(135deg, #1A6FBF 0%, #0F4C8A 100%);
}

.calc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.calc-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-result {
  background: #F8FAFC;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #E2E8F0;
  min-height: 360px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1E293B;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #1A6FBF;
  box-shadow: 0 0 0 3px rgba(26,111,191,0.12);
}

.radio-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
}
.radio-label input { accent-color: #1A6FBF; }

/* Result placeholder */
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Result output */
.result-output { width: 100%; }
.result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.9rem;
}
.result-row:last-of-type { border-bottom: none; }
.result-row span:first-child { color: #64748B; }
.result-row span:last-child { font-weight: 600; color: #1E293B; }
.result-total {
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-radius: 12px;
  border: 1px solid #BFDBFE;
  text-align: center;
}
.result-total-label { font-size: 0.82rem; color: #3A9AD9; font-weight: 600; margin-bottom: 4px; }
.result-total-value { font-size: 1.6rem; font-weight: 800; color: #1A6FBF; }
.result-note { margin-top: 10px; font-size: 0.75rem; color: #94A3B8; text-align: center; line-height: 1.5; }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 72px 0;
  background: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  padding: 32px 24px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  border-color: #BFDBFE;
  box-shadow: 0 8px 32px rgba(26,111,191,0.08);
  transform: translateY(-4px);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: #EFF6FF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature-title { font-size: 1rem; font-weight: 700; color: #1E293B; margin-bottom: 8px; }
.feature-desc { font-size: 0.84rem; color: #64748B; line-height: 1.7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 88px 0;
  background: #F8FAFC;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 1.2rem; margin-top: 2px; }
.contact-label { display: block; font-size: 0.78rem; color: #94A3B8; font-weight: 500; margin-bottom: 3px; }
.contact-value { font-size: 0.95rem; font-weight: 600; color: #1E293B; }
a.contact-value:hover { color: #1A6FBF; }

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0F172A;
  padding: 40px 0 28px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.footer-tagline { font-size: 0.85rem; color: #64748B; }
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-bottom p { font-size: 0.8rem; color: #475569; }

/* ============================================================
   RESPONSIVE – TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .calc-card { grid-template-columns: 1fr; }
  .calc-result { border-left: none; border-top: 1px solid #E2E8F0; min-height: 280px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 12px 16px 16px;
  }
  .nav-menu.open { display: block; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { padding: 12px 14px; }
  .nav-link--highlight { text-align: center; }
  .header { position: sticky; }

  /* Hero */
  .hero { padding: 56px 0; min-height: unset; }
  .hero-stats { flex-direction: column; gap: 12px; width: 100%; padding: 16px; }
  .stat-divider { width: 60px; height: 1px; }

  /* Products */
  .products { padding: 56px 0; }
  .products-grid { grid-template-columns: 1fr; }

  /* Calculator */
  .calculator { padding: 56px 0; }
  .calc-form { padding: 24px; }
  .calc-result { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Features */
  .features { padding: 48px 0; }
  .features-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact { padding: 56px 0; }
  .contact-form { padding: 24px; }

  /* Footer */
  .footer-bottom { text-align: center; }

  .hidden-mobile { display: none; }
}
