:root {
  /* Bảng màu lấy từ logo TTP GRANITE: than đá (Thổ) · nước (Thủy) · cam (Hỏa) */
  --ink: #22313e; --stone: #3b4c58; --gold: #f7941d; --gold-lt: #3fd0f6; --gold-dk: #007eab; --water: #00ade6;
  --paper: #f3f5f6; --card: #ffffff; --text: #22313e; --muted: #5d6b75; --line: #d5dde2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font: 16px/1.6 Montserrat, system-ui, sans-serif; color: var(--text); background: var(--paper); }
[lang=km], .l-km { font-family: 'Kantumruy Pro', Montserrat, sans-serif; }
html.en .l-km, html.en .l-vi, html.km .l-en, html.km .l-vi, html.vi .l-en, html.vi .l-km { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.15; color: var(--ink); }
html.km h1, html.km h2, html.km h3 { font-family: 'Kantumruy Pro', sans-serif; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img.wm { height: 30px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: .16em; font-weight: 500; white-space: nowrap; }
.brand b { font-weight: 800; letter-spacing: .06em; }
.menu { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.menu a { text-decoration: none; opacity: .85; } .menu a:hover { opacity: 1; color: var(--gold-dk); }
.tools { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button { background: none; border: 0; color: var(--ink); font: 600 12px Montserrat, 'Kantumruy Pro'; padding: 6px 10px; cursor: pointer; opacity: .7; }
html.km .langs [data-l=km], html.en .langs [data-l=en], html.vi .langs [data-l=vi] { background: var(--ink); color: #fff; opacity: 1; }
.call { background: var(--gold); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 999px; }
.burger { display: none; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,49,62,.92) 0%, rgba(34,49,62,.6) 50%, rgba(34,49,62,.15) 100%), linear-gradient(0deg, rgba(34,49,62,.7), transparent 40%); }
.hero-in { position: relative; padding: 120px 0 56px; max-width: 1180px; }
.eyebrow { color: var(--gold-lt); text-transform: uppercase; letter-spacing: .3em; font-size: 12px; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 72px); margin: 14px 0 18px; max-width: 12ch; }
html.km .hero h1 { max-width: 16ch; line-height: 1.35; }
.lead { max-width: 560px; font-size: 17px; color: #e6e0d6; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 40px; }
.btn { display: inline-block; font: 600 15px Montserrat, 'Kantumruy Pro'; padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn.gold { background: var(--gold); color: #fff; } .btn.gold:hover { background: #dc7d0c; }
.btn.line { background: none; color: #fff; border-color: rgba(255,255,255,.6); } .btn.line:hover { border-color: #fff; }
.pillars { display: flex; gap: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); padding-top: 16px; max-width: 560px; }
.pillars li { flex: 1; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; }

/* sections */
.sec { padding: 88px 0; } .sec.alt { background: #e4ebef; } .sec.dark { background: var(--ink); color: #ddd; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec-h { margin-bottom: 36px; } .sec-h .no { font: 600 40px 'Playfair Display', serif; color: var(--gold); margin-right: 14px; }
.sec-h h2 { display: inline; font-size: clamp(28px, 3.6vw, 42px); } .sec-h p { color: var(--muted); margin-top: 10px; }
.sub { font-size: 24px; margin: 48px 0 8px; } .note { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app { background: var(--card); border-radius: 4px; overflow: hidden; }
.app img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s; } .app:hover img { transform: scale(1.04); }
.app figcaption { padding: 14px 16px 18px; display: flex; flex-direction: column; } .app b { color: var(--ink); } .app small { color: var(--muted); }

.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.prod { background: var(--card); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.prod-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.prod-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod h3 { font-size: 22px; margin-bottom: 8px; } .prod p { font-size: 15px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 14px 0; }
th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; padding: 8px 12px; font-size: 13px; }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); } td:first-child { font-weight: 600; }
.use { font-size: 14px !important; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 10px; }
.ask { margin-top: auto; align-self: flex-start; background: none; border: 1.5px solid var(--gold); color: var(--gold-dk); font: 600 14px Montserrat, 'Kantumruy Pro'; padding: 9px 18px; border-radius: 999px; cursor: pointer; margin-top: 16px; }
.ask:hover { background: var(--gold); color: #fff; }
.order { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.order img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; } .order figcaption { font-weight: 600; font-size: 14px; margin-top: 8px; }

.fins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.fin { display: flex; flex-direction: column; } .fin .swb { aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 4px 4px / 20% 20% 4px 4px; margin-bottom: 10px; }
.fin .sw { width: 100%; height: 100%; object-fit: cover; transform: scale(2.6); }
.fin b { color: var(--ink); } .fin small { color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; } .guide { background: var(--card); } .guide td:last-child { white-space: nowrap; font-weight: 700; }

.projs { display: grid; gap: 56px; }
.proj { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
.proj:nth-child(even) .proj-pics { order: 2; }
.proj-pics { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 420px; }
.proj-pics a:first-child { grid-row: 1 / 3; } .proj-pics a:nth-child(2) { grid-column: 2 / 4; }
.proj-pics a { display: block; min-height: 0; overflow: hidden; border-radius: 3px; }
.proj-pics img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } .proj-pics a:hover img { transform: scale(1.05); }
.proj h3 { font-size: 30px; } .place { color: var(--gold-lt); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; margin: 8px 0 14px; font-weight: 600; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); padding: 22px 18px; border-top: 3px solid var(--gold); display: flex; flex-direction: column; }
.steps .n { font: 600 34px 'Playfair Display', serif; color: var(--gold); } .steps b { color: var(--ink); } .steps small { color: var(--muted); font-size: 14px; }
.whys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.why { background: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 4px; } .why b { color: var(--ink); margin-top: 8px; } .why small { color: var(--muted); font-size: 14px; }
.care ul { list-style: none; columns: 2; gap: 32px; } .care li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); position: relative; break-inside: avoid; }
.care li::before { content: ''; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cinfo dt { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--gold-dk); font-weight: 600; margin-top: 16px; }
.cinfo dd { font-size: 18px; font-weight: 600; color: var(--ink); } .cinfo dd a { text-decoration: none; }
.socials { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.socials a { background: var(--ink); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.map { width: 100%; height: 260px; border: 0; border-radius: 4px; margin-top: 8px; }
.quote { background: var(--card); padding: 32px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.quote h3 { font-size: 28px; }
.quote label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: var(--muted); gap: 4px; }
.quote input, .quote select, .quote textarea { font: 16px Montserrat, 'Kantumruy Pro'; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fbfaf7; color: var(--text); }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form-msg { font-weight: 600; color: var(--gold-dk); }

.foot { background: var(--ink); color: #8a857c; padding: 28px 0; font-size: 13px; letter-spacing: .1em; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .foot-in span { display: flex; align-items: center; gap: 8px; }
.float-call { display: none; }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
#lightbox[hidden] { display: none; } #lightbox img { max-height: 92vh; max-width: 100%; object-fit: contain; }
#lightbox button { position: absolute; top: 12px; right: 18px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer; }

@media (max-width: 960px) {
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); flex-direction: column; padding: 16px; gap: 14px; }
  .menu.open { display: flex; } .burger { display: block; } .call { display: none; }
  .apps, .whys { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr 1fr; } .fins, .order { grid-template-columns: 1fr 1fr; }
  .proj, .contact { grid-template-columns: 1fr; } .proj:nth-child(even) .proj-pics { order: 0; } .proj-pics { height: 340px; }
}
@media (max-width: 600px) {
  .sec { padding: 60px 0; } .apps, .whys { grid-template-columns: 1fr; } .prods { grid-template-columns: 1fr; }
  .brand span { display: none; } .care ul { columns: 1; } .proj-pics { height: 260px; } .quote { padding: 22px; }
  .float-call { display: flex; position: fixed; left: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #fff; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
}

/* nét sóng nước dưới tiêu đề mục — lấy từ dải sóng trong logo */
.sec-h::after { content: ''; display: block; width: 72px; height: 6px; margin-top: 14px; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-lt), var(--water) 50%, var(--gold-dk)); }
.why img { width: 34px; height: 34px; }
.foot-in img { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold-lt), var(--water), var(--gold-dk)); }
