/* ============================================================
   Dolotech — giao diện trang công khai
   Thứ tự: tokens → nền tảng → thành phần dùng chung → từng khối
   ============================================================ */

:root {
    /* Màu thương hiệu */
    --brand-950: #060b16;
    --brand-900: #0b1220;
    --brand-800: #121c30;
    --brand-700: #1b2a45;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #60a5fa;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --violet: #7c3aed;

    /* Màu nền & chữ */
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-softer: #eef2f9;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --white: #ffffff;

    /* Hiệu ứng */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 16px rgba(15, 23, 42, .07);
    --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
    --shadow-brand: 0 14px 34px rgba(37, 99, 235, .28);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
    --gradient-dark: linear-gradient(160deg, var(--brand-950) 0%, var(--brand-800) 55%, #16294a 100%);

    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------- Nền tảng */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 .6em;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

:focus-visible {
    outline: 3px solid var(--brand-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; color: #fff; }

/* ---------------------------------------------------------- Nút */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37, 99, 235, .36); }

.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { color: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-sm { padding: .55rem 1.15rem; font-size: .875rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; }
.brand-text small { font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.site-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}
.site-nav a {
    padding: .5rem .85rem;
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .94rem;
}
.site-nav a:hover { background: var(--bg-softer); color: var(--ink); }
.site-nav a.is-active { color: var(--brand); background: rgba(37, 99, 235, .09); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 3px;
    background: var(--bg-soft);
}
.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 38px;
    padding: .25rem .65rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
}
.lang-switch a.is-active { background: var(--white); color: var(--brand); box-shadow: var(--shadow-sm); }

/* Chỉ dùng cho menu điện thoại, ẩn hẳn trên màn hình lớn */
.nav-cta,
.nav-backdrop { display: none; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------- Khối chung */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--gradient-dark); color: rgba(255, 255, 255, .78); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-sub { font-size: 1.05rem; color: var(--muted); }
.section-dark .section-sub { color: rgba(255, 255, 255, .7); }

.eyebrow {
    display: inline-block;
    margin: 0 0 .9rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
}
.section-dark .eyebrow { color: var(--cyan-light); }

.grad {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}

.badge {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, .1);
    color: var(--brand);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Hiệu ứng hiện dần khi cuộn tới.
   Chỉ ẩn nội dung khi JavaScript chắc chắn đang chạy (html.js do head.js gắn vào).
   Không có JS thì nội dung hiển thị ngay — tuyệt đối không để trang trắng. */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------- Hero */
.hero {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, .8);
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px;
    top: -180px; right: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 70%);
}
.hero::after {
    width: 460px; height: 460px;
    bottom: -220px; left: -140px;
    background: radial-gradient(circle, rgba(6, 182, 212, .38), transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero .lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .76); max-width: 56ch; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.4rem;
    padding: .4rem 1rem .4rem .5rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .07);
    font-size: .84rem;
    color: rgba(255, 255, 255, .84);
}
.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan-light);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .22);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
}
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before {
    content: '';
    width: 16px; height: 16px;
    flex: none;
    border-radius: 50%;
    background: rgba(34, 211, 238, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* Bảng điều khiển minh hoạ trong hero */
.hero-visual { position: relative; }
.glass-card {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px rgba(2, 8, 23, .5);
    overflow: hidden;
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.gc-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .05);
}
.gc-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.gc-head .dot.r { background: #f87171; }
.gc-head .dot.y { background: #fbbf24; }
.gc-head .dot.g { background: #34d399; }
.gc-title { margin-left: .6rem; font-size: .76rem; color: rgba(255, 255, 255, .5); font-family: ui-monospace, monospace; }

.gc-body { padding: 1.3rem; display: grid; gap: .85rem; }
.gc-row { display: flex; align-items: center; gap: .8rem; }
.gc-row .bar { height: 10px; border-radius: var(--radius-pill); background: var(--gradient-brand); }
.gc-row .bar.w70 { width: 70%; }
.gc-row .bar.w45 { width: 45%; opacity: .75; }
.gc-row .bar.w85 { width: 85%; opacity: .55; }
.gc-row .pill {
    margin-left: auto;
    padding: .1rem .55rem;
    border-radius: var(--radius-pill);
    background: rgba(52, 211, 153, .16);
    color: #6ee7b7;
    font-size: .72rem;
    font-weight: 700;
}
.gc-chart { margin-top: .4rem; height: 120px; }
.gc-chart svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------- Số liệu */
.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}
.stats li { text-align: center; }
.stats strong {
    display: block;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
}
.stats span { font-size: .85rem; color: rgba(255, 255, 255, .62); }

/* ---------------------------------------------------------- Dải đối tác */
.partners { padding: 2.2rem 0; border-bottom: 1px solid var(--line-soft); }
.partners-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2.6rem;
}
.partners-track span, .partners-track img {
    opacity: .5;
    filter: grayscale(1);
    transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.partners-track span { font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.partners-track img { max-height: 36px; width: auto; }
.partners-track *:hover { opacity: 1; filter: none; }

/* ---------------------------------------------------------- Thẻ nội dung */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { opacity: 1; }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
    color: var(--brand);
}
.card-icon svg { width: 25px; height: 25px; }

.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card-list {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: .5rem;
    font-size: .88rem;
    color: var(--ink-soft);
}
.card-list li { display: flex; gap: .55rem; align-items: flex-start; }
.card-list li::before {
    content: '';
    width: 16px; height: 16px;
    margin-top: .28em;
    flex: none;
    border-radius: 50%;
    background: rgba(37, 99, 235, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

.card-link {
    margin-top: auto;
    padding-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .9rem;
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------------------------------------------------------- Thẻ giải pháp */
.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.solution-card::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 190px; height: 190px;
    border-radius: 50%;
    background: var(--accent, var(--brand));
    opacity: .09;
    transition: transform .4s var(--ease);
}
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.solution-card:hover::before { transform: scale(1.35); }

.solution-card .card-icon {
    background: color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent);
    color: var(--accent, var(--brand));
}
.solution-head { display: flex; align-items: flex-start; gap: 1rem; position: relative; }
.solution-badge {
    margin-left: auto;
    padding: .22rem .65rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--accent, var(--brand)) 13%, transparent);
    color: var(--accent, var(--brand));
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.solution-card h3 { position: relative; margin-bottom: .3rem; }
.solution-tagline { position: relative; color: var(--accent, var(--brand)); font-weight: 600; font-size: .9rem; margin-bottom: .7rem; }
.solution-card p { position: relative; color: var(--muted); font-size: .95rem; }

.feature-chips {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}
.feature-chips li {
    padding: .28rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    font-size: .78rem;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------- Quy trình */
.steps {
    counter-reset: step;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
    margin: 0;
    padding: 0;
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
    content: '';
    position: absolute;
    top: 26px; left: 52px; right: -14px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 14px);
}
.step:last-child::before { display: none; }
.step-no {
    position: absolute;
    top: 0; left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------- Dự án */
.project {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project-thumb {
    aspect-ratio: 16 / 10;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project-thumb img { transform: scale(1.06); }
.project-thumb.is-empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(37, 99, 235, .55), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(6, 182, 212, .45), transparent 55%);
}

.project-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-body .tag {
    align-self: flex-start;
    margin-bottom: .7rem;
    padding: .2rem .65rem;
    border-radius: var(--radius-pill);
    background: var(--bg-softer);
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.project-body h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.project-body h3 a { color: inherit; }
.project-body h3 a:hover { color: var(--brand); }
.project-body p { color: var(--muted); font-size: .92rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.2rem; }
.filter-bar a {
    padding: .45rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--white);
}
.filter-bar a:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------- Vì sao chọn */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.why-list li {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.why-list h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.why-list p { font-size: .92rem; color: var(--muted); }

/* ---------------------------------------------------------- Giá trị cốt lõi */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.value-list li { display: flex; gap: 1rem; }
.v-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    flex: none;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
    color: var(--brand);
}
.v-icon svg { width: 22px; height: 22px; }
.value-list h4 { margin: 0 0 .25rem; font-size: 1rem; color: var(--ink); }
.value-list p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------- Công nghệ */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chips li {
    padding: .5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .84);
    font-size: .88rem;
    font-weight: 500;
    transition: background .22s var(--ease), transform .22s var(--ease);
}
.chips li:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }

/* ---------------------------------------------------------- Nhận xét */
.quote-card {
    display: flex;
    flex-direction: column;
    padding: 1.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.stars { display: flex; gap: .15rem; margin-bottom: .9rem; color: #f59e0b; }
.stars svg { width: 17px; height: 17px; }
.quote-card blockquote { margin: 0 0 1.3rem; font-size: .97rem; color: var(--ink-soft); }
.quote-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote-author img, .quote-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.quote-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
}
.quote-author strong { display: block; font-size: .93rem; color: var(--ink); }
.quote-author span { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------- Bài viết */
.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--bg-softer); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .78rem; color: var(--muted-light); margin-bottom: .6rem; }
.post-body h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.post-body h3 a { color: inherit; }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { font-size: .91rem; color: var(--muted); }

/* ---------------------------------------------------------- Trang chi tiết */
.page-hero {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, .78);
}
.page-hero h1 { color: #fff; margin-bottom: .8rem; }
.page-hero p { max-width: 68ch; color: rgba(255, 255, 255, .72); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    font-size: .84rem;
    color: rgba(255, 255, 255, .55);
}
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: '/'; margin-right: .45rem; opacity: .5; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.prose { font-size: 1.02rem; color: var(--ink-soft); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.7rem 0 .6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose blockquote {
    margin: 1.5rem 0;
    padding: .2rem 0 .2rem 1.2rem;
    border-left: 3px solid var(--brand);
    color: var(--muted);
    font-style: italic;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
.sidebar-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: .9rem; }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sidebar-list a {
    display: block;
    padding: .6rem .8rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--ink-soft);
}
.sidebar-list a:hover { background: var(--bg-soft); color: var(--brand); }
.sidebar-list a.is-active { background: rgba(37, 99, 235, .09); color: var(--brand); font-weight: 600; }

.meta-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.meta-table th, .meta-table td { padding: .6rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.meta-table th { width: 42%; color: var(--muted); font-weight: 500; }
.meta-table tr:last-child th, .meta-table tr:last-child td { border-bottom: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.feature-item {
    display: flex;
    gap: .9rem;
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.feature-item .v-icon { width: 40px; height: 40px; border-radius: 11px; }
.feature-item .v-icon svg { width: 19px; height: 19px; }
.feature-item h4 { margin: 0 0 .25rem; font-size: .97rem; }
.feature-item p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ---------------------------------------------------------- Dải kêu gọi hành động */
.cta-band {
    position: relative;
    padding: clamp(2.6rem, 5vw, 3.6rem);
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem;
}
.cta-band::after {
    content: '';
    position: absolute;
    top: -120px; right: -60px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 56ch; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------- Liên hệ */
.contact-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: start; }

.info-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; }
.i-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex: none;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12));
    color: var(--brand);
}
.i-icon svg { width: 21px; height: 21px; }
.info-list h3 { margin: 0 0 .2rem; font-size: .93rem; color: var(--muted); font-weight: 500; }
.info-list p { margin: 0; color: var(--ink); font-weight: 500; }
.info-list a { color: var(--ink); }
.info-list a:hover { color: var(--brand); }

.contact-form {
    padding: clamp(1.6rem, 3vw, 2.2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: #dc2626; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: .75rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.field input.input-validation-error,
.field textarea.input-validation-error,
.field select.input-validation-error { border-color: #dc2626; background: #fef2f2; }

.field-validation-error, .validation-summary-errors {
    display: block;
    margin-top: .35rem;
    color: #dc2626;
    font-size: .82rem;
}
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.validation-summary-valid { display: none; }

/* Bẫy bot: ẩn khỏi người dùng nhưng bot vẫn điền vào */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: .9rem 0 0; font-size: .82rem; color: var(--muted-light); text-align: center; }

.alert {
    display: flex;
    gap: .7rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    margin-bottom: 1.4rem;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: .1rem; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.map-embed {
    margin-top: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 21 / 9;
    min-height: 280px;   /* Trên điện thoại khung 21:9 chỉ cao ~160px, quá thấp để xem bản đồ */
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------- Phân trang */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.6rem; }
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: .9rem;
    color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: .45; pointer-events: none; }

.empty-state { padding: 4rem 1rem; text-align: center; color: var(--muted); }

/* Chỉ đọc được bằng trình đọc màn hình */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------- Chân trang */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, .62); padding-top: clamp(3rem, 5vw, 4rem); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2.4rem;
    padding-bottom: 2.6rem;
}
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand:hover { color: #fff; }
.footer-legal { color: rgba(255, 255, 255, .88); font-weight: 600; margin-bottom: .4rem; }
.footer-desc { font-size: .9rem; max-width: 40ch; }

.footer-col h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; margin-bottom: .55rem; font-size: .91rem; color: rgba(255, 255, 255, .66); }
.footer-col a {
    /* Vùng chạm đủ rộng cho ngón tay, không chỉ vừa bằng dòng chữ */
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: .15rem;
}
.footer-col a:hover { color: #fff; }

.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    color: rgba(255, 255, 255, .7);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social-links svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 .6rem;
    color: rgba(255, 255, 255, .7);
}
.footer-bottom a:hover { color: #fff; }

/* Nút quay lên đầu trang */
.to-top-fab {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top-fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top-fab svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------- Trang lỗi */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-code {
    font-size: clamp(4.5rem, 14vw, 8.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------------------------------------------------- Màn hình nhỏ */
@media (max-width: 1080px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .step::before { display: none; }

    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .8rem 20px 1.4rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

    /* Mỗi mục cao tối thiểu 48px để ngón tay bấm không bị trượt sang mục bên cạnh */
    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: .85rem .6rem;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid var(--line-soft);
        font-size: 1rem;
    }
    .site-nav a:last-of-type { border-bottom: 0; }

    /* Nút "Nhận báo giá" xuất hiện ngay trong menu, vì nút ở thanh trên đã bị ẩn.
       Phải viết là ".site-nav a.nav-cta" mới thắng được quy tắc ".site-nav a" ở trên,
       nếu không chữ trên nút sẽ bị tô màu xám của mục menu thường. */
    .site-nav a.nav-cta {
        display: flex;
        justify-content: center;
        min-height: 50px;
        margin-top: .9rem;
        border-bottom: 0;
        font-size: .98rem;
        color: #fff;
    }
    .site-nav a.nav-cta:hover { background: var(--gradient-brand); color: #fff; }

    /* Lớp phủ mờ phía sau menu, bấm ra ngoài là đóng */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: var(--header-h) 0 0;
        z-index: 99;
        background: rgba(15, 23, 42, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s var(--ease), visibility .22s;
    }
    .nav-backdrop.is-open { opacity: 1; visibility: visible; }

    /* Khoá cuộn trang nền khi menu đang mở */
    body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 32px, var(--container)); }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
    .brand-text small { display: none; }
}

/* ---------------------------------------------------------- Khi in */
@media print {
    .site-header, .site-footer, .to-top-fab, .cta-band, .hero-visual { display: none; }
    body { color: #000; }
}

/* ---------------------------------------------------------- Dải "đang hoàn thiện"
   Đặt dưới cùng, sau chân trang: nói rõ website chưa hoàn chỉnh nhưng không
   che mất nội dung hay làm khách hiểu nhầm là trang lỗi. Tắt được trong
   Admin ▸ Cấu hình website ▸ Thông báo. */
.construction-note {
    background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
    color: #fde68a;
    border-top: 3px solid #f59e0b;
}
.construction-inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 0;
    /* Chừa chỗ cho nút "lên đầu trang" đang cố định ở góc phải dưới */
    padding-right: 64px;
}
.construction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: rgba(245, 158, 11, .18);
    color: #fbbf24;
}
.construction-note strong {
    display: block;
    color: #fef3c7;
    font-size: .95rem;
    margin-bottom: .15rem;
}
.construction-note p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.6;
    color: rgba(253, 230, 138, .85);
}
.construction-cta {
    margin-left: auto;
    flex: none;
    border-color: rgba(251, 191, 36, .45);
    color: #fde68a;
}
.construction-cta:hover { border-color: #fbbf24; color: #fff; background: rgba(245, 158, 11, .18); }

@media (max-width: 760px) {
    .construction-inner { flex-wrap: wrap; gap: .8rem; padding-right: 0; padding-bottom: 4.5rem; }
    .construction-cta { margin-left: 0; width: 100%; justify-content: center; }
}
