:root {
    --ink: #172026;
    --muted: #5d6b75;
    --line: #dbe4e8;
    --paper: #f7faf9;
    --white: #ffffff;
    --green: #0f766e;
    --green-dark: #0b4f4a;
    --amber: #f0b429;
    --coral: #e76f51;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(23, 32, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 250, 249, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.meta,
.filters,
.footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: var(--green);
    border-radius: 8px;
    font-weight: 800;
}

.nav-links {
    gap: 26px;
    color: var(--muted);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--green-dark);
}

.nav-cta,
.btn {
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-cta {
    padding: 11px 18px;
    color: var(--white);
    background: var(--ink);
}

.hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 32px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 52px;
}

.hero-content {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    max-width: 860px;
    font-size: clamp(2.45rem, 5vw, 5.25rem);
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.16;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.hero-copy {
    max-width: 680px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 13px 22px;
}

.btn.primary {
    color: var(--white);
    background: var(--green);
}

.btn.secondary {
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero-panel {
    display: grid;
    gap: 14px;
}

.hero-panel div {
    padding: 24px;
    color: var(--white);
    background: var(--ink);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.hero-panel span {
    color: rgba(255, 255, 255, 0.76);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.intro,
.section-heading,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
    gap: 36px;
    align-items: end;
}

.intro {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.contact-copy p,
.project-card p,
.service-item p,
.steps span {
    color: var(--muted);
}

.filters {
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.filters button {
    min-height: 40px;
    padding: 9px 14px;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

.filters .active {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.project-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 32, 38, 0.08);
}

.project-card.is-hidden {
    display: none;
}

.project-card img {
    height: 205px;
    object-fit: cover;
}

.card-body {
    padding: 22px;
}

.tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 10px;
    color: var(--green-dark);
    background: #dff4ef;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.meta {
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.meta span {
    padding: 6px 10px;
    color: #31424c;
    background: #edf3f5;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.services {
    width: 100%;
    padding-inline: max(16px, calc((100% - 1180px) / 2));
    background: var(--ink);
}

.services .eyebrow,
.services h2 {
    color: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.service-item {
    min-height: 250px;
    padding: 24px;
    color: var(--white);
    background: #22313a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.service-item span {
    display: inline-block;
    margin-bottom: 26px;
    color: var(--amber);
    font-weight: 800;
}

.service-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.process {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 44px;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 22px 22px 22px 72px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 22px;
    top: 22px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    background: var(--coral);
    border-radius: 8px;
    font-weight: 800;
}

.steps strong,
.steps span {
    display: block;
}

.contact {
    align-items: center;
    padding-bottom: 86px;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.zalo-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.zalo-inline:hover,
.zalo-float:hover {
    transform: translateY(-2px);
}

.zalo-inline strong,
.zalo-inline small {
    display: block;
}

.zalo-inline small {
    color: var(--muted);
    font-size: 0.82rem;
}

.zalo-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: #0068ff;
    border-radius: 50%;
    font-weight: 800;
    line-height: 1;
}

.zalo-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 16px 8px 8px;
    color: var(--white);
    background: #0068ff;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(0, 104, 255, 0.32);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zalo-float .zalo-icon {
    color: #0068ff;
    background: var(--white);
}

label {
    display: grid;
    gap: 8px;
    color: #32454f;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fbfdfc;
    font: inherit;
}

textarea {
    resize: vertical;
}

.footer {
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer span:first-child {
    color: var(--ink);
    font-weight: 800;
}

.result-page,
.admin-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.result-box {
    max-width: 720px;
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.result-box h1,
.admin-heading h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

th,
td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--green-dark);
    background: #edf7f5;
    font-size: 0.86rem;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 920px) {
    .nav-links {
        display: none;
    }

    .hero,
    .intro,
    .section-heading,
    .process,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 62px;
    }

    .hero-panel,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .navbar {
        min-height: 66px;
    }

    .nav-cta {
        display: none;
    }

    .hero,
    .section {
        width: min(100% - 24px, 1180px);
    }

    .hero-actions,
    .footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-panel,
    .project-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 185px;
    }

    .steps li {
        padding-right: 18px;
    }

    .admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .zalo-float {
        right: 14px;
        bottom: 14px;
        min-height: 50px;
        padding-right: 14px;
        font-size: 0.9rem;
    }
}
