/* ═══════════════════════════════════════════════════════
   DKQ Homepage v4 — premium industrial (TienTuan/Tivati style)
   Real-photo hero · Be Vietnam Pro · navy/gold brand
   ═══════════════════════════════════════════════════════ */

:root {
  --navy: #1F4E79;
  --navy-dark: #0F2B47;
  --navy-deep: #0A1F33;
  --gold: #F0AD4E;
  --gold-light: #FFC46B;
}

body { font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 8px 0;
}
.topbar .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.92); font-weight: 500; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-right { margin-left: auto; display: flex; gap: 14px; }
.topbar .topbar-right a { font-weight: 600; letter-spacing: .02em; }
.topbar .topbar-right a:not(:last-child)::after { content: '·'; margin-left: 14px; color: rgba(255,255,255,.3); }

.site-header.front-static { position: static; height: auto; min-height: var(--header-h); }
.site-header img.custom-logo { height: 44px; width: auto; display: block; }
@media (max-width: 768px) { .site-header img.custom-logo { height: 34px; } }

/* ── HERO SLIDER (split: text left + framed machine photo right) ── */
.hero-slider {
  position: relative; height: min(84vh, 660px); min-height: 560px; overflow: hidden;
  background: var(--navy-deep);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-bg-layer { position: absolute; inset: 0; }
.hero-bg-layer.bg-1 { background: linear-gradient(120deg, #0A1F33 0%, #12375E 55%, #1F4E79 100%); }
.hero-bg-layer.bg-2 { background: linear-gradient(120deg, #0A1F33 0%, #163F66 60%, #2A6BA0 100%); }
.hero-bg-layer.bg-3 { background: linear-gradient(120deg, #0A1F33 0%, #124063 55%, #1D5B8E 100%); }
.hero-bg-layer.bg-4 { background: linear-gradient(120deg, #0A1F33 0%, #153B60 60%, #26669B 100%); }
.hero-bg-layer.bg-5 { background: linear-gradient(120deg, #0A1F33 0%, #113A62 55%, #20568A 100%); }
.hero-bg-layer::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 82% 15%, rgba(240,173,78,.16), transparent 60%),
    radial-gradient(500px 300px at 90% 90%, rgba(42,107,160,.25), transparent 65%);
}
.hero-content {
  position: relative; z-index: 3; height: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px;
  padding: 44px 20px;
}
.hero-text { max-width: 620px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .3em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-kicker::before { content: ''; width: 42px; height: 3px; background: var(--gold); border-radius: 2px; }
.hero-text h1 {
  color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.18;
  margin-bottom: 18px; letter-spacing: .01em;
}
.hero-text p {
  color: rgba(255,255,255,.88); font-size: clamp(.93rem, 1.4vw, 1.05rem); line-height: 1.7;
  margin-bottom: 30px; max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn {
  background: linear-gradient(135deg, var(--gold), #E09A38); color: #241A00 !important;
  font-weight: 800; padding: 14px 34px; border-radius: 50px; font-size: .98rem;
  box-shadow: 0 10px 30px rgba(240,173,78,.4); transition: transform .2s, box-shadow .2s;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(240,173,78,.55); }
.hero-btn-ghost {
  background: rgba(255,255,255,.08); color: #fff !important; border: 1.5px solid rgba(255,255,255,.55);
  font-weight: 700; padding: 13px 30px; border-radius: 50px; font-size: .95rem;
  transition: all .2s;
}
.hero-btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.hero-visual {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px; padding: 22px; backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-visual img {
  width: 100%; height: 360px; object-fit: contain; background: #fff;
  border-radius: 16px; padding: 14px;
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(7,20,36,.35); color: #fff; font-size: 1.15rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: all .2s;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots button {
  width: 30px; height: 5px; border-radius: 3px; border: none; cursor: pointer;
  background: rgba(255,255,255,.35); transition: all .3s;
}
.hero-dots button.active { background: var(--gold); width: 46px; }

/* ── CAM KẾT STRIP ── */
.commit-strip {
  background: var(--navy); padding: 26px 0; position: relative; z-index: 6;
  box-shadow: 0 12px 30px rgba(10,31,54,.25);
}
.commit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 26px; }
.commit-item { display: flex; align-items: center; gap: 14px; color: #fff; }
.commit-ico {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: rgba(240,173,78,.14); border: 1px solid rgba(240,173,78,.45);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.commit-item strong { display: block; font-size: .95rem; font-weight: 700; }
.commit-item small { display: block; color: rgba(255,255,255,.6); font-size: .78rem; margin-top: 2px; }

/* ── SECTION HEADINGS ── */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--navy);
  text-align: center; text-transform: uppercase; letter-spacing: .04em;
  padding-bottom: 16px; margin-bottom: 10px; position: relative;
}
.section-title::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 70px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
}
.section-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 44px; font-size: 1rem; }
.cats-section, .products-section, .onestop-section, .about-section, .news-section { padding: 84px 0; }
.center { text-align: center; margin-top: 38px; }

/* ── BUTTONS ── */
.btn { border-radius: 50px; font-weight: 700; }
.btn-primary { background: var(--navy); color: #fff; padding: 12px 30px; box-shadow: 0 8px 22px rgba(31,78,121,.28); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ── CATEGORY CARDS ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.cat-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(10,31,54,.06); transition: transform .3s, box-shadow .3s; display: block;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(10,31,54,.16); }
.cat-card-img { height: 170px; background: linear-gradient(135deg, #f4f7fb, #e9eef5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .45s; }
.cat-card:hover .cat-card-img img { transform: scale(1.08); }
.cat-card-body { padding: 16px 18px 18px; border-top: 3px solid var(--gold); }
.cat-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.4; }
.cat-card-cta { font-size: .84rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; }

/* ── PRODUCT TABS + CAROUSEL ── */
.prod-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.prod-tab {
  border: 1.5px solid var(--gray-300); background: #fff; color: var(--gray-700);
  padding: 9px 20px; border-radius: 50px; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.prod-tab:hover { border-color: var(--navy); color: var(--navy); }
.prod-tab.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-color: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(31,78,121,.3);
}
.prod-panel { display: none; position: relative; }
.prod-panel.active { display: block; }
.prod-car {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
  padding: 8px 4px 16px; scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent;
}
.prod-car::-webkit-scrollbar { height: 8px; }
.prod-car::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
.prod-mini {
  flex: 0 0 225px; background: #fff; border: 1px solid var(--gray-200); border-radius: 14px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(10,31,54,.06); transition: transform .25s, box-shadow .25s;
}
.prod-mini:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,31,54,.15); }
.prod-mini-img { height: 160px; background: #f7f9fc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-mini-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .4s; }
.prod-mini:hover .prod-mini-img img { transform: scale(1.07); }
.prod-mini-body { padding: 14px 16px 16px; border-top: 2px solid var(--gold); }
.prod-mini-body h3 {
  font-size: .88rem; font-weight: 600; color: var(--gray-900); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em; margin-bottom: 10px;
}
.prod-mini-body span { font-size: .82rem; font-weight: 700; color: var(--navy); }
.car-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: .95rem; box-shadow: 0 8px 22px rgba(10,31,54,.3);
  transition: background .2s;
}
.car-arrow:hover { background: var(--gold); color: var(--navy-deep); }
.car-prev { left: -16px; }
.car-next { right: -16px; }

/* ── ONE-STOP BLOCKS ── */
.onestop-block {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center;
  padding: 40px 0; border-bottom: 1px dashed var(--gray-200);
}
.onestop-block:last-child { border-bottom: none; }
.onestop-block.reverse { direction: rtl; }
.onestop-block.reverse > * { direction: ltr; }
.onestop-img {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(10,31,54,.14); height: 270px;
  background: linear-gradient(135deg, #f7fafd, #eef2f7); border: 1px solid var(--gray-200);
}
.onestop-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: transform .5s; }
.onestop-block:hover .onestop-img img { transform: scale(1.04); }
.onestop-num {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy-deep); font-weight: 900; font-size: .85rem;
  padding: 6px 12px; border-radius: 10px; letter-spacing: .06em;
}
.onestop-body h3 { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.onestop-body p { color: var(--gray-700); margin-bottom: 16px; font-size: .96rem; line-height: 1.7; }
.onestop-body ul { list-style: none; margin-bottom: 22px; }
.onestop-body li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: .92rem; color: var(--gray-700); }
.onestop-body li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: #fff;
  background: var(--gold); width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .68rem;
}

/* ── ABOUT + STATS ── */
.about-section { background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%); }
.about-lead { max-width: 880px; margin: 0 auto 42px; text-align: center; color: var(--gray-700); font-size: 1rem; line-height: 1.8; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto 38px; }
.stat-card {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: #fff;
  border-radius: 16px; padding: 30px 20px; text-align: center;
  box-shadow: 0 14px 30px rgba(10,31,54,.22); position: relative; overflow: hidden;
  transition: transform .25s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 55%);
}
.stat-num { font-size: 2.7rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.stat-label { font-size: .86rem; opacity: .92; margin-top: 6px; }
.partner-strip {
  display: flex; flex-wrap: wrap; gap: 14px 38px; justify-content: center;
  margin-bottom: 34px; color: var(--gray-500); font-weight: 800; font-size: .98rem; letter-spacing: .06em;
}

/* ── TURNKEY CARDS ── */
.turnkey-section {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(240,173,78,.12), transparent 60%),
    var(--navy-deep);
}
.turnkey-section .section-title { color: #fff; }
.turnkey-section .section-title::after { background: linear-gradient(90deg, var(--gold), rgba(255,255,255,.4)); }
.turnkey-section .section-subtitle { color: rgba(255,255,255,.6); }
.turnkey-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.tk-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  padding: 32px 24px; text-align: center; color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px); transition: transform .25s, border-color .25s, background .25s;
}
.tk-card:hover { transform: translateY(-7px); border-color: var(--gold); background: rgba(255,255,255,.09); }
.tk-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  background: rgba(240,173,78,.15); border: 1px solid rgba(240,173,78,.5);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.tk-card h3 { color: #fff; font-size: 1.08rem; margin-bottom: 10px; font-weight: 700; }
.tk-card p { font-size: .88rem; line-height: 1.6; opacity: .8; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(10,31,54,.07); transition: transform .28s, box-shadow .28s; display: block;
}
.news-card:hover { transform: translateY(-7px); box-shadow: 0 18px 42px rgba(10,31,54,.16); }
.news-img { position: relative; height: 190px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-date {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy-deep);
  font-size: .76rem; font-weight: 800; padding: 5px 12px; border-radius: 20px;
}
.news-body { padding: 18px 20px 20px; border-top: 3px solid var(--gold); }
.news-body h3 {
  font-size: 1rem; font-weight: 700; color: var(--gray-900); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px; min-height: 2.9em;
}
.news-body p { font-size: .86rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.news-body span { font-size: .84rem; font-weight: 700; color: var(--navy); }

/* ── CONTACT ── */
.contact-section { background: #f5f8fc; }
.contact-wrap {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start;
  background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(10,31,54,.12); overflow: hidden;
}
.contact-form-box { padding: 44px 40px; }
.contact-form-box .section-title { text-align: left; }
.contact-form-box .section-title::after { left: 0; transform: none; }
.contact-form-box .section-subtitle { text-align: left; }
.contact-info-box {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(240,173,78,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 44px 36px; height: 100%;
}
.contact-info-box h3 { font-size: 1.4rem; margin-bottom: 8px; font-weight: 800; }
.contact-info-box p { opacity: .85; font-size: .94rem; margin-bottom: 20px; }
.contact-info-box ul { list-style: none; margin-bottom: 24px; }
.contact-info-box li { margin-bottom: 12px; font-size: .94rem; }
.contact-info-box a { color: var(--gold); }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-social a {
  border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 8px 18px;
  border-radius: 50px; font-size: .84rem; font-weight: 600; transition: all .2s;
}
.contact-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.contact-form-box .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form-box .wpcf7-form p { grid-column: span 1; }
.contact-form-box .wpcf7-form p:last-of-type,
.contact-form-box .wpcf7-form .wpcf7-response-output { grid-column: span 2; }

/* ── SCROLL ANIMATIONS ── */
[data-animate] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-animate].visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-slider { height: auto; min-height: 0; }
  .hero-slide { position: relative; opacity: 0; display: none; }
  .hero-slide.active { display: block; opacity: 1; }
  .hero-content { grid-template-columns: 1fr; padding: 64px 24px 100px; }
  .hero-visual { display: none; }
  .onestop-block, .onestop-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 22px; }
  .onestop-img { height: 210px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
}
@media (max-width: 768px) {
  .car-prev { left: 0; } .car-next { right: 0; }
  .topbar .topbar-right { display: none; }
  .contact-form-box { padding: 30px 20px; }
  .contact-info-box { padding: 30px 20px; }
  .commit-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .commit-grid { grid-template-columns: 1fr; }
}
