html {
  scroll-behavior: smooth;
}
body {
   font-family: "Inter", sans-serif;
  margin: 0;
  color: #111;
  line-height: 1.6;
}
:root {
  --primary: #0A2540;
  --text: #111;
  --muted: #666;
}

h1, h2, h3 {
  letter-spacing: -0.5px;
}
/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.logo {
  font-weight: bold;
  letter-spacing: 2px;
}
.logo img {
  height: 44px;   /* chuẩn consulting */
  width: auto;
  display: block;
  background: transparent;
}


/* MENU */

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-direction: row;
}
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  position: relative;
}

.menu a:hover {
  opacity: 0.6;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: black;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}
/* BUTTON NAV */
.btn-nav {
  border: 1px solid black;
  padding: 8px 16px;
}
/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}


/* HERO */

.hero-mck {
  padding: 140px 20px;
}

.hero-mck h1 {
  font-size: 56px;
  font-weight: 700;
  max-width: 800px;
  word-break: break-word;
}

.hero-sub {
  font-size: 20px;
  color: #555;
  margin: 20px 0 40px;
}
.trust-text {
  font-size: 20px;
  text-align: center;
  max-width: 800px;
  margin: auto;
  color: #333;
}
/* BUTTON OUTLINE */
.btn-outline {
  border: 1px solid black;
  padding: 12px 24px;
  text-decoration: none;
  color: black;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
}

/* DARK MODE */
.dark {
  background: #111;
  color: #eee;
}

.dark .header {
  background: #111;
  border-color: #333;
}

.dark .card {
  background: #1a1a1a;
  border-color: #333;
}

.dark .section.light {
  background: #1a1a1a;
}

.dark a {
  color: #eee;
}
.dark-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.dark-toggle:hover {
  opacity: 0.6;
}
.dark .btn-primary {
  background: white;
  color: black;
}

.dark .cta {
  background: #000;
}
/* SECTION */
.section {
  padding: 80px 20px;
  scroll-margin-top: 100px;
}

.section.light {
  background: #f7f7f7;
}

.section-title {
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  font-size: 36px;
  font-weight: 600;

}

.section-subtitle {
  color: #666;
  margin-bottom: 40px;
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* CARD */
.card {
  border: 1px solid #eee;
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  padding: 35px;
}

.card:hover {
  transform: translateY(-5px);
  border-color: black;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ICON */
.icon {
  font-size: 24px;
  margin-bottom: 15px;
}

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step span {
  color: #999;
  font-size: 14px;
}

/* CTA */
.cta {
  
  color: white;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #111, #333);
}
.contact-form {
  max-width: 500px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  width: 100%;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: 10px;
}
.card {
  border-radius: 10px;
}

.btn {
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #333;
}

.cta h2 {
  font-size: 36px;
}

.cta p {
  opacity: 0.8;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  max-width: 600px;

  background: white;
  padding: 20px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  z-index: 10001;   /* 🔥 cao hơn menu */
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
/* FOOTER */
.footer.light {
  background: #f7f7f7;
}
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
            /* RESPONSIVE */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  
   .hero-mck {
    padding: 80px 20px;
  }

  .hero-mck h1 {
    font-size: 40px;
    line-height: 1.3;
  }

  .hero-sub {
    font-size: 16px;
  }
}
/* ------Ende Mobile hero------ */

@media (max-width: 768px) {
  .logo img{
    height: 60px;
  }
  .menu-toggle {
    display: block !important;
    margin-left:auto;
    font-size: 50px;
    padding: 5px 10px;
    min-width: 44px;
    min-height: 44px;
    color: black;
  }

  .menu {
    display: flex !important;              /* luôn flex */
    flex-direction: column !important;
    align-items: center;
    position: absolute;
    top: 80px;
    left: 0;              /* FIX */
    width: 100%;      
    min-width: 220px;

    max-height: 0;                         /* 🔥 ẩn */
    opacity: 0;                            /* 🔥 ẩn */
    overflow: hidden;

    background: white;
    padding: 20px 0;
    border-top: 1px solid #eee;
   
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateY(-10px);
    transition: 
      max-height 0.5s ease,
      opacity 0.4s ease,
      padding 0.4s ease;
    pointer-events: none;   /* 🔥 CHẶN CLICK */
  }

  .menu.active {
    max-height: 60vh;      /* 🔥 mở */
    opacity: 1;
    padding: 20px 0;
    pointer-events: auto;   /* 🔥 CHO CLICK LẠI */
    transform: translateY(0);  /* 🔥 trượt xuống */
  }

  .menu li {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;   /* 🔥 đường kẻ */
  padding: 0 0;
  text-align: center;
  width: 100%;
  }
  .menu.active li {
  transform: translateY(0);
  opacity: 1;
  }
  .menu li:last-child {
  border-bottom: none;             /* bỏ dòng cuối */
  }
  .menu a {
  display: block;
  width: 100%;
  padding: 8px 0;
  text-align: center;
  font-size: 17px;   /* 🔥 tăng size */
  font-weight: 500;  /* 🔥 nhìn chắc hơn */
  }
  

  .nav {
    position: relative;  
  }
  .menu .btn-nav {
    padding: 12px 0;
    width: auto;
    text-align: center;
    margin-left: 20px;
    margin-right: 20px;

    border-radius: 6px;   /* 🔥 bo góc */
    margin-top: 5px;      /* 🔥 tách khỏi dòng trên */
  }
  .menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  opacity: 0;                 /* 🔥 ẩn */
  visibility: hidden;

  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 998;
  will-change: opacity;
  }

  .menu-overlay.active {
  opacity: 1;                 /* 🔥 hiện mượt */
  visibility: visible;
  pointer-events: auto;
  }
}
/* ------Ende Mobile------ */
@media (max-width: 768px) {
  .grid,
  .grid-2,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .section {
  padding: 60px 20px;
  }
}