/* ==============================
   Disong Machinery — Complete Styles
   ============================== */

:root {
  --primary: #1a3c5e;
  --primary-light: #2a5a8a;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --bg: #ffffff;
  --bg-gray: #f5f7fa;
  --bg-dark: #1a3c5e;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e0e4e8;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.text-center { text-align: center; }

/* ==============================
   NAVIGATION
   ============================== */

.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.logo-icon { font-size: 24px; }

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ==============================
   HERO
   ============================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero .highlight { color: var(--accent); }

.hero p {
  font-size: 17px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.25);
}

.placeholder-icon { font-size: 64px; margin-bottom: 12px; }
.placeholder-text { font-size: 16px; opacity: 0.7; font-weight: 500; }

@media (max-width: 768px) {
  .hero { padding: 50px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 28px; }
  .hero-visual { display: none; }
}

/* ==============================
   BUTTONS
   ============================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ==============================
   STATS BANNER
   ============================== */

.stats-banner {
  background: white;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
}

.stat-item { text-align: center; padding: 0 32px; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-lbl { display: block; font-size: 14px; color: var(--text-light); margin-top: 4px; }

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px 0; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }
  .stat-num { font-size: 26px; }
}

/* ==============================
   SECTIONS
   ============================== */

.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: white; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.8); }

.section-header p { font-size: 16px; color: var(--text-light); }
.section-footer-link { text-align: center; margin-top: 40px; }

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }
}

/* ==============================
   CATEGORIES GRID
   ============================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.cat-icon { font-size: 36px; display: block; margin-bottom: 16px; }

.category-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.category-card p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.cat-arrow { font-size: 18px; color: var(--accent); font-weight: 600; }

@media (max-width: 768px) {
  .categories-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==============================
   FEATURES
   ============================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,0.08);
  padding: 28px 24px;
  border-radius: var(--radius);
}

.feature-icon { font-size: 32px; flex-shrink: 0; }
.feature-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: white; }
.feature-block p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.6; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ==============================
   LOGO WALL
   ============================== */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.logo-item {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.logo-placeholder { font-size: 40px; display: block; margin-bottom: 8px; }
.logo-item span { font-size: 13px; color: var(--text-light); font-weight: 500; }

@media (max-width: 768px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}

/* ==============================
   CASE STUDIES
   ============================== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-img { height: 160px; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; }
.case-placeholder { font-size: 40px; }

.case-body { padding: 24px; }
.case-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.case-body h3 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.case-body p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ==============================
   FAQ
   ============================== */

.faq-list { max-width: 750px; margin: 0 auto; }

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==============================
   CTA SECTION
   ============================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 0;
}

.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 17px; opacity: 0.9; max-width: 550px; margin: 0 auto 32px; }
.cta-note { font-size: 14px; opacity: 0.6; margin-top: 16px !important; }

/* ==============================
   PAGE HERO (inner pages)
   ============================== */

.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 18px; opacity: 0.9; }

@media (max-width: 768px) {
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 28px; }
}

/* ==============================
   PRODUCT BLOCKS (products page)
   ============================== */

.product-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.product-block:hover { box-shadow: var(--shadow); }

.product-block-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.product-block-icon { font-size: 40px; flex-shrink: 0; }

.product-block-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-block-header p { font-size: 14px; color: var(--text-light); }

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}

.spec {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.spec::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .product-specs-grid { grid-template-columns: 1fr; }
  .product-block { padding: 24px 20px; }
}

/* ==============================
   ABOUT PAGE
   ============================== */

.about-content { max-width: 800px; margin: 0 auto; }

.about-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 16px;
}
.about-text h2:first-child { margin-top: 0; }

.about-text p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 16px; }

.about-text ul { list-style: none; margin-bottom: 24px; }
.about-text ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text);
}
.about-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ==============================
   CONTACT PAGE
   ============================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-info-card h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-body h4 { font-size: 13px; color: var(--text-light); margin-bottom: 2px; }
.contact-item-body a,
.contact-item-body p { font-size: 15px; color: var(--text); text-decoration: none; }
.contact-item-body a:hover { color: var(--accent); }

.contact-form {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea { resize: vertical; }
.form-note { font-size: 12px; color: var(--text-light); margin-top: 12px; text-align: center; }

/* ==============================
   FOOTER
   ============================== */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.9);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-brand h4 .logo-icon { margin-right: 6px; }
.footer p { font-size: 14px; opacity: 0.75; line-height: 1.7; }

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-contact a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }

.contact-row { margin-bottom: 8px; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; opacity: 0.5; }
