/* ============================================================
   ASENRA — Trang chủ v3 (10/2026)
   Phong cách editorial: nền be, chữ thương hiệu cỡ lớn, nút bo tròn,
   dịch vụ so le 01/02/03, dự án dạng danh sách, quy trình bậc thang.
   Chỉ nạp ở trang chủ. Phần dùng chung mọi trang (menu, chân trang, nút,
   hiệu ứng) nằm ở v3.css.
   ============================================================ */
.home {
    overflow: hidden;
    background: #fff;
    color: var(--h-ink);
}

/* ===== Hero ===== */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(118px, 12vw, 160px) var(--h-pad) 0;
    border-radius: 0 0 50% 50% / 0 0 clamp(36px, 7vw, 120px) clamp(36px, 7vw, 120px);
    background: var(--h-bg);
    text-align: center;
}

.home-hero__title {
    display: grid;
    justify-items: center;
    margin: 0;
    font-family: var(--s2-sans);
    font-weight: 400;
}

.home-hero__lead,
.home-hero__tagline {
    color: var(--h-ink);
    font-size: clamp(13px, 1.4vw, 21px);
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-hero__brand {
    margin: clamp(4px, 1vw, 14px) 0 clamp(10px, 1.6vw, 22px);
    color: var(--h-ink);
    font-size: clamp(72px, 14vw, 220px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .8;
}

.home-hero__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 32px);
    align-items: end;
    margin-top: clamp(20px, 3vw, 44px);
    text-align: left;
}

.home-hero__visual {
    position: relative;
    z-index: 0;
    margin: 0 -16%;
    align-self: end;
}

.home-hero__intro,
.home-hero__proof {
    position: relative;
    z-index: 1;
    align-self: start;
}

.home-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hai chấm trang trí như mẫu. */
.home-hero__dots {
    position: absolute;
    top: 8%;
    left: -2%;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--h-gold);
    border-radius: 50%;
}

.home-hero__dots::before {
    content: "";
    position: absolute;
    top: -28px;
    left: -12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--h-gold-soft);
}

.home-hero__intro {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding-bottom: clamp(32px, 4vw, 64px);
}

.home-hero__intro img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-hero__intro h2 {
    margin: 10px 0 0;
    font-family: var(--s2-sans);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.home-hero__intro p {
    max-width: 300px;
    margin: 0 0 10px;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.75;
}

.home-hero__proof {
    display: grid;
    gap: 12px;
    justify-items: end;
    padding-bottom: clamp(32px, 4vw, 64px);
    text-align: right;
}

.home-hero__proof strong {
    color: var(--h-ink);
    font: 600 clamp(44px, 4.4vw, 64px)/1 var(--s2-sans);
    letter-spacing: -.02em;
}

.home-hero__proof > span {
    max-width: 200px;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.5;
}

.home-hero__proof .home-badge {
    margin: 10px 0;
}

/* ===== Về ASENRA ===== */
.home-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: clamp(32px, 6vw, 96px);
    row-gap: clamp(40px, 5vw, 72px);
    padding: var(--h-section) var(--h-pad);
}

.home-about__head {
    display: grid;
    align-content: space-between;
    justify-items: start;
    gap: 32px;
    padding-bottom: 8px;
}

.home-about__stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(24px, 3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-about__stats li {
    display: grid;
    gap: 6px;
}

.home-about__stats strong {
    color: var(--h-ink);
    font: 600 clamp(36px, 3.6vw, 56px)/1 var(--s2-sans);
    letter-spacing: -.02em;
}

.home-about__stats span {
    color: var(--h-text);
    font-size: 14px;
}

.home-about__sign {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--h-text);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-about__sign img {
    width: 52px;
    height: 52px;
    padding: 8px;
    border-radius: 50%;
    background: var(--h-bg);
    object-fit: contain;
}

.home-about__sign strong {
    display: block;
    color: var(--h-ink);
    font: 600 26px/1.1 var(--s2-serif);
    letter-spacing: .02em;
    text-transform: none;
}

.home-about__quote .home-asterisk {
    display: block;
    margin-bottom: 28px;
}

.home-about__quote {
    margin: 0;
    color: var(--h-ink);
    font: 600 clamp(22px, 2.3vw, 34px)/1.42 var(--s2-sans);
    letter-spacing: -.01em;
}

.home-about__quote cite {
    display: block;
    margin-top: 24px;
    color: var(--h-gold);
    font: 600 12px/1 var(--s2-sans);
    font-style: normal;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.home-about__gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .85fr 1fr 1.15fr;
    gap: clamp(12px, 1.6vw, 24px);
    align-items: start;
}

.home-about__gallery img {
    width: 100%;
    object-fit: cover;
}

.home-about__gallery img:nth-child(1) {
    grid-row: 1 / span 2;
    margin-top: clamp(40px, 10vw, 150px);
    aspect-ratio: 3 / 3.4;
}

.home-about__gallery img:nth-child(2) {
    aspect-ratio: 4 / 3.2;
}

.home-about__gallery img:nth-child(3) {
    aspect-ratio: 4 / 2.7;
}

.home-about__values {
    grid-column: 2 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 18px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-about__values li {
    display: grid;
    align-content: space-between;
    gap: 22px;
    min-height: 150px;
    padding: clamp(18px, 1.8vw, 28px);
    background: var(--h-bg);
    color: var(--h-ink);
}

.home-about__values strong {
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.35;
}

.home-about__values svg {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 50%;
    background: #fff;
    fill: none;
    stroke: var(--h-olive);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== Dịch vụ (so le) ===== */
.home #dich-vu {
    max-width: none;
    padding: var(--h-section) var(--h-pad);
    overflow: visible;
    background: var(--h-bg-soft);
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "i1 t1 i3"
        "t2 i2 t3";
}

.home-services__img--1 { grid-area: i1; }
.home-services__img--2 { grid-area: i2; }
.home-services__img--3 { grid-area: i3; }
.home-services__text--1 { grid-area: t1; }
.home-services__text--2 { grid-area: t2; }
.home-services__text--3 { grid-area: t3; }

.home-services__img {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
}

.home-services__img--3 {
    aspect-ratio: auto;
    margin-bottom: clamp(60px, 8vw, 110px);
}

.home-services__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.home-services__img:hover img {
    transform: scale(1.04);
}

.home-services__text {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    padding: clamp(24px, 4vw, 64px);
}

.home-services__text--2 {
    padding-left: 0;
}

.home-services__text--3 {
    align-content: start;
    padding-top: 0;
    padding-right: 0;
}

.home-services__text b {
    position: relative;
    z-index: 1;
    color: #D9D8D2;
    font: 300 clamp(72px, 8vw, 124px)/.9 var(--s2-sans);
    letter-spacing: -.04em;
}

.home-services__text h3 {
    margin: 0;
    font-family: var(--s2-sans);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 600;
    line-height: 1.12;
}

.home-services__text p {
    max-width: 380px;
    margin: 0;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.75;
}

.home-services__text ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 10px;
    padding: 0;
    list-style: none;
}

.home-services__text li {
    padding: 6px 12px;
    border: 1px solid var(--h-line);
    border-radius: 999px;
    color: var(--h-text);
    font-size: 13px;
}

/* ===== Dự án ===== */
.home-projects {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border-bottom: 1px solid var(--h-line);
    background: #fff;
}

.home-projects__stage {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--h-bg);
}

.home-projects__stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .6s ease, transform 1.2s ease;
}

.home-projects__stage img.is-active {
    opacity: 1;
    transform: none;
}

.home-projects__zoom {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--h-ink);
    font: 500 14px var(--s2-sans);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.home-projects__zoom svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.home-projects__list {
    padding: clamp(56px, 7vw, 110px) var(--h-pad) clamp(56px, 7vw, 110px) clamp(32px, 6vw, 110px);
    border-left: 1px solid var(--h-line);
}

.home-projects__list .home-head {
    margin-bottom: 28px;
}

.home-projects__list ol {
    margin: 0 0 36px;
    padding: 0;
    border-left: 1px solid var(--h-line);
    list-style: none;
}

.home-projects__list li {
    position: relative;
}

.home-projects__list li::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #B9B9AE;
    transition: background var(--mo-base), transform var(--mo-base);
}

.home-projects__list li.is-active::before {
    background: var(--h-gold);
    transform: scale(1.35);
}

.home-projects__list button {
    display: block;
    width: 100%;
    padding: 18px 0 18px 36px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.home-projects__list h3 {
    margin: 0;
    color: var(--h-muted);
    font-family: var(--s2-sans);
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    transition: color var(--mo-base);
}

.home-projects__list li.is-active h3,
.home-projects__list button:hover h3,
.home-projects__list button:focus-visible h3 {
    color: var(--h-ink);
}

.home-projects__list p {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.7;
    opacity: 0;
    transition: max-height var(--mo-base), opacity var(--mo-base), margin var(--mo-base);
}

.home-projects__list li.is-active p {
    max-height: 80px;
    margin-top: 8px;
    opacity: 1;
}

/* ===== Quy trình ===== */
.home-process {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    padding: var(--h-section) var(--h-pad);
    background:
        radial-gradient(rgba(22, 23, 15, .1) 1px, transparent 1.2px) 0 0 / 18px 18px,
        #fff;
}

.home-process__intro {
    display: grid;
    gap: 24px;
    align-self: start;
}

.home-process__intro .home-head {
    margin-bottom: 0;
}

.home-process__intro p {
    max-width: 340px;
    margin: 0;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.75;
}

.home-process__intro .home-asterisk {
    margin-top: clamp(16px, 6vw, 90px);
}

.home-process__visual {
    position: relative;
    margin: 0;
}

.home-process__visual img {
    filter: drop-shadow(0 24px 40px rgba(22, 23, 15, .18));
}

.home-process__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.home-process__frame path {
    fill: none;
    stroke: rgba(22, 23, 15, .3);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.home-process__frame circle {
    fill: var(--h-gold);
}

.home-process__visual img {
    width: 100%;
    aspect-ratio: 1 / .9;
    object-fit: cover;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.home-process__steps {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-process__steps li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 6px;
}

.home-process__steps li:nth-child(2) { margin-left: 32px; }
.home-process__steps li:nth-child(3) { margin-left: 64px; }
.home-process__steps li:nth-child(4) { margin-left: 96px; }

.home-process__steps b {
    padding-top: 4px;
    color: var(--h-gold);
    font: 400 22px/1 var(--s2-sans);
}

.home-process__steps h3 {
    margin: 0 0 8px;
    font-family: var(--s2-sans);
    font-size: 22px;
    font-weight: 600;
}

.home-process__steps p {
    max-width: 340px;
    margin: 0;
    color: var(--h-text);
    font-size: 14.5px;
    line-height: 1.75;
}

/* ===== Khách hàng ===== */
.home-reviews {
    padding: var(--h-section) var(--h-pad);
    background: var(--h-bg);
}

.home-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 36px);
}

.home-review__photo {
    display: block;
    width: 72%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}

.home-review__card {
    position: relative;
    margin: -34% 0 0 18%;
    padding: 34px 32px 28px;
    border-radius: 44px 8px 44px 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(22, 23, 15, .07);
}

.home-review blockquote {
    margin: 0 0 22px;
    color: var(--h-ink);
    font-size: 17px;
    line-height: 1.7;
}

.home-review footer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-review footer img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.home-review footer svg {
    margin-left: auto;
}

.home-review strong {
    display: block;
    color: var(--h-ink);
    font-size: 17px;
}

.home-review footer span {
    display: block;
    margin-top: 4px;
    color: var(--h-gold);
    font-size: 12px;
    letter-spacing: .08em;
}

.home-review svg {
    flex: 0 0 auto;
    width: 38px;
    height: 30px;
    fill: none;
    stroke: var(--h-gold);
    stroke-width: 1.6;
}

/* ===== Thư viện nội thất ===== */
.home-gallery {
    padding: var(--h-section) var(--h-pad) calc(var(--h-section) * .6);
}

.home-gallery__row {
    display: grid;
    grid-template-columns: .9fr .8fr 2.6fr 1.05fr .85fr;
    gap: clamp(10px, 1.4vw, 24px);
    align-items: center;
}

.home-gallery__item {
    margin: 0;
}

.home-gallery__item img {
    width: 100%;
    object-fit: cover;
}

.home-gallery__item--1 img { aspect-ratio: 1 / 2.4; }
.home-gallery__item--2 img { aspect-ratio: 1 / 2.9; }
.home-gallery__item--3 img { aspect-ratio: 16 / 11; }
.home-gallery__item--4 img { aspect-ratio: 1 / 2.1; }
.home-gallery__item--5 img { aspect-ratio: 1 / 2.4; }

.home-gallery__item--3 {
    align-self: start;
}

.home-gallery__item figcaption {
    padding-top: 22px;
}

.home-gallery__item h3 {
    margin: 0 0 10px;
    font-family: var(--s2-sans);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 600;
}

.home-gallery__item p {
    max-width: 560px;
    margin: 0;
    color: var(--h-text);
    font-size: 15px;
    line-height: 1.75;
}

/* ===== Blog ===== */
.home-blog {
    padding: var(--h-section) var(--h-pad);
}

.home-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
}

.home-post {
    display: grid;
    align-content: start;
    justify-items: start;
}

.home-post__media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--h-bg);
}

.home-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.home-post:hover .home-post__media img {
    transform: scale(1.05);
}

.home-post time {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 12px 16px;
    background: #fff;
    color: var(--h-text);
    font-size: 12px;
    letter-spacing: .04em;
}

.home-post time strong {
    display: block;
    margin-bottom: 4px;
    color: var(--h-ink);
    font: 600 30px/1 var(--s2-sans);
}

.home-post h3 {
    width: 100%;
    margin: 22px 0 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--h-line);
    font-family: var(--s2-sans);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.home-post h3 a {
    color: var(--h-ink);
    text-decoration: none;
}

.home-post h3 a:hover {
    color: var(--h-olive);
}

/* Vẽ trễ các phần nằm dưới màn hình đầu. */
@supports (content-visibility: auto) {
    .home > section:nth-of-type(n + 3) {
        content-visibility: auto;
        contain-intrinsic-size: auto 900px;
    }
}

/* ===== Máy tính bảng ===== */
@media (max-width: 1080px) {
    .home-hero__stage {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "intro proof"
            "visual visual";
    }

    .home-hero__visual { grid-area: visual; margin: 0 auto; width: min(100%, 820px); }
    .home-hero__intro { grid-area: intro; padding-bottom: 0; }
    .home-hero__proof { grid-area: proof; padding-bottom: 0; }

    .home-gallery__row {
        grid-template-columns: 1fr 2.4fr 1fr;
    }

    .home-gallery__item--1,
    .home-gallery__item--5 {
        display: none;
    }

    .home-process {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-process__intro {
        grid-column: 1 / -1;
    }

    .home-process__intro .home-asterisk {
        display: none;
    }
}

/* ===== Điện thoại & máy tính bảng dọc ===== */
@media (max-width: 860px) {
    .home-about {
        grid-template-columns: 1fr;
    }

    .home-about__gallery {
        grid-template-columns: 1fr 1fr;
    }

    .home-about__gallery img:nth-child(1),
    .home-about__gallery img:nth-child(2) {
        grid-row: auto;
        margin-top: 0;
        aspect-ratio: 4 / 5;
        height: 100%;
    }

    .home-about__gallery img:nth-child(3) {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .home-about__values {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
    }

    .home-about__values li {
        min-height: 0;
    }



    .home-services__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "i1" "t1" "i2" "t2" "i3" "t3";
    }

    .home-services__img,
    .home-services__img--3 {
        margin-bottom: 0;
        aspect-ratio: 4 / 3;
    }

    .home-services__text,
    .home-services__text--2,
    .home-services__text--3 {
        padding: 28px 0 56px;
    }

    .home-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-head > .home-pill {
        grid-column: 1;
    }

    .home-about__head {
        grid-auto-flow: row;
        justify-content: stretch;
        gap: 28px;
    }

    .home-projects {
        grid-template-columns: 1fr;
    }

    .home-projects__stage {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .home-projects__list {
        padding: 56px var(--h-pad);
        border-left: 0;
    }

    .home-process {
        grid-template-columns: 1fr;
    }

    .home-process__visual {
        width: min(100%, 440px);
        justify-self: center;
    }

    .home-reviews__grid,
    .home-blog__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-top: 112px;
    }

    .home-hero__brand {
        font-size: 19vw;
    }

    .home-hero__stage {
        grid-template-columns: 1fr;
        grid-template-areas: "proof" "intro" "visual";
        gap: 0;
    }

    .home-hero__dots {
        display: none;
    }

    .home-gallery__row {
        grid-template-columns: 1fr 1fr;
    }

    .home-gallery__item--3 {
        grid-column: 1 / -1;
        order: -1;
    }

    .home-gallery__item--2 img,
    .home-gallery__item--4 img {
        aspect-ratio: 3 / 4;
    }

    .home-hero__proof {
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: start;
        column-gap: 16px;
        padding: 32px 0 8px;
        text-align: left;
    }

    .home-hero__proof .home-badge {
        display: none;
    }

    .home-hero__proof .home-pill {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-hero__intro {
        padding: 24px 0 48px;
    }

    .home-hero__intro img {
        display: none;
    }

    .home-hero__intro .home-pill {
        width: 100%;
    }

    .home-process__steps li:nth-child(n) {
        margin-left: 0;
    }

    .home-band h2 br {
        display: none;
    }

    .home-hero__tagline {
        letter-spacing: .04em;
        text-wrap: balance;
    }

    .home-review__card {
        margin-left: 12%;
        padding: 28px 24px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-projects__stage img,
    .home-services__img img,
    .home-post__media img {
        transition: none;
    }
}

