/* ==========================================================================
   ZETACLEAN — REUSABLE SITE COMPONENTS (components.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BADGES, PILLS & TRUST TAGS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid rgba(10, 54, 92, 0.15);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-sale {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  animation: pulseBadge 2.5s infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* --------------------------------------------------------------------------
   2. BUTTON SYSTEM (CTAs)
   -------------------------------------------------------------------------- */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: linear-gradient(135deg, #00a896 0%, #008173 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 168, 150, 0.28);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #02c39a 0%, #009180 100%);
  box-shadow: 0 10px 22px rgba(0, 168, 150, 0.38);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-hotline {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

.btn-hotline:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid rgba(10, 54, 92, 0.2);
}

.btn-ghost:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0050c7 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.3);
}

.btn-zalo:hover {
  background: linear-gradient(135deg, #267fff 0%, #0043aa 100%);
  box-shadow: 0 10px 25px rgba(0, 104, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Chuẩn hóa icon Zalo căn phẳng tuyệt đối */
.btn-zalo-icon,
.btn .btn-zalo-icon,
.bottom-bar .btn-zalo-icon {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: unset;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0a365c 0%, #00a896 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  display: none;
  z-index: 1010;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-service.is-open .nav-dropdown {
  display: block;
}

/* Keep a continuous pointer path between the menu item and its dropdown. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .nav-service:not(.escape-closed):hover .nav-dropdown {
    display: block;
  }
}
.nav-service:not(.escape-closed):focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown {
  animation: service-menu-reveal .16s ease-out;
}
@keyframes service-menu-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown { animation: none; }
}

.nav-service.escape-closed .nav-dropdown {
  display: none;
}

.nav-service {
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.6rem 0.4rem;
  margin-left: -0.4rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-service.is-open .nav-dropdown-toggle {
  transform: rotate(180deg);
  color: var(--primary);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown a:hover {
  background: var(--primary-50);
  color: var(--primary);
  padding-left: 1.25rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-hotline);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.phone-pill:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.45);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.45rem;
  padding: 0.45rem 0.85rem;
  min-height: auto;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
}

.mobile-nav-panel {
  display: none;
}

/* Tablet & Mobile Navigation Breakpoints */
@media (max-width: 1200px) {
  .nav {
    display: none;
  }

  .mobile-nav-panel {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--line);
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
  }

  .mobile-nav-panel.open {
    display: flex;
  }

  .mobile-nav-panel a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    border-radius: var(--radius-sm);
    background: var(--bg);
  }

  .mobile-service-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mobile-service-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
  }

  .mobile-service-group.open > .mobile-service-toggle {
    background: var(--primary-50);
  }

  .mobile-service-submenu {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding-left: 0.75rem;
  }

  .mobile-service-group.open .mobile-service-submenu {
    display: flex;
  }

  .mobile-service-submenu a {
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    font-weight: 500;
  }

  .mobile-service-submenu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   4. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. FORM CONTROLS
   -------------------------------------------------------------------------- */
.form-box {
  display: grid;
  gap: 0.9rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-box label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88rem;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.15);
}

.form-box textarea {
  min-height: 90px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   6. NOTICE BOX
   -------------------------------------------------------------------------- */
.notice {
  background: #fffbeb;
  border-left: 4px solid var(--cta);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. LEAD CTA BANNER
   -------------------------------------------------------------------------- */
.lead-cta {
  background: linear-gradient(135deg, #0a365c 0%, #062138 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lead-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.lead-cta h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-weight: 800;
}

.lead-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.lead-cta .btn-primary {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.lead-cta .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.7);
}

.lead-cta .btn-secondary {
  box-shadow: 0 8px 25px rgba(0, 168, 150, 0.4);
}

.lead-cta .btn-secondary:hover {
  box-shadow: 0 12px 30px rgba(0, 168, 150, 0.6);
}

.lead-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   8. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.35rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   9. CARDS & PROCESS PRIMITIVES
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 168, 150, 0.4);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.card-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.card-actions .btn {
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  min-height: 44px;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.process-step {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(10, 54, 92, 0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
  font-family: inherit;
}

.process-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   12. SITE FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #061b2e;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer .brand {
  color: #ffffff;
}

.footer a {
  color: #cbd5e1;
}

.footer a:hover {
  color: #ffffff;
}

.footer p,
.footer li {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0 0 1.2rem;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}


/* Named confirmation component: equivalent to the former inline desktop styles. */
.confirmation-panel { max-width: 720px; margin: 2rem auto; text-align: center; padding: 3rem 2rem; }
.confirmation-title { margin-top: 1.25rem; }
.confirmation-description { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto 1.5rem; }
.confirmation-notice { margin-bottom: 2rem; display: inline-block; }
.confirmation-actions { justify-content: center; gap: 1rem; }
