/* ==========================================================================
   Direct Cars Singapore — main stylesheet (child theme của Hello Elementor)
   Nguồn: design/css/style.css — mục 1–8 giữ nguyên thiết kế (header/footer PHP dùng thẳng),
   chỉ nối thêm selector Elementor vào vài rule (nút, pill). Mục 9 = adapter cho DOM Elementor.
   Nạp SAU elementor-frontend (xem inc/setup.php) nên rule thiết kế thắng rule nền cùng độ ưu tiên.
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Pages
   7. Utilities & motion  8. Responsive  9. Elementor adapter
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --blue: #1668e3;
  --blue-700: #0f4fa8;
  --blue-900: #0a2f63;
  --ink: #15171b;
  --text: #3f434a;
  --muted: #55595f;
  --subtle: #6b7078;
  --line: #e8e5e0;
  --line-soft: #f1efeb;
  --input-line: #ddd9d3;
  --bg: #faf9f7;
  --white: #fff;
  --sky-50: #eef4fc;
  --sky-100: #e9f0fb;
  --sky-150: #e8f0fd;
  --sky-200: #cfe0f8;
  --slate: #46536b;
  --slate-2: #5b6a85;
  --navy: #0d1520;
  --wa: #25d366;

  --font-head: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 18px;
  --container: 1200px;
  --gutter: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 18px 40px -22px rgba(17, 19, 24, .4);
}
/* 4 màu chính đọc từ Global Colors (Elementor › Site Settings) — biến kit khai báo trên <body> */
body {
  --blue: var(--e-global-color-primary, #1668e3);
  --blue-700: var(--e-global-color-secondary, #0f4fa8);
  --text: var(--e-global-color-text, #3f434a);
  --blue-900: var(--e-global-color-accent, #0a2f63);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid rgba(22, 104, 227, .45); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: 84px 0; }
.section--white { background: var(--white); }
.section--tight { padding: 46px 0; }
.section--border-t { border-top: 1px solid var(--line); }
.section--border-b { border-bottom: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split--wide-media { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split--faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }

/* 4. Components ------------------------------------------------------------ */

/* Section headings */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-top: 14px;
  text-wrap: pretty;
}
.lead { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
.section-head { max-width: 660px; }
.section-head--row {
  max-width: none;
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  align-items: flex-end; justify-content: space-between;
}
.section-head--row > div { max-width: 640px; min-width: 0; }

/* Buttons — widget Button của Elementor: class modifier đặt trên wrapper (`btn-white`, `btn-lg`…),
   style áp vào <a class="elementor-button"> bên trong; mặc định = primary */
.btn, .elementor .elementor-widget-button .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 13px 24px;
  font-size: 14.5px; font-weight: 700; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--primary, .elementor .elementor-widget-button .elementor-button { background: var(--blue); color: #fff; }
.btn--primary:hover, .elementor .elementor-widget-button .elementor-button:hover { background: var(--blue-700); color: #fff; }
.btn--white, .elementor .btn-white .elementor-button { background: #fff; color: var(--blue-700); }
.btn--white:hover, .elementor .btn-white .elementor-button:hover { background: #e6efff; color: var(--blue-700); }
.btn--ghost, .elementor .btn-ghost .elementor-button { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; font-weight: 600; }
.btn--ghost:hover, .elementor .btn-ghost .elementor-button:hover { background: transparent; border-color: #fff; color: #fff; }
.btn--outline, .elementor .btn-outline .elementor-button { background: #fff; border-color: var(--sky-200); color: var(--blue-700); font-weight: 600; }
.btn--outline:hover, .elementor .btn-outline .elementor-button:hover { border-color: var(--blue); color: var(--blue-700); }
.btn--sm, .elementor .btn-sm .elementor-button { padding: 11px 20px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.btn--lg, .elementor .btn-lg .elementor-button { padding: 15px 26px; font-size: 15.5px; }
.btn--block, .elementor .btn-block .elementor-button { width: 100%; padding: 15px; font-size: 15.5px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-block; margin-top: 26px; font-size: 15px; font-weight: 600; }

/* Pills & badges */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill, .elementor .pills .elementor-icon-list-items .elementor-icon-list-item {
  background: #fff; border: 1px solid var(--sky-200); color: var(--blue-700);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.badge-live {
  display: inline-flex; gap: 9px; align-items: center;
  background: #fff; border: 1px solid var(--sky-200); color: var(--blue-700);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.badge-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #22a45d; box-shadow: 0 0 0 4px rgba(34, 164, 93, .18);
}

/* Tick lists */
.checks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px; margin-top: 26px; max-width: 520px;
}
.checks li, .checklist li { display: flex; gap: 12px; }
.checks li { align-items: center; font-size: 15px; font-weight: 600; color: var(--text); }
.checks li::before, .checklist li::before {
  content: "\2713";
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--sky-150); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.checklist { display: grid; gap: 16px; margin-top: 26px; }
.checklist li { align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--text); }
.checklist li::before { margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* Forms */
.form-card {
  min-width: 0;
  background: #fff; border: 1px solid #e3ecf8; border-radius: 16px;
  padding: 28px 26px 26px;
  box-shadow: 0 26px 60px -32px rgba(15, 41, 80, .45);
}
.form-card__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.form-card__title { font-size: 21px; letter-spacing: -.015em; }
.form-card__tag { font-size: 12px; font-weight: 600; color: #1a7a45; background: #e7f6ee; padding: 4px 10px; border-radius: 999px; }
.form-card__sub { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.form-card__note { font-size: 12px; color: var(--subtle); margin-top: 12px; text-align: center; }
.form-card .btn--block { margin-top: 18px; }
.form-grid { display: grid; gap: 12px; margin-top: 20px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.input {
  width: 100%; min-width: 0;
  border: 1px solid var(--input-line); border-radius: 9px;
  padding: 12px 13px;
  font-size: 14.5px; font-weight: 400; color: var(--ink);
  background: #fcfcfb;
}
.input:focus { outline: 2px solid rgba(22, 104, 227, .35); outline-offset: 1px; border-color: var(--blue); }
textarea.input { resize: vertical; line-height: 1.5; }
.chips-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* Chip = radio của Contact Form 7 ([radio … class:chips use_label_element]) — chọn bằng :checked, không cần JS */
.chip, .chips .wpcf7-list-item-label {
  display: inline-block;
  border: 1px solid var(--input-line); background: #fff; color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover, .chips .wpcf7-list-item-label:hover { border-color: var(--blue); }
.chip.is-selected, .chips input:checked + .wpcf7-list-item-label { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips .wpcf7-list-item { margin: 0; }
.chips input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chips input:focus-visible + .wpcf7-list-item-label { outline: 2px solid rgba(22, 104, 227, .45); outline-offset: 2px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 42px; }
.card {
  min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  color: var(--ink);
  transition: box-shadow .24s, border-color .24s, transform .24s;
}
.card:hover { box-shadow: var(--shadow-card); border-color: var(--sky-200); transform: translateY(-3px); color: var(--ink); }
.card--tint { background: var(--sky-150); border-color: var(--sky-200); }
.card--tint:hover { border-color: #9fc4f2; }
.card__title { font-size: 20px; letter-spacing: -.01em; }
.card__text { font-size: 15px; line-height: 1.62; color: var(--muted); margin-top: 12px; }
.card--tint .card__text { color: var(--slate); }
.card__foot { font-size: 13.5px; font-weight: 600; color: var(--blue-700); margin-top: auto; padding-top: 22px; }
.cards--compact { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.cards--compact .card { background: var(--bg); padding: 26px 24px; }
.cards--compact .card__title { font-size: 19px; }
.cards--compact .card__text { font-size: 14.5px; margin-top: 10px; }
.cards--compact .card__foot { color: var(--blue); font-size: 14px; padding-top: 18px; }

/* Media with hover zoom */
.media { overflow: hidden; border-radius: var(--radius); height: 420px; min-width: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .78s var(--ease); }
.media:hover img { transform: scale(1.045); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 42px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1; color: var(--blue);
}
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 9px; }

/* Compare */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.compare__col { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.compare__col--accent { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.compare__title { font-size: 18px; margin-bottom: 20px; color: var(--muted); }
.compare__col--accent .compare__title { color: #fff; }
.compare__list { display: grid; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.compare__col--accent .compare__list { color: #e4eefc; }
.compare__col .btn { margin-top: 26px; }

/* FAQ (native <details>) */
.faq { min-width: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer;
  padding: 20px 0;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-body); font-size: 22px; line-height: 1; color: var(--blue); flex-shrink: 0; }
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { font-size: 15px; line-height: 1.65; color: var(--muted); padding: 0 0 22px; max-width: 46em; }

/* Icon button */
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--input-line); background: #fff; color: var(--ink);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }

/* Dots */
.dots { display: flex; gap: 8px; }
.dots button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(21, 23, 27, .22); transition: width .3s, background .3s;
}
.dots button.is-active { width: 26px; background: var(--blue); }

/* Social */
.social { display: flex; gap: 8px; align-items: center; }
.social a {
  width: 27px; height: 27px; border-radius: 50%;
  border: 1px solid #bfd4ef;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social a:hover { background: #d8e6f8; }
.social img { width: 13px; height: 13px; }
.social--lg { gap: 10px; margin-top: 20px; }
.social--lg a { width: 34px; height: 34px; background: #fff; border-color: #cadbf2; }
.social--lg a:hover { background: #dbe8f8; }
.social--lg img { width: 15px; height: 15px; }

/* 5. Sections -------------------------------------------------------------- */

/* Top bar */
.topbar { background: var(--sky-100); color: var(--slate); font-size: 12.5px; letter-spacing: .01em; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar__item { display: flex; gap: 7px; align-items: center; }
.topbar__item svg { flex-shrink: 0; }
.topbar__label { color: var(--slate-2); }
.topbar a { color: #16202e; }
.topbar .social { margin-left: auto; }

/* Header & navigation */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(17, 19, 24, .28); }
.header__inner { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; margin: 0 auto; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue-700); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.nav__item { position: relative; display: flex; align-items: center; }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: -14px; z-index: 50;
  min-width: 244px; padding: 8px; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 44px -20px rgba(17, 19, 24, .4);
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { display: grid; }
.dropdown a { color: var(--ink); font-size: 13.5px; font-weight: 500; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.dropdown a:hover { background: var(--sky-50); color: var(--blue-700); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 16px; padding-left: 20px; }
.burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--input-line); border-radius: 9px; background: #fff; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #f1f0ec; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(250,249,247,.97) 0%, rgba(250,249,247,.94) 34%, rgba(250,249,247,.62) 52%, rgba(250,249,247,0) 66%),
    rgba(250, 249, 247, .26);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
  padding-top: 56px; padding-bottom: 72px;
}
.hero__content { min-width: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--slate-2); }
.breadcrumb a { color: var(--slate-2); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.hero__title {
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -.03em; line-height: 1.05;
  margin-top: 18px; text-wrap: pretty;
}
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--text); margin-top: 18px; max-width: 34em; }
.hero__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; }

/* Blue band (process steps) */
.band { position: relative; overflow: hidden; background: var(--blue-700); color: #fff; }
.band__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,47,99,.94) 0%, rgba(15,79,168,.82) 55%, rgba(15,79,168,.6) 100%);
}
.band > .container { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.band .eyebrow { color: #a8ccff; }
.band .h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; margin-top: 50px; }
.step {
  min-width: 0;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
  transition: background .24s, border-color .24s, transform .24s;
}
.step:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; gap: 14px; }
.step__top::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 6px, transparent 6px 12px); }
.step:last-child .step__top::after { display: none; }
.step__num {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: #fff; color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
}
.step__title { font-size: 20px; margin-top: 22px; color: #fff; }
.step__text { font-size: 15px; line-height: 1.62; color: #e4eefc; margin-top: 9px; }
.step__meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #a8ccff; margin-top: auto; padding-top: 22px;
}

/* Closing CTA */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(9,17,28,.9) 0%, rgba(9,17,28,.78) 55%, rgba(13,34,66,.62) 100%);
}
.cta__inner {
  position: relative; z-index: 1;
  padding-top: 84px; padding-bottom: 84px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta__copy { min-width: 0; max-width: 620px; }
.cta__title { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.cta__text { font-size: 16.5px; line-height: 1.6; color: #e8eefb; margin-top: 14px; }

/* Footer */
.site-footer { background: var(--sky-50); color: var(--slate); }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px; padding-top: 64px; padding-bottom: 28px;
}
.footer__logo { height: 32px; width: auto; }
.footer__about { font-size: 14px; line-height: 1.65; margin-top: 18px; max-width: 30em; }
.footer__title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #101826; margin: 0 0 14px; }
.footer__links { display: grid; gap: 9px; font-size: 14px; line-height: 1.5; }
.footer__links a { color: var(--slate); }
.footer__links a:hover { color: var(--blue-700); }
.footer__links address { font-style: normal; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid #d6e3f5;
  padding-top: 20px; padding-bottom: 36px;
  font-size: 12.5px; color: var(--slate-2);
}
.footer__bottom a { color: var(--slate-2); }
.footer__legal { display: flex; gap: 20px; }

/* WhatsApp floating button */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #cfe7d6; color: #0b3d1f;
  box-shadow: 0 10px 26px -8px rgba(17, 19, 24, .32);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .26s, transform .26s, box-shadow .2s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { color: #0b3d1f; box-shadow: 0 16px 32px -10px rgba(17, 19, 24, .4); }
.fab__icon { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; }
.fab__icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s ease-out infinite; }
.fab__icon img { position: relative; width: 19px; height: 19px; }
.fab__label { font-family: var(--font-head); font-size: 14.5px; font-weight: 600; white-space: nowrap; }

/* 6. Page-specific --------------------------------------------------------- */

/* Home — why choose us */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; margin-top: 30px; }
.feature__title { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.feature__title::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--blue); }
.feature__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 6px; padding-left: 18px; }

/* Home — services zig-zag */
.services { display: grid; gap: 28px; margin-top: 44px; }
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .24s, transform .24s;
}
.service:hover { box-shadow: 0 22px 48px -26px rgba(17, 19, 24, .4); transform: translateY(-3px); }
.service__media { height: 330px; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .78s var(--ease); }
.service:hover .service__media img { transform: scale(1.045); }
.service:nth-child(even) .service__media { order: 2; }
.service__body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.service__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.service__title { font-size: 26px; letter-spacing: -.02em; margin-top: 10px; }
.service__text { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.service__link { margin-top: 20px; font-size: 15px; font-weight: 600; align-self: flex-start; }

/* Home — testimonials slider */
.slider { overflow: hidden; margin-top: 40px; }
.slider__track { display: flex; gap: 24px; transition: transform .5s var(--ease); }
.slider__nav { display: flex; gap: 10px; }
.slider__dots { justify-content: center; margin-top: 28px; }
.quote {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.quote__stars { color: #f5a524; letter-spacing: 2px; font-size: 15px; }
.quote__text { font-size: 16px; line-height: 1.62; color: var(--text); margin-top: 14px; }
.quote__who { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 22px; }
.avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--sky-150); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.quote__name { font-size: 14.5px; font-weight: 700; }
.quote__meta { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Home — news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.news-card { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.news-card:hover { color: var(--ink); }
.news-card__media { height: 220px; border-radius: var(--radius); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .78s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.045); }
.news-card__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); margin-top: 18px; }
.news-card__title { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; margin-top: 10px; }
.news-card__more { font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 14px; }

/* Home — newsletter popup */
.popup {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(13, 21, 32, .55);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup__box {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px 30px 28px;
  box-shadow: 0 30px 80px -30px rgba(13, 21, 32, .6);
  transform: translateY(14px); transition: transform .3s var(--ease);
}
.popup.is-open .popup__box { transform: none; }
.popup__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--sky-50); color: var(--ink); font-size: 20px; cursor: pointer;
}
.popup__title { font-size: 24px; letter-spacing: -.02em; margin-top: 12px; }
.popup__text { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.popup__form { display: flex; gap: 10px; margin-top: 20px; }
.popup__form .input { flex: 1; }
.popup__note { font-size: 12px; color: var(--subtle); margin-top: 12px; }

/* Contact */
.channels { display: grid; gap: 14px; margin-top: 28px; max-width: 440px; }
.channel {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--sky-200); border-radius: 12px;
  padding: 14px 16px; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.channel:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.channel__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--sky-150); display: flex; align-items: center; justify-content: center; }
.channel__icon--wa { background: var(--wa); }
.channel__icon img { width: 19px; height: 19px; }
.channel__text { display: grid; gap: 2px; min-width: 0; }
.channel__label { font-size: 12.5px; font-weight: 600; color: var(--slate-2); }
.channel__value { font-family: var(--font-head); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.map { min-width: 0; height: 440px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sky-50); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--text); margin-top: 16px; }
.hours { margin: 26px 0 0; border-top: 1px solid var(--line); }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; text-align: right; }

/* 7. Utilities & motion ---------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .62s var(--ease), transform .62s var(--ease); }
.reveal.is-visible, .no-js .reveal, .elementor-editor-active .reveal { opacity: 1; transform: none; }

@keyframes pulse {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 8. Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .header__inner { flex-wrap: wrap; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; padding-left: 0; }
  .nav {
    display: none; order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 6px 0 4px; border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav > .nav__link, .nav__item > .nav__link { padding: 14px 2px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
  .nav__link.is-active { box-shadow: none; }
  .nav__item { flex-direction: column; align-items: stretch; }
  .nav .dropdown { display: grid; position: static; min-width: 0; padding: 0 0 12px 14px; border: none; box-shadow: none; background: none; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero__tint { background: linear-gradient(180deg, rgba(250,249,247,.96) 0%, rgba(250,249,247,.9) 58%, rgba(250,249,247,.74) 100%); }
  .quote { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 900px) {
  .split, .split--wide-media, .split--faq, .compare { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .media { height: 320px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service:nth-child(even) .service__media { order: 0; }
  .service__media { height: 230px; }
  .service__body { padding: 28px 24px 30px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding: 58px 0; }
  .band > .container, .cta__inner { padding-top: 58px; padding-bottom: 58px; }
  .hero__inner { padding-top: 34px; padding-bottom: 52px; }
  .topbar__inner { gap: 6px 14px; font-size: 12px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
  .topbar__label, .topbar__hours, .topbar .social { display: none; }
  .form-row, .features, .checks { grid-template-columns: minmax(0, 1fr); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .quote { flex-basis: 100%; }
  .map { height: 300px; }
  .popup__form { flex-direction: column; }
  .fab { padding: 12px; right: 16px; bottom: 16px; }
  .fab__label { display: none; }
}

@media (max-width: 480px) {
  .header__actions .btn { display: none; }
  .nav__cta { display: flex; margin-top: 14px; }
}

@media (max-width: 420px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 9. Elementor adapter -------------------------------------------------------
   Container của Elementor đọc bố cục qua biến (--display, --flex-direction, --gap, --padding-*, --width).
   Class thiết kế đặt trên container/widget wrapper; mục này chỉ vá chỗ DOM Elementor khác DOM thiết kế. */

/* 9.1 Khung trung tính: container/widget không tự thêm padding/gap — CSS thiết kế quyết định khoảng cách */
/* Kit khai báo biến này trên TỪNG .elementor-element (gap 20px) → đè ở cùng tầng, độ ưu tiên cao hơn */
.elementor .elementor-element {
  --widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px;
  --container-default-padding-top: 0px; --container-default-padding-right: 0px;
  --container-default-padding-bottom: 0px; --container-default-padding-left: 0px;
}
/* Elementor mặc định flex COLUMN + con rộng 100% → khối hàng ngang của thiết kế khai báo lại */
.elementor .e-con:is(.section-head--row, .step__top, .cta__inner, .btn-group, .footer__bottom, .form-card__head,
  .quote__who, .slider__track) { --flex-direction: row; }
/* con của hàng ngang co theo nội dung — Elementor mặc định rộng 100% (và ở mobile còn bật --flex-wrap: wrap) */
.elementor .e-con:is(.section-head--row, .step__top, .cta__inner, .btn-group, .footer__bottom, .form-card__head,
  .quote__who, .slider__track) > .e-con { --width: auto; }
/* ≤767px Elementor bật --flex-wrap: wrap cho mọi .e-con.e-flex → hàng thiết kế KHÔNG xuống dòng phải chặn lại
   (hàng có flex-wrap: wrap trong thiết kế thì rule thiết kế đã thắng) */
.elementor .e-con:is(.step__top, .quote__who) { --flex-wrap: nowrap; }
/* Lớp phủ gradient nằm trên ảnh nền container (ảnh đổi trong Style › Background), nội dung nổi trên lớp phủ */
.elementor .hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(250,249,247,.97) 0%, rgba(250,249,247,.94) 34%, rgba(250,249,247,.62) 52%, rgba(250,249,247,0) 66%),
    rgba(250, 249, 247, .26);
}
.elementor .hero > .container { z-index: 1; }

/* 9.2 Heading/Text Editor: thẻ bên trong wrapper kế thừa cỡ chữ, màu… từ class thiết kế trên wrapper */
.elementor-widget-heading .elementor-heading-title {
  font-size: inherit; line-height: inherit; letter-spacing: inherit; color: inherit;
  text-transform: inherit; text-wrap: inherit;
}
.elementor-widget-heading :is(span, div, p).elementor-heading-title { font-family: inherit; font-weight: inherit; }
/* Elementor xoá margin-bottom mọi widget (.e-con .elementor-widget.elementor-widget, 0,3,0) → khai báo lại */
.elementor .elementor-widget.compare__title { margin-block-end: 20px; }
.elementor .elementor-widget.footer__title { margin-block-end: 14px; }
/* Thiết kế: <span class="eyebrow"> inline nằm trên baseline dòng Manrope 16px/1.5 của thẻ cha; widget là khối.
   → wrapper mang font/dòng của THẺ CHA, thẻ chữ bên trong (span inline) mang font của eyebrow — khớp tới pixel */
.elementor .elementor-widget-heading.eyebrow {
  font: 400 16px/1.5 var(--font-body); letter-spacing: normal; text-transform: none;
}
.elementor .elementor-widget-heading.eyebrow .elementor-heading-title {
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase;
}
.elementor .breadcrumb p { display: flex; gap: 8px; align-items: center; }
.elementor .breadcrumb strong { color: var(--ink); font-weight: 600; }
/* Danh sách trong Text Editor: class thiết kế (grid, gap, cột theo breakpoint) nằm trên wrapper → <ul> kế thừa */
.elementor .elementor-widget-text-editor:is(.checks, .checklist, .compare__list, .footer__links) > ul {
  display: inherit; grid-template-columns: inherit; gap: inherit;
  grid-column: 1 / -1; /* wrapper cũng là lưới → <ul> trải hết các cột của wrapper */
}
/* Elementor ép max-width:100% lên widget con trực tiếp của container (.elementor.elementor .e-con > .elementor-widget, 0,4,0)
   → khai báo lại max-width của thiết kế cho các widget có giới hạn bề ngang */
.elementor.elementor .e-con > .elementor-widget.hero__lead { max-width: 34em; }
.elementor.elementor .e-con > .elementor-widget.checks { max-width: 520px; }
.elementor.elementor .e-con > .elementor-widget.footer__about { max-width: 30em; }
/* Thiết kế: tên + mô tả người đánh giá chung 1 khối inline (mỗi dòng 24px); WP là 2 heading riêng */
.elementor .elementor-widget-heading:is(.quote__name, .quote__meta) { line-height: 24px; }
/* Phần tử inline-* của thiết kế (badge, link) nằm trong container flex cột → không kéo giãn hết bề ngang */
.elementor .elementor-widget:is(.badge-live, .form-card__tag) { align-self: flex-start; }
.elementor .section-head--row .link-arrow { margin-top: 0; }
/* Ảnh nền hero = widget Image (đổi ảnh trong editor); JS thiết kế bật/tắt .is-active để chuyển ảnh */
.elementor .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.elementor .media img, .elementor :is(.service__media, .news-card__media) img { height: 100%; }
/* Slider đánh giá: .e-con đặt flex qua biến (0,2,0) → khai báo lại bề rộng mỗi thẻ theo thiết kế */
.elementor .quote { --flex-grow: 0; --flex-shrink: 0; --flex-basis: calc((100% - 48px) / 3); }
.elementor .slider__track { --flex-wrap: nowrap; }
.popup__form .wpcf7-form-control-wrap { flex: 1; }
.elementor .compare__col .elementor-widget-button { margin-top: 26px; }
.elementor .footer__legal p { display: flex; gap: 20px; }
.elementor .footer__logo { text-align: start; }
.elementor .footer__logo img { height: 32px; width: auto; }

/* 9.3 Icon List làm pill (bỏ lề âm + margin 8px của kiểu inline) */
.elementor .pills .elementor-icon-list-items.elementor-inline-items { gap: 10px; margin-inline: 0; }
.elementor .pills .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item { margin-inline: 0; }

/* 9.4 Counter làm stat (số trên, nhãn dưới, canh trái) */
.elementor .stat .elementor-counter { --counter-prefix-grow: 0; --counter-suffix-grow: 0; align-items: flex-start; }
.elementor .stat .elementor-counter-number-wrapper {
  flex: none; justify-content: flex-start; text-align: start;
  font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1; color: var(--blue);
}
.elementor .stat .elementor-counter-title {
  display: block; flex: none; font-size: 13.5px; font-weight: 400; line-height: 1.5;
  color: var(--muted); margin-top: 9px;
}

/* 9.5 Nested Accordion làm FAQ (dấu +/− do CSS vẽ, đã bỏ icon trong widget) */
.elementor .faq {
  --n-accordion-border-width: 0px; --n-accordion-padding: 0px; --n-accordion-item-title-space-between: 0px;
  --n-accordion-title-font-size: 17px;
  --n-accordion-title-normal-color: var(--ink); --n-accordion-title-hover-color: var(--ink);
  --n-accordion-title-active-color: var(--ink);
}
.elementor .faq .e-n-accordion-item { border-bottom: 1px solid var(--line); }
.elementor .faq .e-n-accordion-item-title {
  padding: 20px 0; gap: 20px; justify-content: space-between;
  font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.5;
}
.elementor .faq .e-n-accordion-item-title-text { font-size: inherit; line-height: inherit; }
.elementor .faq .e-n-accordion-item-title::after {
  content: "+"; font-family: var(--font-body); font-size: 22px; line-height: 1; color: var(--blue); flex-shrink: 0;
}
.elementor .faq .e-n-accordion-item[open] > .e-n-accordion-item-title::after { content: "\2212"; }
.elementor .faq .e-n-accordion-item > .e-con { padding: 0 0 22px; }
.elementor .faq .e-n-accordion-item > .e-con .elementor-widget-text-editor {
  font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 46em;
}

/* 9.6 Contact Form 7 trong form-card (markup form viết theo thiết kế: .form-grid/.field/.input) */
.form-card .wpcf7-form-control-wrap { display: block; }
.form-card textarea.wpcf7-textarea { display: block; } /* inline → khe ~4px dưới ô */
.form-card .wpcf7-spinner { position: absolute; margin: 0; }
.form-card .wpcf7-not-valid-tip { font-size: 12px; font-weight: 500; margin-top: 4px; }
.form-card .wpcf7-response-output { margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; font-size: 13px; }

/* 9.7 Social Icons (footer) theo .social--lg */
.elementor .social { text-align: start; }
.elementor .social .elementor-social-icons-wrapper { display: flex; gap: 10px; justify-content: flex-start; }
.elementor .social .elementor-social-icon {
  --e-social-icon-icon-color: #16202e;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: #fff; border: 1px solid #cadbf2; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.elementor .social .elementor-social-icon:hover { background: #dbe8f8; }
.elementor .social .elementor-social-icon svg { width: 15px; height: 15px; fill: #16202e; }

@media (max-width: 980px) {
  .elementor .hero::after { background: linear-gradient(180deg, rgba(250,249,247,.96) 0%, rgba(250,249,247,.9) 58%, rgba(250,249,247,.74) 100%); }
  .elementor .quote { --flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .elementor .quote { --flex-basis: 100%; }
}
