:root{
  /* ===== Light theme (default) ===== */
  --bg: #f6faf7;
  --surface: rgba(255,255,255,.78);
  --surface2: rgba(255,255,255,.92);
  --text: #0f1f17;
  --muted: #4b5f55;
  --muted2: #6b8075;
  --line: rgba(15,31,23,.10);

  /* ===== Brand (Green) ===== */
  --brand: #1fa971;   /* primary green */
  --brand2: #22c58b;  /* accent green */
  --good: #16a34a;

  /* ===== UI ===== */
  --shadow: 0 14px 40px rgba(0,0,0,.08);
  --shadow2: 0 10px 26px rgba(0,0,0,.10);
  --r: 18px;
  --r2: 26px;
  --max: 1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Apple Color Emoji","Segoe UI Emoji";
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}

/* ===== Header / Nav ===== */
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:14px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:900;
  min-width:220px;
}

/* ===== LOGO (FIXED: prevent huge PNG overflow) ===== */
.logo{
  height: 40px;            /* header logo height */
  width: auto;
  display:flex;
  align-items:center;
  overflow:hidden;         /* IMPORTANT: stops logo from spilling */
  border-radius: 12px;
}

/* If you still use the "LG" fallback block somewhere */
.logo span{font-weight:900; color:#fff}

/* Logo image scaling */
.logo img{
  height: 100%;
  width: auto;
  max-width: 180px;        /* prevent super-wide logo */
  object-fit: contain;
  display:block;
}

/* Optional: if you WANT a green badge background behind logo image,
   uncomment these 3 lines:
.logo{
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(31,169,113,.12), rgba(34,197,139,.10));
  border: 1px solid rgba(31,169,113,.18);
}
*/

nav ul{
  display:flex; list-style:none; padding:0; margin:0;
  gap:18px; align-items:center;
  color: var(--muted);
  font-weight:800;
  font-size:14px;
}
nav a{padding:10px 10px; border-radius:12px}
nav a:hover{background: rgba(31,169,113,.10); color: var(--text)}

.nav-actions{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--text);
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(31,169,113,.20);
  transform: translateY(-1px);
}
.btn.primary{
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  box-shadow: 0 16px 30px rgba(31,169,113,.18);
}
.btn.primary:hover{transform: translateY(-1px) scale(1.01)}
.btn.ghost{background: transparent}
.menu-btn{display:none}

/* ===== Language toggle ===== */
.lang{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--muted);
  font-weight:900;
  font-size:13px;
}
.lang button{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--muted);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}
.lang button.active{
  background: rgba(31,169,113,.12);
  border-color: rgba(31,169,113,.22);
  color: var(--text);
}

/* ===== Mobile menu ===== */
.mobile{display:none; padding:10px 0 16px}
.mobile.show{display:block}
.mobile a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  margin-top:10px;
  color: var(--muted);
  font-weight:900;
}
.mobile a:hover{
  color: var(--text);
  background: rgba(31,169,113,.10);
}

/* ===== Pills ===== */
.pill{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background: rgba(31,169,113,.08);
  border: 1px solid rgba(31,169,113,.16);
  color: var(--muted);
  font-size:13px;
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--good);
  box-shadow: 0 0 0 5px rgba(22,163,74,.12);
}

/* ===== Hero ===== */
.hero{padding:54px 0 24px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
}

h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.6px;
}
.lead{
  color: var(--muted);
  font-size:16px;
  line-height:1.65;
  max-width:60ch;
  margin:12px 0 18px;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}

/* ===== Sections / Cards ===== */
.section{padding:26px 0}
.section h2{font-size:26px; margin:0 0 10px; letter-spacing:-.2px}
.section p.sub{margin:0 0 18px; color: var(--muted); line-height:1.7; max-width:76ch}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.card{
  padding:18px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
}
.card:hover{background: rgba(255,255,255,.92)}

.icon{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(31,169,113,.18), rgba(34,197,139,.14));
  border: 1px solid rgba(31,169,113,.18);
}

.card h3{margin:10px 0 8px; font-size:16px}
.card p{margin:0; color: var(--muted); line-height:1.65; font-size:14px}

/* ===== Split / List ===== */
.split{display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}
.list{margin:12px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.li{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
}
.check{
  width:18px; height:18px; border-radius:6px;
  background: rgba(22,163,74,.14);
  border: 1px solid rgba(22,163,74,.24);
  display:grid; place-items:center;
  margin-top:1px;
  flex:0 0 auto;
}
.li b{display:block; font-size:14px; margin-bottom:4px}
.li span{color: var(--muted); font-size:13px; line-height:1.55}

/* ===== Forms ===== */
.form{display:grid; gap:10px; margin-top:12px}
input, textarea, select{
  width:100%;
  border-radius:14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding:12px;
  outline:none;
  font-size:14px;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(31,169,113,.35);
  box-shadow: 0 0 0 4px rgba(31,169,113,.12);
}
textarea{min-height:120px; resize:vertical}
.muted{color: var(--muted2); font-size:12px; line-height:1.6}

/* ===== Map ===== */
.mapwrap{
  border-radius: var(--r2);
  border: 1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.90);
}
.mapwrap iframe{width:100%; height:360px; border:0; display:block}

/* ===== Footer ===== */
footer{
  padding:26px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footgrid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:18px;
}
.footgrid h4{margin:0 0 10px; color: var(--text)}
.tiny{margin-top:14px; color: var(--muted2); font-size:12px}

/* ===== Bilingual helpers ===== */
[data-lang]{display:none}
[data-lang].show{display:block}
.inline{display:inline}

/* ===== Floating CTA (WhatsApp/Zalo/Call/Email) ===== */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 999;
}
.fab a{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.fab a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.96);
  border-color: rgba(31,169,113,.20);
}
.fab small{color: var(--muted); font-weight:800}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  nav ul{display:none}
  .menu-btn{display:inline-flex}
  .brand{min-width:auto}
}

@media (max-width: 520px){
  .fab a span.txt{display:none}
  .mapwrap iframe{height:320px}

  /* logo smaller on mobile */
  .logo{ height: 30px; }
  .logo img{ max-width: 140px; }
}
/* ===== Mobile Header Fix ===== */
@media (max-width: 520px){

  /* header padding gọn hơn */
  .nav{
    padding: 10px 0;
    gap: 10px;
    align-items: flex-start;
  }

  /* cho brand + actions co lại */
  .brand{
    min-width: 0;
    gap: 10px;
    align-items: flex-start;
  }

  /* logo gọn và không làm header cao */
  .logo{
    height: 28px;        /* nhỏ hơn nữa cho hợp logo full chữ */
    overflow: hidden;
    border-radius: 10px;
  }
  .logo img{
    height: 100%;
    max-width: 110px;    /* chặn kéo dài */
  }

  /* dòng tagline dưới brand: ẩn luôn trên mobile cho sạch */
  .brand > div > div:nth-child(2){
    display:none !important;
  }

  /* cụm nút bên phải: cho wrap và giảm size */
  .nav-actions{
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* thu nhỏ nút */
  .btn{
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* ẨN bớt nút trên mobile (giữ lại Menu + Lang) */
  .nav-actions .btn.primary{ display:none !important; } /* Email */
  .nav-actions .btn:not(.ghost):not(.menu-btn){ display:none !important; } /* Get a Quote */

  /* Lang nhỏ lại */
  .lang{
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 12px;
  }
  .lang button{
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  /* mobile menu item spacing */
  .mobile a{
    padding: 11px 12px;
  }

  /* CTA nổi (fab) nhỏ lại chút cho đỡ che nội dung */
  .fab{
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .fab a{
    padding: 10px 12px;
    font-size: 12px;
  }
}
