:root {
    --bg: #eef2ef;
    --surface: #ffffff;
    --surface-soft: #f6faf7;
    --text: #11221f;
    --muted: #4e6660;
    --brand: #0f7c66;
    --brand-deep: #0b4d40;
    --accent: #d28b2f;
    --line: #d8e3de;
    --success: #1f9a60;
    --danger: #cf3c3c;
    --shadow-lg: 0 22px 56px rgba(17, 34, 31, 0.13);
    --shadow-md: 0 14px 28px rgba(17, 34, 31, 0.08);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            1400px 560px at 10% -18%,
            #d4eee4 0%,
            rgba(212, 238, 228, 0) 74%
        ),
        radial-gradient(
            800px 400px at 100% 12%,
            #f5e3cb 0%,
            rgba(245, 227, 203, 0) 70%
        ),
        var(--bg);
    line-height: 1.6;
}

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

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

.container {
    width: min(1180px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(12px);
    background: rgba(238, 242, 239, 0.86);
    border-bottom: 1px solid rgba(15, 124, 102, 0.11);
    transition:
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 18px rgba(17, 34, 31, 0.1);
    background: rgba(238, 242, 239, 0.97);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(15, 124, 102, 0.2);
}

.brand strong {
    display: block;
    font:
        700 1rem/1.3 "Lexend",
        sans-serif;
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    font-weight: 600;
    color: var(--muted);
    padding: 0.62rem 0.92rem;
    border-radius: 999px;
    transition: all 180ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.nav-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 124, 102, 0.12);
    color: #0f7c66;
    position: relative;
    flex: 0 0 auto;
}

.nav-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav a.active .nav-icon,
.site-nav a:hover .nav-icon {
    background: rgba(15, 124, 102, 0.2);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--brand-deep);
    background: rgba(15, 124, 102, 0.12);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.42rem;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(15, 124, 102, 0.22);
    background: var(--surface);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    font-size: 0;
}

.menu-toggle-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.menu-toggle-label {
    font-size: 0.85rem;
    line-height: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            100deg,
            rgba(10, 48, 39, 0.88),
            rgba(6, 89, 71, 0.8) 58%,
            rgba(210, 139, 47, 0.62)
        ),
        url("/images/bg_1.jpg") center/cover no-repeat;
    filter: saturate(0.95);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.6rem;
}

.hero-copy,
.hero-panel {
    border-radius: var(--radius-xl);
    padding: 2.3rem;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.hero-copy {
    color: #eef9f5;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font:
        700 0.76rem/1 "Lexend",
        sans-serif;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font:
        800 clamp(1.8rem, 4.2vw, 3rem)/1.17 "Lexend",
        sans-serif;
    letter-spacing: -0.02em;
}

.hero-copy p,
.page-hero p {
    margin: 1rem 0 0;
    color: rgba(238, 249, 245, 0.9);
    max-width: 64ch;
}

.hero-actions {
    margin-top: 1.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-pills {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-pills li {
    padding: 0.45rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.07);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.95);
}

.hero-panel h2 {
    margin: 0;
    font:
        700 1.18rem/1.3 "Lexend",
        sans-serif;
}

.quick-cards {
    margin-top: 1rem;
    display: grid;
    gap: 0.7rem;
}

.quick-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 0.95rem;
    transition:
        transform 170ms ease,
        border-color 170ms ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 124, 102, 0.36);
}

.quick-card strong {
    display: block;
    font-size: 0.98rem;
}

.quick-card span {
    display: block;
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.quick-card em {
    display: block;
    margin-top: 0.32rem;
    color: var(--brand-deep);
    font-style: normal;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.72rem 1.12rem;
    min-height: 44px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 170ms ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), #14917b);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 124, 102, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 124, 102, 0.32);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-sm {
    padding: 0.56rem 0.85rem;
    font-size: 0.82rem;
}

.btn-full {
    width: 100%;
}

.section {
    padding: 4rem 0;
}

.section-muted {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.72),
        rgba(246, 250, 247, 0.95)
    );
    border-top: 1px solid rgba(15, 124, 102, 0.1);
    border-bottom: 1px solid rgba(15, 124, 102, 0.1);
}

.section-head {
    margin-bottom: 1.45rem;
}

.section-head h2 {
    margin: 0;
    font:
        700 clamp(1.4rem, 3.5vw, 2.1rem)/1.2 "Lexend",
        sans-serif;
}

.section-head p {
    margin: 0.68rem 0 0;
    color: var(--muted);
    max-width: 65ch;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card,
.mini-card,
.contact-card,
.split-card,
.stats-card,
.order-info,
.order-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.service-card {
    overflow: hidden;
}

.card-image {
    display: block;
    height: 200px;
}

.card-image img,
.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-body h3 {
    margin: 0;
    font:
        700 1.06rem/1.3 "Lexend",
        sans-serif;
}

.card-body p {
    margin: 0.68rem 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.86rem;
    margin-bottom: 0.8rem;
}

.card-meta span {
    color: var(--muted);
}

.card-meta strong {
    color: var(--brand-deep);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
}

.chip {
    border: 1px solid rgba(15, 124, 102, 0.28);
    color: var(--brand-deep);
    background: rgba(15, 124, 102, 0.08);
    border-radius: 999px;
    padding: 0.5rem 0.84rem;
    font-weight: 600;
    font-size: 0.84rem;
}

.chip span {
    opacity: 0.75;
    padding: 0 0.28rem;
}

.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.split-card {
    padding: 1.2rem;
}

.split-card h2 {
    margin: 0;
    font:
        700 1.26rem/1.3 "Lexend",
        sans-serif;
}

.split-card h3 {
    margin: 1rem 0 0.4rem;
    font:
        700 1rem/1.3 "Lexend",
        sans-serif;
}

.split-card p {
    margin: 0.8rem 0 0;
    color: var(--muted);
}

.check-list {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.52rem;
}

.check-list li {
    position: relative;
    padding-left: 1.4rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.54em;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand), var(--accent));
}

.stats-card {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.stat-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    padding: 0.9rem;
}

.stat-item strong {
    display: block;
    font:
        800 1.42rem/1.1 "Lexend",
        sans-serif;
    color: var(--brand-deep);
}

.stat-item span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.city-grid,
.mini-grid,
.contact-grid,
.site-map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.mini-card,
.contact-card {
    padding: 1rem;
}

.mini-card h3,
.contact-card h2 {
    margin: 0;
    font:
        700 1rem/1.3 "Lexend",
        sans-serif;
}

.mini-card p,
.contact-card p,
.contact-card small {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.page-hero {
    padding: 3.8rem 0 2rem;
}

.page-hero .container {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 124, 102, 0.2);
    background:
        radial-gradient(
            600px 220px at 88% 0%,
            rgba(210, 139, 47, 0.2) 0%,
            rgba(210, 139, 47, 0) 76%
        ),
        radial-gradient(
            500px 260px at 0% 100%,
            rgba(15, 124, 102, 0.2) 0%,
            rgba(15, 124, 102, 0) 72%
        ),
        linear-gradient(145deg, #ffffff, #f4faf7);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.page-hero p {
    color: var(--muted);
}

.page-hero .hero-actions .btn-ghost {
    color: var(--brand-deep);
    border-color: rgba(15, 124, 102, 0.35);
    background: rgba(15, 124, 102, 0.05);
}

.order-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.2rem;
    align-items: start;
}

.order-info,
.order-form {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.order-info .cover-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.9rem;
}

.order-form {
    scroll-margin-top: 110px;
}

/* Prevent reveal animation overlap on order page cards */
.order-layout .reveal,
.order-layout .reveal.is-visible,
.order-layout .reveal.delay-1,
.order-layout .reveal.delay-2 {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.order-form form {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.72rem;
}

.order-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    color: #1f3430;
}

.order-form input,
.order-form textarea {
    width: 100%;
    border: 1px solid #bfd0c8;
    border-radius: var(--radius-sm);
    padding: 0.68rem 0.75rem;
    min-height: 46px;
    font: inherit;
    background: #fff;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 124, 102, 0.14);
}

.captcha-img {
    width: 200px;
    border: 1px dashed #b9ccc2;
    border-radius: var(--radius-sm);
}

.alert {
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
    font-weight: 600;
}

.alert.success {
    border: 1px solid rgba(31, 154, 96, 0.26);
    color: #16693f;
    background: rgba(31, 154, 96, 0.1);
}

.alert.error {
    border: 1px solid rgba(207, 60, 60, 0.24);
    color: #8f2323;
    background: rgba(207, 60, 60, 0.1);
}

.site-footer {
    margin-top: 2.5rem;
    padding: 2.6rem 0 1.6rem;
    background: #0e211d;
    color: #cae2da;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1rem;
}

.site-footer h3 {
    margin: 0;
    font:
        700 1.08rem/1.3 "Lexend",
        sans-serif;
    color: #ecf9f4;
}

.site-footer p {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
}

.site-footer a,
.footer-link {
    color: #90d6c0;
}

.footer-bottom {
    margin-top: 1.4rem;
    border-top: 1px solid rgba(202, 226, 218, 0.18);
    padding-top: 1rem;
}

.quick-contact {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 95;
    display: grid;
    gap: 0.55rem;
    padding-bottom: env(safe-area-inset-bottom);
}

.quick-contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    border-radius: 999px;
    padding: 0.58rem 0.92rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 34, 31, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.quick-contact-item.call {
    background: linear-gradient(120deg, #0f7c66, #14917b);
}

.quick-contact-item.zalo {
    background: linear-gradient(120deg, #0077ff, #1ca3ff);
}

.quick-contact-item.phonecall {
    background: linear-gradient(120deg, #d28b2f, #d9a047);
}

.quick-contact-item:hover {
    transform: translateY(-1px);
}

.quick-contact-item:active {
    transform: scale(0.98);
}

.toast-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    z-index: 120;
    pointer-events: none;
}

.toast-modal.show {
    display: flex;
}

.toast-modal-card {
    width: min(380px, calc(100vw - 2rem));
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(17, 34, 31, 0.22);
    padding: 0.9rem 0.95rem;
    transform: translateY(-8px);
    opacity: 0;
    transition: all 220ms ease;
    pointer-events: auto;
}

.toast-modal.show .toast-modal-card {
    transform: translateY(0);
    opacity: 1;
}

.toast-modal-card strong {
    display: block;
    font: 700 0.98rem/1.3 "Lexend", sans-serif;
    color: #13332f;
}

.toast-modal-card p {
    margin: 0.45rem 0 0;
    color: #35504a;
    line-height: 1.5;
    font-size: 0.92rem;
}

.toast-modal-card button {
    margin-top: 0.7rem;
    border: 1px solid #c9d9d2;
    border-radius: 9px;
    background: #fff;
    padding: 0.42rem 0.7rem;
    cursor: pointer;
    font-weight: 600;
    color: #1e3c37;
}

.toast-modal-card.toast-success {
    border-color: rgba(31, 154, 96, 0.28);
}

.toast-modal-card.toast-error {
    border-color: rgba(207, 60, 60, 0.28);
}

.not-found {
    padding-bottom: 4rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
}

.reveal.is-visible {
    animation: reveal-up 620ms cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
}

.reveal.delay-1 {
    animation-delay: 90ms;
}

.reveal.delay-2 {
    animation-delay: 180ms;
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1060px) {
    .hero-grid,
    .split-layout,
    .order-layout {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .city-grid,
    .mini-grid,
    .contact-grid,
    .site-map-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .container {
        width: min(1180px, calc(100% - 1.4rem));
    }

    .menu-toggle {
        display: inline-flex;
        justify-content: center;
        padding: 8px;
    }

    .menu-toggle-label {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: 82px;
        left: 0.7rem;
        right: 0.7rem;
        display: grid;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 0.4rem;
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: all 180ms ease;
    }

    .site-nav a {
        border-radius: 12px;
    }

    .site-nav a span:last-child {
        display: inline-block;
    }

    .order-layout {
        gap: 1rem;
    }

    .order-info .cover-image {
        height: 190px;
    }

    .site-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        padding: 4rem 0 3.2rem;
    }

    .hero-copy,
    .hero-panel,
    .page-hero .container {
        padding: 1.2rem;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .card-grid,
    .city-grid,
    .mini-grid,
    .contact-grid,
    .site-map-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-card {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 2rem;
    }

    .quick-contact {
        left: 0.7rem;
        right: 0.7rem;
        bottom: 0.7rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-contact-item {
        min-width: 0;
        border-radius: 12px;
        padding: 0.65rem 0.4rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 520px) {
    .hero-copy h1,
    .page-hero h1 {
        font-size: 1.55rem;
    }

    .card-image {
        height: 185px;
    }
}
