/* Vinhomes Cổ Loa — restored stylesheet */

:root {
  --navy: #12376b;
  --navy-dark: #0c2649;
  --gold: #b99a5b;
  --ink: #3a3a3a;
  --heading: #16233a;
  --muted: #767676;
  --line: #e4e7ec;
  --tint: #f5f7fa;
  --wrap: 1180px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--heading); }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

:where(a, button):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.btn {
  display: inline-block;
  margin: 6px 8px 0 0;
  padding: 12px 30px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
}
.btn:hover { background: #a2854b; color: #fff; text-decoration: none; }
.btn--lg { padding: 15px 40px; font-size: 18px; }
.btn--ghost { background: transparent; border: 2px solid var(--gold); color: var(--gold); padding: 10px 28px; }
.btn--ghost:hover { background: var(--gold); color: #fff; }

.section { padding: 60px 0; }
.section-title {
  margin-bottom: 16px;
  font-size: 30px;
  text-align: center;
  color: var(--navy);
}
.section-lead { max-width: 880px; margin: 0 auto 32px; text-align: center; color: var(--muted); }
.meta { margin-top: 14px; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--navy);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 74px; height: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block;
  padding: 9px 13px;
  color: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.primary-nav a:hover { color: var(--gold); text-decoration: none; }

.nav-toggle {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px; height: 40px;
  padding: 0;
  background: var(--navy);
  border: 0; border-radius: 5px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 50%;
  width: 21px; height: 2px; margin-left: -10px;
  background: #fff; content: "";
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -7px; left: 0; margin-left: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; margin-left: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,40,.45), rgba(6,20,40,.78));
  content: "";
}
.hero__inner { position: relative; z-index: 2; text-align: center; color: #fff; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); text-shadow: 0 3px 14px rgba(0,0,0,.55); }
.hero__tag { margin: 12px 0 18px; font-size: clamp(17px, 2.4vw, 24px); font-style: italic; color: var(--gold); }
.hero__text { max-width: 800px; margin: 0 auto 24px; }

/* ---------- policy ---------- */

.policy { background: var(--tint); }
.policy__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.policy__grid > * { min-width: 0; }
.policy h2 { margin-bottom: 12px; font-size: 22px; text-transform: uppercase; color: var(--navy); }
.ticks { margin-top: 14px; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before {
  position: absolute; left: 0; top: 12px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
  content: "";
}

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; min-width: 520px; }
.spec th, .spec td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th[scope="row"] { width: 240px; background: var(--tint); color: var(--navy); }
.spec thead th { background: var(--navy); color: #fff; }

/* ---------- location ---------- */

.location { background: var(--tint); }
.dist {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.dist > * { min-width: 0; }
.dist li {
  padding: 22px 12px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
}
.dist img { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; }
.dist h3 { font-size: 15px; }
.dist p { font-size: 14px; color: var(--gold); font-weight: 700; }

/* ---------- masterplan ---------- */

.masterplan figure { margin: 0; }
.masterplan img { width: 100%; border-radius: 8px; }
.stats { margin-top: 30px; padding: 24px 26px; background: var(--tint); border-radius: 8px; }
.stats h3 { margin-bottom: 12px; font-size: 20px; color: var(--navy); text-transform: uppercase; }
.stats ul { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.stats strong { color: var(--gold); font-size: 20px; }

/* ---------- zones ---------- */

.zones { background: var(--tint); }
.zones__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zones__grid > * { min-width: 0; }
.zone { background: #fff; border-radius: 8px; overflow: hidden; }
.zone img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zone h3 { padding: 14px 16px; font-size: 18px; text-align: center; color: var(--navy); }

/* ---------- types ---------- */

.types__list { display: grid; gap: 30px; }
.type {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.type:nth-child(even) img { order: 2; }
.type img { width: 100%; border-radius: 8px; }
.type h3 { font-size: 22px; margin-bottom: 10px; color: var(--navy); }

/* ---------- amenities ---------- */

.amenities { background: var(--tint); }
.amenities__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.amenities__grid > * { min-width: 0; }
.amenities__grid li {
  padding: 26px 24px;
  background: #fff;
  border-top: 4px solid var(--gold);
  border-radius: 8px;
}
.amenities__grid h3 { margin-bottom: 10px; font-size: 19px; color: var(--navy); }
.amenities__sub { margin: 42px 0 20px; font-size: 21px; text-align: center; text-transform: uppercase; color: var(--navy); }
.amenities__pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.amenities__pics > * { min-width: 0; }
.amenities__pics img { width: 100%; border-radius: 8px; }

/* ---------- pricing ---------- */

.pricing__sub { margin: 40px 0 12px; font-size: 21px; color: var(--navy); }
.pay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}
.pay > * { min-width: 0; }
.pay li {
  padding: 26px 22px;
  background: var(--tint);
  border-radius: 8px;
  text-align: center;
}
.pay img { width: 62px; height: 62px; margin: 0 auto 12px; }
.pay h4 { margin-bottom: 8px; font-size: 17px; text-transform: uppercase; color: var(--navy); }
.pay p { font-size: 14px; color: var(--muted); }

/* ---------- progress ---------- */

.progress { background: var(--tint); }
.progress p + p { margin-top: 12px; }
.progress figure { margin: 26px 0 0; }
.progress img { width: 100%; border-radius: 8px; }

/* ---------- footer ---------- */

.site-footer {
  padding: 48px 0 18px;
  background: var(--navy-dark);
  color: #c0cbdc;
  font-size: 15px;
}
.site-footer h2 { margin-bottom: 12px; font-size: 20px; color: #fff; text-transform: uppercase; }
.site-footer a { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.footer__grid > * { min-width: 0; }
.footer__col ul { margin-top: 12px; }
.footer__col li { padding: 3px 0; }

.copyright {
  max-width: var(--wrap);
  margin: 34px auto 0;
  padding: 16px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--navy);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 26px; height: 26px; margin: 0 auto; fill: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .dist { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .policy__grid, .amenities__grid, .zones__grid, .pay { grid-template-columns: minmax(0, 1fr); }
  .zones__grid, .pay { grid-template-columns: repeat(2, 1fr); }
  .type, .type:nth-child(even) img { grid-template-columns: minmax(0, 1fr); order: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 42px 0; }
  .section-title { font-size: 24px; }

  .nav-toggle { display: block; }
  .primary-nav { display: none; order: 3; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .site-header__inner { flex-wrap: wrap; }

  .dist { grid-template-columns: repeat(2, 1fr); }
  .zones__grid, .pay, .amenities__pics { grid-template-columns: minmax(0, 1fr); }
  .spec th[scope="row"] { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
