/* Vạn Thắng Tây Bắc — Premium construction direction */
:root {
  --primary: #0a0e0d;
  --primary-2: #121816;
  --surface-dark: #151b19;
  --surface: #f4f0e9;
  --surface-2: #ebe5dc;
  --card: #fffdf9;
  --text: #181b19;
  --muted: #6d706c;
  --line: rgba(24, 27, 25, 0.12);
  --accent: #c87538;
  --accent-2: #f2ad68;
  --copper: #9e5527;
  --soft: #eee8df;
  --shadow: 0 30px 90px rgba(4, 8, 7, 0.16);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
  background: var(--primary);
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--accent);
  color: #fff;
}

.legacy-root {
  overflow: clip;
}

.container {
  width: min(100% - 48px, 1240px);
}

.topbar {
  position: relative;
  z-index: 90;
  border: 0;
  background: linear-gradient(90deg, #7a3d1f, var(--accent), #8c4725);
  color: #fff6eb;
  font-size: 12px;
  letter-spacing: 0.015em;
}

.topbar-inner {
  min-height: 38px;
}

.topbar svg {
  color: #ffd3a6;
}

.header {
  position: sticky;
  top: 0;
  z-index: 80;
  border: 0;
  background: rgba(10, 14, 13, 0.82);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(130%);
  transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.header.is-scrolled {
  background: rgba(10, 14, 13, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.nav {
  min-height: 86px;
}

.brand img {
  width: auto;
  height: 58px;
  filter: none;
  transition: transform 0.35s ease;
}

.brand:hover img {
  transform: translateY(-2px);
}

.menu {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.menu a {
  position: relative;
  padding: 11px 17px;
  border-radius: 999px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.menu a:hover,
.menu a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(200,117,56,0.96), rgba(158,85,39,0.96));
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(158,85,39,0.28);
}

.phone-pill {
  border: 1px solid rgba(242,173,104,0.5);
  background: rgba(200,117,56,0.12);
  color: #fff;
  box-shadow: none;
}

.phone-pill:hover {
  border-color: var(--accent-2);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  background: #fff;
}

.hero {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 124px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,9,0.96) 0%, rgba(7,10,9,0.83) 46%, rgba(7,10,9,0.34) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(242,173,104,0.18), transparent 24%),
    linear-gradient(115deg, transparent 45%, rgba(200,117,56,0.18) 100%);
  transition: background 0.2s linear;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero-inner {
  min-height: calc(100vh - 124px);
  padding: 92px 0 108px;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 810px;
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--copper);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge {
  border: 1px solid rgba(242,173,104,0.35);
  background: rgba(200,117,56,0.13);
  color: #ffd2a2;
  backdrop-filter: blur(12px);
}

.badge::before,
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero-company {
  max-width: 830px;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(47px, 6.2vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-company span {
  background: linear-gradient(110deg, #fff 18%, #f3c391 68%, #c87538 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  max-width: 720px;
  margin: 0 0 24px;
  color: #f1c08e;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.hero p {
  max-width: 680px;
  color: rgba(255,255,255,0.68);
  font-size: 17px;
  line-height: 1.8;
}

.hero-cta {
  margin-top: 38px;
}

.btn {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 25px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  border: 1px solid #d8884b;
  background: linear-gradient(135deg, #d8894c, #a8582c);
  color: #fff;
  box-shadow: 0 14px 34px rgba(158,85,39,0.32);
}

.btn-primary:hover {
  box-shadow: 0 20px 46px rgba(158,85,39,0.46);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
  color: #fff;
  backdrop-filter: blur(12px);
}

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

.hero-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 180px 180px 34px 34px;
  background: url("../img/hero-2.jpg") center / cover no-repeat;
  box-shadow: 0 40px 100px rgba(0,0,0,0.48);
  transform: translateY(12px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,11,10,0.04) 35%, rgba(8,11,10,0.94) 100%);
}

.hero-panel::after {
  content: "621 DỰ ÁN";
  position: absolute;
  top: 34px;
  right: 30px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(10,14,13,0.46);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  backdrop-filter: blur(14px);
}

.floating-card {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  background: rgba(10,14,13,0.74);
  color: #fff;
  backdrop-filter: blur(20px);
}

.floating-card h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 17px;
}

.mini-stats {
  gap: 8px;
}

.mini-stat {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}

.mini-stat strong {
  color: var(--accent-2);
}

.mini-stat span {
  color: rgba(255,255,255,0.58);
}

.trust-strip {
  position: relative;
  z-index: 5;
  margin-top: 0;
  border: 0;
  background: var(--primary);
}

.trust-item {
  min-height: 136px;
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}

.trust-icon,
.cap-icon,
.step-icon {
  border: 1px solid rgba(200,117,56,0.22);
  background: linear-gradient(145deg, rgba(200,117,56,0.16), rgba(200,117,56,0.04));
  color: var(--accent);
}

.trust-item h4 {
  color: #fff;
}

.trust-item p {
  color: rgba(255,255,255,0.52);
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-sm {
  padding: 84px 0;
}

.section-title {
  color: var(--text);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.card,
.value-card,
.split-card,
.form-card,
.info-card {
  border: 1px solid rgba(24,27,25,0.1);
  border-radius: var(--radius);
  background: rgba(255,253,249,0.86);
  box-shadow: 0 18px 54px rgba(15,18,16,0.07);
}

.service-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(24,27,25,0.1);
  background: var(--card);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.service-card:hover {
  border-color: rgba(200,117,56,0.55);
  box-shadow: 0 34px 80px rgba(15,18,16,0.18);
  transform: translateY(-10px);
}

.service-card .thumb {
  height: 240px;
  overflow: hidden;
}

.service-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(8,11,10,0.64) 100%);
}

.service-card .thumb img,
.project-img img,
.image-stack > img {
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), filter 0.6s ease;
}

.service-card:hover .thumb img,
.project-card:hover .project-img img,
.image-stack:hover > img {
  transform: scale(1.075);
}

.service-card .icon {
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(10,14,13,0.72);
  color: var(--accent-2);
  backdrop-filter: blur(12px);
}

.service-card .body {
  padding: 26px;
}

.service-card h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.more-link {
  color: var(--copper);
}

.dark-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(200,117,56,0.16), transparent 28%),
    var(--primary);
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.dark-section .container {
  position: relative;
}

.dark-section .section-title,
.dark-section h3 {
  color: #fff;
}

.dark-section .section-lead,
.dark-section p {
  color: rgba(255,255,255,0.58);
}

.cap-card {
  min-height: 260px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.cap-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242,173,104,0.42);
  background: rgba(200,117,56,0.09);
}

.image-stack {
  border-radius: 170px 170px 34px 34px;
}

.image-stack::before {
  border-color: rgba(200,117,56,0.38);
  border-radius: 170px 170px 34px 34px;
}

.image-stack > img {
  border-radius: 170px 170px 34px 34px;
  box-shadow: var(--shadow);
}

.logo-plaque {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,14,13,0.84);
  backdrop-filter: blur(18px);
}

.stats {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(24,27,25,0.1);
  border-radius: 24px;
  background: #fff;
}

.stat {
  border-right: 1px solid rgba(24,27,25,0.08);
  padding: 22px;
}

.stat strong {
  color: var(--copper);
}

.process {
  background: var(--soft) !important;
}

.step {
  padding: 22px 14px;
  border-radius: 24px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.step:hover {
  background: rgba(255,255,255,0.72);
  transform: translateY(-6px);
}

.step small {
  color: var(--copper);
}

.projects-head {
  align-items: end;
}

.project-card {
  overflow: hidden;
  border-color: rgba(24,27,25,0.09) !important;
  border-radius: 26px !important;
  background: var(--card) !important;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  border-color: rgba(200,117,56,0.44) !important;
  box-shadow: 0 32px 74px rgba(15,18,16,0.16) !important;
  transform: translateY(-8px);
}

.project-field,
.project-no {
  background: var(--primary) !important;
  color: #fff !important;
}

.tag {
  border-color: rgba(200,117,56,0.24) !important;
  background: rgba(200,117,56,0.1) !important;
  color: var(--copper) !important;
}

.page-title {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,10,9,0.94), rgba(7,10,9,0.45)),
    url("../img/page-title-bg.jpg") center 46% / cover no-repeat;
}

.page-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7,10,9,0.62));
}

.page-title .container {
  position: relative;
  z-index: 2;
  padding-bottom: 62px;
}

.page-title h1 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(45px, 6vw, 80px);
  font-weight: 780;
  letter-spacing: -0.055em;
}

.breadcrumb,
.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.value-card,
.split-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.value-card::before,
.split-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--accent-2), var(--copper));
}

.value-card:hover,
.split-card:hover {
  transform: translateY(-7px);
  border-color: rgba(200,117,56,0.4);
}

.project-catalog {
  background:
    radial-gradient(circle at 8% 0%, rgba(200,117,56,0.13), transparent 26%),
    linear-gradient(180deg, #f4f0e9 0%, #ebe5dc 38%, #f4f0e9 100%) !important;
}

.project-catalog::before {
  opacity: 0.32;
  background-image: linear-gradient(rgba(24,27,25,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(24,27,25,0.1) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  mask-image: linear-gradient(#000, transparent 54%);
}

.project-summary-card {
  border-color: rgba(24,27,25,0.1) !important;
  background: rgba(255,253,249,0.82) !important;
  box-shadow: 0 18px 50px rgba(15,18,16,0.08) !important;
  backdrop-filter: blur(14px);
}

.project-summary-card:hover,
.project-summary-card.active {
  border-color: rgba(200,117,56,0.56) !important;
  box-shadow: 0 28px 64px rgba(15,18,16,0.16) !important;
}

.project-summary-card.active {
  background: linear-gradient(145deg, #111714, #202923) !important;
}

.project-summary-card strong,
.project-count strong {
  color: var(--accent-2) !important;
}

.project-filters {
  top: 104px;
  border-color: rgba(24,27,25,0.1) !important;
  background: rgba(244,240,233,0.86) !important;
  box-shadow: 0 20px 60px rgba(15,18,16,0.11) !important;
}

.project-filter-btn {
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.project-filter-btn:hover {
  transform: translateY(-2px);
}

.project-filter-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
}

.project-search {
  border-color: rgba(24,27,25,0.1) !important;
  background: rgba(255,253,249,0.86) !important;
  box-shadow: 0 18px 50px rgba(15,18,16,0.08) !important;
}

.project-count,
.project-list-head {
  background: linear-gradient(135deg, #101613, #273129) !important;
}

.contact-layout {
  gap: 54px;
}

.info-card,
.form-card {
  background: var(--card);
}

.form-card {
  padding: 34px;
  box-shadow: 0 34px 90px rgba(15,18,16,0.14);
}

.field input,
.field select,
.field textarea {
  min-height: 54px;
  border: 1px solid rgba(24,27,25,0.13);
  border-radius: 15px;
  background: #f7f3ed;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 142px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200,117,56,0.12);
}

.map-section {
  background: var(--soft) !important;
}

.map-card {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow) !important;
}

.map-card iframe {
  filter: grayscale(0.2) sepia(0.08) contrast(1.04) !important;
}

.map-card .map-overlay {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,14,13,0.84) !important;
  color: rgba(255,255,255,0.7) !important;
}

.map-card .map-overlay strong {
  color: #fff !important;
}

.map-card .map-overlay span {
  color: rgba(255,255,255,0.6) !important;
}

.cta {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(105deg, rgba(9,13,11,0.97), rgba(9,13,11,0.74)),
    url("../img/footer-bg.jpg") center / cover no-repeat;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 50%, rgba(200,117,56,0.28), transparent 30%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  padding: 78px 0;
}

.cta h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(31px, 3.5vw, 48px);
  letter-spacing: -0.04em;
}

.cta p {
  color: var(--accent-2);
}

.footer {
  border: 0;
  background: #070a09;
}

.footer-main {
  padding-top: 76px;
  padding-bottom: 62px;
}

.footer h3 {
  color: #fff;
}

.footer p,
.footer li,
.footer a {
  color: rgba(255,255,255,0.54);
}

.footer a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.38);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s cubic-bezier(.2,.8,.2,1), transform 0.85s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--accent-2));
  box-shadow: 0 0 18px rgba(242,173,104,0.7);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(10,14,13,0.9);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  backdrop-filter: blur(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    display: block;
    min-height: 460px;
    max-width: 640px;
    width: 100%;
  }
  .section {
    padding: 96px 0;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, 1240px);
  }
  .header {
    background: rgba(10,14,13,0.96);
  }
  .menu {
    top: 84px;
    left: 16px;
    right: 16px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    background: rgba(10,14,13,0.98);
  }
  .menu a {
    color: rgba(255,255,255,0.72);
  }
  .hero,
  .hero-inner {
    min-height: auto;
  }
  .hero-inner {
    padding: 88px 0 84px;
    gap: 50px;
  }
  .hero-panel {
    min-height: 430px;
    border-radius: 120px 120px 28px 28px;
  }
  .section {
    padding: 82px 0;
  }
  .page-title {
    min-height: 330px;
  }
  .project-filters {
    top: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 26px, 1240px);
  }
  .nav {
    min-height: 76px;
  }
  .brand img {
    height: 48px;
  }
  .hero {
    background-position: 62% center;
  }
  .hero::after {
    background-size: 44px 44px;
  }
  .hero-company {
    font-size: clamp(38px, 11vw, 54px) !important;
  }
  .hero h2 {
    font-size: 24px !important;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-panel {
    min-height: 410px;
    border-radius: 84px 84px 24px 24px;
  }
  .floating-card {
    inset: auto 12px 12px;
    padding: 18px;
  }
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 36px;
  }
  .service-card .thumb {
    height: 220px;
  }
  .image-stack,
  .image-stack::before,
  .image-stack > img {
    border-radius: 74px 74px 24px 24px;
  }
  .page-title {
    min-height: 290px;
  }
  .page-title .container {
    padding-bottom: 42px;
  }
  .page-title h1 {
    font-size: 43px;
  }
  .form-card {
    padding: 22px;
  }
  .cta-inner {
    padding: 64px 0;
  }
}

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