/* ===== GEYA Electric Cambodia — Global Styles ===== */
:root {
  --blue-900: #0a2a5e;
  --blue-800: #0d3a7d;
  --blue-700: #0f4a9c;
  --blue-600: #135cb8;
  --blue-100: #e8f0fb;
  --blue-50:  #f4f8fd;
  --orange:   #f39c12;
  --orange-d: #d9860a;
  --ink:      #1c2733;
  --gray-600: #5a6a7a;
  --gray-300: #d7dee6;
  --gray-100: #eef2f6;
  --white:    #ffffff;
  --shadow-sm: 0 1px 3px rgba(13, 42, 84, .08);
  --shadow-md: 0 4px 16px rgba(13, 42, 84, .10);
  --shadow-lg: 0 12px 32px rgba(13, 42, 84, .16);
  --radius: 10px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Khmer", "Khmer OS", "Khmer OS Battambang", "Leelawadee UI", "Khmer MN", "Hanuman", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Khmer font line-height ===== */
body.lang-kh { line-height: 1.9; font-family: "Noto Sans Khmer", "Khmer OS", "Khmer OS Battambang", "Leelawadee UI", "Khmer MN", "Hanuman", "Segoe UI", Roboto, Arial, sans-serif; }
body.lang-zh { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, Arial, sans-serif; }

/* ===== Top bar ===== */
.topbar {
  background: var(--blue-900);
  color: #cdddf5;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--orange); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-group { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.brand-text .brand-name { font-size: 21px; font-weight: 800; color: var(--blue-900); letter-spacing: 1px; }
.brand-text .brand-sub { font-size: 11.5px; color: var(--gray-600); letter-spacing: .4px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.main-nav > a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav > a.active { color: var(--blue-700); background: var(--blue-100); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex; border: 1.5px solid var(--blue-700); border-radius: 6px; overflow: hidden; font-size: 13px; font-weight: 700;
}
.lang-switch button {
  border: none; background: var(--white); color: var(--blue-700); padding: 7px 12px; cursor: pointer; font-family: inherit;
}
.lang-switch button.on { background: var(--blue-700); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-900); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-800); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--blue-900); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, rgba(10,42,94,.94) 0%, rgba(15,74,156,.82) 55%, rgba(13,58,125,.72) 100%),
              url("../images/banner-1.jpg") center/cover no-repeat;
  padding: 96px 0 110px;
}
.hero-inner { max-width: 720px; }
.hero-kicker {
  display: inline-block; background: rgba(243,156,18,.92); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 4px; margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.18; margin-bottom: 18px; font-weight: 800; }
.hero p { font-size: 18px; color: #dbe7f8; margin-bottom: 32px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: absolute; right: 0; bottom: 0; background: var(--white); color: var(--ink);
  border-radius: 14px 0 0 0; box-shadow: var(--shadow-lg);
  display: flex; gap: 0; overflow: hidden;
}
.hero-stats .stat { padding: 22px 30px; text-align: center; border-right: 1px solid var(--gray-100); }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--blue-700); }
.hero-stats .lbl { font-size: 12.5px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; }

/* ===== Page banner (inner pages) ===== */
.page-banner {
  background: linear-gradient(115deg, rgba(10,42,94,.95), rgba(15,74,156,.88)),
              url("../images/banner-2.jpg") center/cover no-repeat;
  color: #fff; padding: 58px 0; text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.breadcrumb { font-size: 14px; color: #c9d9f2; }
.breadcrumb a { color: #fff; font-weight: 600; }
.breadcrumb a:hover { color: var(--orange); }

/* ===== Sections ===== */
.section { padding: 78px 0; }
.section.alt { background: var(--blue-50); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--orange-d); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--blue-900); margin-bottom: 12px; }
.section-head p { color: var(--gray-600); font-size: 16.5px; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: all .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.icon-badge {
  width: 58px; height: 58px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon-badge svg { width: 30px; height: 30px; }
.card h3 { font-size: 18.5px; font-weight: 700; color: var(--blue-900); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--gray-600); }

/* ===== Product category cards ===== */
.cat-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .25s; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-visual {
  height: 170px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: #fff; padding: 10px;
}
.cat-visual img { max-width: 90%; max-height: 100%; object-fit: contain; }
.cat-card:nth-child(2n) .cat-visual { background: #f7f9fd; }
.cat-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { font-size: 17.5px; color: var(--blue-900); font-weight: 700; margin-bottom: 8px; }
.cat-body p { font-size: 14px; color: var(--gray-600); flex: 1; }
.cat-body .cat-link { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--blue-700); }
.cat-body .cat-link:hover { color: var(--orange-d); }

/* ===== Product rows on products page ===== */
.prod-group { margin-bottom: 56px; }
.prod-group-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  border-left: 5px solid var(--orange); padding-left: 16px;
}
.prod-group-head h2 { font-size: 24px; font-weight: 800; color: var(--blue-900); }
.prod-group-head span { color: var(--gray-600); font-size: 14.5px; }

.prod-item {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow-sm); transition: all .2s;
}
.prod-item:hover { border-color: var(--blue-600); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prod-item .pi-img {
  width: 100%; height: 130px; margin: 0 auto 14px; border-radius: 10px;
  background: #fff; padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.prod-item .pi-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.prod-item h3 { font-size: 15px; font-weight: 700; color: var(--blue-900); margin-bottom: 4px; }
.prod-item .pi-code { font-size: 12px; color: var(--orange-d); font-weight: 700; letter-spacing: .5px; }
.prod-item p { font-size: 13px; color: var(--gray-600); margin-top: 8px; }

/* ===== About split ===== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .eyebrow { color: var(--orange-d); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.split h2 { font-size: 30px; font-weight: 800; color: var(--blue-900); margin-bottom: 16px; }
.split p { color: var(--gray-600); margin-bottom: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink); font-size: 15px; font-weight: 500; }
.check-list svg { width: 20px; height: 20px; flex: none; stroke: var(--orange-d); margin-top: 3px; }

/* ===== Stats strip ===== */
.stats-strip { background: var(--blue-900); color: #fff; padding: 56px 0; }
.stats-strip .grid { text-align: center; }
.stats-strip .num { font-size: 40px; font-weight: 800; color: var(--orange); }
.stats-strip .lbl { font-size: 14px; color: #b9cdf0; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Certifications ===== */
.cert-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cert-pill {
  background: var(--white); border: 2px solid var(--blue-100); border-radius: 999px;
  padding: 10px 26px; font-weight: 800; font-size: 16px; color: var(--blue-800); letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
}

/* ===== News cards ===== */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: all .25s; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-thumb { height: 180px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 12.5px; color: var(--gray-600); margin-bottom: 8px; display: flex; gap: 14px; }
.news-body h3 { font-size: 16.5px; font-weight: 700; color: var(--blue-900); margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: 14px; color: var(--gray-600); flex: 1; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(100deg, var(--blue-800), var(--blue-600));
  color: #fff; padding: 60px 0; text-align: center;
}
.cta-band h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #d5e4fa; margin-bottom: 26px; font-size: 16.5px; }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; }
.info-card { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { color: var(--blue-900); font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 22px; height: 22px; stroke: var(--orange-d); }
.info-row { display: flex; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.info-row .k { color: var(--gray-600); min-width: 92px; font-weight: 600; }
.info-row .v { color: var(--ink); font-weight: 600; }
.info-row a.v:hover { color: var(--blue-700); }

.form-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 22px; color: var(--blue-900); margin-bottom: 6px; }
.form-card > p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }

.map-block { margin-top: 56px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: var(--shadow-md); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-actions { margin-top: 18px; text-align: center; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--blue-900); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; background: var(--white); color: var(--ink); outline: none; transition: border .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-600); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-msg { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 8px; background: #e8f7ee; color: #157347; font-weight: 600; font-size: 14.5px; }

/* ===== Footer ===== */
.site-footer { background: #081f45; color: #b7c8e4; padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: .5px; }
.site-footer p { margin-bottom: 10px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-logo-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 7px 13px; }
.footer-logo-chip img { height: 30px; width: auto; display: block; }
.footer-brand .brand-mark { background: rgba(255,255,255,.12); }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 800; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center;
  font-size: 13px; color: #8ea6cf;
}
.footer-bottom a { color: #cdddf5; }
.footer-bottom a:hover { color: var(--orange); }

/* ===== WhatsApp float ===== */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 90; transition: transform .2s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap iframe { height: 320px; }
  .hero-stats { position: static; border-radius: 14px 14px 0 0; margin-top: 40px; flex-wrap: wrap; }
  .hero { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-100);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 13px 12px; }
  .nav-toggle { display: block; }
  .nav-right .btn { display: none; }
  .brand { gap: 9px; }
  .brand-logo { height: 38px; }
  .brand-text .brand-name { font-size: 16px; letter-spacing: .3px; }
  .brand-text .brand-sub { display: none; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-stats .stat { padding: 16px 18px; min-width: 130px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .tb-group { display: none; }
  .section { padding: 56px 0; }
  .page-banner h1 { font-size: 28px; }
}
