/* =====================================================================
   Home page (index.html) — 2026 refresh
   ---------------------------------------------------------------------
   Values follow the approved mockup
   (fvl-tpl-homepage-refresh.first-virtue-7787.chatgpt.site), in px.

   The header and footer still come from js/header_footer.js and are
   styled by css/main.css. Everything here is scoped under `.home` /
   `home-*` classes so it does not leak into them. It also undoes the
   globals that base.css and main.css would otherwise apply to the new
   content: html font-size 62.5% and fixed line-height, and the bare
   `p` and `span` rules in main.css.
   ===================================================================== */

html {
    scroll-behavior: smooth;
    /* Keep anchor targets clear of the fixed site header. */
    scroll-padding-top: 63px;
}

.home {
    /* Tangerine and warm-gray palette from the new logo (mockup 2026-11-05). */
    --orange: #fe7f24;
    --orange-text: #fe7f24;   /* orange for small text: readable on white */
    --tint: #fff6ed;          /* light orange background */
    --ink: #646464;
    --muted: #6c6c6a;
    --cream: #fafafa;
    --line: #e6e6e3;

    /* Clear the fixed <header-component> bar (63px tall). */
    padding-top: 63px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: normal;
    color: var(--ink);
    background: var(--cream);
}

/* Undo main.css globals inside the home content. */
.home span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.home p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 23px;
    text-align: left;
}

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

.home a:focus-visible {
    outline: 3px solid #276a95;
    outline-offset: 5px;
}

.home-wrap {
    max-width: 1320px;
    padding: 0 40px;
    margin: auto;
}

/* ---------- Shared bits ---------- */

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--orange);
    color: #4e4034;
    padding: 17px 23px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--orange);
    transition: 0.2s;
}

.home a.home-button {
    color: #4e4034;
}

.home-button:hover {
    background: #fe9a50;
    border-color: #fe9a50;
}

.home .home-button__arrow {
    font-size: 19px;
}

.home-eyebrow {
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: #71716e;
    display: flex;
    align-items: center;
    gap: 11px;
}

.home-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--orange);
}

.home-h2 {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -1.4px;
    line-height: 1.15;
    margin: 18px 0 0;
}

.home-section {
    padding: 75px 0;
}

.home-section--white {
    background: #fff;
}

.home-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 44px;
}

.home .home-heading p {
    margin: 0;
}

/* ---------- Hero ---------- */

.home-hero {
    padding: 76px 0 55px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 65px;
    align-items: center;
}

.home-hero__title {
    font-size: clamp(43px, 4.6vw, 66px);
    font-weight: 500;
    letter-spacing: -2.8px;
    line-height: 1.06;
    margin: 27px 0;
}

.home-hero__title em {
    font-style: normal;
    color: #fe7f24;
}

.home .home-hero p {
    max-width: 490px;
}

.home-hero .home-button {
    margin-top: 8px;
}

/* The hero eyebrow is a full sentence and may wrap to two lines. */
.home-hero .home-eyebrow {
    max-width: 480px;
    letter-spacing: 1.3px;
}

.home .home-hero .home-hero__note {
    font-weight: 600;
    color: var(--ink);
}

/* Illustration: documents -> structured data */
.home-visual {
    background: #f2f2ef;
    min-height: 440px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 35px;
    /* Keep the z-indexed pieces below the fixed site header. */
    isolation: isolate;
}

.home-visual::before,
.home-visual::after {
    content: "";
    position: absolute;
    border: 1px solid #e1e1dd;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    top: -210px;
    right: -220px;
}

.home-visual::after {
    width: 590px;
    height: 590px;
    right: -280px;
    top: -270px;
}

.home-visual__label {
    color: #747470;
    position: absolute;
    top: 26px;
    left: 28px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.home-document {
    background: #fff;
    width: 45%;
    padding: 22px 18px;
    box-shadow: 0 10px 30px #7777770d;
    transform: rotate(-6deg);
    position: relative;
    z-index: 1;
}

.home-document__label {
    font-size: 11px;
    color: var(--orange-text);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 26px;
}

.home-bar {
    height: 5px;
    background: #e1e1dc;
    margin: 11px 0;
}

.home-bar--short {
    width: 58%;
}

.home-flow {
    color: var(--orange);
    font-size: 33px;
    margin: 0 12px;
    z-index: 1;
}

.home-database {
    background: #858681;
    color: #fff;
    position: relative;
    z-index: 1;
    padding: 24px 19px;
    width: 51%;
    box-shadow: 0 15px 30px #77777718;
}

.home-database strong {
    font-size: 16px;
    font-weight: 500;
}

.home-table {
    margin: 22px 0 20px;
}

.home-table__row {
    display: grid;
    grid-template-columns: 8px 1fr 1fr;
    gap: 10px;
    border-bottom: 1px solid #ffffff40;
    padding: 9px 0;
}

.home-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffb47c;
}

.home-cell {
    height: 4px;
    background: #ffffff80;
}

.home-data-bottom {
    font-size: 9px;
    letter-spacing: 1px;
    color: #fff;
}

.home-visual__caption {
    color: #6a6a67;
    position: absolute;
    bottom: 25px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.6px;
}

.home .home-visual__caption-right {
    color: #6a6a67;
    text-align: right;
}

/* Proof points under the hero */
.home-proof {
    border-top: 1px solid var(--line);
    padding: 26px 0 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-proof > div {
    padding: 0 25px;
    border-left: 1px solid var(--line);
}

.home-proof > div:first-child {
    padding-left: 0;
    border: 0;
}

.home-proof strong {
    color: #6a6a67;
    font-size: 15px;
    display: block;
    margin-bottom: 7px;
}

.home-proof small {
    font-size: 12px;
    color: #737370;
}

/* ---------- The U.S.–Vietnam advantage ---------- */

.home-timezone {
    background: var(--tint);
    border-top: 1px solid #f3e5d8;
}

.home-timezone .home-heading {
    margin-bottom: 0;
}

.home .home-heading .home-timezone__tagline {
    margin-top: 20px;
    font-weight: 600;
    color: var(--ink);
}

.home .home-heading .home-timezone__note {
    margin-top: 15px;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Our core services (mockup: .core-*) ---------- */

.home-core-intro {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: end;
    margin-bottom: 38px;
}

.home-core-intro .home-h2 {
    font-size: 43px;
    max-width: 660px;
}

.home .home-core-tagline {
    color: var(--orange-text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    margin: 20px 0 0;
}

.home .home-core-lead {
    max-width: 390px;
    margin: 0;
}

.home-core-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.home-core-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-height: 275px;
    padding: 28px 23px 25px;
    background: #fafafa;
    border: 1px solid #e5e5e2;
}

/* Cards 4 and 5 share the second row. */
.home-core-card:nth-child(4),
.home-core-card:nth-child(5) {
    grid-column: span 3;
}

.home-core-card--featured {
    background: var(--tint);
    border-top: 4px solid var(--orange);
    padding-top: 25px;
}

.home .home-core-num {
    color: #737370;
    font-size: 12px;
    letter-spacing: 1px;
}

.home-core-icon {
    width: 36px;
    height: 36px;
    margin-top: 23px;
    color: var(--orange);
}

.home-core-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-core-card h3 {
    color: #686865;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 27px 0 17px;
}

.home-core-card--featured h3 {
    font-weight: 600;
}

.home .home-core-card p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.home-core-cta {
    margin-top: 30px;
}

html.lang-vi .home-core-intro .home-h2 {
    font-size: 39px;
}

html.lang-vi .home-core-card h3 {
    font-size: 22px;
}

html.lang-vi .home-core-card {
    min-height: 300px;
}

/* ---------- The FVL & TPL advantage ---------- */

.home-advantage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.home-advantage .home-h2 {
    font-size: 45px;
    max-width: 440px;
}

.home .home-lead {
    margin-top: 25px;
}

.home-principle {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
}

.home-principle:first-child {
    padding-top: 0;
}

.home-principle b {
    color: var(--orange-text);
    font-size: 16px;
}

.home-principle h3 {
    color: #686865;
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 500;
}

.home .home-principle p {
    font-size: 14px;
    margin: 0;
}

/* ---------- Call to action band ---------- */

.home-cta {
    background: #ffba86;
    padding: 55px 0;
    color: #4e4034;
}

.home-cta .home-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.home-cta .home-h2 {
    margin: 0;
    font-size: 40px;
}

.home .home-cta p {
    color: #59493b;
    margin: 14px 0 0;
    font-size: 15px;
}

.home-cta .home-button {
    background: #fff;
    border-color: #fff;
    white-space: nowrap;
}

.home .home-cta a.home-button {
    color: #64645f;
}

.home-cta .home-button:hover {
    background: #fff7ef;
    border-color: #fff7ef;
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
    .home-core-intro {
        gap: 35px;
    }

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

    .home-core-card,
    .home-core-card:nth-child(4) {
        grid-column: span 1;
        min-height: 260px;
    }

    .home-core-card:nth-child(5) {
        grid-column: span 2;
        min-height: 260px;
    }

    html.lang-vi .home-core-card {
        min-height: 270px;
    }
}

@media (max-width: 900px) {
    .home-wrap {
        padding: 0 25px;
    }

    .home-hero {
        gap: 30px;
        padding-top: 45px;
    }

    .home-visual {
        min-height: 370px;
        padding: 25px 18px;
    }

    .home-hero__title {
        font-size: 47px;
    }

    .home-heading {
        gap: 35px;
    }

    .home-advantage {
        gap: 40px;
    }

    .home-proof strong {
        font-size: 13px;
    }

    .home-proof small {
        font-size: 11px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 650px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .home-hero__title {
        font-size: 49px;
        letter-spacing: -2px;
    }

    .home-visual {
        min-height: 340px;
    }

    .home-proof {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-proof > div {
        padding: 0;
        border: 0;
    }

    .home-heading,
    .home-advantage {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-h2,
    .home-advantage .home-h2 {
        font-size: 35px;
    }

    .home-section {
        padding: 50px 0;
    }

    .home-core-intro {
        display: block;
    }

    .home .home-core-lead {
        margin-top: 22px;
    }

    .home-core-intro .home-h2,
    html.lang-vi .home-core-intro .home-h2 {
        font-size: 32px;
    }

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

    .home-core-card,
    .home-core-card:nth-child(4),
    .home-core-card:nth-child(5),
    html.lang-vi .home-core-card {
        grid-column: span 1;
        min-height: 0;
        padding: 23px;
    }

    .home-core-card--featured {
        order: -1;
        padding-top: 20px;
    }

    .home-core-card h3 {
        margin-top: 18px;
    }

    .home-core-icon {
        margin-top: 18px;
    }

    .home-hero .home-eyebrow {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .home-cta .home-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-cta .home-h2 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---------------------------------------------------------------------
   Optional announcement popup. Its markup is commented out in
   index.html; these rules (moved from css/index.css) keep it working
   if it is switched back on.
   --------------------------------------------------------------------- */

.modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    z-index: 2;
}

.modal_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: block;
}

.modal_body {
    --growth-from: 0.7;
    --growth-to: 1;
    margin: auto;
    position: relative;
    z-index: 2;
    border-radius: 5px;
    animation: growth linear 0.1s;
    padding: 30px 30px;
    background-color: #ebebeb;
}

.modal_body img {
    height: 323px;
    width: 809px;
}

@keyframes growth {
    from {
        transform: scale(var(--growth-from));
    }

    to {
        transform: scale(var(--growth-to));
    }
}

.hidden {
    display: none;
}

.modal_close {
    font-size: 3rem;
    color: #666;
    position: absolute;
    top: 0rem;
    right: 0.4rem;
}

.modal_close:hover {
    cursor: pointer;
}

/* Phones: keep the two illustration captions clear of the dark card. */
@media (max-width: 650px) {
    .home-visual {
        padding-bottom: 78px;
    }

    .home-visual__caption {
        flex-direction: column;
        gap: 4px;
        bottom: 18px;
    }

    .home .home-visual__caption-right {
        text-align: left;
    }
}

/* Vietnamese: sizes from the mockup's vi.html (html[lang="vi"] rules). */
html.lang-vi .home-hero__title {
    font-size: clamp(35px, 3.7vw, 53px);
    letter-spacing: -1.7px;
    line-height: 1.14;
}

html.lang-vi .home-h2 {
    font-size: 36px;
    line-height: 1.2;
}

html.lang-vi .home-visual__caption {
    font-size: 9px;
    letter-spacing: 0;
    gap: 15px;
}

html.lang-vi .home-data-bottom {
    font-size: 8px;
    line-height: 1.6;
}

html.lang-vi .home-visual__label {
    font-size: 9px;
}

html.lang-vi .home-proof strong {
    line-height: 1.5;
}

html.lang-vi .home-eyebrow {
    letter-spacing: 1px;
}

@media (max-width: 650px) {
    html.lang-vi .home-hero__title {
        font-size: 41px;
    }

    html.lang-vi .home-h2 {
        font-size: 31px;
    }

    html.lang-vi .home-visual__caption {
        flex-direction: column;
        gap: 6px;
    }

    html.lang-vi .home-hero .home-eyebrow {
        letter-spacing: 0.7px;
    }
}
