/* ============================================
   NH INCOM — Reusable Components
   Classic B2B Industrial — sharp, professional
   ============================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.375rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  min-height: 42px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.btn--primary:hover {
  background-color: var(--navy-700);
  border-color: var(--navy-700);
}

.btn--secondary {
  background-color: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn--secondary:hover {
  background-color: var(--blue-100);
}

.btn--gold {
  background-color: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
}
.btn--gold:hover {
  background-color: #A6841E;
  border-color: #A6841E;
}

.btn--white {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--border);
}
.btn--white:hover {
  background-color: var(--surface);
}

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

.btn--sm {
  padding: 0.4375rem 0.875rem;
  font-size: var(--fs-small);
  min-height: 34px;
}

.btn--lg {
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-body-lg);
}

.btn--full {
  width: 100%;
}

.btn--icon {
  padding: 0.5rem;
  min-width: 42px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
}

.card:hover {
  border-color: var(--blue-600);
}

.card--clickable {
  cursor: pointer;
}
/* ponytail: no translateY — industrial sites don't bounce */

.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--blue-600);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-snug);
  color: var(--text-900);
}

.card__desc {
  font-size: var(--fs-body);
  color: var(--text-600);
  line-height: var(--lh-normal);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-weight: var(--fw-semibold);
  color: var(--blue-600);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.card__link:hover {
  color: var(--navy-700);
}

.card__link::after {
  content: '→';
}

/* Card with image */
.card--img {
  padding: 0;
  overflow: hidden;
}

.card--img .card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card--img .card__body {
  padding: var(--space-lg);
}

/* Feature Card (large) */
.card--feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.card--feature .card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.card--feature .card__body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding-block: var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-600);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--text-400);
  margin-left: var(--space-xs);
}

.breadcrumb__link {
  color: var(--text-600);
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--blue-600);
}

.breadcrumb__current {
  color: var(--text-900);
  font-weight: var(--fw-medium);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding-block: var(--space-4xl);
  background-color: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero--home {
  min-height: 500px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  margin-bottom: var(--space-md);
  /* ponytail: simple top-border accent instead of pill/badge — more classic */
  padding-top: var(--space-sm);
  border-top: 2px solid var(--gold-500);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
}

.hero__desc {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ── Trust Bar ── */
.trust-bar {
  padding-block: var(--space-lg);
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-2xl);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.trust-bar__icon {
  width: 16px;
  height: 16px;
  color: var(--gold-400);
  flex-shrink: 0;
}

/* ── Process Timeline ── */
.timeline {
  position: relative;
  counter-reset: step;
}

.timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.timeline__marker::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy-900);
  color: var(--gold-400);
  border: 2px solid var(--navy-700);
  border-radius: 50%;
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  z-index: 1;
}

.timeline__item:not(:last-child) .timeline__marker::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% - 36px + var(--space-2xl));
  background: var(--border);
}

.timeline__content h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
  padding-top: 0.375rem;
}

.timeline__content p {
  color: var(--text-600);
  font-size: var(--fs-body);
}

/* ── Stats ── */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
}

.stat {
  text-align: center;
  min-width: 140px;
}

.stat__number {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.section--navy .stat__number {
  color: var(--gold-400);
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section--navy .stat__label {
  color: rgba(255,255,255,0.6);
}

/* ── FAQ Accordion ── */
.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-align: left;
  color: var(--text-900);
  cursor: pointer;
  background: none;
  border: none;
}

.accordion__trigger:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.accordion__icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--text-600);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
}

.accordion__panel[aria-hidden="false"] {
  max-height: 500px; /* ponytail: JS sets exact height; CSS-only fallback ceiling */
}

.accordion__content {
  padding-bottom: var(--space-lg);
  color: var(--text-600);
  line-height: var(--lh-relaxed);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--navy-900);
  border-radius: var(--radius-md);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  color: var(--white);
  /* ponytail: solid bg, no gradient — gradients read as AI-generated */
  border: 1px solid var(--navy-700);
}

.cta-banner__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}

.cta-banner__desc {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: var(--lh-relaxed);
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ── Warning Notice ── */
.notice {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.notice--warning {
  background: #FDF8EC;
  border-left: 3px solid var(--warning);
  color: #5C4E1A;
}

.notice--info {
  background: var(--blue-100);
  border-left: 3px solid var(--blue-600);
  color: var(--navy-700);
}

.notice__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ── Case Study ── */
.case-study {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.case-study__header {
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
}

.case-study__tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.case-study__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.case-study__body {
  padding: var(--space-xl);
}

.case-study__section {
  margin-bottom: var(--space-lg);
}

.case-study__section:last-child {
  margin-bottom: 0;
}

.case-study__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.625rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.badge--blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.badge--gold {
  background: var(--gold-100);
  color: #7A6820;
}

.badge--navy {
  background: var(--navy-900);
  color: var(--white);
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: var(--space-xl);
}

/* ── Product Filter ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xl);
}

.filter-bar__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-bar__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-bar__select {
  padding: 0.4375rem 2rem 0.4375rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-small);
  min-height: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235A6B80'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  cursor: pointer;
}

.filter-bar__select:focus {
  outline: 2px solid var(--blue-600);
  outline-offset: -1px;
  border-color: var(--blue-600);
}

.filter-bar__reset {
  align-self: flex-end;
}

/* ── Product Card ── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base);
}

.product-card:hover {
  border-color: var(--blue-600);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface);
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.product-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__type {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.product-card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-snug);
}

.product-card__desc {
  font-size: var(--fs-small);
  color: var(--text-600);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  font-size: var(--fs-xs);
  color: var(--text-600);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
}

.product-card__spec {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.product-card__actions {
  display: flex;
  gap: var(--space-sm);
}

/* ── Form Styles ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-900);
  margin-bottom: var(--space-xs);
}

.form-label--required::after {
  content: ' *';
  color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-body);
  transition: border-color var(--transition-fast);
  min-height: 40px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px rgba(27, 94, 171, 0.12);
}

.form-input.is-error,
.form-textarea.is-error,
.form-select.is-error {
  border-color: var(--error);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%235A6B80'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: var(--space-xs);
}

.form-group.has-error .form-error {
  display: block;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-600);
  margin-top: var(--space-xs);
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-600);
}

.form-check__label {
  font-size: var(--fs-small);
  color: var(--text-600);
  line-height: var(--lh-normal);
}

/* File Upload */
.file-upload {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.file-upload:hover,
.file-upload.is-dragover {
  border-color: var(--blue-600);
  background-color: var(--blue-100);
}

.file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.file-upload__icon {
  width: 36px;
  height: 36px;
  margin-inline: auto;
  color: var(--text-400);
  margin-bottom: var(--space-sm);
}

.file-upload__text {
  font-size: var(--fs-small);
  color: var(--text-600);
}

.file-upload__text strong {
  color: var(--blue-600);
}

.file-upload__list {
  margin-top: var(--space-md);
  text-align: left;
}

.file-upload__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  margin-bottom: var(--space-xs);
}

.file-upload__remove {
  color: var(--error);
  font-size: var(--fs-xs);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-xs);
}

/* Form Status */
.form-status {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
  font-size: var(--fs-small);
}

.form-status--success {
  background: #E8F5EE;
  color: var(--success);
  border: 1px solid var(--success);
}

.form-status--error {
  background: #FDEDED;
  color: var(--error);
  border: 1px solid var(--error);
}

.form-status--demo {
  background: var(--gold-100);
  color: #5C4E1A;
  border: 1px solid var(--gold-500);
}

.form-status.is-visible {
  display: block;
}

/* ── Floating Contact ── */
.floating-contact {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-end;
}

.floating-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-fast);
}

.floating-contact__btn:hover {
  box-shadow: var(--shadow-lg);
}
/* ponytail: no scale transform — keeps the button anchored and professional */

.floating-contact__btn--phone {
  background: var(--blue-600);
  color: var(--white);
}

.floating-contact__btn--zalo {
  background: #0068FF;
  color: var(--white);
}

.floating-contact__btn--rfq {
  background: var(--gold-500);
  color: var(--white);
}

.floating-contact__btn svg {
  width: 20px;
  height: 20px;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  z-index: var(--z-floating);
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
  color: var(--text-600);
}

/* ── Contact Info Card ── */
.contact-info {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.contact-info__item:last-child {
  border-bottom: none;
}

.contact-info__icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__label {
  font-size: var(--fs-xs);
  color: var(--text-600);
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
}

.contact-info__value a {
  color: var(--blue-600);
}

/* ── Loading Spinner ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Honeypot */
.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
