/*
 * H&H Sales — merged-site styles
 * Nav dropdowns + front-page sections. Loads after style.css.
 */

/* ============================================
   HEADER / NAV DROPDOWNS
   ============================================ */
.nav-main { gap: 0; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a,
.nav-item > .nav-dd-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hh-white);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item > a:hover,
.nav-item > a.active,
.nav-item:hover > .nav-dd-label,
.nav-item > .nav-dd-label:focus-visible {
  color: var(--hh-yellow);
}

.nav-dd-label .chev {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-dd-label .chev,
.nav-item.is-open .nav-dd-label .chev { transform: rotate(180deg); }

.nav-dd {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: 0.75rem 0 0.9rem;
  background: var(--hh-black-deep);
  border-top: 3px solid var(--hh-yellow);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}

.nav-item:hover > .nav-dd,
.nav-item:focus-within > .nav-dd,
.nav-item.is-open > .nav-dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dd a {
  display: block;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--hh-gray-300);
  white-space: nowrap;
}

.nav-dd a:hover { color: var(--hh-yellow); background: rgba(255, 255, 255, 0.04); }

.nav-dd-kicker {
  display: block;
  padding: 0.8rem 1.4rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hh-gray-500);
}

.nav-dd-kicker:first-child { padding-top: 0.3rem; }

@media (max-width: 1100px) {
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 1.25rem;
    background: var(--hh-black-deep);
    border-bottom: 3px solid var(--hh-yellow);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .nav-main.is-open { display: flex; }

  .nav-item { flex-direction: column; align-items: stretch; }

  .nav-item > a,
  .nav-item > .nav-dd-label {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
  }

  .nav-dd {
    position: static;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-item.is-open > .nav-dd { display: block; }
}

/* ============================================
   FRONT PAGE — SPLIT HERO
   ============================================ */
.hh2-hero {
  background: var(--hh-black-deep);
  color: var(--hh-white);
}

.hh2-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hh-gray-500);
  text-align: center;
}

.hh2-hero-topbar em {
  font-style: normal;
  color: var(--hh-yellow);
}

.hh2-hero-topbar::before,
.hh2-hero-topbar::after {
  content: '';
  flex: 0 1 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.hh2-panels {
  position: relative;
  display: flex;
  min-height: clamp(520px, 74vh, 760px);
}

.hh2-panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: flex 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hh2-panel--outdoor {
  clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
  margin-right: -42px;
}

.hh2-panel--truck {
  clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -42px;
}

@media (min-width: 861px) {
  .hh2-panels:hover .hh2-panel { flex: 0.88; }
  .hh2-panels .hh2-panel:hover,
  .hh2-panels .hh2-panel:focus-within { flex: 1.3; }
}

/* designed fallback when a panel has no photo yet */
.hh2-panel--truck:not(:has(.hh2-panel-img)) {
  background:
    repeating-linear-gradient(-45deg, rgba(254, 221, 0, 0.05) 0 2px, transparent 2px 26px),
    radial-gradient(120% 90% at 85% 10%, #2d2d2d 0%, #0d0d0d 65%);
}

.hh2-panel--outdoor:not(:has(.hh2-panel-img)) {
  background:
    repeating-linear-gradient(45deg, rgba(254, 221, 0, 0.05) 0 2px, transparent 2px 26px),
    radial-gradient(120% 90% at 15% 10%, #2d2d2d 0%, #0d0d0d 65%);
}

.hh2-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hh2-panel:hover .hh2-panel-img { transform: scale(1.08); }

.hh2-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.30) 0%, rgba(13, 13, 13, 0.12) 45%, rgba(13, 13, 13, 0.82) 100%);
}

.hh2-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 620px;
}

.hh2-panel--truck .hh2-panel-content { margin-left: auto; text-align: right; }
.hh2-panel--truck .hh2-panel-content .eyebrow { flex-direction: row-reverse; }
.hh2-panel--truck .hh2-panel-actions { justify-content: flex-end; }

.hh2-panel h2 {
  color: var(--hh-white);
  font-size: clamp(2.2rem, 4.5vw, 3.9rem);
  line-height: 0.98;
  margin-bottom: 0.75rem;
}

.hh2-panel p {
  color: var(--hh-gray-300);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.hh2-panel--truck p { margin-left: auto; }

.hh2-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hh2-seam {
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 50%;
  width: 5px;
  background: var(--hh-yellow);
  transform: rotate(6.6deg);
  transform-origin: center;
  z-index: 5;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hh2-panels { flex-direction: column; }

  .hh2-panel--outdoor,
  .hh2-panel--truck {
    clip-path: none;
    margin: 0;
    min-height: 380px;
  }

  .hh2-panel--truck .hh2-panel-content { margin-left: 0; text-align: left; }
  .hh2-panel--truck .hh2-panel-content .eyebrow { flex-direction: row; }
  .hh2-panel--truck .hh2-panel-actions { justify-content: flex-start; }

  .hh2-seam {
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 4px;
    transform: none;
    position: relative;
  }
}

/* ============================================
   TRUST STRIP
   ============================================ */
.hh2-trust {
  background: var(--hh-white);
  border-bottom: 1px solid var(--hh-gray-200);
}

.hh2-trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.4rem clamp(1.25rem, 3vw, 3rem);
}

.hh2-trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-gray-700);
}

.hh2-trust-item::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--hh-yellow);
}

@media (max-width: 900px) {
  .hh2-trust-inner { grid-template-columns: repeat(2, 1fr); row-gap: 0.9rem; }
}

/* ============================================
   SECTION HEADERS (shared)
   ============================================ */
.hh2-sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.hh2-sechead h2 { margin-bottom: 0; }

.hh2-sechead-link {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hh-black);
  border-bottom: 2px solid var(--hh-yellow);
  padding-bottom: 0.3rem;
  white-space: nowrap;
}

.hh2-sechead-link:hover { color: var(--hh-yellow-dark); }

.section--dark .hh2-sechead-link,
.hh2-truck .hh2-sechead-link { color: var(--hh-white); }
.section--dark .hh2-sechead-link:hover,
.hh2-truck .hh2-sechead-link:hover { color: var(--hh-yellow); }

/* ============================================
   CATEGORY CARDS (product-on-yellow art)
   ============================================ */
.hh2-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.hh2-cat {
  display: flex;
  flex-direction: column;
  background: var(--hh-white);
  border: 1px solid var(--hh-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hh2-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.hh2-cat-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hh-yellow);
}

.hh2-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.hh2-cat-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.hh2-cat-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hh-gray-500);
  margin-bottom: 0.25rem;
}

.hh2-cat h3 {
  color: var(--hh-black);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  margin: 0;
}

.hh2-cat-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hh-gray-300);
  color: var(--hh-black);
  transition: all var(--transition-fast);
}

.hh2-cat-arrow svg { width: 15px; height: 15px; }

.hh2-cat:hover .hh2-cat-arrow {
  background: var(--hh-yellow);
  border-color: var(--hh-yellow);
}

/* dark-section variant */
.hh2-truck .hh2-cat {
  background: var(--hh-black);
  border-color: rgba(255, 255, 255, 0.09);
}

.hh2-truck .hh2-cat-media {
  background: var(--hh-black-soft);
  aspect-ratio: 16 / 9;
}

.hh2-truck .hh2-cat-media:not(:has(img)) {
  background:
    repeating-linear-gradient(-45deg, rgba(254, 221, 0, 0.06) 0 2px, transparent 2px 22px),
    var(--hh-black-soft);
}
.hh2-truck .hh2-cat h3 { color: var(--hh-white); }
.hh2-truck .hh2-cat-kicker { color: var(--hh-yellow); }
.hh2-truck .hh2-cat-arrow { border-color: rgba(255, 255, 255, 0.25); color: var(--hh-white); }
.hh2-truck .hh2-cat:hover .hh2-cat-arrow { color: var(--hh-black); }

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

@media (max-width: 480px) {
  .hh2-cats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DESIGNER BAND (yellow)
   ============================================ */
.hh2-designer {
  background: var(--hh-yellow);
  color: var(--hh-black);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hh2-designer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hh2-designer .eyebrow { color: var(--hh-black); }
.hh2-designer .eyebrow::before { background: var(--hh-black); }

.hh2-designer h2 {
  color: var(--hh-black);
  max-width: 14ch;
  margin-bottom: 0.8rem;
}

.hh2-designer p {
  max-width: 52ch;
  margin-bottom: 0;
  font-size: 1.05rem;
  color: rgba(13, 13, 13, 0.75);
}

.hh2-designer-actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hh2-designer-actions .btn {
  background: var(--hh-black);
  color: var(--hh-white);
  justify-content: space-between;
  min-width: 280px;
}

.hh2-designer-actions .btn:hover {
  background: var(--hh-black-deep);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(13, 13, 13, 0.28);
}

@media (max-width: 900px) {
  .hh2-designer-inner { flex-direction: column; align-items: flex-start; }
  .hh2-designer-actions { width: 100%; }
  .hh2-designer-actions .btn { min-width: 0; }
}

/* ============================================
   TRUCK SECTION (dark)
   ============================================ */
.hh2-truck { background: var(--hh-black-deep); }

.hh2-truck .hh2-sechead h2 { color: var(--hh-white); }

.hh2-vehicle {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.6rem 2rem;
  margin-bottom: 3rem;
  background: var(--hh-black);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--hh-yellow);
}

.hh2-vehicle-icon {
  flex: none;
  color: var(--hh-yellow);
}

.hh2-vehicle-icon svg { width: 42px; height: 42px; }

.hh2-vehicle-text h3 {
  color: var(--hh-white);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.hh2-vehicle-text p {
  color: var(--hh-gray-500);
  margin: 0;
  font-size: 0.95rem;
}

.hh2-vehicle .btn { margin-left: auto; flex: none; }

@media (max-width: 760px) {
  .hh2-vehicle { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hh2-vehicle .btn { margin-left: 0; }
}

.hh2-truck-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .hh2-truck-tiles { grid-template-columns: 1fr; }
  .hh2-truck-tiles .hh2-cat { aspect-ratio: 16 / 9; }
}

/* ============================================
   FINANCE / RTO BAND
   ============================================ */
.hh2-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.hh2-finance-card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--hh-gray-200);
  background: var(--hh-white);
}

.hh2-finance-card .eyebrow { margin-bottom: 0.75rem; }

.hh2-finance-card h3 { margin-bottom: 0.6rem; }

.hh2-finance-card p {
  color: var(--hh-gray-700);
  margin-bottom: 1.5rem;
  max-width: 46ch;
}

.hh2-finance-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hh2-finance-grid.is-three { grid-template-columns: repeat(3, 1fr); }

.hh2-checklist {
  margin-bottom: 1.1rem;
}

.hh2-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
  color: var(--hh-gray-900);
}

.hh2-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  background: var(--hh-yellow);
}

.hh2-pagehead-sub {
  color: var(--hh-gray-500);
  margin: 0.75rem 0 0;
  max-width: 60ch;
}

@media (max-width: 1000px) {
  .hh2-finance-grid.is-three { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .hh2-finance-grid { grid-template-columns: 1fr; }
}

/* ============================================
   STORES BAND
   ============================================ */
.hh2-stores {
  background: var(--hh-black);
  color: var(--hh-white);
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hh2-stores h2 {
  color: var(--hh-white);
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.hh2-stores h2 .highlight { color: var(--hh-yellow); }

.hh2-stores-states {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hh-gray-500);
  margin-bottom: 2.25rem;
}

.hh2-stores-states em { font-style: normal; color: var(--hh-yellow); padding: 0 0.4rem; }

.hh2-stores-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   INTERIOR PAGE CHROME + LEGACY CONTENT
   ============================================ */
.hh2-page { padding-top: 80px; }

.hh2-pagehead {
  background: var(--hh-black-deep);
  border-bottom: 3px solid var(--hh-yellow);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.75rem, 3.5vw, 2.75rem);
}

.hh2-pagehead h1 {
  color: var(--hh-white);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin: 0;
}

.hh2-page-content { max-width: 860px; }
.hh2-page-content h2 { margin: 1.6em 0 0.5em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.hh2-page-content h3 { margin: 1.4em 0 0.4em; }
.hh2-page-content ul,
.hh2-page-content ol { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1em; }
.hh2-page-content ol { list-style: decimal; }
.hh2-page-content a { color: var(--hh-yellow-dark); font-weight: 600; }
.hh2-page-content a:hover { color: var(--hh-black); }
.hh2-page-content img { margin: 1.25rem 0; }
.hh2-page-content iframe { max-width: 100%; }

.hh2-page-full { overflow-x: clip; }
.hh2-page-full img { height: auto; }
.hh2-page-full iframe { max-width: 100%; }

/* Unwrapped Divi pages: orphan text/images at the top level get a readable
   centered column; custom-designed pages wrap everything in their own
   sections so this never touches them. */
.hh2-page-full > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, table, a, span, button) {
  display: block;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

.hh2-page-full > :is(h1, h2, h3, h4) { margin-top: 1.5em; margin-bottom: 0.4em; }
.hh2-page-full > p { margin-bottom: 1em; }
.hh2-page-full > ul,
.hh2-page-full > ol { list-style: disc; padding-left: 3rem; margin-bottom: 1.1em; }

.hh2-page-full > img {
  display: block;
  max-width: min(900px, 100%);
  margin: 1.5rem auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

.hh2-page-full > a.btn,
.hh2-page-full > .btn { display: inline-flex; max-width: none; margin: 0.5rem auto 1.5rem; }
