/* Chung cư Group — restored from the web archive (snapshot 2022-05-26, "Giới thiệu" section 2016) */
:root {
  --blue: #005aa6;
  --blue-dark: #0b416e;
  --blue-footer: #004f94;
  --sky: #1ba8df;
  --sky-soft: #e8f4fb;
  --red: #d10a0a;
  --ink: #333;
  --ink-soft: #666;
  --line: #e2e2e2;
  --page-bg: #eef3f7;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font: 400 15px/1.6 var(--font); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; }
.menu-bar :focus-visible, .site-footer :focus-visible, .slider :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.site-header { background: #fff; }
.masthead { position: relative; min-height: 130px; background: #cfe9f7 url("../img/banner-chung-cu-group.jpg") center bottom / cover no-repeat; }
.masthead__inner { display: flex; align-items: center; min-height: 130px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--blue); text-decoration: none; }
.brand__text { padding: 6px 14px; border-radius: 8px; background: rgba(255, 255, 255, .82); }
.brand img { width: 72px; height: 72px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 60, 110, .18); }
.brand:hover { color: var(--blue); }
.brand h1 { font-size: clamp(20px, 3vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.brand__slogan { display: block; margin: 2px 0 0; font-size: clamp(13px, 1.6vw, 17px); font-weight: 500; color: var(--blue-dark); font-style: italic; }

.menu-bar { background: var(--blue); }
.menu-bar__inner { position: relative; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 4px; background: none; border: 0; color: #fff; font: 700 15px/1 var(--font); text-transform: uppercase; cursor: pointer; }
.primary-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a { display: block; padding: 12px 20px; color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; text-decoration: none; transition: background-color .3s; }
.primary-nav__list a:hover { background: var(--blue-dark); color: #fff; }

/* ---------- layout ---------- */
.page { padding: 16px 0 40px; }
.page__box { background: #fff; box-shadow: 0 1px 10px rgba(0, 0, 0, .12); padding: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.layout > * { min-width: 0; }

.box-title { display: flex; align-items: stretch; margin: 0 0 14px; border-bottom: 2px solid var(--blue); font-size: 17px; font-weight: 700; text-transform: uppercase; }
.box-title span { display: inline-block; padding: 7px 34px 6px 12px; background: var(--blue); color: #fff; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%); }
.box-title--red { border-bottom: 1px solid var(--sky); }
.box-title--red span { padding: 0 0 6px; background: none; color: var(--red); clip-path: none; }

.block { margin-bottom: 26px; }

/* slider */
.slider { position: relative; margin-bottom: 22px; overflow: hidden; background: #dde8ef; }
.slider__track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .6s ease; }
.slider__slide { flex: 0 0 100%; margin: 0; position: relative; }
.slider__slide img { width: 100%; aspect-ratio: 900 / 411; object-fit: cover; }
.slider__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: 16px; font-weight: 700; }
.slider__btn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.slider__btn:hover { background: var(--blue); }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
.slider__dots { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.slider__dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slider__dots button::before { content: ""; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; }
.slider__dots button[aria-current="true"]::before { background: #fff; }
@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }

/* dự án phân phối */
.projects { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 54fr); gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.projects > li:first-child { grid-row: span 3; }
.project { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #ddd; }
.project img { width: 100%; height: 90px; object-fit: cover; }
.project h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.project p { margin: 0; font-size: 14px; text-align: justify; color: #555; }
.project--lead { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
.project--lead img { height: 260px; }
.project--lead h3 { font-size: 17px; color: var(--blue); }

/* phân loại */
.categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; padding: 0; list-style: none; }
.category { position: relative; }
.category img { width: 100%; height: 220px; object-fit: cover; transition: opacity .6s; }
.category h3 { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--ink); }

/* tin tổng hợp */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.news > li:first-child { grid-column: 1 / -1; }
.news-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: start; }
.news-item img { width: 76px; height: 60px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 3px rgba(0, 0, 0, .35); }
.news-item h3 { font-size: 14px; font-weight: 700; color: var(--ink); }
.news-item--lead { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.news-item--lead img { width: 220px; height: 140px; }
.news-item--lead h3 { margin-bottom: 6px; font-size: 17px; color: #0072bc; }
.news-item--lead p { margin: 0; font-size: 14px; text-align: justify; }

/* sidebar */
.widget { margin-bottom: 16px; }
.widget__title { padding: 10px 8px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; text-align: center; }
.widget__list { margin: 0; padding: 8px 0 0 22px; }
.widget__list li { padding: 5px 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.widget__list li::marker { color: var(--blue); }
.side-news { margin: 0; padding: 10px 0 0; list-style: none; }
.side-news li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dotted #ccc; }
.side-news li:last-child { border-bottom: 0; }
.side-news img { width: 92px; height: 72px; object-fit: cover; }
.side-news p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }

/* giới thiệu */
.about { margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.about__head { margin-bottom: 18px; text-align: center; }
.about__head h2 { font-size: clamp(21px, 2.6vw, 26px); color: var(--blue); text-transform: uppercase; }
.about__head p { margin: 6px 0 0; color: var(--ink-soft); font-style: italic; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.about__card { padding: 20px 22px; background: var(--sky-soft); border-top: 3px solid var(--blue); }
.about__card h3 { margin-bottom: 10px; font-size: 18px; color: var(--blue); text-transform: uppercase; }
.about__card h4 { margin: 12px 0 4px; font-size: 15.5px; color: var(--blue-dark); }
.about__card p { font-size: 14.5px; text-align: justify; }
.about__card p:last-child { margin-bottom: 0; }
.about__wide { grid-column: 1 / -1; }
.mission { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mission li { padding: 14px 16px; background: #fff; border-left: 3px solid var(--sky); }
.mission h4 { margin: 0 0 4px; }
.mission p { margin: 0; font-size: 14px; }
.values { margin: 0; padding: 0; list-style: none; counter-reset: v; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.values li { position: relative; padding-left: 40px; font-size: 14.5px; counter-increment: v; }
.values li::before { content: counter(v); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.values strong { color: var(--blue-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-footer); color: #fff; }
.site-footer__inner { padding-block: 30px 20px; }
.site-footer h2 { margin-bottom: 10px; font-size: 18px; text-transform: uppercase; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 6px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cde9ff; }
.site-footer__copy { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .primary-nav__list a { padding: 12px 14px; font-size: 14px; }
  .mission { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .masthead, .masthead__inner { min-height: 100px; }
  .brand img { width: 54px; height: 54px; }
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; padding-bottom: 8px; }
  .primary-nav__list a { padding: 11px 4px; border-top: 1px solid rgba(255, 255, 255, .15); }
  .page { padding: 10px 0 24px; }
  .page__box { padding: 12px; }
  .slider__slide figcaption { font-size: 14px; padding-right: 90px; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .projects > li:first-child { grid-row: auto; }
  .project--lead img { height: auto; aspect-ratio: 16 / 9; }
  .project { grid-template-columns: 110px minmax(0, 1fr); }
  .categories { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .category img { height: auto; aspect-ratio: 560 / 300; }
  .category h3 { font-size: 14px; }
  .news { grid-template-columns: minmax(0, 1fr); }
  .news-item--lead { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .news-item--lead img { width: 110px; height: 90px; }
  .news-item--lead h3 { font-size: 15px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .about__grid, .mission, .values { grid-template-columns: minmax(0, 1fr); }
  .about__card p { text-align: left; }
}
