/* ============================================
   NH INCOM — Page-specific Styles
   Header, Footer, Navigation, and page overrides
   Classic B2B Industrial
   ============================================ */

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  /* ponytail: no shadow on header — clean line separation is more classic */
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-header__logo img,
.site-header__logo svg {
  height: 38px;
  width: auto;
}

/* ── Desktop Navigation ── */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-desktop__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-desktop__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-sm) 0.875rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-700);
  transition: color var(--transition-fast);
  white-space: nowrap;
  /* ponytail: no rounded bg-hover — just color change, cleaner */
}

.nav-desktop__link:hover,
.nav-desktop__link.is-active {
  color: var(--blue-600);
}

/* ponytail: active state uses underline, not bg highlight */
.nav-desktop__link.is-active {
  position: relative;
}
.nav-desktop__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--blue-600);
}

.nav-desktop__link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-desktop__item.is-open .nav-desktop__link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue-600);
  box-shadow: var(--shadow-md);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  /* ponytail: no translateY animation — dropdown just appears/disappears */
}

.nav-desktop__item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown__link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
  color: var(--text-700);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  border-left: 2px solid transparent;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus {
  background: var(--surface);
  color: var(--blue-600);
  border-left-color: var(--blue-600);
}

.nav-dropdown__link--sub {
  font-size: var(--fs-xs);
  color: var(--text-600);
  padding-left: var(--space-xl);
}

/* Header CTA */
.site-header__cta {
  margin-left: var(--space-lg);
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-sm);
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text-900);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Navigation ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile__item {
  border-bottom: 1px solid var(--border-light);
}

.nav-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-900);
}

.nav-mobile__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
  color: var(--text-400);
}

.nav-mobile__item.is-open .nav-mobile__link svg {
  transform: rotate(180deg);
}

.nav-mobile__sub {
  display: none;
  padding-bottom: var(--space-md);
}

.nav-mobile__item.is-open .nav-mobile__sub {
  display: block;
}

.nav-mobile__sub-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-600);
  border-left: 2px solid var(--border-light);
  margin-left: var(--space-sm);
}

.nav-mobile__sub-link:hover {
  color: var(--blue-600);
  border-left-color: var(--blue-600);
}

.nav-mobile__cta {
  margin-top: var(--space-lg);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-900);
  color: var(--white);
  padding-top: var(--space-3xl);
  /* ponytail: top gold accent line — establishes brand presence at footer */
  border-top: 3px solid var(--gold-500);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.site-footer__brand {
  max-width: 300px;
}

.site-footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-md);
}

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

.site-footer__desc {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
}

.site-footer__heading {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__link {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

.site-footer__link:hover {
  color: var(--white);
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.65);
}

.site-footer__contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

.site-footer__contact-item a:hover {
  color: var(--white);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

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

.site-footer__legal a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--white);
}

/* ── Page Hero (non-home) ── */
.page-hero {
  padding-block: var(--space-2xl);
  background: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
  /* ponytail: thinner hero for sub-pages — no need for tall banners */
}

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

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

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

.page-hero__desc {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
}

/* ── Capability Grid ── */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.capability-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.capability-block__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.capability-block__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  color: var(--gold-400);
  flex-shrink: 0;
}

.capability-block__icon svg {
  width: 20px;
  height: 20px;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

.capability-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--navy-700);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Flow Diagram ── */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  min-width: 90px;
}

.flow-step__circle {
  width: 48px;
  height: 48px;
  background: var(--navy-900);
  color: var(--gold-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
}

.flow-step__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  max-width: 110px;
}

.flow-arrow {
  font-size: 1.25rem;
  color: var(--text-400);
  flex-shrink: 0;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
}

/* ── Privacy Page ── */
.privacy-content h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.privacy-content h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.privacy-content p {
  margin-bottom: var(--space-md);
  color: var(--text-600);
  line-height: var(--lh-relaxed);
}

.privacy-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.privacy-content li {
  list-style: disc;
  margin-bottom: var(--space-sm);
  color: var(--text-600);
  line-height: var(--lh-normal);
}

/* ── 404 Page ── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-3xl);
}

.error-page__code {
  font-size: 6rem;
  font-weight: var(--fw-bold);
  color: var(--border);
  line-height: 1;
}

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

.error-page__desc {
  font-size: var(--fs-body);
  color: var(--text-600);
  margin-bottom: var(--space-xl);
  max-width: 420px;
}

/* ── Content Sections ── */
.content-block {
  margin-bottom: var(--space-2xl);
}

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

.content-block h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.content-block p {
  color: var(--text-600);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.content-block ul {
  margin-bottom: var(--space-md);
}

.content-block li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-600);
}

.content-block li::before {
  content: '—';
  color: var(--navy-700);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* ── Image with Caption ── */
.figure {
  margin-bottom: var(--space-xl);
}

.figure__image {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.figure__caption {
  font-size: var(--fs-xs);
  color: var(--text-600);
  font-style: italic;
  margin-top: var(--space-sm);
  text-align: center;
}

/* ── Two Column Content ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col__image {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  object-fit: cover;
}
