/* ==========================================================================
   City Group - landing page
   Bang mau: xanh la tren nen bac ha nhat. Khong dung framework.
   ========================================================================== */

:root {
  --green-900: #123526;
  --green-800: #1A4736;
  --green-700: #24614A;
  --green-600: #26694D;
  --green-500: #2F8060;
  --accent:    #2F8060;
  --accent-400: #7FD1A3;
  --accent-300: #A9E3C3;

  --paper:    #F6FAF4;
  --paper-2:  #EAF3E7;
  --paper-3:  #DCEBD8;

  --ink:      #16211C;
  --ink-2:    #364239;
  --muted:    #566158;
  --line:     #D5E5D0;
  --line-2:   #B9D2B3;

  --on-deep:  #DCEEE2;
  --white:    #FFFFFF;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);

  --f-display: "Lora", "Lora Fallback", Georgia, "Times New Roman", serif;
  --f-body: "Be Vietnam Pro", "Be Vietnam Pro Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-1: 0 1px 2px rgba(18, 53, 38, .05), 0 6px 18px rgba(18, 53, 38, .06);
  --shadow-2: 0 2px 4px rgba(18, 53, 38, .06), 0 16px 40px rgba(18, 53, 38, .10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 250, 244, .92);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--f-display); font-weight: 700; font-size: 19px;
  color: var(--green-900); letter-spacing: .01em;
}
.brand__sub {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-top: 2px;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-900); border-bottom-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 14.5px; }
.btn--primary { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.btn--primary:hover { background: var(--green-800); border-color: var(--green-800); color: var(--white); box-shadow: var(--shadow-1); }
.btn--outline { background: transparent; color: var(--green-800); border-color: var(--line-2); }
.btn--outline:hover { background: var(--paper-2); color: var(--green-900); border-color: var(--green-600); }
.btn--ghost { background: transparent; color: var(--on-deep); border-color: rgba(220, 238, 226, .4); }
.btn--ghost:hover { background: rgba(220, 238, 226, .12); color: var(--white); border-color: var(--on-deep); }
.btn svg { width: 17px; height: 17px; flex: 0 0 17px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 88% 8%, rgba(127, 209, 163, .30), transparent 62%),
    linear-gradient(180deg, #E6F4E9 0%, var(--paper) 78%);
  border-bottom: 1px solid var(--line);
}
.hero__art {
  position: absolute; right: -40px; bottom: 0;
  width: min(46%, 620px); opacity: .45; pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 0, #000 42%);
  mask-image: linear-gradient(100deg, transparent 0, #000 42%);
}
.hero__in {
  position: relative;
  padding-block: clamp(58px, 8vw, 108px) clamp(64px, 9vw, 118px);
  max-width: 860px;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--green-500); }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--green-900); margin-bottom: .4em; letter-spacing: -.012em; line-height: 1.14;
  max-width: 700px;
}
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-2); max-width: 34em; margin-bottom: 1.8em;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section chung ---------- */
.sec { padding: clamp(62px, 8vw, 102px) 0; }
.sec--tint { background: var(--paper-2); }
.sec--deep { background: var(--green-800); color: var(--on-deep); }
.sec--deep h2, .sec--deep h3 { color: var(--white); }

.sec__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec__head--wide { max-width: 780px; }
.kicker {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 14px;
}
.sec--deep .kicker { color: var(--accent-400); }
.sec h2 { font-size: clamp(1.72rem, 3.3vw, 2.45rem); letter-spacing: -.01em; }
.sec__head p { font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Ve chung toi ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 5vw, 68px); align-items: start; }
.about__body > p:first-of-type::first-letter {
  font-family: var(--f-display); font-size: 3.2em; line-height: .86; font-weight: 600;
  float: left; margin: .06em .12em 0 0; color: var(--green-700);
}
.about__body > p:last-child { margin-bottom: 0; }

.pledge {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent-400);
  border-radius: 12px; padding: 28px 30px; box-shadow: var(--shadow-1);
}
.pledge h3 { font-size: 1.16rem; margin-bottom: .7em; color: var(--green-900); }
.pledge ul { list-style: none; padding: 0; margin: 0; }
.pledge li {
  position: relative; padding-left: 26px; margin-bottom: 14px; font-size: 15.5px; line-height: 1.62;
}
.pledge li:last-child { margin-bottom: 0; }
.pledge li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent-300); box-shadow: inset 0 0 0 3px var(--green-500);
}

/* ---------- Viec chung toi nhan ---------- */
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.field {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(26px, 3.2vw, 36px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.field:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.field__icon {
  width: 46px; height: 46px; flex: 0 0 46px; margin-bottom: 20px;
  color: var(--green-600);
  background: var(--paper-2); border-radius: 12px; padding: 8px;
  box-sizing: content-box;
}
.field h3 { font-size: 1.26rem; margin-bottom: .45em; color: var(--green-900); }
.field p { font-size: 15.5px; margin-bottom: 0; }

/* ---------- Cach lam viec ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3.4vw, 46px); counter-reset: p; }
.principle { counter-increment: p; padding-top: 26px; border-top: 2px solid rgba(127, 209, 163, .38); }
.principle::before {
  content: counter(p, decimal-leading-zero);
  display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 600;
  color: var(--accent-400); line-height: 1; margin-bottom: 14px;
}
.principle h3 { font-size: 1.18rem; margin-bottom: .4em; }
.principle p { font-size: 15.5px; margin-bottom: 0; color: rgba(220, 238, 226, .82); }

/* ---------- Lien he ---------- */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 4.5vw, 60px); align-items: start; }
.contact__card {
  background: var(--green-800); color: rgba(220, 238, 226, .86);
  border-radius: 14px; padding: clamp(28px, 3.4vw, 40px);
}
.contact__card h3 { color: var(--white); font-size: 1.36rem; }
.contact__card p { font-size: 15.5px; margin-bottom: 0; }
.contact__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.contact__actions .btn { justify-content: center; }
.contact__card .btn--primary { background: var(--accent-300); color: var(--green-900); border-color: var(--accent-300); }
.contact__card .btn--primary:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }

.contact__list { list-style: none; padding: 0; margin: 0; }
.contact__list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact__list li:first-child { padding-top: 0; }
.contact__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__ico { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 4px; color: var(--green-600); }
.contact__k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__v { color: var(--ink); font-weight: 600; font-size: 16.5px; line-height: 1.6; }
.contact__v a { color: var(--green-700); }
.contact__v small { display: block; font-weight: 500; font-size: 13.5px; margin-top: 6px; }

/* ---------- Footer ---------- */
.ft { background: var(--green-900); color: rgba(220, 238, 226, .66); font-size: 14px; }
.ft__in { padding-block: clamp(44px, 5vw, 64px) 30px; }
.ft__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 4vw, 60px);
  padding-bottom: 34px; border-bottom: 1px solid rgba(220, 238, 226, .14);
}
.ft__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ft__brand img { width: 42px; height: 42px; }
.ft__name { font-family: var(--f-display); font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.25; }
.ft__name span {
  display: block; font-family: var(--f-body); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: rgba(220, 238, 226, .68); margin-top: 3px;
}
.ft .ft__h {
  font-family: var(--f-body); font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(220, 238, 226, .86); margin-bottom: 16px;
}
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin-bottom: 9px; }
.ft a { color: rgba(220, 238, 226, .74); text-decoration: none; }
.ft a:hover { color: var(--accent-400); }
.ft__legal { margin: 0; line-height: 1.75; max-width: 30em; }
.ft__legal + .ft__legal { margin-top: 12px; }
.ft__bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }
.ft__bot p { margin: 0; }
.ft__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Trang phap ly (thong tin doanh nghiep, chinh sach, dieu khoan) ---------- */
.page-hd {
  background: linear-gradient(180deg, #E6F4E9 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hd__in { padding-block: clamp(44px, 6vw, 76px) clamp(36px, 5vw, 56px); max-width: 860px; }
.page-hd h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--green-900); letter-spacing: -.01em; margin-bottom: .35em; }
.page-hd__lead { font-size: 1.06rem; max-width: 40em; margin-bottom: 0; }
.page-hd__meta { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); max-width: 860px; }
.doc h2 { font-size: clamp(1.32rem, 2.3vw, 1.6rem); margin-top: 1.9em; color: var(--green-900); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { max-width: 42em; }
.doc ul { padding-left: 1.25em; }

.facts { margin: 0; border-top: 1px solid var(--line-2); }
.facts__row {
  display: grid; grid-template-columns: 15em 1fr; gap: 6px 28px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.facts dd small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .facts__row { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__art { width: 74%; opacity: .32; }
  .about, .contact { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 30px; }
  .ft__top { grid-template-columns: 1fr 1fr; }
  .ft__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; background: transparent;
    border: 1.5px solid var(--line-2); border-radius: 8px; color: var(--green-800);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .hdr__in { min-height: 66px; }
  .hdr .btn--sm { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1);
    padding: 6px var(--gut) 18px;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .hero h1 { max-width: none; }
  .fields { grid-template-columns: 1fr; }
  .ft__top { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .nav[hidden] { display: flex; }
}

/* ---------- In an ---------- */
@media print {
  .hdr, .hero__cta, .contact__actions, .nav-toggle, .hero__art { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .sec--deep, .ft, .contact__card, .sec--tint, .page-hd { background: #fff !important; color: #000 !important; }
  .hero h1, .sec--deep h2, .sec--deep h3, .ft__name { color: #000 !important; }
  .field { border: 1px solid #999; }
}
