/*
Theme Name: Minaco Clean
Theme URI: https://minaco.vn/
Author: Minaco
Author URI: https://minaco.vn/
Description: Theme WordPress thuần, tối ưu hiệu năng và SEO cho Minaco Solution.
Version: 1.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: minaco-clean
*/

:root {
  --blue-950: #071a3d;
  --blue-900: #0b2a63;
  --blue-800: #123f8c;
  --blue-700: #1b56b3;
  --blue-100: #eaf2ff;
  --gold: #f6b51b;
  --orange: #f47a2a;
  --ink: #152036;
  --muted: #60708d;
  --line: #dce5f3;
  --surface: #f5f8fc;
  --white: #fff;
  --success: #087f5b;
  --danger: #c92a2a;
  --shadow: 0 18px 55px rgba(16, 43, 88, .12);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-900); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { color: var(--blue-950); line-height: 1.16; letter-spacing: -.035em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; left: 12px; top: 12px; z-index: 9999; padding: 12px 16px; color: var(--blue-950); background: #fff; border-radius: 8px; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(76px, 10vw, 132px) 0; }
.section--soft { background: var(--surface); }
.section--dark { color: #dce7fb; background: var(--blue-950); }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--blue-700); font-size: .79rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 3px; background: var(--gold); border-radius: 3px; content: ""; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading p { max-width: 670px; color: var(--muted); font-size: 1.08rem; }
.section--dark .section-heading p { color: #b8c7df; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--blue-700); font-size: .92rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; }
.button:hover { color: #fff; background: var(--blue-900); box-shadow: 0 12px 28px rgba(17, 66, 146, .25); transform: translateY(-2px); }
.button--gold { color: var(--blue-950); background: var(--gold); }
.button--gold:hover { color: var(--blue-950); background: #ffc942; }
.button--ghost { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.button--ghost:hover { background: rgba(255,255,255,.16); }
.button svg { width: 18px; height: 18px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled, .site-header--solid { background: rgba(7, 26, 61, .97); box-shadow: 0 8px 30px rgba(0,0,0,.15); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { flex: 0 0 auto; }
.site-logo img { width: 218px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { display: block; padding: 12px 14px; color: #fff; font-size: .88rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--gold); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; display: grid; min-width: 320px; gap: 0; padding: 10px; visibility: hidden; opacity: 0; transform: translateY(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(7,26,61,.98); box-shadow: var(--shadow); transition: .18s ease; }
.primary-nav .menu-item-has-children:hover > .sub-menu, .primary-nav .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.header-contact { white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; transition: .2s ease; }
.nav-toggle span { margin: 4px 0; }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; display: grid; min-height: 780px; align-items: center; overflow: hidden; color: #fff; background: var(--blue-950); }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,18,47,.96) 0%, rgba(4,18,47,.8) 42%, rgba(4,18,47,.18) 77%), url("assets/images/hero.webp") center/cover no-repeat; content: ""; transform: scale(1.01); }
.hero::after { position: absolute; inset: auto -10% -38% 35%; width: 700px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; padding: 110px 0 170px; }
.hero .eyebrow { color: #fff; }
.hero h1 { max-width: 780px; color: #fff; }
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 660px; margin-bottom: 30px; color: #d7e3f7; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { position: absolute; right: 0; bottom: 52px; left: 0; z-index: 2; }
.proof-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.12); backdrop-filter: blur(15px); }
.proof-item { padding: 18px 22px; background: rgba(5,25,59,.62); }
.proof-item strong { display: block; color: #fff; font-size: 1.55rem; letter-spacing: -.04em; }
.proof-item span { color: #b9cae4; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.intro-visual { position: relative; min-height: 560px; }
.intro-image { position: absolute; inset: 0 70px 70px 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-image img { width: 100%; height: 100%; object-fit: cover; }
.intro-card { position: absolute; right: 0; bottom: 0; max-width: 300px; padding: 28px; border-radius: 20px; color: #fff; background: var(--blue-800); box-shadow: var(--shadow); }
.intro-card strong { display: block; margin-bottom: 4px; color: var(--gold); font-size: 2.4rem; line-height: 1; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.pill-list li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-900); background: #fff; font-size: .84rem; font-weight: 700; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.value-number { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 22px; border-radius: 15px; color: var(--blue-900); background: var(--blue-100); font-size: .86rem; font-weight: 900; }
.value-card p { color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { position: relative; min-height: 420px; overflow: hidden; border-radius: 22px; color: #fff; background: var(--blue-950); box-shadow: 0 14px 35px rgba(12,39,84,.12); isolation: isolate; }
.product-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,23,52,.02) 20%, rgba(6,23,52,.92) 90%); content: ""; }
.product-card:hover img { transform: scale(1.045); }
.product-content { position: absolute; inset: auto 0 0; padding: 28px; }
.product-content h3 { color: #fff; }
.product-content p { color: #c8d6eb; font-size: .92rem; }
.product-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 800; text-decoration: none; }
.product-link:hover { color: #fff; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: process; }
.process-step { position: relative; padding-top: 74px; counter-increment: process; }
.process-step::before { position: absolute; top: 0; left: 0; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--gold); content: counter(process, decimal-leading-zero); font-weight: 900; }
.process-step:not(:last-child)::after { position: absolute; top: 27px; right: 0; left: 72px; height: 1px; background: rgba(255,255,255,.18); content: ""; }
.process-step p { color: #aebed7; font-size: .92rem; }

.cta-panel { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; overflow: hidden; padding: clamp(42px, 7vw, 82px); border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--blue-900), #1768c7); box-shadow: var(--shadow); }
.cta-panel::after { position: absolute; right: -120px; bottom: -190px; width: 420px; aspect-ratio: 1; border: 60px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #c6d7ee; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }

.page-hero { padding: 175px 0 86px; color: #fff; background: linear-gradient(125deg, var(--blue-950), var(--blue-800)); }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2.6rem, 5vw, 4.9rem); }
.page-hero p { max-width: 700px; color: #c6d7ee; font-size: 1.1rem; }
.content-shell { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.entry-content { padding: 80px 0 110px; }
.entry-content h2 { margin-top: 1.4em; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.entry-content h3 { margin-top: 1.35em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content > * { max-width: 100%; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 40px 0 0; }
.stat-card { padding: 25px 20px; border-radius: 18px; background: var(--surface); text-align: center; }
.stat-card strong { display: block; color: var(--blue-800); font-size: 2rem; line-height: 1.1; }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-story img { width: 100%; min-height: 500px; object-fit: cover; border-radius: 22px; }

.contact-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 7vw, 84px); align-items: start; }
.form-card { padding: clamp(26px, 5vw, 46px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--blue-950); font-size: .86rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid #cbd7e8; border-radius: 11px; color: var(--ink); background: #fff; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(27,86,179,.1); }
.field textarea { min-height: 130px; resize: vertical; }
.field-help { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-status { margin-bottom: 22px; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.form-status--success { color: #055c43; background: #d9f8ed; }
.form-status--error { color: #9c1c1c; background: #ffe3e3; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 24px; border-radius: 18px; background: var(--surface); }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a { font-weight: 800; }

.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.floating-action { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue-700); box-shadow: 0 8px 24px rgba(5,22,51,.24); text-decoration: none; transition: transform .2s ease; }
.floating-action:hover { color: #fff; transform: translateY(-3px); }
.floating-action--phone { background: #16a34a; }
.floating-action--mail { background: var(--orange); }
.floating-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.site-footer { color: #b9c8dd; background: #05142f; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 54px; padding: 72px 0 52px; }
.footer-logo { width: 220px; margin-bottom: 24px; }
.footer-main h3 { color: #fff; font-size: 1rem; letter-spacing: .02em; }
.footer-main p, .footer-main li { font-size: .89rem; }
.footer-main ul { padding: 0; margin: 0; list-style: none; }
.footer-main li + li { margin-top: 9px; }
.footer-main a { color: #c6d5e9; text-decoration: none; }
.footer-main a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

.not-found { min-height: 75vh; display: grid; place-items: center; padding: 150px 20px 90px; text-align: center; }
.not-found strong { display: block; color: var(--gold); font-size: 5rem; line-height: 1; }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .header-contact { display: none; }
  .primary-nav { position: fixed; inset: 82px 0 0; display: none; padding: 24px 20px 40px; overflow-y: auto; background: var(--blue-950); }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { display: grid; align-items: start; }
  .primary-nav a { padding: 12px 4px; font-size: 1.04rem; }
  .primary-nav .sub-menu { position: static; display: grid; min-width: 0; padding: 4px 0 4px 18px; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; background: transparent; }
  .hero { min-height: 840px; }
  .hero::before { background: linear-gradient(90deg, rgba(4,18,47,.96), rgba(4,18,47,.63)), url("assets/images/hero.webp") 42% center/cover no-repeat; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .header-inner { min-height: 72px; }
  .site-logo img { width: 185px; }
  .primary-nav { inset-block-start: 72px; }
  .hero { min-height: 790px; }
  .hero-inner { padding: 96px 0 160px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-proof { bottom: 22px; }
  .proof-list { grid-template-columns: repeat(2, 1fr); }
  .proof-item { padding: 12px 15px; }
  .proof-item strong { font-size: 1.25rem; }
  .intro-grid, .about-story, .contact-layout, .cta-panel { grid-template-columns: 1fr; }
  .intro-visual { min-height: 430px; }
  .intro-image { inset: 0 40px 55px 0; }
  .intro-card { max-width: 240px; padding: 22px; }
  .values, .product-grid, .stats-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 360px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { top: 70px; right: auto; bottom: -16px; left: 27px; width: 1px; height: 40px; }
  .cta-panel { padding: 38px 24px; }
  .page-hero { padding: 135px 0 66px; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 54px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .floating-actions { right: 12px; bottom: 12px; }
  .floating-action { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Original Minaco homepage, rebuilt without Elementor. */
body.home {
  color: #575250;
  background: #fff;
}

body.home .site-header--legacy-home {
  display: none;
}

.legacy-home {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #f8f5f4 url("assets/images/legacy/2024/04/minaco-vat-tu-doanh-nghiep-hang-dau-min.webp") -307px 0 / cover repeat;
}

.legacy-home__intro {
  display: grid;
  grid-template-columns: 32% 42.336% 25.664%;
  width: 100%;
  min-height: 680px;
}

.legacy-home__brand {
  display: flex;
  min-width: 0;
  min-height: 680px;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px 35px 18px 20px;
  color: #1e1810;
}

.legacy-home__brand h1,
.legacy-home__brand p {
  color: inherit;
}

.legacy-home__brand h1 {
  margin: 0 0 5px;
  font-size: clamp(3.4rem, 5.4vw, 5.65rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}

.legacy-home__line {
  display: block;
  width: 46%;
  height: 2px;
  margin: 18px 0 12px;
  background: #1d518a;
}

.legacy-home__brand-top p,
.legacy-home__brand-bottom p {
  max-width: 380px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.legacy-home__brand-bottom strong {
  display: block;
  margin: 0 0 -8px;
  color: #1d518a;
  font-family: "Fleur De Leah", "Brush Script MT", cursive;
  font-size: clamp(5rem, 7.4vw, 6.8rem);
  font-weight: 400;
  line-height: .92;
}

.legacy-values {
  display: grid;
  min-width: 0;
  min-height: 680px;
  grid-template-rows: 180px 155px 180px 165px;
  background: var(--values-background) center right / cover no-repeat;
  perspective: 1200px;
}

.legacy-flip-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  outline: 0;
  perspective: 1200px;
  cursor: pointer;
}

.legacy-flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2,.7,.2,1);
}

.legacy-flip-card:hover .legacy-flip-card__inner,
.legacy-flip-card:focus .legacy-flip-card__inner,
.legacy-flip-card.is-flipped .legacy-flip-card__inner {
  transform: rotateX(180deg);
}

.legacy-flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 15px 28px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.legacy-flip-card__front {
  background: rgba(9, 102, 147, .37);
}

.legacy-flip-card__back {
  transform: rotateX(180deg);
  background-image: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), var(--card-background);
  background-position: var(--card-position);
  background-size: cover;
}

.legacy-flip-card__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.legacy-flip-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.legacy-flip-card__back h2 {
  margin-bottom: 7px;
  font-size: 18px;
}

.legacy-flip-card__back p {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(10.5px, .9vw, 13px);
  line-height: 1.3;
}

.legacy-slider {
  position: relative;
  min-width: 0;
  height: 680px;
  overflow: hidden;
  color: #fff;
  background: #183a61;
}

.legacy-slider__track,
.legacy-slide {
  position: absolute;
  inset: 0;
}

.legacy-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  background-image: linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.52)), var(--slide-background);
  background-position: center;
  background-size: cover;
  transition: opacity .72s ease, visibility .72s ease;
}

.legacy-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.legacy-slide__content {
  width: 86%;
  padding: 0 27px 0 60px;
}

.legacy-slide h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legacy-slide p {
  margin: 0 0 24px;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.legacy-slide a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid rgba(255,255,255,.8);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.legacy-slide a:hover,
.legacy-slide a:focus {
  color: #1d518a;
  background: #fff;
}

.legacy-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 45px;
  height: 58px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  opacity: .86;
  transform: translateY(-50%);
  cursor: pointer;
}

.legacy-slider__arrow:hover,
.legacy-slider__arrow:focus {
  opacity: 1;
}

.legacy-slider__arrow--prev { left: 5px; }
.legacy-slider__arrow--next { right: 5px; }

.legacy-slider__dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.legacy-slider__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}

.legacy-slider__dots button.is-active {
  background: #fff;
  transform: scale(1.35);
}

.legacy-partners {
  padding: 22px 20px 34px;
  background: #fff;
  text-align: center;
}

.legacy-partners__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.legacy-partners__display {
  margin: 0;
  color: rgba(29,81,138,.38);
  font-size: clamp(3.8rem, 6.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.055em;
}

.legacy-partners__kicker {
  margin: 5px 0 19px;
  color: #ff5100;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.legacy-partners h2 {
  margin: 0 0 12px;
  color: #1d518a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.legacy-partners__copy {
  max-width: 920px;
  margin: 0 auto 26px;
  color: #575250;
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.legacy-partners__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.legacy-partners__logo {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 13px;
  background: #fff;
}

.legacy-partners__logo img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

body.home .site-footer {
  color: #fff;
  background: linear-gradient(135deg, #2f4f97 47%, #ff913c 47%);
}

body.home .site-footer h3,
body.home .site-footer a,
body.home .site-footer p {
  color: #fff;
}

body.home .site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

body.home .footer-logo--legacy {
  width: 115px;
  height: auto;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
}

body.home .floating-actions {
  display: none;
}

@media (max-width: 1020px) {
  body.home .site-header--legacy-home {
    position: sticky;
    top: 0;
    display: block;
    color: #1d518a;
    background: rgba(255,255,255,.98);
    box-shadow: 0 2px 18px rgba(29,81,138,.12);
  }

  body.home .site-header--legacy-home .header-inner {
    min-height: 64px;
  }

  body.home .site-header--legacy-home .site-logo img {
    width: 72px;
    height: auto;
  }

  body.home .site-header--legacy-home .nav-toggle {
    width: 42px;
    height: 42px;
    border-color: rgba(29,81,138,.35);
    color: #1d518a;
  }

  body.home .site-header--legacy-home .primary-nav {
    inset-block-start: 64px;
    background: #1d518a;
  }

  .legacy-home__intro {
    grid-template-columns: 45% 55%;
  }

  .legacy-home__brand,
  .legacy-values {
    min-height: 680px;
  }

  .legacy-slider {
    grid-column: 1 / -1;
    height: 560px;
  }

  .legacy-slide__content {
    width: min(760px, 82%);
    margin-inline: auto;
    padding: 0 50px;
  }

  .legacy-partners__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .legacy-home {
    background-image: url("assets/images/legacy/2022/10/Minaco-vat-tu-doanh-nghiep-hang-dau.webp");
    background-position: center top;
  }

  .legacy-home__intro {
    display: block;
  }

  .legacy-home__brand {
    min-height: 430px;
    padding: 28px 22px 22px;
  }

  .legacy-home__brand h1 {
    font-size: clamp(3.5rem, 21vw, 5.2rem);
  }

  .legacy-home__brand-bottom strong {
    font-size: clamp(5.3rem, 27vw, 7rem);
  }

  .legacy-values {
    min-height: 720px;
    grid-template-rows: 165px 155px 215px 185px;
  }

  .legacy-flip-card__face {
    padding: 15px 22px;
  }

  .legacy-flip-card__back p {
    font-size: 11px;
    line-height: 1.28;
  }

  .legacy-slider {
    height: 320px;
  }

  .legacy-slide__content {
    width: 100%;
    padding: 0 42px;
  }

  .legacy-slide h2 {
    margin-bottom: 10px;
    font-size: 28px;
  }

  .legacy-slide p {
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.4;
  }

  .legacy-slide a {
    min-height: 34px;
    padding: 5px 12px;
    font-size: 12px;
  }

  .legacy-slider__arrow {
    width: 36px;
    font-size: 38px;
  }

  .legacy-partners {
    padding: 26px 14px 32px;
  }

  .legacy-partners__display {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .legacy-partners__kicker {
    font-size: 12px;
    letter-spacing: 4px;
  }

  .legacy-partners h2 {
    font-size: 22px;
  }

  .legacy-partners__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body.home .site-footer {
    background: linear-gradient(160deg, #2f4f97 62%, #ff913c 62%);
  }
}
