/* ===========================================
   SMART THIỆN NHÂN v9.5 FINAL
   HEADER: Logo + Slogan + Menu chính + Mobile Fix
   Author: Lê Kiến Giang
   =========================================== */

/* ===== RESET & CƠ BẢN ===== */
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #f9f9f9;
}
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ===== HEADER ===== */
.site-header {
  background: #0b3d26;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* ===== LOGO ===== */
.logo {
  height: 62px;
  width: auto;
  display: block;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }

/* ===== SLOGAN ===== */
.slogan-3d {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 23px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow:
    0 1px 1px rgba(0,0,0,0.3),
    0 2px 2px rgba(0,0,0,0.25),
    0 3px 3px rgba(0,0,0,0.2),
    0 4px 6px rgba(0,0,0,0.15),
    0 0 10px rgba(255,255,255,0.6);
}

/* ===== MENU CHÍNH ===== */
.menu {
  display: flex;
  list-style: none;
  gap: 26px;
  margin-right: 10px;
  position: relative;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 6px;
  display: inline-block;
  transition: 0.3s;
}
.menu a:hover,
.menu a.active {
  color: #00c853;
  border-bottom: 2px solid #fca311;
}

/* ===== MENU CON (SUBMENU DROPDOWN) ===== */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; /* bám theo menu cha */
  min-width: 220px;
  background: rgba(15, 45, 28, 0.96);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  padding: 8px 0;
  z-index: 1001;
}
.dropdown {
  position: relative;
}
.dropdown:hover > .submenu {
  display: block;
}
.submenu li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.submenu li a:hover {
  background: #00c853;
  color: #111;
}

/* ===== MENU ICON (MOBILE) ===== */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  padding: 6px 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: #12161c;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  margin-top: 40px;
}
.footer a { color: #00c853; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===========================================
   SMART THIỆN NHÂN v9.5 – MOBILE MENU FIX
   =========================================== */
@media (max-width: 768px) {

  /* HEADER */
  .header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }

  /* LOGO */
  .logo-left {
    flex: 0 0 auto;
  }
  .logo-left img.logo {
    height: 50px;
    width: auto;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
  }

  /* SLOGAN */
  .slogan-center {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .slogan-3d {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 3px rgba(0,0,0,0.3),
                 0 0 8px rgba(255,255,255,0.8);
  }

  /* ICON MENU */
  .menu-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
  }

  /* MENU MOBILE */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #0b3d26;
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 80px 20px 40px;
    z-index: 1000;
  }
  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
  }

  /* MENU CHÍNH */
  .menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 14px;
  }
  .menu > li {
    position: relative;
  }
  .menu > li > a {
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .menu > li > a:hover {
    color: #00c853;
  }

  /* ICON XỔ XUỐNG */
  .dropdown > a::after {
    content: "▸";
    float: right;
    font-size: 13px;
    transition: transform 0.3s ease;
  }
  .dropdown.open > a::after {
    transform: rotate(90deg);
  }

  /* SUBMENU (KHÔNG LỆCH, KHÔNG CHÓI) */
  .submenu {
    display: none;
    position: static !important;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin: 8px 0 10px 14px;
    padding: 8px 14px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
    animation: submenuFadeIn 0.25s ease forwards;
  }
  .dropdown.open > .submenu {
    display: block !important;
  }

  .submenu li {
    margin-bottom: 6px;
  }
  .submenu li:last-child {
    margin-bottom: 0;
  }
  .submenu li a {
    font-size: 15.5px;
    color: #f1f1f1;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
  }
  .submenu li a:hover {
    color: #00c853;
    background: rgba(0,0,0,0.15);
    transform: translateX(4px);
    transition: all 0.25s ease-in-out;
  }

  /* MỞ NHÓM CHA - HIGHLIGHT */
  .dropdown.open > a {
    color: #00c853;
    text-shadow: 0 0 6px rgba(0,200,83,0.6);
  }

  /* HIỆU ỨNG MƯỢT */
  @keyframes submenuFadeIn {
    from {opacity: 0; transform: translateY(-5px);}
    to {opacity: 1; transform: translateY(0);}
  }
}
/* ===========================================
   SMART THIỆN NHÂN v9.6 - FIX NỀN LOGO TRONG SUỐT (iOS & PC)
   =========================================== */

/* 1️⃣ Đảm bảo mọi lớp nền đều bị loại bỏ */
.logo,
.logo-left img.logo {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* 2️⃣ Tăng độ nét và tương phản nhẹ cho Safari / iPhone */
.logo-left img.logo {
  -webkit-filter: brightness(1.08) contrast(1.15) saturate(1.05);
  filter: brightness(1.08) contrast(1.15) saturate(1.05);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
/* ===========================================
   SMART THIỆN NHÂN v9.7.1 - FIX NỀN TRẮNG LOGO PNG HOÀN TOÀN
   =========================================== */
.logo-left img.logo {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  image-rendering: -webkit-optimize-contrast;
  filter: brightness(1.08) contrast(1.25) saturate(1.05);
  mix-blend-mode: darken; /* ✅ hoà trộn chuẩn, không tạo viền trắng */
  -webkit-filter: brightness(1.08) contrast(1.25) saturate(1.05);
  transition: filter 0.3s ease;
}
.logo-left img.logo:hover {
  filter: brightness(1.15) contrast(1.3);
}

/* 3️⃣ Nếu hình logo là file PNG trong suốt → chống hiện viền trắng */
.site-header,
.header-inner {
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
}

/* 4️⃣ Khi hover logo: chỉ hiệu ứng nhẹ, không làm nổi nền */
.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
}
/* ===========================================
   SMART THIỆN NHÂN v9.8 FINAL - LOGO SÁNG TRONG SUỐT
   =========================================== */
.logo-left img.logo {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: brightness(1.25) contrast(1.25) saturate(1.15); /* ✅ tăng sáng + nét */
  -webkit-filter: brightness(1.25) contrast(1.25) saturate(1.15);
  mix-blend-mode: normal; /* ✅ giữ nguyên màu thật của logo */
  transition: filter 0.35s ease;
}
.logo-left img.logo:hover {
  filter: brightness(1.35) contrast(1.3) saturate(1.2);
}
/* ===========================================
   SMART THIỆN NHÂN v9.8 - FORM LIÊN HỆ
   =========================================== */
.contact-section {
  background: linear-gradient(135deg, #0b3d26, #1b5e20);
  color: #fff;
  border-radius: 10px;
  padding: 50px 30px;
  margin: 50px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: 700px;
}

.contact-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.contact-desc {
  text-align: center;
  font-size: 16px;
  margin-bottom: 25px;
  color: #d7ffd9;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f1f1f1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: border 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00c853;
  background: rgba(255,255,255,0.15);
}

.btn-submit {
  background: linear-gradient(135deg, #00c853, #fca311);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.btn-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0,200,83,0.5);
}

@media (max-width: 768px) {
  .contact-section {
    padding: 35px 18px;
  }
  .contact-title {
    font-size: 22px;
  }
}