/* ==========================================================================
   TT GENESIS - MAIN LAYOUT & SECTIONS STYLES
   ========================================================================== */

/* Section Layout Base */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header .section-subtitle {
  font-size: var(--fs-sm);
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header .section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.bg-dark .section-header .section-title {
  color: var(--color-text-white);
}

.section-header .section-desc {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.bg-dark .section-header .section-desc {
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .section-header .section-title {
    font-size: var(--fs-2xl);
  }
}

/* Header & Sticky Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-dark-border);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-brand img {
  height: 42px;
  width: auto;
}

.logo-brand-text {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-white);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #78BF50 0%, #589A34 100%);
  color: var(--color-text-white);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(120, 191, 80, 0.5);
  background: linear-gradient(135deg, #86CC5D 0%, #63AA3D 100%);
}

.btn-gold {
  background: var(--color-gold-gradient);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.5);
}

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-text-white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-white);
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(120, 191, 80, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(120, 191, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(120, 191, 80, 0); }
}

.pulse-cta {
  animation: pulseGlow 2s infinite;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface-dark);
    border-bottom: 1px solid var(--color-gold);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
  }

  .nav-menu.active {
    display: flex;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .header {
    padding: 0.75rem 0;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-outline-white {
    display: none; /* Ẩn bớt nút gọi thoại trùng lặp trên header mobile vì đã có thanh bottom hub */
  }

  .header-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .logo-brand img {
    height: 32px;
    width: 32px;
  }

  .logo-brand-text {
    font-size: 1.05rem;
  }

  .logo-brand .badge {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }
}
