:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --primary-light: #2a5a8c;
  --secondary: #f57c00;
  --secondary-light: #ffa040;
  --secondary-dark: #e06b00;
  --bg: #f5f5f5;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #6c7a89;
  --border: #e0e4e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

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

.logo-icon {
  flex-shrink: 0;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#lang-toggle {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.25s, transform 0.15s;
  white-space: nowrap;
}

#lang-toggle:hover {
  background: var(--secondary-light);
}

#lang-toggle:active {
  transform: scale(0.96);
}

/* ── Navigation ── */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Section Title ── */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  position: relative;
  color: var(--primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: url('hero.jpg') center / cover no-repeat fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,124,0,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(245,124,0,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(245,124,0,0.04) 0%, transparent 40%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-content h2 span {
  display: inline-block;
  position: relative;
}

.hero-content h2 span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 6px;
  opacity: 0.9;
  margin-top: 2rem;
  display: block;
  width: 100%;
}

/* ── Products ── */
.products {
  padding: 5rem 0;
  background: var(--white);
}

.products-content {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

.products-image {
  flex: 0 0 32%;
  display: flex;
}

.img-placeholder {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.products-table-wrapper {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

thead {
  background: var(--primary);
  color: var(--white);
}

th {
  padding: 10px 10px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
}

th:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.1);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

td:not(:last-child) {
  border-right: 1px solid var(--border);
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: #eef3f8;
}
tbody tr.section-header:hover {
  background: transparent;
}

tbody tr td:last-child {
  border-right: none;
}
thead tr th:last-child {
  border-right: none;
}
tr.section-header td {
  background: var(--primary) !important;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2px;
  border-bottom: none;
}
tr.section-header td:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.1);
}

/* ── Product Gallery ── */
.product-gallery {
  margin-top: 2rem;
}
.gallery-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.gallery-item {
  flex: 1;
  max-width: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.gallery-item:hover {
  transform: translateY(-4px);
}
.gallery-item img {
  width: 100%;
  display: block;
}

/* ── Product Intro ── */
.product-intro {
  margin-top: 3rem;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}

.product-intro .intro-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary);
}

.product-intro h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.2rem 0 0.6rem;
}

.product-intro p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.product-intro p.note {
  color: var(--text-light);
  font-size: 0.88rem;
  border-left: 3px solid var(--secondary);
  padding-left: 1rem;
  margin: 0.8rem 0;
}

.product-intro ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.product-intro ul li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  padding: 4px 0 4px 1.5rem;
  position: relative;
}

.product-intro ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

/* ── About ── */
.about {
  padding: 5rem 0;
  background: var(--bg);
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 360px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.about-text {
  flex: 1;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-text p {
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 160px;
  border-top: 4px solid var(--secondary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Contact ── */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.contact-card-icon {
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-card-text strong {
  color: var(--primary);
  margin-right: 6px;
  font-weight: 700;
}

.contact-card-text a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.contact-card-text a:hover {
  text-decoration: underline;
}

#messageForm {
  flex: 1;
  background: var(--bg);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group label {
  flex: 0 0 90px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  text-align: right;
}

.form-group input,
.form-group textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  box-sizing: border-box;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(245,124,0,0.1);
}

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

#submitBtn {
  width: auto;
  padding: 12px 48px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
  font-family: inherit;
  margin-left: calc(90px + 12px);
}

#submitBtn:hover {
  background: var(--secondary-light);
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.form-feedback.success {
  color: #2e7d32;
}

.form-feedback.error {
  color: #e53935;
}

/* ── Success Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalPop 0.3s ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-icon { margin-bottom: 16px; }
.modal-msg {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Footer ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px 0;
  font-size: 0.88rem;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
}

/* ── Responsive ── */


@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .company-name {
    font-size: 1rem;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--primary);
    padding: 4px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    gap: 0;
    z-index: 999;
  }

  .nav-links a {
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: 60vh;
  }

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

  .products-image {
    flex: none;
  }


  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    flex: none;
    max-width: 360px;
  }

  .contact-layout {
    flex-direction: column;
  }

  .contact-info {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .company-name {
    font-size: 0.85rem;
  }

  #lang-toggle {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 10px 12px;
  }
}
