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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 8px 0;
  transition: color 0.2s;
}
.main-nav > li > a:hover { color: #b8860b; }

/* Dropdown */
.dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.dropdown-toggle::after {
  content: '';
  border: solid #1a1a1a;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -2px;
}
.main-nav > li:hover .dropdown-toggle::after { transform: rotate(-135deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  background: #fff;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}
.main-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: #f5f5f5; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}
.mobile-nav .mobile-dropdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.mobile-nav .mobile-dropdown-title::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
}
.mobile-nav .mobile-dropdown-title.open::after { content: '\2212'; }
.mobile-nav .mobile-sub { display: none; padding-left: 16px; }
.mobile-nav .mobile-sub.open { display: block; }
.mobile-nav .mobile-sub a { font-weight: 400; font-size: 15px; color: #555; }

/* === Hero Slideshow === */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  display: flex;
  align-items: center;
}
.hero-content {
  color: #fff;
  max-width: 560px;
  padding: 0 24px 0 max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dots span.active { background: #fff; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.25s;
  text-align: center;
}
.btn-primary { background: #b8860b; color: #fff; }
.btn-primary:hover { background: #9a7009; }
.btn-outline { border: 2px solid #1a1a1a; color: #1a1a1a; }
.btn-outline:hover { background: #1a1a1a; color: #fff; }
.btn-outline-white { border: 2px solid #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: #1a1a1a; }
.btn-dark { background: #1a1a1a; color: #fff; }
.btn-dark:hover { background: #333; }

/* === Section Utilities === */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: #1a1a1a; color: #fff; }
.section-gray { background: #f7f7f7; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* === Product Cards (Homepage) === */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.product-showcase:last-child { margin-bottom: 0; }
.product-showcase.reverse { direction: rtl; }
.product-showcase.reverse > * { direction: ltr; }

.product-showcase-img { position: relative; }
.product-showcase-img img {
  width: 100%;
  border-radius: 12px;
}
.product-showcase-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-showcase-info .price {
  font-size: 22px;
  color: #b8860b;
  font-weight: 600;
  margin-bottom: 16px;
}
.product-showcase-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* === Partners === */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.partners img { height: 48px; width: auto; opacity: 0.6; transition: opacity 0.3s; }
.partners img:hover { opacity: 1; }

/* === Why Choose === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature-card {
  text-align: center;
  padding: 32px 20px;
}
.feature-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}
.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* === CTA Banner === */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === Reviews === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.review-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.review-stars {
  color: #b8860b;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.review-card .reviewer {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* === Blog Preview === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.blog-card-body { padding: 24px; }
.blog-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-card-body .blog-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}
.blog-card-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* === Footer === */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: #999;
  line-height: 1.7;
  margin-top: 16px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #999;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #b8860b; }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #444;
  color: #999;
  font-size: 16px;
  transition: all 0.2s;
}
.footer-social a:hover {
  border-color: #b8860b;
  color: #b8860b;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #666; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #b8860b; }

/* === Product Page === */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: relative; }
.gallery-main {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f7f7;
  margin-bottom: 12px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f7f7f7;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumbs img.active,
.gallery-thumbs img:hover { border-color: #b8860b; }

/* Product info */
.product-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-info .product-price {
  font-size: 28px;
  color: #b8860b;
  font-weight: 600;
  margin-bottom: 24px;
}
.product-info .product-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}
.product-info .product-desc p { margin-bottom: 12px; }

.product-features {
  list-style: none;
  margin-bottom: 32px;
}
.product-features li {
  padding: 8px 0;
  font-size: 15px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-features li::before {
  content: '\2713';
  color: #b8860b;
  font-weight: 700;
  font-size: 16px;
}

.product-contact-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #b8860b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.25s;
}
.product-contact-btn:hover { background: #9a7009; }
.button-load-3d {
  display: inline-block;
  padding: 16px 40px !important;
  background: #1a1a1a !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.25s;
}
.button-load-3d:hover { background: #333 !important; }

/* Specs table */
.specs-section { padding: 60px 0; background: #f7f7f7; }
.specs-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  width: 100%;
  padding: 20px 0;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid #1a1a1a;
}
.specs-toggle::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  transition: transform 0.3s;
}
.specs-toggle.open::after { content: '\2212'; }

.specs-content {
  display: none;
  padding: 24px 0;
}
.specs-content.open { display: block; }

.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr { border-bottom: 1px solid #e0e0e0; }
.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
}
.specs-table td:first-child {
  font-weight: 600;
  color: #1a1a1a;
  width: 40%;
}
.specs-table td:last-child { color: #555; }

/* Programs list */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 8px 0;
}
.program-tag {
  padding: 10px 16px;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: 1px solid #e0e0e0;
}

/* === Content Pages === */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
}
.page-header p {
  margin-top: 12px;
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px;
}
.page-content p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.page-content ul li {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 4px;
}
.page-content a { color: #b8860b; text-decoration: underline; }
.page-content a:hover { color: #9a7009; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b8860b;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  margin-top: 20px;
  width: 100%;
}

.contact-info-card {
  background: #f7f7f7;
  padding: 32px;
  border-radius: 12px;
}
.contact-info-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #444;
}
.contact-detail strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.contact-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: #b8860b;
  font-size: 18px;
  margin-top: 2px;
}

/* About page */
.about-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 32px 0;
}
.pillar-card {
  padding: 24px;
  background: #f7f7f7;
  border-radius: 12px;
}
.pillar-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #b8860b;
}
.pillar-card p { margin-bottom: 0; }

/* Blog article */
.blog-article { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.blog-article .blog-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}
.blog-article h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 8px;
}
.blog-article .featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 32px;
}
.blog-article h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.blog-article p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 16px;
}
.blog-article ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.blog-article ul li {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 4px;
}

/* Product info page */
.manual-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 12px;
}
.manual-card span { font-weight: 600; font-size: 16px; }
.manual-card a {
  font-size: 14px;
  font-weight: 600;
  color: #b8860b;
  text-decoration: none;
  border: 1px solid #b8860b;
  padding: 8px 20px;
  border-radius: 4px;
  transition: all 0.2s;
}
.manual-card a:hover { background: #b8860b; color: #fff; }
.manual-links { display: flex; gap: 10px; }

/* 3D Model Viewer */
.model-view-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.model-view-inner h2 { margin-bottom: 16px; }
.model-view-action { text-align: center; }
.modal-for-3d {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  flex-direction: column;
}
.modal-for-3d.reveal { display: flex; }
.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #eee;
}
.modal-bar .close-modal {
  background: none;
  border: 1px solid #333;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.modal-bar .close-modal:hover { background: #333; color: #fff; }
.button-load-3d { margin-top: 20px; }
@media (max-width: 768px) {
  .model-view-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .product-hero { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero { height: 70vh; min-height: 400px; }
  .hero-content h1 { font-size: 28px; }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-showcase.reverse { direction: ltr; }

  .reviews-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

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

  .section { padding: 60px 0; }
}
