/* ==========================================================================
   HOME – các section riêng của trang chủ
   ========================================================================== */

/* ---- HERO (Type A: ảnh liền mạch full-bleed, chữ HTML phủ lên) ---- */
.hero {
    position: relative;
    height: var(--hero-height);
    overflow: hidden;
    background: #0d1117;
    color: #fff;
}

.hero__slides {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
}

/* Lớp tối phía trái giúp chữ dễ đọc, phía phải giữ nguyên ảnh.
   Mốc gradient tính theo tâm màn hình (= tâm container) để luôn phủ đúng cột chữ */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 11, 16, 0.6) 0, rgba(8, 11, 16, 0.42) calc(50% - 160px), rgba(8, 11, 16, 0.12) calc(50% + 80px), rgba(8, 11, 16, 0) calc(50% + 190px));
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero__content {
    padding-block: 5px 0;
    padding-left: 38px;
}

.hero__kicker {
    font-size: var(--text-hero-kicker);
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.hero__title {
    margin-top: 16px;
    font-size: var(--text-hero-title);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
    margin-top: -2px;
    font-size: var(--text-hero-subtitle);
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__features {
    display: flex;
    gap: 14px;
    margin-top: 21px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero-feature__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
}

.hero-feature__icon .icon {
    width: 26px;
    height: 26px;
}

.hero-feature__title {
    display: block;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
}

.hero-feature__desc {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.25;
    color: #e3e7eb;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 21px;
}

/* Điều khiển slider */
.hero__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(17, 24, 33, 0.82);
    color: #fff;
    transition: background-color var(--transition);
}

.hero__nav:hover {
    background: var(--color-primary);
}

.hero__nav .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
}

.hero__nav--prev { left: 19px; }
.hero__nav--next { right: 19px; }

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    transition: background-color var(--transition), transform var(--transition);
}

.hero__dot.is-active {
    background: var(--color-primary);
}

.hero__counter {
    position: absolute;
    right: 44px;
    bottom: 12px;
    z-index: 3;
    font-size: 21px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---- QUY TRÌNH SỬA CHỮA ---- */
.process {
    display: grid;
    grid-template-columns: minmax(0, 174fr) minmax(0, 186fr) minmax(0, 178fr) minmax(0, 187fr) minmax(0, 181fr);
    gap: 18px;
}

.process-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 64px;
    padding-inline: 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-top: 1.6px solid #6b7380;
    border-right: 1.6px solid #6b7380;
    transform: rotate(45deg);
}

.process-step__number {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.process-step__icon {
    width: 38px;
    height: 38px;
    flex: none;
    color: var(--color-primary);
}

.process-step__label {
    margin-left: 1px;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-heading);
}

/* ---- VÌ SAO CHỌN ---- */
.why {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 653fr) minmax(0, 533fr);
    gap: 14px;
}

.why__media {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.why__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 11px;
}

/* Khoảng cách riêng theo mockup */
.section--services {
    padding-top: 22px;
}

.section--reviews {
    padding-top: 12px;
}

.section--contact {
    padding-top: 8px;
}

/* ---- ĐÁNH GIÁ ---- */
.reviews {
    display: grid;
    grid-template-columns: minmax(0, 314fr) minmax(0, 294fr) minmax(0, 278fr) minmax(0, 288fr);
    gap: 9px;
}

.rating-summary,
.review-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}

.rating-summary > div {
    flex: 1;
    min-width: 0;
}

.google-logo {
    flex: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 33px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.google-logo span:nth-child(1),
.google-logo span:nth-child(4) { color: #4285f4; }
.google-logo span:nth-child(2),
.google-logo span:nth-child(6) { color: #ea4335; }
.google-logo span:nth-child(3) { color: #fbbc05; }
.google-logo span:nth-child(5) { color: #34a853; }

.rating-summary__score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-summary__value {
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-heading);
}

.rating-summary__note {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-muted);
}

.review-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 7px 10px 7px 14px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    flex: none;
    margin-top: 4px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__name {
    padding-right: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-heading);
}

.review-card .stars {
    display: flex;
    margin-top: 2px;
}

.review-card .stars .icon {
    width: 14px;
    height: 14px;
}

.review-card__text {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-muted);
}

.review-card__more {
    position: absolute;
    top: 10px;
    right: 8px;
    color: var(--color-secondary);
}

.review-card__more .icon {
    width: 18px;
    height: 18px;
}

/* ---- LIÊN HỆ & BẢN ĐỒ ---- */
.contact-strip {
    display: grid;
    grid-template-columns: minmax(0, 189fr) minmax(0, 180fr) minmax(0, 171fr) minmax(0, 202fr) minmax(0, 426fr);
    gap: 8px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 68px;
    padding: 8px 4px 8px 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

a.contact-box:hover {
    border-color: var(--color-primary);
}

.contact-box__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--color-primary);
}

.contact-box__icon .icon {
    width: 34px;
    height: 34px;
}

.contact-box__icon--solid,
.contact-box__icon--zalo {
    width: 38px;
    height: 38px;
}

.contact-box__icon--solid {
    background: var(--color-primary);
    color: #fff;
}

.contact-box__icon--solid .icon {
    width: 22px;
    height: 22px;
}

.contact-box__icon--zalo {
    background: var(--color-zalo);
    color: #fff;
}

.contact-box__icon--zalo .icon {
    width: 28px;
    height: 28px;
}

.contact-box__value {
    display: block;
    font-size: 17.5px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-primary);
}

.contact-box__value--blue {
    color: var(--color-zalo);
}

.contact-box__label {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--color-muted);
}

.contact-box__text + .contact-box__label {
    margin-top: 2px;
    font-size: 11.5px;
    letter-spacing: -0.01em;
}

.contact-box__text {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.22;
    color: var(--color-heading);
}

.map-card {
    position: relative;
    overflow: hidden;
    min-height: 68px;
    border-radius: var(--radius-md);
    background: #e9ecef;
    box-shadow: var(--shadow-sm);
}

.map-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card__info {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 160px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 166px;
    padding: 6px 10px 6px 6px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.map-card__info .icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary);
}

.map-card__name {
    display: block;
    text-transform: uppercase;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

.map-card__address {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--color-heading);
}
