/* ============================================
   CÔNG TY TNHH HIỆP NHẤT - AI FDT
   Theme: Cam - Trắng
   ============================================ */
:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.top-bar {
  background: var(--orange-600);
  color: var(--white);
  padding: 6px 0;
  font-size: 0.82em;
  text-align: center;
}
.top-bar span { margin: 0 12px; }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}
nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
nav .brand {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--orange-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .brand span { color: var(--gray-800); }
nav .nav-links { display: flex; align-items: center; gap: 24px; }
nav .nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9em;
  font-weight: 500;
  transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--orange-600); }
nav .nav-links .btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
nav .nav-links .btn-outline {
  border: 2px solid var(--orange-500);
  color: var(--orange-600);
  background: transparent;
}
nav .nav-links .btn-outline:hover {
  background: var(--orange-500);
  color: var(--white);
}
nav .nav-links .btn-primary {
  background: var(--orange-500);
  color: var(--white);
  border: none;
}
nav .nav-links .btn-primary:hover { background: var(--orange-600); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--gray-700);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-800));
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
}
.hero h1 { font-size: 2.8em; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--orange-200); }
.hero p {
  font-size: 1.15em;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.7;
}
.hero .hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .hero-btns .btn {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.hero .hero-btns .btn-white {
  background: var(--white);
  color: var(--orange-600);
}
.hero .hero-btns .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.hero .hero-btns .btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
}
.hero .hero-btns .btn-outline-white:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ============================================
   SECTION COMMON
   ============================================ */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-800);
}
.section-subtitle {
  text-align: center;
  font-size: 1.05em;
  color: var(--gray-500);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FEATURES / CAPABILITIES
   ============================================ */
#features { background: var(--gray-50); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--orange-300);
}
.feature-card .icon {
  font-size: 2.2em;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}
.feature-card p {
  font-size: 0.9em;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   ABOUT COMPANY
   ============================================ */
.company-intro {
  display: flex;
  gap: 48px;
  align-items: center;
}
.company-intro .text { flex: 1; }
.company-intro .text h2 {
  font-size: 1.8em;
  color: var(--orange-600);
  margin-bottom: 16px;
}
.company-intro .text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}
.company-intro .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 0 0 280px;
}
.company-intro .stat {
  background: var(--orange-50);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--orange-100);
}
.company-intro .stat .num {
  font-size: 2em;
  font-weight: 700;
  color: var(--orange-600);
}
.company-intro .stat .label {
  font-size: 0.82em;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   DEPLOYMENT SECTION
   ============================================ */
/* ============================================
   PRICING / PACKAGES
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.pricing-card.featured {
  border-color: var(--orange-500);
  box-shadow: 0 8px 30px rgba(249,115,22,0.12);
  transform: scale(1.03);
}
.pricing-card .name { font-size: 1.2em; font-weight: 600; color: var(--orange-600); margin-bottom: 8px; }
.pricing-card .price { font-size: 2.4em; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.pricing-card .price-sub { font-size: 0.85em; color: var(--gray-400); margin-bottom: 20px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-card ul li {
  padding: 6px 0;
  font-size: 0.88em;
  color: var(--gray-600);
}
.pricing-card ul li::before { content: '✅ '; }
.pricing-card .btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 10px;
  background: var(--orange-500);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.pricing-card .btn:hover { background: var(--orange-600); }

/* ============================================
   CONTACT / FOOTER
   ============================================ */
#contact {
  background: var(--gray-900);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 { color: var(--orange-400); margin-bottom: 16px; font-size: 1.2em; }
.contact-info p { color: var(--gray-400); margin-bottom: 8px; font-size: 0.95em; }
.contact-info .info-item { margin-bottom: 16px; }
.contact-info .info-item strong { color: var(--white); display: block; margin-bottom: 4px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-700);
  background: var(--gray-800);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.9em;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  padding: 12px 32px;
  background: var(--orange-500);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: var(--orange-600); }

.footer-bottom {
  background: #0f172a;
  padding: 24px;
  text-align: center;
  font-size: 0.85em;
  color: var(--gray-500);
}

/* ============================================
   CHATBOT
   ============================================ */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249,115,22,0.3);
  z-index: 200;
  transition: all 0.3s;
}
.chatbot-toggle:hover { transform: scale(1.1); background: var(--orange-600); }
.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 500px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.chatbot-window.open { display: flex; }
.chatbot-header {
  background: var(--orange-500);
  color: var(--white);
  padding: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2em;
  cursor: pointer;
  opacity: 0.8;
}
.chatbot-header button:hover { opacity: 1; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
}
.chatbot-messages .msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88em;
  max-width: 80%;
  line-height: 1.5;
}
.chatbot-messages .msg.bot {
  background: var(--gray-100);
  color: var(--gray-700);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-messages .msg.user {
  background: var(--orange-500);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot-messages .msg.typing { font-style: italic; opacity: 0.7; }
.chatbot-input {
  padding: 12px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 8px;
}
.chatbot-input input {
  flex: 1;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88em;
  outline: none;
}
.chatbot-input input:focus { border-color: var(--orange-400); }
.chatbot-input button {
  padding: 10px 16px;
  background: var(--orange-500);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88em;
}
.chatbot-input button:hover { background: var(--orange-600); }

/* ============================================
   VISITOR COUNTER
   ============================================ */
.counter-bar {
  background: var(--orange-50);
  padding: 12px;
  text-align: center;
  font-size: 0.85em;
  color: var(--gray-600);
  border-top: 1px solid var(--orange-100);
}
.counter-bar strong { color: var(--orange-600); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  nav .nav-links.open { display: flex; }
  .hero h1 { font-size: 2em; }
  .hero { padding: 60px 20px 50px; }
  section { padding: 50px 20px; }
  .company-intro { flex-direction: column; }
  .company-intro .stats { flex: none; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .chatbot-window { width: calc(100% - 32px); right: 16px; bottom: 80px; }
  .pricing-card.featured { transform: none; }
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
}
.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.auth-card h2 { text-align: center; margin-bottom: 24px; color: var(--orange-600); }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card label { display: block; font-size: 0.85em; font-weight: 500; margin-bottom: 4px; color: var(--gray-600); }
.auth-card input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.9em;
}
.auth-card input:focus { outline: none; border-color: var(--orange-400); }
.auth-card button {
  width: 100%;
  padding: 12px;
  background: var(--orange-500);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
}
.auth-card button:hover { background: var(--orange-600); }
.auth-card .auth-link { text-align: center; margin-top: 16px; font-size: 0.85em; }
.auth-card .auth-link a { color: var(--orange-500); text-decoration: none; }
.auth-card .error { color: #dc2626; font-size: 0.85em; margin-bottom: 12px; text-align: center; }

/* Zalo button */
.zalo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0068ff;
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85em;
}
.zalo-btn:hover { background: #0052cc; }

/* Clickable feature cards */
.feature-card { cursor: pointer; position: relative; }
.feature-card::after {
  content: '→';
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 1.2em;
  color: var(--orange-400);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.feature-card:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

/* Ensure Inter font loads with local fallback */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Fix section spacing on mobile */


/* Responsive: 3 → 2 → 1 columns */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
}
/* Row - 3 columns */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-4 { width: 33.333%; padding: 0 12px; margin-bottom: 24px; box-sizing: border-box; }
.card-feature {
  background: var(--white); border-radius: 12px; padding: 28px;
  border: 1px solid var(--gray-200); transition: all 0.3s; height: 100%;
}
.card-feature:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: var(--orange-300); }
.card-feature .icon { font-size: 2.2em; margin-bottom: 12px; }
.card-feature h3 { font-size: 1.1em; font-weight: 600; margin-bottom: 8px; color: var(--gray-800); }
.card-feature p { font-size: 0.9em; color: var(--gray-500); line-height: 1.6; }
@media (max-width: 992px) { .col-4 { width: 50%; } }
@media (max-width: 576px) { .col-4 { width: 100%; } }
