/* ==========================================================================
   KDK VIETNAM — 2. LAYOUT MODULE (Container, Header, Nav Drawer, Grid, Footer)
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

/* Grid System */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.top-bar {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info i {
  color: var(--primary);
}

.top-bar-links a {
  color: rgba(255,255,255,0.85);
}

.top-bar-links a:hover {
  color: var(--primary);
}

.nav-container {
  padding: 14px 0;
  background-color: var(--white);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

/* Dropdown navigation styles */
.nav-item.dropdown {
  position: relative;
}

.nav-arrow {
  font-size: 11px;
  margin-left: 4px;
  transition: transform 0.25s ease;
}

.nav-item.dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--border-light);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item i {
  color: var(--primary);
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.dropdown-item:hover {
  background: rgba(230,0,18,0.06);
  color: var(--primary);
}

.nav-drawer-header,
.nav-backdrop {
  display: none;
}

.project-filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 35px;
}

.project-filter-btn {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s ease;
}

.project-filter-btn:hover,
.project-filter-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

@media (min-width: 992px) {
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: var(--transition);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle-line {
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active .nav-toggle-line {
  background-color: #ffffff !important;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ==========================================================================
   ULTRA-PREMIUM CORPORATE FOOTER
   ========================================================================== */
.footer {
  background: var(--grad-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 90px 0 0;
  border-top: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Fix: Clear Footer Logo with white frame against dark background */
.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  filter: none !important;
}

.footer-about-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
  background: var(--grad-primary);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.footer-col-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list li a:hover {
  color: var(--accent-pink);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 17px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-newsletter-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-newsletter-box p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-form-group {
  display: flex;
  gap: 8px;
}

.footer-form-group input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4);
  color: var(--white);
  font-size: 13.5px;
  outline: none;
}

.footer-form-group input:focus {
  border-color: var(--primary);
}

.footer-bottom {
  padding: 28px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  gap: 16px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

/* CONSULTATION CTA SECTION */
.cta-consultation-section {
  padding: 60px 0;
  background: radial-gradient(circle at center, #1b202c, var(--dark-surface));
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.cta-consultation-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-consultation-text {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.cta-consultation-text i {
  font-size: 32px;
  color: var(--primary);
  background: rgba(237, 27, 36, 0.1);
  padding: 18px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(237, 27, 36, 0.2);
  flex-shrink: 0;
}

.cta-consultation-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white) !important;
}

.cta-consultation-text p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.cta-consultation-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cta-consultation-actions .btn {
  white-space: nowrap;
}

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* MOBILE BOTTOM FIXED CONTACT BAR (HIDDEN ON DESKTOP) */
.mobile-bottom-bar {
  display: none !important;
}
