/*
Theme Name: DVTSHOP HCM
Theme URI: https://dvtshophcm.com/
Author: DVTSHOP
Description: Giao diện kỹ thuật cho Android Box, firmware và dịch vụ sửa chữa.
Version: 1.0.0
Text Domain: dvtshop-hcm
*/

:root {
  --bg: #08090a;
  --surface: #101214;
  --surface-2: #17191c;
  --text: #f4f1eb;
  --muted: #9b9da2;
  --line: #2a2d31;
  --accent: #ef4b4f;
  --accent-dark: #ba3035;
  --content: 1240px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 5%, rgba(239,75,79,.09), transparent 26rem),
    var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; padding: 10px 14px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,9,10,.88);
  backdrop-filter: blur(18px);
}
.tech-strip {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tech-strip .container { display: flex; justify-content: space-between; gap: 20px; padding-block: 9px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.header-main { display: flex; align-items: center; min-height: 82px; gap: 38px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 190px; max-height: 62px; object-fit: contain; object-position: left center; }
.brand-text { font-size: 27px; font-weight: 900; letter-spacing: -.05em; }
.brand-text span { color: var(--accent); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 30px; padding: 0; margin: 0; list-style: none; }
.main-nav a { color: #d7d6d3; font-weight: 650; font-size: 15px; transition: color .2s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
  font-weight: 750;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.header-cta:hover, .button:hover { transform: translateY(-2px); background: var(--accent-dark); border-color: var(--accent-dark); }
.button:active { transform: translateY(1px) scale(.99); }
.button-outline { color: var(--text); background: transparent; border-color: var(--line); }
.button-outline:hover { background: var(--surface-2); border-color: #4a4d52; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 28px; }

.hero { position: relative; overflow: hidden; min-height: 760px; display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.98) 0%, rgba(8,9,10,.9) 42%, rgba(8,9,10,.25) 74%, rgba(8,9,10,.7) 100%); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); opacity: .7; }
.hero-content { position: relative; z-index: 2; padding-block: 120px 140px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--accent); font: 650 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(56px, 8vw, 118px); line-height: .88; letter-spacing: -.075em; text-wrap: balance; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-copy { max-width: 610px; margin: 34px 0 0; color: #c4c3bf; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 650px; margin-top: 66px; border-top: 1px solid var(--line); }
.hero-meta div { padding: 16px 18px 0 0; }
.hero-meta small { display: block; color: var(--muted); font: 600 10px/1.4 ui-monospace, monospace; letter-spacing: .16em; }
.hero-meta strong { display: block; margin-top: 5px; font-size: 15px; }

.section { padding-block: 108px 124px; border-bottom: 1px solid var(--line); }
.section-dark { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: end; margin-bottom: 60px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.section-heading p { max-width: 630px; margin: 0; color: var(--muted); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 340px; padding: 34px; overflow: hidden; border: 1px solid var(--line); background: #0d0f11; transition: border-color .25s ease, transform .25s ease; }
.service-card:nth-child(1), .service-card:nth-child(4) { grid-column: span 7; }
.service-card:nth-child(2), .service-card:nth-child(3) { grid-column: span 5; }
.service-card:hover { transform: translateY(-5px); border-color: #555960; }
.service-number { color: var(--accent); font: 600 12px/1 ui-monospace, monospace; letter-spacing: .16em; }
.service-card h3 { max-width: 430px; margin: 115px 0 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.service-card p { max-width: 520px; margin: 0; color: var(--muted); }
.service-card::after { content: "+"; position: absolute; right: 28px; top: 24px; color: #404349; font-size: 36px; font-weight: 200; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step { padding: 36px 30px 42px 0; }
.process-step + .process-step { padding-left: 30px; border-left: 1px solid var(--line); }
.process-step strong { display: block; color: var(--accent); font: 600 12px/1 ui-monospace, monospace; }
.process-step h3 { margin: 42px 0 12px; font-size: 27px; }
.process-step p { margin: 0; color: var(--muted); }

.journal-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.post-card { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.post-card:first-child { grid-row: span 2; }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: #191b1e; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post-card:hover img { transform: scale(1.035); }
.post-card-content { padding: 25px; }
.post-card-meta { color: var(--accent); font: 600 11px/1.4 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.post-card h3 { margin: 13px 0 0; font-size: clamp(23px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.post-card:not(:first-child) { display: grid; grid-template-columns: .8fr 1.2fr; }
.post-card:not(:first-child) .post-card-image { aspect-ratio: auto; min-height: 190px; }
.post-card:not(:first-child) h3 { font-size: 24px; }
.empty-posts { grid-column: 1/-1; padding: 50px; border: 1px solid var(--line); color: var(--muted); }
.product-showcase { background: #0b0d0f; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .25s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #555960; }
.product-card-image { display: grid; place-items: center; min-height: 330px; padding: 28px; background: radial-gradient(circle, #25292e, #111315 67%); }
.product-card-image img { width: 100%; height: 275px; object-fit: contain; }
.product-card-body { padding: 26px; }
.product-brand { color: var(--accent); font: 650 11px/1.4 ui-monospace, monospace; letter-spacing: .16em; }
.product-card h3 { margin: 10px 0; font-size: 29px; line-height: 1.05; letter-spacing: -.04em; }
.product-card p { min-height: 52px; color: var(--muted); }
.product-contact { display: inline-block; margin-top: 12px; color: #fff; font-weight: 750; border-bottom: 1px solid var(--accent); }
.product-detail { padding-block: 100px 120px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.product-detail-media { display: grid; place-items: center; min-height: 620px; padding: 50px; border: 1px solid var(--line); background: radial-gradient(circle, #292d32, #0e1012 70%); }
.product-detail-media img { width: 100%; max-height: 520px; object-fit: contain; }
.product-detail-copy h1 { margin: 0; font-size: clamp(48px, 6vw, 82px); line-height: .94; letter-spacing: -.06em; }
.product-advice { display: grid; gap: 6px; margin: 30px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.product-advice span { color: var(--muted); }

.contact-section { position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; }
.contact-section h2 { max-width: 720px; margin: 0 0 30px; font-size: clamp(48px, 6vw, 86px); line-height: .94; letter-spacing: -.065em; }
.contact-intro { max-width: 640px; color: var(--muted); font-size: 19px; }
.contact-links { display: grid; gap: 12px; margin-top: 38px; }
.contact-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-link small { color: var(--muted); }
.contact-link strong { font-size: 20px; }
.lab-card { padding: 38px; border: 1px solid var(--line); background: var(--surface); }
.lab-card .eyebrow { margin-bottom: 64px; }
.lab-card h3 { margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -.04em; }
.lab-card address { margin-top: 18px; color: var(--muted); font-style: normal; }
.lab-card .button { margin-top: 32px; }

.site-footer { padding-block: 64px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .65fr); gap: 50px; }
.footer-brand p { max-width: 370px; color: var(--muted); }
.footer-title { margin: 0 0 17px; color: #fff; font-size: 13px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 62px; padding-top: 24px; border-top: 1px solid var(--line); color: #73767b; font: 500 11px/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { padding-block: 100px 78px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; margin: 0; font-size: clamp(48px, 7vw, 90px); line-height: .95; letter-spacing: -.06em; }
.content-wrap { width: min(calc(100% - 40px), 820px); margin-inline: auto; padding-block: 72px 110px; }
.entry-content { color: #d7d6d3; font-size: 18px; }
.entry-content h2, .entry-content h3 { color: #fff; line-height: 1.12; letter-spacing: -.035em; }
.entry-content h2 { margin-top: 2.2em; font-size: 38px; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img { margin-block: 36px; border-radius: 5px; }
.post-meta { margin-top: 18px; color: var(--muted); font: 600 11px/1.4 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 64px 110px; }
.archive-grid .post-card { display: block; }

.detail-hero { position: relative; min-height: 650px; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.98), rgba(8,9,10,.68) 58%, rgba(8,9,10,.42)); }
.detail-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; filter: saturate(.7) contrast(1.1); }
.detail-hero-inner { position: relative; z-index: 2; padding-block: 130px 95px; }
.detail-hero h1, .page-hero h1 { max-width: 980px; }
.detail-hero h1 { margin: 0; font-size: clamp(54px, 7.5vw, 105px); line-height: .9; letter-spacing: -.07em; }
.detail-hero h1 em, .page-hero h1 em { display: block; color: var(--accent); font-style: normal; }
.detail-hero-inner > p:last-child, .detail-intro { max-width: 660px; margin: 30px 0 0; color: #c5c5c2; font-size: 20px; }
.process-four { grid-template-columns: repeat(4, 1fr); }
.process-four .process-step h3 { font-size: 22px; }
.detail-cta { margin-top: 38px; }
.notice-panel { max-width: 900px; margin-inline: auto; }
.notice-panel h2 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: .95; letter-spacing: -.06em; }
.notice-panel > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 19px; }
.notice-panel .button { margin-top: 24px; }
.lab-story { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.lab-story img { min-height: 560px; width: 100%; object-fit: cover; filter: saturate(.7); }
.lab-story h2 { margin: 0 0 35px; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.knowledge-grid { grid-template-columns: repeat(3, 1fr); }
.knowledge-grid .post-card p { margin-bottom: 0; color: var(--muted); }
.request-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.request-info { display: grid; align-content: start; gap: 20px; }
.request-info a { display: grid; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.request-info small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.request-info strong { margin-top: 6px; font-size: 21px; }
.request-info p { color: var(--muted); }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.request-form label { display: grid; gap: 8px; color: #d8d7d3; font-weight: 650; }
.request-form label:nth-last-of-type(1), .request-form label:nth-last-of-type(2) { grid-column: 1/-1; }
.request-form input, .request-form select, .request-form textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 2px; color: #fff; background: #0e1012; outline: none; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { border-color: var(--accent); }
.request-form .button { justify-self: start; }
.form-success { margin-bottom: 25px; padding: 16px 18px; border: 1px solid #347a53; background: rgba(52,122,83,.14); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 980px) {
  .tech-strip { display: none; }
  .header-main { min-height: 72px; }
  .brand img { width: 150px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: absolute; inset: 72px 0 auto; display: none; padding: 24px 20px 30px; border-bottom: 1px solid var(--line); background: #0b0c0e; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero { min-height: 680px; }
  .section-heading, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card { grid-column: span 6 !important; }
  .journal-grid { grid-template-columns: 1fr; }
  .post-card:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 45px; }
  .process-four { grid-template-columns: repeat(2, 1fr); }
  .lab-story, .request-grid { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(180deg, rgba(8,9,10,.7), rgba(8,9,10,.96) 70%); }
  .hero-content { padding-block: 94px 84px; }
  .hero h1 { font-size: 53px; }
  .hero-meta { grid-template-columns: 1fr; gap: 4px; }
  .hero-meta div { padding-top: 12px; }
  .section { padding-block: 78px 88px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2 { font-size: 44px; }
  .service-grid { display: block; }
  .service-card { min-height: 310px; margin-bottom: 14px; padding: 26px; }
  .service-card h3 { margin-top: 95px; }
  .process { grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .post-card:not(:first-child) { display: block; }
  .contact-section h2 { font-size: 48px; }
  .lab-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .archive-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-image { min-height: 290px; }
  .product-detail { padding-block: 60px 90px; }
  .product-detail-media { min-height: 380px; padding: 25px; }
  .detail-hero { min-height: 570px; }
  .detail-hero-inner { padding-block: 105px 72px; }
  .detail-hero h1 { font-size: 53px; }
  .process-four, .knowledge-grid, .request-form { grid-template-columns: 1fr; }
  .request-form label { grid-column: 1 !important; }
  .lab-story { gap: 35px; }
  .lab-story img { min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
