/* Kedi Building Materials — new brand site */
:root {
  --green: #579b00;
  --green-dark: #17432a;
  --green-deep: #0e2d1c;
  --lime: #8cb766;
  --lime-soft: #e8f2df;
  --red: #c83000;
  --ink: #1b2a22;
  --muted: #6c7a70;
  --line: #e4ebe3;
  --paper: #f7f9f5;
  --white: #fff;
  --shadow: 0 18px 50px rgba(18, 60, 32, .10);
  --shadow-sm: 0 8px 26px rgba(18, 60, 32, .07);
  --radius: 18px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-inner { height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 54px; width: auto; object-fit: contain; }
.brand-text { display: none; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  position: relative; padding: 10px 15px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #33463a;
  transition: .25s ease;
}
.main-nav > a:hover, .main-nav > a.active { color: var(--green); background: var(--lime-soft); }
.main-nav > a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px;
  border-radius: 3px; background: var(--green); transform: translateX(-50%);
}
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 700; color: var(--green-dark); cursor: pointer; transition: .2s;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green); }
.header-qr { position: relative; }
.header-qr > button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--lime-soft);
  cursor: pointer; display: grid; place-items: center; color: var(--green-dark); font-size: 17px;
}
.qr-pop {
  position: absolute; top: 48px; right: 0; width: 176px; padding: 14px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: .25s;
}
.header-qr:hover .qr-pop, .header-qr.open .qr-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.qr-pop img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 6px; }
.qr-pop p { margin: 0; font-size: 12px; color: var(--muted); }
.menu-btn { display: none; border: 0; background: none; font-size: 24px; color: var(--green-dark); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(440px, 52vw, 680px); overflow: hidden; background: var(--green-deep); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,42,24,.30), transparent 70%); pointer-events: none; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-card { color: #fff; max-width: 720px; padding: 30px 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .22em; color: #d8edc8; text-transform: uppercase; margin-bottom: 20px; }
.hero-kicker::before { content: ''; width: 34px; height: 2px; background: var(--lime); }
.hero-card h1 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.22; margin: 0 0 12px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 6px 26px rgba(0,0,0,.28); }
.hero-card .en { font-size: clamp(13px, 1.4vw, 19px); color: #cfe6bd; margin: 0 0 26px; letter-spacing: .03em; }
.hero-card p { font-size: clamp(15px, 1.6vw, 20px); margin: 0 0 32px; color: #f2f7f1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px;
  border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .25s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(87,155,0,.28); }
.btn-primary:hover { background: #6cb000; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: #fff; color: var(--green-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.hero-dots { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button { width: 30px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero-dots button.active { width: 56px; background: var(--lime); }

/* ---------- common sections ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 64px 0; }
.section-white { background: #fff; }
.section-tint { background: linear-gradient(180deg, #fff, var(--paper)); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .24em; color: var(--green); text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--green); }
.sec-head h2 { font-size: clamp(27px, 3vw, 40px); margin: 0; line-height: 1.25; letter-spacing: .01em; }
.sec-head p { margin: 10px 0 0; color: var(--muted); max-width: 620px; }
.sec-link { color: var(--green); font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sec-link:hover { gap: 10px; }

/* stats strip */
.stats { background: var(--green-deep); color: #fff; }
.stats-inner { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); align-items: center; gap: 20px; padding: 34px 0; }
.stats-lead strong { display: block; font-size: 23px; letter-spacing: .04em; }
.stats-lead span { color: #bcd4ae; font-size: 13px; }
.stat { border-left: 1px solid rgba(255,255,255,.16); padding-left: 22px; }
.stat b { display: block; font-size: 30px; color: var(--lime); line-height: 1.2; }
.stat span { font-size: 13px; color: #cfe0c9; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); min-height: 270px; transition: .35s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 270px; object-fit: cover; transition: transform .6s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,45,25,.05) 30%, rgba(8,38,22,.88)); }
.cat-card .body { position: absolute; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.cat-card .body h3 { margin: 0 0 4px; font-size: 22px; }
.cat-card .body p { margin: 0; font-size: 13px; color: #d8e8d2; }
.cat-card .body .count { display: inline-block; margin-top: 12px; background: var(--green); padding: 5px 12px; border-radius: 999px; font-size: 12px; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .35s; border: 1px solid var(--line); }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prod-thumb { aspect-ratio: 1/1; background: #f2f5f0; display: grid; place-items: center; overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-thumb img { transform: scale(1.05); }
.prod-body { padding: 18px 18px 20px; }
.prod-body h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.45; }
.prod-body p { margin: 0; color: var(--muted); font-size: 13px; }
.prod-body .tag { display: inline-block; font-size: 11px; color: var(--green); background: var(--lime-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* advantages */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: .3s; }
.adv-card:hover { border-color: var(--lime); transform: translateY(-4px); }
.adv-icon { width: 62px; height: 62px; border-radius: 18px; background: var(--lime-soft); display: grid; place-items: center; margin-bottom: 20px; }
.adv-icon img { width: 40px; height: 40px; object-fit: contain; }
.adv-card h3 { margin: 0 0 10px; font-size: 20px; }
.adv-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* about split */
.about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.about-visual img { width: 100%; height: 460px; object-fit: cover; }
.about-badge { position: absolute; right: 20px; bottom: 20px; background: var(--green); color: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
.about-badge b { font-size: 24px; display: block; }
.about-badge span { font-size: 12px; opacity: .85; }
.about-copy p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.about-copy h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 18px; line-height: 1.25; }
.about-quote { border-left: 3px solid var(--green); padding-left: 18px; font-weight: 700; color: var(--green-dark); margin: 24px 0; }

/* cases */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-sm); }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover img { transform: scale(1.08); }
.case-card .cap { position: absolute; inset: auto 0 0; padding: 28px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 14px; font-weight: 600; }

/* news */
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; transition: .25s; }
.news-item:hover { border-color: var(--lime); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.news-date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.news-date b { display: block; font-size: 24px; color: var(--green); line-height: 1; }
.news-date span { font-size: 12px; color: var(--muted); }
.news-item h3 { margin: 0 0 5px; font-size: 17px; }
.news-item p { margin: 0; color: var(--muted); font-size: 13px; }
.news-item .arrow { color: var(--green); font-size: 20px; }

/* contact band */
.contact-band { background: linear-gradient(120deg, var(--green-deep), #1f5a35); color: #fff; position: relative; overflow: hidden; }
.contact-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(140,183,102,.12); right: -100px; top: -160px; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; position: relative; }
.contact-inner h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 14px; }
.contact-inner p { color: #cfe3c6; margin: 0 0 24px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 14px; color: #e6f1e1; }
.qr-box { background: #fff; border-radius: 18px; padding: 14px; text-align: center; color: var(--ink); box-shadow: var(--shadow); }
.qr-box img { width: 150px; height: 150px; object-fit: contain; }
.qr-box p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* footer */
.site-footer { background: #0c2417; color: #cfdccf; padding: 66px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand .footer-logo { height: 42px; object-fit: contain; }
.footer-brand p { color: #9ab09b; margin: 6px 0; font-size: 13px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer-col a { display: block; color: #a9bda9; margin-bottom: 9px; font-size: 13px; }
.footer-col a:hover { color: var(--lime); }
.copyright { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 18px; font-size: 12px; color: #8fa68f; flex-wrap: wrap; }

/* inner page banner */
.page-banner { height: 280px; position: relative; background: var(--green-deep); overflow: hidden; display: flex; align-items: center; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-banner .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,44,24,.94), rgba(9,44,24,.5)); }
.page-banner .inner { position: relative; color: #fff; }
.page-banner h1 { font-size: clamp(30px, 4vw, 48px); margin: 8px 0 6px; }
.page-banner .en { color: #c9e0bd; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; }
.crumb { font-size: 12px; color: #b9cfb2; }
.crumb a:hover { color: #fff; }

/* filters & gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.filter-bar button { border: 1px solid var(--line); background: #fff; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: #405146; font-size: 14px; transition: .2s; }
.filter-bar button:hover, .filter-bar button.active { background: var(--green); border-color: var(--green); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; cursor: pointer; transition: .25s; }
.gallery-grid img:hover { transform: scale(1.04); box-shadow: var(--shadow-sm); }

/* detail */
.detail-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: start; }
.detail-img { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); }
.detail-img img { width: 100%; border-radius: 12px; }
.detail-info h1 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 18px; line-height: 1.3; }
.detail-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.detail-info p { color: var(--muted); font-size: 15px; }
.detail-nav { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow-sm); }
.article-body h2 { font-size: 22px; margin: 0 0 16px; }
.article-body p { color: #46584b; font-size: 15px; line-height: 2; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin: 0 0 20px; font-size: 20px; }
.contact-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.contact-row b { min-width: 76px; color: var(--green-dark); }
.contact-row span { color: var(--muted); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,20,11,.92); z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; top: 24px; right: 30px; color: #fff; background: none; border: 0; font-size: 38px; cursor: pointer; }

/* admin */
.admin-login { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 40px 20px; }
.login-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 38px; box-shadow: var(--shadow); text-align: center; }
.login-card img { height: 60px; margin: 0 auto 18px; }
.login-card h1 { font-size: 24px; margin: 0 0 8px; }
.login-card p { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.code-input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 14px; outline: none; }
.code-input:focus { border-color: var(--green); }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 82px); }
.admin-side { background: var(--green-deep); color: #d5e6cf; padding: 26px 16px; }
.admin-side h3 { color: #fff; margin: 4px 10px 22px; font-size: 17px; }
.admin-side button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #cfe0c9; padding: 12px 14px; border-radius: 10px; cursor: pointer; margin-bottom: 6px; }
.admin-side button:hover, .admin-side button.active { background: rgba(140,183,102,.22); color: #fff; }
.admin-main { padding: 34px; max-width: 1100px; }
.admin-main h2 { margin: 0 0 6px; font-size: 26px; }
.admin-main .hint { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.admin-panel { display: none; } .admin-panel.active { display: block; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #405146; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; outline: none; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 96px; resize: vertical; }
.upload-row { display: flex; gap: 16px; align-items: flex-start; }
.upload-preview { width: 132px; height: 132px; border: 2px dashed var(--line); border-radius: 12px; object-fit: cover; background: #f7faf6; }
.save-bar { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.save-msg { font-size: 13px; color: var(--green); }
.err-msg { font-size: 13px; color: var(--red); }
.admin-list { display: grid; gap: 10px; margin-top: 16px; }
.admin-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; }
.admin-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f4f7f2; }
.admin-item span { flex: 1; font-size: 13px; }
.admin-item button { border: 0; background: var(--lime-soft); color: var(--green-dark); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.status-pill { display: inline-block; background: var(--lime-soft); color: var(--green-dark); padding: 4px 12px; border-radius: 999px; font-size: 12px; }

/* responsive */
@media (max-width: 1100px) {
  .stats-inner { grid-template-columns: repeat(4, 1fr); } .stats-lead { grid-column: 1/-1; }
  .prod-grid, .case-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .container { width: min(100% - 32px, var(--max)); }
  .menu-btn { display: block; }
  .main-nav { position: absolute; top: 82px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a { text-align: left; }
  .header-inner { height: 70px; }
  .brand img { height: 46px; }
  .section { padding: 60px 0; }
  .cat-grid, .adv-grid, .prod-grid, .case-grid, .about-split, .detail-wrap, .contact-grid, .contact-inner { grid-template-columns: 1fr; }
  .about-visual img { height: 300px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .footer-logo { height: 40px; }
  .footer-col:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .footer-col:last-child h4 { width: 100%; margin-bottom: 4px; }
  .footer-col:last-child p { margin: 0 0 6px; }
  .footer-col:last-child img { width: 120px; height: 120px; }
  .news-item { grid-template-columns: 70px 1fr; }
  .news-item .arrow { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; }
  .admin-side h3 { width: 100%; margin: 0 0 6px 8px; }
  .admin-side button { width: auto; }
  .admin-main { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card h1 { font-size: 30px; }
  .sec-head { align-items: flex-start; }
  .news-date b { font-size: 19px; }
}
