/* Xưởng In Áo — homepage gallery, trust strip and global chrome skin. */
body.home {
    --dq-xia-green: #07883c;
    --dq-xia-green-deep: #045c2a;
    --dq-xia-orange: #f36b21;
    --dq-xia-surface: #f8fbf7;
    overflow-x: hidden;
}

body.home :where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--dq-xia-orange) 82%, #fff);
    outline-offset: 3px;
}

/* Gallery and quotation form: 50/50 at full size, natural source order on mobile. */
body.home .dq-xia-gallery-contact {
    position: relative;
    padding-block: clamp(44px, 6vw, 84px);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--dq-xia-green) 8%, transparent), transparent 34%),
        #fff;
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row {
    margin-bottom: 0;
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:first-child {
    justify-content: center;
    text-align: center;
    margin-bottom: clamp(26px, 4vw, 46px);
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:first-child .dq-heading {
    max-width: 920px;
    margin-inline: auto;
    color: var(--dq-xia-green-deep);
    font-size: clamp(25px, 3.3vw, 42px);
    letter-spacing: -.025em;
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:first-child .dq-divider {
    width: min(180px, 42vw);
    margin: 18px auto 0;
    border-color: var(--dq-xia-orange);
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:last-child {
    align-items: stretch;
    gap: clamp(26px, 4vw, 48px);
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:last-child > .dq-col {
    flex-basis: calc(50% - 24px);
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:last-child > .dq-col:first-child {
    display: flex;
    min-height: 0;
}

body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:last-child > .dq-col:last-child {
    display: flex;
    flex-direction: column;
}

body.home .dq-xia-gallery-contact .dq-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

body.home .dq-xia-gallery-contact .dq-gallery-item {
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(4, 92, 42, .09);
}

body.home .dq-xia-gallery-contact .dq-gallery-item:first-child {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(2) {
    grid-column: 5 / 7;
    grid-row: 1;
}

body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 2;
}

body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(4),
body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(5) {
    grid-row: 3;
    background: #edf3ef;
}

body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(4) {
    grid-column: 1 / 4;
}

body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(5) {
    grid-column: 4 / 7;
}

body.home .dq-xia-gallery-contact .dq-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

body.home .dq-xia-gallery-contact .dq-gallery-item:hover img,
body.home .dq-xia-gallery-contact .dq-gallery-item:focus-visible img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

body.home .dq-xia-gallery-contact .dqc-contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    flex: 1 1 auto;
    max-width: none;
    height: auto;
    align-content: start;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid color-mix(in srgb, var(--dq-xia-green) 22%, #dfe8e2);
    border-radius: 22px;
    background: var(--dq-xia-surface);
    box-shadow: 0 18px 48px rgba(4, 92, 42, .08);
}

body.home .dq-xia-gallery-contact .dqc-contact-form > p:has(textarea),
body.home .dq-xia-gallery-contact .dqc-contact-form > p:has(input[type="number"]),
body.home .dq-xia-gallery-contact .dqc-contact-form > .dq-btn {
    grid-column: 1 / -1;
}

body.home .dq-xia-gallery-contact .dqc-contact-form label {
    color: var(--dq-xia-green-deep);
    font-size: 14px;
}

body.home .dq-xia-gallery-contact .dqc-field-label {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    width: max-content;
    max-width: 100%;
}

body.home .dq-xia-gallery-contact .dqc-field-label > [aria-hidden="true"] {
    color: var(--dq-xia-orange);
}

body.home .dq-xia-gallery-contact .dqc-contact-form :where(input:not([type="hidden"]), textarea, select) {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c9d9cf;
    border-radius: 10px;
    padding: 11px 13px;
    background: #fff;
    color: var(--dq-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.home .dq-xia-gallery-contact .dqc-contact-form textarea {
    min-height: 126px;
    resize: vertical;
}

body.home .dq-xia-gallery-contact .dqc-contact-form :where(input, textarea, select):focus {
    border-color: var(--dq-xia-green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dq-xia-green) 14%, transparent);
}

body.home .dq-xia-gallery-contact .dqc-contact-form .dq-btn {
    min-height: 48px;
    padding-inline: 26px;
    border-color: var(--dq-xia-orange);
    border-radius: 999px;
    background: var(--dq-xia-orange);
    box-shadow: 0 10px 22px rgba(243, 107, 33, .22);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.home .dq-xia-gallery-contact .dqc-contact-form .dq-btn:hover {
    transform: translateY(-1px);
    background: #d95510;
    box-shadow: 0 14px 28px rgba(243, 107, 33, .28);
}

/* Three compact commitments, matching the reference density without copying its skin. */
body.home .dq-feature-strip {
    padding: 0;
    border-block: 0;
    background: #fff;
}

body.home .dq-feature-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.home .dq-feature-strip__item,
body.home .dq-feature-strip__item:first-child {
    position: relative;
    min-height: 218px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 28px 26px;
    overflow: hidden;
    border: 1px solid #dce9e0;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, #fbfdfb 100%);
    text-align: center;
    box-shadow: 0 12px 34px rgba(4, 63, 38, .06);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

body.home .dq-feature-strip__item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    width: 56%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--dq-xia-green), var(--dq-xia-orange));
    opacity: .78;
}

body.home .dq-feature-strip__item::before {
    content: "";
    display: block;
    width: 52px;
    height: 52px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

body.home .dq-feature-strip__item:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='1' y='1' width='62' height='62' rx='18' fill='%23fff2e9'/%3E%3Cpath d='M18 33a14 14 0 0 1 28 0v9M18 32h-2a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h5V32h-3Zm28 0h2a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-5V32h3Zm0 13c0 4-4 7-10 7h-3' fill='none' stroke='%2307883c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='30' cy='53' r='2.5' fill='%23f36b21'/%3E%3C/svg%3E");
}

body.home .dq-feature-strip__item:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='1' y='1' width='62' height='62' rx='18' fill='%23fff2e9'/%3E%3Crect x='18' y='15' width='28' height='36' rx='5' fill='none' stroke='%2307883c' stroke-width='3'/%3E%3Cpath d='M25 15v-3h14v6H25v-3Zm0 15 5 5 10-11M25 43h14' fill='none' stroke='%23f36b21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.home .dq-feature-strip__item:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='1' y='1' width='62' height='62' rx='18' fill='%23fff2e9'/%3E%3Cpath d='M13 22h27v22H13V22Zm27 8h7l6 8v6H40V30Z' fill='none' stroke='%2307883c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='23' cy='47' r='4' fill='%23fff' stroke='%23f36b21' stroke-width='3'/%3E%3Ccircle cx='46' cy='47' r='4' fill='%23fff' stroke='%23f36b21' stroke-width='3'/%3E%3Cpath d='M17 29h13M17 35h9' stroke='%23f36b21' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.home .dq-feature-strip__item:hover {
    z-index: 1;
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--dq-xia-green) 30%, #dce9e0);
    box-shadow: 0 20px 42px rgba(4, 92, 42, .12);
}

body.home .dq-feature-strip__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    padding: 13px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--dq-xia-orange) 13%, #fff);
}

body.home .dq-feature-strip__item small {
    color: var(--dq-xia-orange);
    letter-spacing: .09em;
}

body.home .dq-feature-strip__item h3 {
    margin: 2px 0 6px;
    color: var(--dq-xia-green-deep);
    font-size: 20px;
    line-height: 1.35;
    text-transform: uppercase;
}

body.home .dq-feature-strip__item p {
    max-width: 32ch;
    margin-inline: auto;
    color: #486357;
    font-size: 15px;
    line-height: 1.6;
}

body.home .dq-feature-strip__item a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #eef8f1;
    color: var(--dq-xia-green-deep);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

body.home .dq-feature-strip__item a:hover,
body.home .dq-feature-strip__item a:focus-visible {
    transform: translateY(-1px);
    background: var(--dq-xia-green);
    color: #fff;
}

/* A quieter footer transition keeps the final content from feeling like a hard block. */
body.home.dq-global-chrome .dq-footer {
    border-top: 0;
    background: radial-gradient(circle at 8% 0, rgba(16, 145, 72, .12), transparent 30%), radial-gradient(circle at 92% 10%, rgba(243, 107, 33, .08), transparent 25%), linear-gradient(180deg, #f8fcf9, #edf7f0);
}

body.home.dq-global-chrome .dq-footer__col:first-child .dq-footer-logo {
    border-color: rgba(4, 92, 42, .1);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(4, 92, 42, .08);
}

/* Header: stable logo proportions, branded actions and robust dropdown affordances. */
body.home.dq-global-chrome .dq-header {
    border-bottom-color: #dce9e0;
    box-shadow: 0 5px 22px rgba(4, 92, 42, .07);
}

body.home.dq-global-chrome .dq-topbar {
    border-bottom-color: color-mix(in srgb, var(--dq-xia-green) 18%, transparent);
    background: var(--dq-xia-green-deep);
    color: #fff;
}

/* Logo and header row dimensions come from brand-system.css on every route. */

body.home.dq-global-chrome .dq-menu a {
    position: relative;
    color: var(--dq-xia-green-deep);
    transition: color .2s ease;
}

body.home.dq-global-chrome .dq-menu a:hover,
body.home.dq-global-chrome .dq-menu a:focus-visible {
    color: var(--dq-xia-orange);
}

body.home.dq-global-chrome .dq-hotline,
body.home.dq-global-chrome .dq-header-btn {
    min-height: 44px;
    border-radius: 999px;
    transition: transform .2s ease, background-color .2s ease;
}

body.home.dq-global-chrome .dq-hotline {
    background: var(--dq-xia-green);
}

body.home.dq-global-chrome .dq-header-btn {
    background: var(--dq-xia-orange);
}

body.home.dq-global-chrome :where(.dq-hotline, .dq-header-btn):hover {
    transform: translateY(-1px);
}

body.home.dq-global-chrome .dq-mobile-nav {
    border-bottom-color: #dce9e0;
    box-shadow: 0 18px 32px rgba(4, 92, 42, .12);
}

body.home .dq-floating-contact {
    --dq-contact-group: var(--dq-xia-green);
}

@media (max-width: 900px) {
    body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:last-child {
        display: grid;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    body.home .dq-xia-gallery-contact > :where(.dq-container, .dq-fluid) > .dq-row:last-child > .dq-col {
        margin-bottom: 0;
    }

    body.home .dq-xia-gallery-contact .dq-gallery-grid {
        height: auto;
        min-height: 0;
        aspect-ratio: 10 / 9;
    }

    body.home .dq-xia-gallery-contact .dqc-contact-form {
        grid-template-columns: 1fr;
        height: auto;
    }

    body.home .dq-xia-gallery-contact .dqc-contact-form > p,
    body.home .dq-xia-gallery-contact .dqc-contact-form > .dq-btn {
        grid-column: auto;
    }

    body.home .dq-feature-strip__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.home .dq-feature-strip__item,
    body.home .dq-feature-strip__item:first-child {
        min-height: 210px;
        padding: 26px 18px;
    }

}

@media (max-width: 600px) {
    body.home .dq-xia-gallery-contact {
        padding-block: 42px;
    }

    body.home .dq-xia-gallery-contact .dq-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: auto;
        gap: 9px;
        aspect-ratio: auto;
    }

    body.home .dq-xia-gallery-contact .dq-gallery-item,
    body.home .dq-xia-gallery-contact .dq-gallery-item:first-child,
    body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(2),
    body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(3),
    body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(4),
    body.home .dq-xia-gallery-contact .dq-gallery-item:nth-child(5) {
        min-height: 0;
        height: auto;
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 1;
        border-radius: 12px;
    }

    body.home .dq-xia-gallery-contact .dq-gallery-item:first-child {
        grid-column: span 2;
        aspect-ratio: 4 / 3;
    }

    body.home .dq-xia-gallery-contact .dqc-contact-form {
        padding: 20px 16px;
        border-radius: 16px;
    }

    body.home .dq-xia-gallery-contact .dqc-contact-form .dq-btn {
        width: 100%;
    }

    body.home .dq-feature-strip__grid {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    body.home .dq-feature-strip__item,
    body.home .dq-feature-strip__item:first-child {
        min-height: auto;
        padding: 28px 22px;
    }

}

@media (prefers-reduced-motion: reduce) {
    body.home .dq-xia-gallery-contact *,
    body.home .dq-feature-strip__item,
    body.home.dq-global-chrome * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
