/* ECC Thailand Corporate Website - Business Blue Theme */
:root {
  --primary: #1B4F9C;
  --primary-dark: #0D2B5E;
  --primary-light: #2A6BC4;
  --bg-light: #F5F8FC;
  --text-dark: #1A1A2E;
  --text-secondary: #666;
  --text-light: #999;
  --white: #fff;
  --border: #E8EDF3;
  --shadow: 0 4px 20px rgba(27, 79, 156, 0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

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

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: 80px;
}
.header-container {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  height: 80px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px; object-fit: cover;
  border-radius: 2px;
}
.logo-name {
  font-size: 17px; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; letter-spacing: 0.02em;
}

/* Navigation - centered */
.nav-wrapper { display: flex; justify-content: center; }
.main-nav {
  display: flex; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav li { margin: 0; }
.nav-link {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 18px; position: relative;
  color: var(--text-dark); text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.nav-cn { font-size: 15px; font-weight: 500; line-height: 1.3; }
.nav-en { font-size: 11px; color: var(--text-secondary); font-weight: 400; line-height: 1.2; margin-top: 1px; }
/* English/Thai single-line nav */
.nav-link:only-child .nav-cn,
.main-nav .nav-link:not(:has(.nav-en)) .nav-cn { font-size: 15px; }
.nav-link:hover .nav-cn, .nav-link.active .nav-cn { color: var(--primary); }
.nav-link:hover .nav-en, .nav-link.active .nav-en { color: var(--primary-light); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 18px; right: 18px;
  height: 2px; background: var(--primary); border-radius: 1px;
}

/* Header right */
.header-right {
  display: flex; align-items: center; gap: 20px;
  flex-shrink: 0;
}
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}
.lang-switch a {
  color: var(--text-secondary); padding: 2px 4px;
  transition: var(--transition);
}
.lang-switch a.active { color: var(--primary); font-weight: 600; }
.lang-switch a:hover { color: var(--primary); }
.lang-sep { color: #ccc; font-size: 12px; user-select: none; }

.btn-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white) !important;
  padding: 10px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: var(--transition);
  min-width: 88px;
}
.btn-header-cta:hover { background: var(--primary-light); color: var(--white) !important; }

.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--primary); padding: 4px; }

.btn-primary {
  display: inline-block; background: var(--primary); color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-light); color: var(--white) !important; }
.btn-outline {
  display: inline-block; border: 2px solid var(--white); color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  background: transparent; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 560px; margin-top: 80px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,94,0.85) 0%, rgba(27,79,156,0.75) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 700px; padding: 80px 0; }
.hero-content h1 { font-size: 42px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.hero-content p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.hero-dots span.active { background: var(--white); }

/* ===== Section Common ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.section-title p { font-size: 15px; color: var(--text-secondary); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h3 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }
.stats-row { display: flex; gap: 32px; }
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; transition: var(--transition); display: flex; gap: 16px; align-items: flex-start;
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.service-icon {
  width: 48px; height: 48px; background: var(--bg-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary); font-size: 20px;
}
.service-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.service-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Why Choose Us ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-item { text-align: center; padding: 40px 24px; position: relative; }
.why-num {
  font-size: 64px; font-weight: 800; color: rgba(27,79,156,0.08);
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
}
.why-item h4 { font-size: 18px; color: var(--primary); margin: 24px 0 12px; position: relative; }
.why-item p { font-size: 14px; color: var(--text-secondary); position: relative; }

/* ===== Cases ===== */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.case-card:hover { transform: translateY(-4px); }
.case-card img { width: 100%; height: 200px; object-fit: cover; }
.case-card .case-info { padding: 16px; }
.case-card h4 { font-size: 14px; margin-bottom: 4px; }
.case-card p { font-size: 12px; color: var(--text-secondary); }
.view-all { text-align: center; margin-top: 32px; }
.view-all a { color: var(--primary); font-weight: 500; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.news-card:hover { transform: translateY(-2px); }
.news-date { font-size: 13px; color: var(--primary); margin-bottom: 12px; }
.news-card h4 { font-size: 16px; margin-bottom: 12px; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.news-card .read-more { font-size: 13px; color: var(--primary); font-weight: 500; }

/* ===== Contact Section ===== */
.contact-section {
  position: relative; color: var(--white); padding: 80px 0; overflow: hidden;
}
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,94,0.92) 0%, rgba(27,79,156,0.88) 100%),
    url('../images/banner-bg.jpg') center/cover no-repeat;
  z-index: 0;
}
.contact-section .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 28px; margin-bottom: 24px; }
.contact-detail { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-detail i { width: 20px; text-align: center; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; color: var(--white) !important;
}
.social-links a:hover { background: rgba(255,255,255,0.3); }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 32px; }
.contact-form h4 { color: var(--text-dark); font-size: 18px; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }

/* ===== Contact Page (Creote Style) ===== */
.contact-page { background: var(--bg-light); }
.contact-page > .container {
  max-width: 1140px; margin: 0 auto;
}
.contact-page .breadcrumb { padding-top: 8px; }
.contact-main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto;
  padding: 48px 0 64px; align-items: start;
}
.contact-form-box {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.creote-field { margin-bottom: 22px; }
.creote-field label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-dark); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.creote-field label small {
  font-weight: 400; color: var(--text-light); margin-left: 6px;
  text-transform: none; letter-spacing: 0;
}
.field-wrap { position: relative; }
.field-wrap input,
.field-wrap textarea {
  width: 100%; padding: 14px 44px 14px 16px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: var(--white); outline: none;
  transition: var(--transition); font-family: inherit;
}
.field-wrap textarea { height: 130px; resize: vertical; padding-right: 44px; }
.field-wrap input:focus,
.field-wrap textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,79,156,0.1); }
.field-wrap > i {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 16px; pointer-events: none;
}
.field-wrap textarea + i { top: 20px; transform: none; }
.captcha-wrap img {
  position: absolute; right: 4px; top: 4px; height: calc(100% - 8px);
  border-radius: 4px; cursor: pointer;
}
.btn-submit {
  width: 100%; padding: 14px; border: none; border-radius: 6px;
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-light); }

.contact-info-panel h2 {
  font-size: 28px; color: var(--text-dark); margin-bottom: 16px; line-height: 1.3;
}
.contact-intro {
  color: var(--text-secondary); font-size: 15px; line-height: 1.8;
  margin-bottom: 28px;
}
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow); }
.info-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(27,79,156,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.info-body h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.info-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.info-body a { color: var(--primary); }
.contact-social { display: flex; gap: 10px; margin-top: 24px; }
.contact-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
}
.contact-social a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.contact-map-section {
  width: 100%; height: 450px; background: #e8edf3;
}
.contact-map-section iframe { display: block; width: 100%; height: 100%; }

@media (max-width: 992px) {
  .contact-main { grid-template-columns: 1fr; gap: 32px; }
  .contact-map-section { height: 360px; }
}
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-grid h5 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 13px;
}

/* ===== Inner Pages ===== */
.page-banner {
  position: relative; margin-top: 80px; padding: 80px 0; text-align: center;
  color: var(--white); overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,94,0.82) 0%, rgba(27,79,156,0.78) 100%),
    var(--banner-img, url('../images/banner-bg.jpg')) center/cover no-repeat;
  z-index: 0;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { opacity: 0.9; font-size: 15px; }
.page-content { padding: 48px 0; min-height: 400px; }
.breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb-wrap { padding-top: 16px; }

/* ===== Services Page ===== */
.services-intro { padding-top: 40px; padding-bottom: 60px; }
.services-stats { justify-content: center; margin-top: 8px; }

.services-page-grid .service-card-lg {
  flex-direction: column; align-items: flex-start; padding: 28px 24px;
}
.services-page-grid .service-icon { margin-bottom: 4px; }
.service-points {
  margin: 12px 0 0; padding-left: 18px; list-style: disc;
  font-size: 12px; color: var(--text-secondary); line-height: 1.8;
}
.service-points li { margin-bottom: 2px; }

.process-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.process-step {
  flex: 1; min-width: 120px; max-width: 160px; text-align: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 12px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.process-step:hover { border-color: var(--primary); transform: translateY(-2px); }
.process-num {
  width: 40px; height: 40px; margin: 0 auto 12px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.process-step h4 { font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.process-arrow {
  display: flex; align-items: center; color: var(--primary);
  font-size: 24px; padding-top: 36px; opacity: 0.4;
}

.standards-tags {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.standard-tag {
  display: inline-block; padding: 10px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; font-size: 14px; font-weight: 500;
  color: var(--primary); transition: var(--transition);
}
.standard-tag:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

.industry-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.industry-card {
  text-align: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 20px; transition: var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.industry-card i {
  font-size: 32px; color: var(--primary); margin-bottom: 16px; display: block;
}
.industry-card h4 { font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.industry-card p { font-size: 13px; color: var(--text-secondary); }

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

.services-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0; color: var(--white);
}
.services-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.services-cta h3 { font-size: 24px; margin-bottom: 8px; }
.services-cta p { font-size: 15px; opacity: 0.9; }
.services-cta .btn-primary {
  flex-shrink: 0; background: var(--white); color: var(--primary);
  padding: 14px 32px; font-size: 15px; white-space: nowrap;
}
.services-cta .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* List pages */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.list-card img { width: 100%; height: 200px; object-fit: cover; }
.list-card-body { padding: 20px; }
.list-card-body h3 { font-size: 16px; margin-bottom: 8px; }
.list-card-body p { font-size: 13px; color: var(--text-secondary); }

.article-list li {
  padding: 16px 0; border-bottom: 1px dashed var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.article-list a { color: var(--text-dark); font-size: 15px; }
.article-list a:hover { color: var(--primary); }
.article-list .date { color: var(--text-light); font-size: 13px; flex-shrink: 0; margin-left: 16px; }

.content-detail { max-width: 800px; margin: 0 auto; }
.content-detail h1 { font-size: 28px; text-align: center; margin-bottom: 16px; }
.content-detail .meta { text-align: center; color: var(--text-light); font-size: 13px; margin-bottom: 32px; }
.content-detail .content { line-height: 1.8; font-size: 15px; }
.content-detail .content img { max-width: 100%; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-secondary); font-size: 14px;
}
.pagination a:hover, .pagination a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== Mobile Bottom Bar ===== */
.mobile-bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--primary); box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 8px; color: var(--white) !important; font-size: 14px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.mobile-bottom-bar a:last-child { border-right: none; }
.mobile-bottom-bar i { font-size: 18px; }

/* Mobile nav extra (in drawer) */
.mobile-nav-extra { display: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .container { padding: 0 20px; }
  .services-grid, .cases-grid, .cases-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-arrow { display: none; }
  .process-step { max-width: none; min-width: calc(33.33% - 12px); }
  .news-grid, .why-grid, .list-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .section-title h2 { font-size: 28px; }
}

@media (max-width: 768px) {
  /* Header mobile */
  .site-header { height: 56px; }
  .header-container {
    grid-template-columns: 1fr auto auto;
    padding: 0 16px; height: 56px; gap: 12px;
    position: relative;
  }
  .logo-icon { width: 36px; height: 36px; }
  .logo-name { font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-right { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }

  /* Mobile drawer */
  .nav-wrapper {
    display: none; position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 999;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 0 0 80px;
  }
  .nav-wrapper.open { display: block; }
  body.menu-open { overflow: hidden; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 0; }
  .nav-link {
    flex-direction: row; justify-content: flex-start; gap: 10px;
    padding: 14px 12px; border-bottom: 1px solid var(--border);
  }
  .nav-link.active { background: var(--bg-light); }
  .nav-link.active::after { display: none; }
  .nav-cn { font-size: 16px; }
  .nav-en { font-size: 12px; margin-top: 0; }
  .mobile-nav-extra {
    display: block; padding: 20px 16px;
    border-top: 8px solid var(--bg-light);
  }
  .mobile-lang {
    display: flex; gap: 12px; margin-bottom: 16px; justify-content: center;
  }
  .mobile-lang a {
    padding: 8px 20px; border-radius: 20px; font-size: 14px;
    border: 1px solid var(--border); color: var(--text-secondary);
  }
  .mobile-lang a.active {
    background: var(--primary); color: var(--white); border-color: var(--primary);
  }
  .mobile-cta-btn { display: block; width: 100%; text-align: center; padding: 14px; }

  /* Hero */
  .hero { margin-top: 56px; min-height: 420px; }
  .hero-content { padding: 48px 0 64px; max-width: 100%; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 14px; margin-bottom: 24px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline { width: 100%; text-align: center; padding: 12px 20px; }
  .hero-dots { bottom: 20px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2 { font-size: 24px; }
  .section-title p { font-size: 13px; }

  /* About */
  .about-grid { gap: 28px; }
  .about-img img { height: 220px; }
  .about-text h3 { font-size: 22px; }
  .stats-row { justify-content: space-around; gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12px; }

  /* Grids → single column */
  .services-grid,
  .cases-grid,
  .cases-grid-3,
  .news-grid,
  .why-grid,
  .list-grid,
  .industry-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-step { min-width: 100%; }
  .services-cta-inner { flex-direction: column; text-align: center; }
  .services-cta .btn-primary { width: 100%; text-align: center; }
  .service-card { padding: 20px 16px; }
  .case-card img { height: 180px; }
  .why-item { padding: 32px 16px; }
  .why-num { font-size: 48px; }

  /* Contact section (homepage) */
  .contact-section { padding: 48px 0; }
  .contact-grid { gap: 28px; }
  .contact-info h3 { font-size: 22px; }
  .contact-form { padding: 24px 20px; }

  /* Contact page */
  .page-banner { margin-top: 56px; padding: 48px 0; }
  .page-banner h1 { font-size: 24px; }
  .page-banner p { font-size: 13px; }
  .page-content { padding: 32px 0; }
  .contact-main { padding: 32px 0 48px; gap: 28px; }
  .contact-form-box { padding: 24px 20px; }
  .contact-info-panel h2 { font-size: 22px; }
  .contact-map-section { height: 280px; }

  /* Inner pages */
  .article-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .article-list .date { margin-left: 0; }
  .content-detail h1 { font-size: 22px; }
  .content-detail .content { font-size: 15px; }
  .pagination { flex-wrap: wrap; }
  .pagination a { padding: 10px 12px; font-size: 13px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding-bottom: 0; }
  body { padding-bottom: 52px; }
  .mobile-bottom-bar { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-name { max-width: 110px; font-size: 12px; }
  .hero-content h1 { font-size: 22px; }
  .hero { min-height: 380px; }
  .industry-grid { grid-template-columns: 1fr; }
  .process-step { min-width: 100%; }
  .cases-grid-3 { grid-template-columns: 1fr; }
  .stat-item { width: 100%; }
  .creote-field label { font-size: 11px; }
  .field-wrap input, .field-wrap textarea { font-size: 16px; /* prevent iOS zoom */ }
  .form-group input, .form-group textarea { font-size: 16px; }
}
