/* =========================================================
   Hans Hall USA — Main Stylesheet
   High-end, industrial-premium aesthetic
   ========================================================= */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:     #0d1b2a;
  --navy-mid: #162032;
  --steel:    #1e3a5f;
  --gold:     #c8972a;
  --gold-lt:  #e0b548;
  --white:    #ffffff;
  --offwhite: #f4f5f7;
  --gray:     #8a9099;
  --gray-lt:  #d4d8de;
  --text:     #1a1e24;
  --font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow:   0 4px 24px rgba(0,0,0,0.18);
  --radius:   6px;
  --transition: 0.3s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin-bottom: 1.1em; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--gray { background: var(--offwhite); }

/* ── Header / Nav ───────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
#site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
#site-header .inner nav.main-nav {
  justify-self: center;
}
.header-phone {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: #e0b548; }
.header-phone svg { flex-shrink: 0; }
#site-header .inner .hamburger {
  justify-self: end;
  display: none;
}
.site-logo img { height: 44px; width: auto; }
.site-logo span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}
.site-logo span em {
  color: var(--gold);
  font-style: normal;
}

nav.main-nav > ul {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  pointer-events: auto;
}
nav.main-nav a,
nav.main-nav .nav-trigger {
  display: block;
  padding: 8px 16px;
  color: var(--gray-lt);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
nav.main-nav a:hover,
nav.main-nav a.active,
nav.main-nav .nav-trigger:hover,
nav.main-nav .nav-trigger.active { color: var(--gold); background: rgba(200,151,42,0.1); }

/* ── Dropdown ────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  overflow: hidden;
  z-index: 500;
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--gray-lt);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: none;
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-menu li:last-child a { border-bottom: none; }
.nav-dropdown-menu li a:hover { color: var(--gold); background: rgba(200,151,42,0.08); }

.mobile-phone-item { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  outline: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13,27,42,0.92) 40%, rgba(30,58,95,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 520px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,151,42,0.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Trust Bar ──────────────────────────────────────────── */
.trust-bar {
  background: var(--gold);
  padding: 16px 0;
}
.trust-bar .inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.trust-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Product Grid ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-lt);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}
.product-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 24px; }
.product-card-body h3 { margin-bottom: 10px; color: var(--navy); }
.product-card-body p { font-size: .9rem; color: var(--gray); margin-bottom: 16px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }

/* ── Parts Table ────────────────────────────────────────── */
.parts-section { margin-top: 48px; }
.parts-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--steel);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 0;
}
.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-bottom: 36px;
}
.parts-table thead tr { background: var(--navy); color: var(--white); }
.parts-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.parts-table tbody tr:nth-child(even) { background: var(--offwhite); }
.parts-table tbody tr:hover { background: rgba(200,151,42,0.07); }
.parts-table td { padding: 11px 16px; border-bottom: 1px solid var(--gray-lt); }
.parts-table td:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--steel);
}
.note-row td {
  background: rgba(200,151,42,0.08) !important;
  font-style: italic;
  font-size: .82rem;
  color: var(--gray);
}
.part-img-thumb {
  display: block;
  max-height: 96px;
  max-width: 112px;
  width: auto;
  border-radius: 5px;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .15s, transform .15s;
}
.part-img-thumb:hover { opacity: .85; transform: scale(1.04); }

/* ── Lightbox ───────────────────────────────────────────── */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lb-overlay.open { display: flex; }
#lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
#lb-img {
  display: block;
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  object-fit: contain;
}
#lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ── Logo Rotator ───────────────────────────────────────── */
.logo-rotator-wrap {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
}
.logo-rotator-wrap::before,
.logo-rotator-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logo-rotator-wrap::before { left: 0; background: linear-gradient(to right, var(--offwhite), transparent); }
.logo-rotator-wrap::after  { right: 0; background: linear-gradient(to left, var(--offwhite), transparent); }
.logo-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scroll-logos 40s linear infinite;
  width: max-content;
}
.logo-track:hover { animation-play-state: paused; }
.logo-item {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
}
.logo-item img, .logo-item object {
  max-height: 56px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: opacity(0.85);
  transition: filter var(--transition), transform var(--transition);
}
.logo-item:hover img, .logo-item:hover object {
  filter: opacity(1);
  transform: scale(1.08);
}
@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── About / Content Split ──────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.split-text p { color: #444; }

/* ── Stats ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.stat-item {
  background: var(--steel);
  padding: 36px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.stat-label { font-size: .82rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: .1em; }

/* ── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}
.contact-card {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci-icon {
  width: 42px; height: 42px;
  background: rgba(200,151,42,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; color: var(--gold); }
.ci-body strong {
  display: block;
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}
.ci-body a { color: var(--steel); font-weight: 600; }
.ci-body a:hover { color: var(--gold); }

.contact-form .form-row { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--offwhite);
  transition: border-color var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 130px; }

/* ── Product Detail ─────────────────────────────────────── */
.product-header {
  background: var(--navy);
  padding: 60px 0;
  color: var(--white);
}
.product-header h1 { color: var(--white); }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 36px;
}
.product-hero-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.product-hero-img img { width: 100%; height: auto; }
.product-meta p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 24px; }
.product-badge {
  display: inline-block;
  background: rgba(200,151,42,0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 5px 14px;
  border-radius: 3px;
  font-size: .72rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Footer ─────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand .logo-text em { color: var(--gold); font-style: normal; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: .875rem; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  padding: 72px 0;
  text-align: center;
  color: var(--white);
}
.page-header h1 { color: var(--white); }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span::before { content: '/'; margin-right: 8px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .split-section, .contact-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
  #site-header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header-phone { display: none; }
  #site-header .inner .hamburger { display: flex; margin-left: auto; }
  nav.main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    padding: 24px 20px 40px;
    flex-direction: column;
    overflow-y: auto;
    z-index: 990;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav > ul { flex-direction: column; gap: 4px; width: 100%; }
  nav.main-nav > ul > li { width: 100%; }
  nav.main-nav a,
  nav.main-nav .nav-trigger {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-dropdown-menu { position: static; display: block; box-shadow: none; border: none; padding-left: 16px; transform: none; }
  .nav-trigger { pointer-events: none; }
  .nav-trigger::after { content: none; }
  .mobile-phone-item { display: block; border-bottom: 1px solid rgba(200,151,42,.35) !important; margin-bottom: 8px; padding-bottom: 4px; }
  .mobile-phone-link { color: var(--gold) !important; font-weight: 700; font-size: 1.1rem !important; display: flex; align-items: center; gap: 10px; }
  .mobile-phone-item ~ li:first-of-type { margin-top: 4px; }
  .hamburger { display: flex; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 70vh; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar .inner { flex-direction: column; gap: 12px; }
  .product-grid { grid-template-columns: 1fr; }
}
