/* TAFA Media homepage version 3 (index-v3.html): version 2's page with a more premium finish, the client's request
   (docs/content-website.docx, 2026-11-10: "more premium"): accent labels with a short rule, a text wordmark, a framed contact section.
   Colours: palette B (2026-11-11: white, near-black, version 1 red); the tokens are in index-v3.html's :root. The variable
   names below are from the earlier navy and cream palette: --v3-navy is now near-black, --v3-oatmeal light grey.
   Contrast (WCAG): #c0241b on white 5.3:1, #ff5a4f on #141414 6.0:1, white on #d92b21 4.9:1, #bdbdbd on #141414 9.8:1. */

:root {
  --v3-flame: #ff5a4f;       /* bright red: labels and figures on black, 6.0:1 */
  --v3-rust: #c0241b;        /* deep red: small accent text on white, 5.3:1 */
  --v3-line: rgb(189 189 189 / .85);
  --v3-oatmeal: #bdbdbd;
  --v3-terracotta: #d92b21;  /* version 1 red: fills, white text 4.9:1 */
  --v3-navy: #141414;
}

/* ------------------------------------------------ section labels: accent, with a short accent rule before them */
.v2-eyebrow.v2-eyebrow { color: var(--v3-rust); display: flex; align-items: center; gap: 12px; }
.v2-eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; }
.ground-inverse .v2-eyebrow.v2-eyebrow, .footer--dark .v2-eyebrow.v2-eyebrow { color: var(--v3-flame); }

/* the brief's English headlines: the last line in accent */
.v2-hero h1 .v2-line:last-child, .v2-about h2 .v2-line:last-child { color: var(--v3-rust); }

/* ------------------------------------------------ navigation: navy glass with a accent hairline; cream glass over light sections */
.nav--float .nav__bar::before { background: rgb(20 20 20 / .78); box-shadow: inset 0 0 0 1px rgb(255 90 79 / .28); }
.nav--float.on-light .nav__bar::before { background: rgb(255 255 255 / .9); box-shadow: 0 0 0 1px rgb(192 36 27 / .22), 0 10px 28px -16px rgb(20 20 20 / .4); }
.nav--float .menu-col a:hover { color: var(--v3-terracotta); }
.nav--float .nav__menu { border-color: var(--v3-line); }

/* ------------------------------------------------ hero: the light panel turns cream */
@media (min-width: 1024px) {
  .v2-hero::after { background: linear-gradient(90deg, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / .87) 36%, rgb(255 255 255 / .4) 54%, rgb(255 255 255 / 0) 66%); }
}

/* ------------------------------------------------ buttons and links */
.btn--secondary { border-color: var(--v3-line); }
.btn--secondary:hover { border-color: var(--v3-rust); }
.link { text-decoration-color: var(--v3-flame); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.ground-inverse .tab[aria-selected="true"] { background: var(--v3-terracotta); color: #fff; border-color: var(--v3-terracotta); }
/* the kit's sliding highlight (motion.js) carries the colour when it runs */
.ground-inverse .m-tab-ind { background: var(--v3-flame); }
.v2-stats .tab[aria-selected="false"] { color: rgb(255 255 255 / .8); border-color: rgb(255 90 79 / .35); }
.v2-stats .tab[aria-selected="false"]:hover { color: #fff; border-color: var(--v3-flame); }
.v2-stats .v2-bar__link { color: var(--v3-flame); }

/* ------------------------------------------------ about and channels */
.v2-point, .v2-points { border-color: var(--v3-line); }
.v2-point__num, .v2-choice__num, .v2-slide > .v2-slide__tag { color: var(--v3-rust); }
.v2-choice { border-color: var(--v3-line); background: rgb(255 255 255 / .5); }
.v2-choice:hover { border-color: var(--v3-rust); }
.v2-choice[aria-selected="true"] { background: var(--v3-navy); border-color: var(--v3-navy); color: #ffffff; }
.v2-choice[aria-selected="true"] .v2-choice__num { color: var(--v3-flame); }
.v2-choice[aria-selected="true"] .v2-choice__sub { color: var(--v3-oatmeal); }
.v2-figures > div { border-color: var(--v3-line); }
.v2-figures dd { color: var(--v3-rust); }

/* ------------------------------------------------ figures and map, on navy */
.v2-tile { background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px rgb(255 90 79 / .2); }
.v2-tile dd { color: var(--v3-flame); }
.v2-tile dt { color: var(--v3-oatmeal); }
.v2-tile--lead { background: var(--v3-terracotta); box-shadow: inset 0 0 0 1px rgb(255 90 79 / .55); }
.v2-tile--lead dd { color: #fff; }
.v2-tile--lead dt { color: rgb(255 255 255 / .9); }
.v2-map__ring { border-color: var(--v3-flame); background: rgb(255 90 79 / .16); }
.v2-readout strong { color: var(--v3-flame); }
.v2-area { color: var(--v3-oatmeal); }
.v2-area:hover, .v2-area.is-active { color: #fff; }
.v2-area__bar { background: rgb(189 189 189 / .2); }
.v2-area__bar::after { background: rgb(189 189 189 / .6); }
.v2-area.is-active .v2-area__bar::after { background: var(--v3-flame); }

/* ------------------------------------------------ partners: a slightly deeper cream band, white logo tiles framed in accent */
.v2-partners { background: var(--p-surface); }
.v2-logo { border-color: var(--v3-line); }

/* ------------------------------------------------ close and footer */
.v2-close .btn--secondary { box-shadow: inset 0 0 0 1px rgb(255 90 79 / .5); }
.v2-close .btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--v3-flame); }
.v2-contact dt { color: var(--v3-flame); }
.v2-footer__tag { color: var(--v3-flame); }
.footer--dark .footer__col h4 { color: var(--v3-flame); }
.footer--dark .footer__legal { border-color: rgb(255 90 79 / .25); color: var(--v3-oatmeal); }
.footer.closing { box-shadow: inset 0 1px 0 rgb(255 90 79 / .35); }

/* ------------------------------------------------ position dots */
@media (min-width: 1280px) {
  .v2-dots { background: rgb(20 20 20 / .6); box-shadow: inset 0 0 0 1px rgb(255 90 79 / .25); }
  .v2-dots a[aria-current="true"]::before { background: var(--v3-flame); }
}

/* ================================================ version 3 only: wordmark, contact section, footer (2026-11-10) */

/* ------------------------------------------------ the wordmark in place of the logo image: TAFA in a spaced serif over MEDIA in small spaced accent capitals */
.v3-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1; white-space: nowrap; }
.v3-mark__name { font: 600 22px/1 "Playfair Display", Georgia, serif; letter-spacing: .16em; margin-right: -.16em; color: currentColor; }
.v3-mark__sub { font: 500 9px/1 var(--font-text); letter-spacing: .62em; margin-right: -.62em; text-transform: uppercase; color: var(--v3-flame); }
.nav--float .nav__logo { color: var(--bar-ink); transition: color .3s; }
/* room between the wordmark and the floating bar's rounded left edge */
.nav--float .nav__bar > .nav__logo { margin-left: 18px; }
@media (max-width: 639px), (max-width: 1023px) and (max-height: 500px) { .nav--float .nav__bar > .nav__logo { margin-left: 0; } }
.nav--float.on-light .v3-mark__sub, .nav--float.is-open .v3-mark__sub { color: var(--v3-rust); }
.v3-mark--footer { gap: 8px; }
.v3-mark--footer .v3-mark__name { font-size: clamp(34px, 3.4vw, 46px); }
.v3-mark--footer .v3-mark__sub { font-size: 12px; letter-spacing: .9em; margin-right: -.9em; }
@media (max-width: 639px) {
  .v3-mark--nav .v3-mark__name { font-size: 20px; }
}

/* ------------------------------------------------ Kết nối cùng TAFA: its own screen on the cream ground; a soft accent glow, a double accent frame, centred */
.v3-connect { background: var(--p-bg); }
html body main > section.v3-connect > .wrap { display: flex; flex-direction: column; justify-content: center; }
.v3-connect__frame { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-5); width: 100%; max-width: 1080px; margin-inline: auto;
  padding: clamp(40px, 4.6vw, 72px) clamp(20px, 6vw, 104px); border: 1px solid rgb(192 36 27 / .45); text-align: center;
  background: radial-gradient(120% 95% at 50% 0%, rgb(255 90 79 / .38), rgb(255 90 79 / .12) 50%, transparent 82%), rgb(255 255 255 / .4); }
.v3-connect__frame::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgb(192 36 27 / .18); pointer-events: none; }
.v3-connect__head { justify-items: center; max-width: none; margin: 0; }
.v3-connect__head h2 { max-width: 22ch; font-size: clamp(34px, 3.8vw, 54px); }
.v3-connect__head p:not(.v2-eyebrow) { max-width: 54ch; color: var(--p-muted); }
.v3-connect .v2-eyebrow::after { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; }
.v3-connect__ornament { display: flex; align-items: center; gap: 14px; }
.v3-connect__ornament span { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--v3-rust)); }
.v3-connect__ornament span:last-child { background: linear-gradient(90deg, var(--v3-rust), transparent); }
.v3-connect__ornament i { width: 7px; height: 7px; rotate: 45deg; background: var(--v3-flame); }
.v3-connect .btn-row { justify-content: center; flex-wrap: wrap; gap: var(--s-3); }
.v3-connect .btn--xl { width: auto; padding-inline: var(--s-7); gap: var(--s-3); }
html[data-buttons] .v3-connect .btn--secondary { background: rgb(255 255 255 / .55); color: var(--p-ink); border-color: transparent; box-shadow: inset 0 0 0 1px rgb(192 36 27 / .5); }
html[data-buttons] .v3-connect .btn--secondary:hover { background: #fff;  box-shadow: inset 0 0 0 1px var(--v3-rust); }
.v3-connect__contacts { justify-content: center; gap: 0; margin-top: var(--s-2); }
.v3-connect__contacts > div { padding-inline: clamp(20px, 3vw, 44px); }
.v3-connect__contacts > div + div { border-left: 1px solid rgb(192 36 27 / .3); }
.v3-connect__contacts dt { color: var(--v3-rust); }
.v3-connect__contacts dd { color: var(--p-ink); }

/* ------------------------------------------------ the footer on its own: a darker band under a accent hairline */
.v3-footer { padding-block: clamp(64px, 8vw, 112px) var(--s-6); background: #0a0a0a; border-top: 1px solid rgb(255 90 79 / .3); }
.v3-footer .grid { align-items: start; }
.v3-footer__brand .v2-footer__tag { margin-top: var(--s-4); }
.v3-footer__brand .footer__lede { color: rgb(255 255 255 / .85); }
.v3-footer .footer__legal { margin-top: clamp(48px, 6vw, 88px); }

@media (max-width: 639px) {
  .v3-connect .btn-row, .v3-connect .btn-row .btn { width: 100%; }
  .v3-connect__contacts { flex-direction: column; gap: var(--s-4); }
  .v3-connect__contacts > div + div { border-left: 0; border-top: 1px solid rgb(192 36 27 / .3); padding-top: var(--s-4); }
  .v3-connect__frame::before { inset: 6px; }
  .v3-connect__ornament span { width: 48px; }
}

/* ------------------------------------------------ Giải pháp, tab 05 "Brand Activation & O2O" (client feedback 2026-11-16)
   An add-in service, not a channel: full width on its own row under the four channels, with a light red accent
   (a soft red ground and a red edge) to read as a solution combined and made to order from several channels. */
.v2-choice.v2-choice--o2o { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: var(--s-1) var(--s-4); min-height: 52px; padding-block: var(--s-2); flex-wrap: wrap;
  background: linear-gradient(90deg, rgb(217 43 33 / .09), rgb(217 43 33 / .025) 60%, rgb(255 255 255 / .5)); border-color: rgb(217 43 33 / .32); box-shadow: inset 3px 0 0 var(--p-action); }
.v2-choice--o2o .v2-choice__title { font-weight: 600; }
.v2-choice--o2o .v2-choice__sub { color: var(--v3-rust); }
.v2-choice.v2-choice--o2o:hover { border-color: var(--p-action); }
.v2-choice.v2-choice--o2o[aria-selected="true"] { background: var(--v3-navy); border-color: var(--v3-navy); color: #ffffff; box-shadow: inset 3px 0 0 var(--p-action); }
.v2-choice--o2o[aria-selected="true"] .v2-choice__sub { color: var(--v3-flame); }

.v2-channel.v2-channel--o2o { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.v2-channel--o2o .v2-channel__body { gap: var(--s-4); padding: var(--s-5) var(--s-6); border: 1px solid rgb(217 43 33 / .22); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgb(217 43 33 / .07), rgb(217 43 33 / .015) 55%, transparent); }
.v2-o2o__intro { display: grid; gap: var(--s-2); }
.v2-channel--o2o .v2-o2o__lead { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--ink); }
.v2-o2o__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--s-4) var(--s-5); width: 100%; margin: 0; padding: 0; list-style: none; }
.v2-o2o__list li { display: grid; align-content: start; gap: 4px; padding-top: var(--s-3); border-top: 1px solid rgb(217 43 33 / .35); }
.v2-o2o__list strong { font-weight: 600; line-height: 1.3; color: var(--v3-rust); }
.v2-o2o__list span { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

@media (max-width: 1023px) {
  .v2-channel.v2-channel--o2o { grid-template-columns: minmax(0, 1fr); }
  /* the photo is as tall as the other channels' (2026-11-17, user's request; it used to be shorter here) */
}
@media (max-width: 639px) {
  .v2-choice.v2-choice--o2o { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; }
  .v2-channel--o2o .v2-channel__body { padding: var(--s-4); }
  .v2-o2o__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
}
