/**
 * Landing page styles.
 *
 * RÀNG BUỘC:
 * - Màu theo vertical (windows/bath/roof/solar/hvac) lấy từ DB, đổ vào CSS variable
 *   trong Blade. KHÔNG hardcode mã màu từng vertical trong file này.
 * - Responsive: breakpoint 880px như landing mẫu.
 *
 * CÁCH DÙNG BIẾN VERTICAL:
 *   Blade set --v / --v-light / --v-contrast trên phần tử bọc (xem layouts/landing).
 *   File này chỉ tiêu thụ biến, không bao giờ biết vertical nào đang chạy.
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
    /* Brand */
    --navy: #0d1f3c;
    --navy-deep: #060f1e;
    --brand: #1a56db;
    --gold: #f59e0b;
    --success: #059669;
    --violet: #7c3aed;
    --danger: #dc2626;

    /* Neutrals */
    --white: #fff;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --muted-soft: #94a3b8;
    --border: #e2e8f0;

    /* Màu vertical — Blade ghi đè. Giá trị ở đây chỉ là fallback trung tính. */
    --v: var(--brand);
    --v-light: #eff6ff;
    --v-contrast: #fff;

    /*
     * Typography
     * Font stack theo Paracel Technology Solutions: SF Pro Text cho body,
     * SF Pro Display cho tiêu đề, GeistSans rồi system-ui đỡ phía sau.
     * Toàn bộ là font hệ thống — không tải webfont, không phụ thuộc Vite.
     */
    --font-display: 'SF Pro Display', 'SF Pro Text', 'GeistSans', 'GeistSans Fallback',
        system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'SF Pro Text', 'SF Pro Display', 'GeistSans', 'GeistSans Fallback',
        system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --fs-xs: 0.6875rem;   /* 11px */
    --fs-sm: 0.75rem;     /* 12px */
    --fs-base: 0.8125rem; /* 13px */
    --fs-md: 0.875rem;    /* 14px */
    --fs-lg: 0.9375rem;   /* 15px */
    --fs-xl: 1.125rem;    /* 18px */

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;

    /* Radii */
    --r-sm: 8px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
    --shadow-md: 0 4px 16px rgb(15 23 42 / 8%);
    --shadow-lg: 0 12px 40px rgb(15 23 42 / 12%);
    --shadow-xl: 0 24px 60px rgb(15 23 42 / 18%);

    /* Layout */
    --container: 1200px;
    --gutter: 40px;
    --header-h: 64px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Sticky header + service nav không che mất anchor target */
    scroll-padding-top: calc(var(--header-h) + 60px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/*
 * Panel và nhóm review bị ẩn bằng thuộc tính [hidden] khi đổi tab.
 * Chúng có display: grid/flex nên phải thắng lại, nếu không sẽ hiện hết cùng lúc.
 */
[hidden] {
    display: none !important;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

strong {
    font-weight: 700;
}

/* Focus nhìn thấy rõ trên mọi nền — a11y. */
:where(a, button, input, [tabindex]):focus-visible {
    outline: 3px solid var(--v);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.on-dark :where(a, button, input):focus-visible {
    outline-color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--sp-4);
    z-index: 200;
    padding: var(--sp-3) var(--sp-5);
    background: var(--white);
    color: var(--text);
    font-weight: 700;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: var(--sp-4);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.on-dark {
    color: rgb(255 255 255 / 70%);
}

/* ==========================================================================
   3. Primitives — badge, chip, button, eyebrow, stat card, media
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--v-light);
    color: var(--v);
    width: fit-content;
}

.badge--outline {
    background: rgb(59 130 246 / 14%);
    border: 1px solid rgb(59 130 246 / 30%);
    color: #93c5fd;
}

.badge--muted {
    background: rgb(255 255 255 / 8%);
    color: rgb(255 255 255 / 55%);
    text-transform: none;
    letter-spacing: 0;
    font-size: var(--fs-xs);
    border-radius: var(--r-sm);
    padding: 4px 10px;
}

.badge--success {
    background: rgb(74 222 128 / 15%);
    color: #4ade80;
    text-transform: none;
    letter-spacing: 0;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 7px 13px;
    border-radius: var(--r-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    background: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 14%);
    color: rgb(255 255 255 / 85%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    border: 1.5px solid transparent;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
        transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s var(--ease);
}

.btn:disabled,
.btn[aria-disabled='true'] {
    background: var(--border) !important;
    color: var(--muted-soft) !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn--brand {
    background: var(--brand);
    color: #fff;
}

.btn--brand:hover {
    filter: brightness(1.08);
}

/* Nút trên nền tối (banner CTA cuối trang). */
.btn--on-dark {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 255 255 / 22%);
    color: #fff;
}

.btn--on-dark:hover {
    background: rgb(255 255 255 / 18%);
}

/* Nhãn nhỏ in hoa phía trên tiêu đề section. */
.eyebrow {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v);
    margin-bottom: var(--sp-3);
}

.eyebrow--brand {
    color: var(--brand);
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    text-align: center;
    list-style: none;
}

.stat-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.stat-card__label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--muted);
    margin-top: var(--sp-2);
    line-height: 1.5;
}

.stat-card--brand .stat-card__value { color: var(--brand); }
.stat-card--success .stat-card__value { color: var(--success); }
.stat-card--warning .stat-card__value { color: var(--gold); }
.stat-card--violet .stat-card__value { color: var(--violet); }

/*
 * Placeholder ảnh — chưa có ảnh thật.
 * Khi có ảnh: đổi thẻ thành <img class="media"> hoặc bỏ <img> vào trong,
 * layout giữ nguyên. alt/aria-label mô tả ảnh đã ghi sẵn ở Blade.
 */
.media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--r-lg);

    /*
     * Ảnh đổ vào bằng inline style background-image ở Blade.
     * KHÔNG dùng shorthand `background:` ở đây — shorthand sẽ reset
     * size/position/repeat về mặc định, làm ảnh giữ kích thước gốc và lặp lại.
     * Tách từng thuộc tính để ảnh nào cũng phủ kín ô, canh giữa, không lặp.
     */
    background-color: var(--surface-alt);
    background-image: repeating-linear-gradient(
        45deg,
        rgb(148 163 184 / 8%) 0 10px,
        transparent 10px 20px
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media--fill {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    height: var(--header-h);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
}

.brand__logo {
    /* width: 36px; */
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.site-header__links {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    list-style: none;
}

.site-header__cta {
    padding: var(--sp-2) var(--sp-5);
    font-size: var(--fs-base);
}

.site-header__link {
    font-size: var(--fs-base);
    font-weight: 500;
    color: rgb(255 255 255 / 65%);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

.site-header__link:hover {
    color: #fff;
}

.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 600;
    color: #fff;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--navy);
    min-height: 520px;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-16) var(--gutter);
    /* Căn mép trái của hero với container ở màn rộng. */
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.hero__title {
    font-size: clamp(2.375rem, 4.5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.02;
    color: #fff;
    margin: var(--sp-5) 0 var(--sp-4);
}

.hero__title em {
    font-style: normal;
    color: #60a5fa;
}

.hero__description {
    font-size: var(--fs-lg);
    color: rgb(255 255 255 / 62%);
    line-height: 1.7;
    max-width: 40ch;
    margin-bottom: var(--sp-8);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    list-style: none;
}

.hero__media {
    position: relative;
    min-height: 460px;
}

.hero__media .media {
    position: absolute;
    inset: 0;
    border-radius: 0;
}

.hero__media .media > img {
    filter: brightness(0.85);
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--navy) 0%, transparent 38%);
    pointer-events: none;
}

.hero__quote {
    position: absolute;
    right: var(--sp-8);
    bottom: var(--sp-8);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    max-width: 280px;
    padding: var(--sp-4) var(--sp-5);
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
}

.hero__quote-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.rating {
    color: var(--gold);
    font-size: var(--fs-sm);
    letter-spacing: 1px;
}

.hero__quote-text {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

.hero__quote-author {
    font-size: var(--fs-xs);
    color: var(--muted);
}

/* ==========================================================================
   6. Service nav
   ========================================================================== */

.service-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.service-nav__inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.service-nav__inner::-webkit-scrollbar {
    display: none;
}

.service-nav__label {
    flex-shrink: 0;
    padding-right: var(--sp-5);
    margin-right: var(--sp-1);
    border-right: 1px solid var(--border);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
    padding: var(--sp-4) var(--sp-5);
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s var(--ease), background-color 0.15s var(--ease),
        border-color 0.15s var(--ease);
}

.service-tab:hover {
    color: var(--text);
    background: var(--surface);
}

.service-tab__icon {
    display: flex;
    flex-shrink: 0;
}

/* Tab đang chọn dùng màu của chính vertical đó (biến set trên từng tab). */
.service-tab[aria-selected='true'] {
    color: var(--tab-color, var(--v));
    border-bottom-color: var(--tab-color, var(--v));
    background: var(--tab-color-light, var(--v-light));
}

/* ==========================================================================
   7. Panel — nội dung vertical + chỗ đứng form
   ========================================================================== */

.landing-main {
    padding-block: var(--sp-12) var(--sp-16);
}

.panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--sp-10);
}

.panel__intro {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: var(--sp-6);
}

.panel__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--sp-3);
}

.panel__title em {
    font-style: normal;
    color: var(--v);
}

.panel__description {
    font-size: var(--fs-lg);
    color: var(--muted);
    line-height: 1.75;
    max-width: 46ch;
}

.panel__body {
    grid-column: 1;
    grid-row: 2;
}

.panel__form {
    grid-column: 2;
    grid-row: 1 / 3;
}

.panel__media {
    height: 240px;
    margin-bottom: var(--sp-5);
}

.panel__stats {
    list-style: none;
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
    background: linear-gradient(to top, rgb(0 0 0 / 78%), transparent);
}

.panel__stat {
    flex: 1;
    text-align: center;
}

.panel__stat-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.panel__stat-label {
    font-size: 0.5625rem;
    color: rgb(255 255 255 / 72%);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    list-style: none;
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-sm);
    border-left: 3px solid var(--v);
    background: var(--v-light);
    font-size: var(--fs-base);
    font-weight: 500;
}

.benefit__icon {
    font-size: 1.0625rem;
    flex-shrink: 0;
}

/*
 * Quote card — khối mời gọi bên phải panel. Không chứa form; nút dẫn sang
 * trang /apply/{slug}.
 *
 * Màu vertical chỉ dùng cho nút CTA và các chi tiết nhỏ. Header để trắng:
 * trước đây tô nguyên mảng màu, nút cùng màu nằm ngay dưới nên bị chìm.
 */
.quote-card {
    position: sticky;
    top: calc(var(--header-h) + 66px);
    overflow: hidden;
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* Vạch màu mỏng trên đỉnh — đủ để nhận ra vertical mà không lấn nút. */
.quote-card__head {
    padding: var(--sp-6) var(--sp-6) 0;
    border-top: 3px solid var(--v);
}

.quote-card__eyebrow {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v);
    margin-bottom: var(--sp-2);
}

.quote-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
}

.quote-card__body {
    padding: var(--sp-4) var(--sp-6) var(--sp-6);
}

.quote-card__lead {
    font-size: var(--fs-md);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: var(--sp-5);
}

.quote-card__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-bottom: var(--sp-5);
    margin-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.quote-card__points li {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-md);
    font-weight: 500;
}

/* Tick trong đĩa tròn nhạt — nhẹ hơn dấu tick trần, không hút mắt khỏi nút. */
.quote-card__points li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--v-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5.5 10.5 3 3 6-7' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
    opacity: 0.9;
}

.quote-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    width: 100%;
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-md);
    background: var(--v);
    color: var(--v-contrast);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 20px -6px var(--v), 0 2px 6px rgb(15 23 42 / 12%);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s var(--ease);
}

.quote-card__cta::after {
    content: '→';
    font-size: 1.125rem;
    transition: transform 0.15s var(--ease);
}

.quote-card__cta:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px var(--v), 0 4px 10px rgb(15 23 42 / 14%);
}

.quote-card__cta:hover::after {
    transform: translateX(3px);
}

.quote-card__cta:active {
    transform: translateY(0);
}

.quote-card__trust {
    margin-top: var(--sp-3);
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--muted-soft);
}

/* ==========================================================================
   10. Why section
   ========================================================================== */

.why {
    background: #fff;
    padding-block: var(--sp-20);
}

.why__lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
    margin-bottom: var(--sp-16);
}

.why__title {
    font-size: clamp(1.875rem, 3.5vw, 2.875rem);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: var(--sp-5);
}

.why__title em {
    font-style: normal;
    color: var(--brand);
}

.why__description {
    font-size: var(--fs-lg);
    color: var(--muted);
    line-height: 1.8;
    max-width: 46ch;
}

.why__description strong {
    color: var(--navy);
}

.why__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    list-style: none;
}

.gallery__label {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-5);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 190px;
    gap: var(--sp-3);
    margin-bottom: var(--sp-10);
    list-style: none;
}

.gallery__item {
    list-style: none;
}

.gallery__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: none;
    text-align: left;
    cursor: pointer;
}

/* Ảnh là background nên zoom bằng transform trên chính khối .media. */
.gallery__item .media {
    height: 100%;
    border-radius: 0;
    transition: transform 0.4s var(--ease);
}

.gallery__link:hover .media {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .gallery__item .media {
        transition: none;
    }

    .gallery__link:hover .media {
        transform: none;
    }
}

.gallery__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: var(--sp-3) var(--sp-4);
    background: linear-gradient(to top, rgb(0 0 0 / 72%), transparent);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Bố cục mosaic — đặt tên theo config để thêm/bớt ảnh không vỡ lưới. */
.gallery__item--a { grid-column: 1 / 5; grid-row: 1; }
.gallery__item--b { grid-column: 5 / 8; grid-row: 1 / 3; }
.gallery__item--c { grid-column: 8 / 10; grid-row: 1; }
.gallery__item--d { grid-column: 10 / 13; grid-row: 1; }
.gallery__item--e { grid-column: 1 / 4; grid-row: 2; }
.gallery__item--f { grid-column: 4 / 5; grid-row: 2; }
.gallery__item--g { grid-column: 8 / 10; grid-row: 2; }
.gallery__item--h { grid-column: 10 / 13; grid-row: 2; }

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-8);
    padding: var(--sp-10) var(--sp-12);
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--navy), #1a4fa8);
}

.cta-banner__title {
    font-size: 1.625rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: var(--sp-2);
}

.cta-banner__text {
    font-size: var(--fs-md);
    color: rgb(255 255 255 / 68%);
    max-width: 52ch;
    line-height: 1.65;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    flex-shrink: 0;
}

/* ==========================================================================
   11. Reviews
   ========================================================================== */

.reviews {
    background: var(--navy);
    padding-block: var(--sp-16);
}

.reviews__title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--sp-8);
}

.reviews__eyebrow {
    color: #60a5fa;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    list-style: none;
}

.review {
    display: flex;
    flex-direction: column;
    padding: var(--sp-6);
    border-radius: var(--r-lg);
    background: rgb(255 255 255 / 6%);
    border: 1px solid rgb(255 255 255 / 10%);
}

.review__text {
    font-size: var(--fs-base);
    color: rgb(255 255 255 / 82%);
    line-height: 1.7;
    margin: var(--sp-2) 0 var(--sp-4);
    flex: 1;
}

.review__by {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.review__avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--v);
    color: var(--v-contrast);
    font-size: var(--fs-sm);
    font-weight: 800;
    flex-shrink: 0;
}

.review__name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
}

.review__location {
    font-size: var(--fs-xs);
    color: rgb(255 255 255 / 48%);
}


/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
    background: var(--navy-deep);
    color: rgb(255 255 255 / 48%);
    padding-block: var(--sp-12) var(--sp-8);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: var(--sp-10);
    padding-bottom: var(--sp-8);
    margin-bottom: var(--sp-8);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--sp-3);
}

.site-footer__about {
    font-size: var(--fs-sm);
    line-height: 1.75;
    max-width: 34ch;
    margin-bottom: var(--sp-4);
}

.site-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    list-style: none;
}

.site-footer__col-title {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 82%);
    margin-bottom: var(--sp-3);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    list-style: none;
    font-size: var(--fs-sm);
}

.site-footer__links a,
.site-footer__link {
    padding: 0;
    border: 0;
    background: none;
    color: rgb(255 255 255 / 48%);
    font-size: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.13s var(--ease);
}

.site-footer__links a:hover,
.site-footer__link:hover {
    color: #fff;
}

.unsubscribe {
    margin-top: var(--sp-5);
}

.unsubscribe__row {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
}

.unsubscribe__input {
    flex: 1;
    min-width: 0;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    border: 1px solid rgb(255 255 255 / 16%);
    background: rgb(255 255 255 / 7%);
    color: #fff;
    font-size: var(--fs-xs);
    outline: none;
}

.unsubscribe__input::placeholder {
    color: rgb(255 255 255 / 40%);
}

.unsubscribe__button {
    padding: var(--sp-2) var(--sp-4);
    border: none;
    border-radius: var(--r-sm);
    background: var(--danger);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
    cursor: pointer;
}

/* Khối legal — bắt buộc giữ đủ, không được bỏ. */
.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.legal-block {
    padding: var(--sp-4);
    border-radius: var(--r-sm);
    background: rgb(255 255 255 / 3%);
    border: 1px solid rgb(255 255 255 / 7%);
    scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

.legal-block__title {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 68%);
    margin-bottom: var(--sp-1);
}

.legal-block__body {
    font-size: 0.625rem;
    line-height: 1.75;
    color: rgb(255 255 255 / 34%);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
}

.site-footer__bottom-links {
    display: flex;
    gap: var(--sp-4);
    list-style: none;
}

.site-footer__bottom-links a {
    color: rgb(255 255 255 / 38%);
    text-decoration: none;
}

.site-footer__bottom-links a:hover {
    color: #fff;
}

/* ==========================================================================
   13. Responsive — breakpoint chính 880px (theo landing mẫu)
   ========================================================================== */

@media (max-width: 1080px) {
    :root {
        --gutter: 28px;
    }

    .why__lead {
        gap: var(--sp-10);
    }
}

@media (max-width: 880px) {
    :root {
        --gutter: 20px;
    }

    /* Chỉ ẩn menu chữ; hotline và CTA là 2 đường chuyển đổi chính, phải còn. */
    .site-header__links {
        display: none;
    }

    .site-header__nav {
        gap: var(--sp-3);
    }

    .site-header__phone span:not(.visually-hidden) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero__copy {
        padding: var(--sp-10) var(--gutter);
        padding-left: var(--gutter);
    }

    .hero__media {
        min-height: 0;
        height: 280px;
    }

    .hero__scrim {
        background: linear-gradient(to top, rgb(13 31 60 / 55%), transparent 55%);
    }

    .hero__quote {
        right: var(--sp-4);
        bottom: var(--sp-4);
        max-width: 240px;
        padding: var(--sp-3) var(--sp-4);
    }

    .landing-main {
        padding-block: var(--sp-6) var(--sp-10);
    }

    /* Mobile: form lên trước nội dung phụ để rút ngắn đường tới CTA. */
    .panel {
        grid-template-columns: 1fr;
        row-gap: var(--sp-8);
    }

    .panel__intro,
    .panel__body,
    .panel__form {
        grid-column: 1;
    }

    .panel__intro { grid-row: 1; padding-bottom: 0; }
    .panel__form  { grid-row: 2; }
    .panel__body  { grid-row: 3; }

    .quote-card {
        position: static;
    }

    .why {
        padding-block: var(--sp-12);
    }

    .why__lead {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
        margin-bottom: var(--sp-10);
    }

    /* Gallery bỏ mosaic, về lưới 2 cột đều nhau. */
    .gallery {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: var(--sp-2);
    }

    .gallery__item[class*='gallery__item--'] {
        grid-column: auto;
        grid-row: auto;
    }

    .cta-banner {
        padding: var(--sp-8);
        gap: var(--sp-5);
    }

    .cta-banner__actions .btn {
        flex: 1;
    }

    .reviews__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-8);
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .why__stats {
        grid-template-columns: 1fr;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .hero__quote {
        right: var(--sp-3);
        bottom: var(--sp-3);
        max-width: 220px;
        gap: var(--sp-2);
        padding: var(--sp-3);
    }

    .hero__quote-icon {
        display: none;
    }

    .hero__media {
        height: 220px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Apply page — ảnh tràn màn, chữ cột hẹp
   ========================================================================== */

/* ── 1. Ảnh bìa thấp ───────────────────────────────────────────────────── */

.cover {
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.cover__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cover__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgb(6 15 30 / 92%) 0%, rgb(6 15 30 / 72%) 48%, rgb(6 15 30 / 40%) 100%);
}

.cover__inner {
    position: relative;
    /* Chừa chỗ dưới cho form kéo lên đè vào. */
    padding-block: var(--sp-8) var(--sp-16);
}

.cover__back {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 55%);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

.cover__back:hover {
    color: #fff;
}

.cover__eyebrow {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 65%);
}

.cover__title {
    font-size: clamp(1.875rem, 3.6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #fff;
    max-width: 18ch;
}

.cover__title em {
    font-style: normal;
    color: rgb(255 255 255 / 58%);
}

/* ── 2. Hai cột: bài viết + form ───────────────────────────────────────── */

.split {
    background: #fff;
    padding-bottom: var(--sp-16);
}

.split__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: var(--sp-12);
    align-items: start;
}

/* Cột chữ bắt đầu từ vùng trắng, không đè lên ảnh. */
.split__article {
    padding-top: var(--sp-12);
    font-size: var(--fs-lg);
    line-height: 1.85;
    color: var(--muted);
    max-width: 68ch;
}

.split__lead {
    margin-bottom: var(--sp-6);
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* Tiêu đề phụ ăn màu service + gạch chân mảnh cùng tông. */
.split__article h2 {
    margin-block: var(--sp-10) var(--sp-5);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid color-mix(in srgb, var(--v) 30%, transparent);
    font-size: 1.375rem;
    color: var(--v);
}

.split__article p {
    margin-bottom: var(--sp-4);
}

.reason-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.reason-list li {
    padding-block: var(--sp-4);
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--text);
}

/* Form kéo lên đè mép dưới ảnh bìa. */
.split__form {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    margin-top: calc(var(--sp-12) * -1);
    scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

.split__note {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--muted);
}

.split__note svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ── Dải service khác ──────────────────────────────────────────────────── */

.apply-more {
    background: #fff;
    border-top: 1px solid var(--border);
    padding-block: var(--sp-16);
}

.apply-more__title {
    margin-bottom: var(--sp-8);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-soft);
}

.apply-more__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-5);
}

.tile {
    display: block;
    text-decoration: none;
}

.tile__media {
    height: 260px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.9);
    transition: filter 0.3s var(--ease), transform 0.4s var(--ease);
}

.tile:hover .tile__media {
    filter: saturate(1.05);
    transform: scale(1.02);
}

.tile__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tile__arrow {
    color: var(--muted-soft);
    transition: transform 0.15s var(--ease), color 0.15s var(--ease);
}

.tile:hover .tile__arrow {
    transform: translateX(4px);
    color: var(--v);
}

/* ── Form card ─────────────────────────────────────────────────────────── */

.quote-form {
    overflow: hidden;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.quote-form__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-6);
    border-top: 3px solid var(--v);
}

.quote-form__title {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quote-form__step {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-soft);
    white-space: nowrap;
}

.quote-form__progress {
    height: 2px;
    background: var(--surface-alt);
}

.quote-form__progress-bar {
    height: 100%;
    background: var(--v);
    transition: width 0.3s var(--ease);
}

.quote-form__body {
    padding: var(--sp-6);
}

/* Bỏ viền + padding mặc định của fieldset, nếu không mỗi step bị bọc khung đen. */
.quote-form__step-panel {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.quote-form__actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

/* Nút trong form ăn màu service, không dùng --brand cố định. */
.quote-form__next,
.quote-form__submit {
    flex: 1;
    padding-block: var(--sp-4);
    font-size: 1.0625rem;
    background: var(--v);
    box-shadow: 0 6px 20px -8px var(--v);
}

.quote-form__consent {
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
    font-size: var(--fs-xs);
    line-height: 1.7;
    color: var(--muted-soft);
    text-align: center;
}

/* ── Field ─────────────────────────────────────────────────────────────── */

.form-row + .form-row {
    margin-top: var(--sp-4);
}

/* Hai field nhỏ (cùng row_group từ backend) đứng chung một hàng. */
.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.form-field__label {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-field__required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: #fff;
    font-size: var(--fs-md);
    transition: border-color 0.13s var(--ease), box-shadow 0.13s var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--v);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--v) 15%, transparent);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right var(--sp-4) center;
    background-repeat: no-repeat;
    background-size: 1.15em;
    padding-right: var(--sp-10);
    cursor: pointer;
}

/* Fieldset bọc nhóm radio — cũng phải gỡ viền mặc định. */
.form-field__group {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.option {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-height: 48px;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: var(--fs-md);
    cursor: pointer;
    transition: border-color 0.13s var(--ease), background-color 0.13s var(--ease);
}

.option:hover {
    border-color: var(--v);
    background: var(--v-light);
}

.option:has(input:checked) {
    border-color: var(--v);
    background: var(--v-light);
    color: var(--v);
    font-weight: 600;
}

.option input {
    accent-color: var(--v);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.option--inline {
    align-items: flex-start;
    font-size: var(--fs-base);
    line-height: 1.6;
}

.form-field__error {
    margin-top: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--danger);
}

.form-control[aria-invalid='true'] {
    border-color: var(--danger);
}

@media (max-width: 880px) {

    .apply-strip__list {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }

    .apply-strip__list li + li {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .apply-intro,
    .apply-form,
    .apply-more {
        padding-block: var(--sp-10);
    }

    .form-row--split {
        grid-template-columns: 1fr;
    }
}
