/* Page-template styling that used to sit in style.css: the about page, the
   Masterack showcase, the spray-on bedliner page, the team login, the quote
   landing, the home testimonials, and the WooCommerce loop/single overrides
   the outdoor product pages use. Loaded by hh_fleet_wants_pages_css() between
   style.css and hhsales.css, which is where these rules always were in the
   cascade. The catalog, product, cart and checkout pages do not load it. */

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-feature::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--hh-yellow);
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Card link */
.card-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hh-black);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.card-link:hover { color: var(--hh-yellow-dark); gap: 0.75rem; }

/* CTA banner */
.cta-banner {
  background: var(--hh-black);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hh-yellow-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

.cta-inner h2 { color: var(--hh-white); max-width: 600px; }
.cta-inner h2 .highlight { color: var(--hh-yellow); }

/* About page */
.about-page {
  padding-top: 50px;
}

.about-hero {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1rem clamp(2.5rem, 5vw, 4rem);
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--hh-white);
  margin: 0 0 1rem;
}

.about-hero .highlight {
  color: var(--hh-yellow);
}

.about-hero-sub {
  color: var(--hh-gray-300);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Story grid */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.about-story-content h2 { margin-bottom: 1.5rem; }
.about-story-content p { color: var(--hh-gray-700); margin-bottom: 1rem; }

.about-story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--hh-gray-100);
  border-left: 3px solid var(--hh-yellow);
}

.about-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hh-black);
  margin-bottom: 0.25rem;
}

.about-stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hh-gray-500);
}

/* Timeline */
.about-timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.about-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--hh-yellow) 0%, var(--hh-gray-700) 100%);
}

.about-timeline__item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

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

.about-timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--hh-yellow);
  border: 2px solid var(--hh-black);
  border-radius: 50%;
  z-index: 1;
}

.about-timeline__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hh-yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-timeline__content h4 {
  color: var(--hh-white);
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}

.about-timeline__content p {
  color: var(--hh-gray-300);
  font-size: 0.92rem;
  margin: 0;
}

/* Services grid */
.about-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.about-service-card {
  padding: 2rem;
  border: 1px solid var(--hh-gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.about-service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hh-yellow);
  transition: width 0.4s ease;
}

.about-service-card:hover::after { width: 100%; }

.about-service-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.about-service-card__icon {
  color: var(--hh-yellow);
  margin-bottom: 1rem;
}

.about-service-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.about-service-card p {
  color: var(--hh-gray-700);
  font-size: 0.9rem;
  margin: 0;
}

@media (min-width: 768px) {
  .about-story-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* WooCommerce overrides */
.woocommerce ul.products li.product {
  border: 1px solid var(--hh-gray-200);
  transition: all var(--transition);
  padding-bottom: 1rem;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--hh-yellow);
  box-shadow: var(--shadow-card);
}

.woocommerce ul.products li.product .price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--hh-black);
}

/* WooCommerce single product */
.single-product .summary .product_title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.single-product .summary .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--hh-black);
}

.single-product .summary .single_add_to_cart_button {
  background: var(--hh-yellow) !important;
  color: var(--hh-black) !important;
  font-family: var(--font-display) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--hh-black);
  transition: all var(--transition);
}

.single-product .summary .single_add_to_cart_button:hover {
  background: var(--hh-yellow-hover) !important;
  box-shadow: 2px 2px 0 var(--hh-black);
  transform: translate(2px, 2px);
}

.single-product .woocommerce-tabs .tabs li.active a {
  color: var(--hh-black);
  border-bottom: 3px solid var(--hh-yellow);
}

.single-product .woocommerce-tabs .tabs li a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

/* Quantity input on product page */
.single-product .quantity input[type="number"] {
  border: 2px solid var(--hh-black) !important;
  border-radius: 0 !important;
  font-family: var(--font-display);
  font-size: 1rem;
  width: 60px;
  text-align: center;
  padding: 10px;
}

/* Request a Quote page */
.hh-quote-page {
  display: grid;
  gap: 1.5rem;
  max-width: 760px;
}

.hh-quote-items,
.hh-quote-page .hh-contact-form,
.hh-quote-thanks {
  background: #fff;
  border: 2px solid var(--hh-black);
  box-shadow: 6px 6px 0 var(--hh-black);
}

/* The plugin sizes its wrapper to its own table — we want the full column */
.hh-quote-page .hh-quote-items {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hh-quote-items .hhpfb-quote-items-editor {
  padding: 1.5rem 2rem;
}

.hh-quote-page .hh-contact-form {
  padding: 0 2.25rem 2.25rem;
}

.hh-quote-thanks {
  padding: 2rem;
}

.hh-quote-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

/* Form header sits flush in the card, on its own yellow band */
.hh-quote-form-head {
  margin: 0 -2.25rem 1.75rem;
  padding: 1.5rem 2.25rem;
  border-bottom: 2px solid var(--hh-black);
  background: linear-gradient(180deg, var(--hh-gray-100) 0%, #fff 100%);
  position: relative;
}

.hh-quote-form-head::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: -2px;
  width: 6px;
  background: var(--hh-yellow);
}

.hh-quote-form-head h2 { margin-bottom: 0.35rem; }

.hh-quote-form-head p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--hh-gray-700);
}

.hh-quote-items .hhpfb-quote-items-editor h2 {
  padding-left: 0.85rem;
  border-left: 6px solid var(--hh-yellow);
}

.hh-quote-page .hhpfb-quote-empty-state p,
.hh-quote-thanks p {
  margin: 0;
  color: var(--hh-gray-700);
  font-size: 0.92rem;
}

.hh-quote-page .hhpfb-quote-items-table {
  width: 100%;
  border-collapse: collapse;
}

.hh-quote-page .hhpfb-quote-items-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hh-gray-700);
  text-align: left;
  padding: 0 8px 8px 0;
  border-bottom: 2px solid var(--hh-gray-200);
}

.hh-quote-page .hhpfb-quote-items-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--hh-gray-200);
  font-size: 0.9rem;
  vertical-align: middle;
}

.hh-quote-page .hhpfb-qf-item-qty {
  width: 70px;
  padding: 6px 8px;
  border: 2px solid var(--hh-gray-200);
}

.hh-quote-page .hhpfb-qf-item-remove {
  background: none;
  border: 0;
  padding: 0;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 600px) {
  .hh-quote-items .hhpfb-quote-items-editor { padding: 1.25rem; }
  .hh-quote-thanks { padding: 1.25rem; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Spray-on bedliners page */

/* Hero */
/* Top Banner */
.bedliner-banner {
  width: 100%;
  background: var(--hh-black);
  border-bottom: 4px solid var(--hh-yellow);
}

.bedliner-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Intro */
.bedliner-intro h1 {
  margin: 0.5rem 0 1.25rem;
}

.bedliner-intro p {
  max-width: 68ch;
  color: var(--hh-gray-700);
  line-height: 1.7;
}

.bedliner-intro-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Two Spray Options */
.bedliner-options .container {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.bedliner-option {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.bedliner-option--flip .bedliner-option-media {
  order: 2;
}

.bedliner-option-media {
  position: relative;
  border: 2px solid rgba(254, 221, 0, 0.35);
}

.bedliner-option-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.bedliner-option-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 0.4rem 0.9rem;
  background: var(--hh-yellow);
  color: var(--hh-black);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bedliner-option-body h2 {
  color: var(--hh-white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.4rem 0 1rem;
}

.bedliner-option-body h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--hh-yellow);
  margin: 1.5rem 0 0.5rem;
}

.bedliner-option-body p {
  color: var(--hh-gray-300);
  font-size: 0.95rem;
  line-height: 1.7;
}

.bedliner-keyfeatures {
  list-style: none;
  padding: 0;
}

.bedliner-keyfeatures li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--hh-gray-300);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bedliner-keyfeatures li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--hh-yellow);
  font-weight: 700;
}

/* Before / After */
.bedliner-beforeafter {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid var(--hh-gray-200);
  background: var(--hh-black);
}

.bedliner-beforeafter img {
  width: 100%;
  height: auto;
  display: block;
}

/* Protect Band */
.bedliner-protect {
  text-align: center;
}

.bedliner-protect h2 {
  max-width: 22ch;
  margin: 0.75rem auto 1.25rem;
}

.bedliner-protect h2 .highlight { color: var(--hh-yellow); }

.bedliner-protect p {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--hh-gray-300);
  line-height: 1.7;
}

.bedliner-protect .bedliner-intro-actions {
  justify-content: center;
  margin-top: 2rem;
}

/* Gallery */
.bedliner-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.bedliner-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--hh-gray-200);
  background: var(--hh-black);
}

.bedliner-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bedliner-gallery-item:hover img {
  transform: scale(1.05);
}

.bedliner-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.bedliner-gallery-caption span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hh-yellow);
}

/* Bedliner Responsive */
@media (max-width: 900px) {
  .bedliner-option { grid-template-columns: 1fr; }
  .bedliner-option--flip .bedliner-option-media { order: 0; }
  .bedliner-option-media img { min-height: 0; }
}

@media (max-width: 768px) {
  .bedliner-gallery { grid-template-columns: 1fr; }
}

/* Team Login page */
.login-page {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hh-black-deep);
  position: relative;
  overflow: hidden;
}

.login-wrapper {
  width: 100%;
  max-width: 480px;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.login-card {
  background: var(--hh-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
  background: var(--hh-black);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--hh-yellow);
}

.login-logo {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.login-site-logo.site-logo {
  justify-content: center;
  text-decoration: none;
}

.login-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--hh-yellow);
  color: var(--hh-black);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

.login-header .eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hh-yellow);
  margin-bottom: 0.5rem;
}

.login-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--hh-white);
  margin: 0 0 0.5rem;
}

.login-header p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 2rem 0;
  padding: 0.75rem 1rem;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 4px;
  color: #991B1B;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.login-error svg { flex-shrink: 0; }

.login-form {
  padding: 2rem;
}

.login-form .hh-form-field {
  margin-bottom: 1.25rem;
}

.login-form .hh-form-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hh-gray-700);
  margin-bottom: 0.4rem;
}

.login-form .hh-form-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--hh-gray-200);
  border-radius: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--hh-black);
  background: var(--hh-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

.login-form .hh-form-field input::placeholder {
  color: var(--hh-gray-300);
}

.login-form .hh-form-field input:focus {
  outline: none;
  border-color: var(--hh-yellow);
  box-shadow: 0 0 0 1px var(--hh-yellow);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--hh-gray-700);
}

.login-remember input[type="checkbox"] {
  accent-color: var(--hh-yellow);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-forgot {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--hh-gray-500);
  text-decoration: none;
  transition: color var(--transition);
}

.login-forgot:hover { color: var(--hh-yellow-dark); }

.login-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--hh-black);
  transition: all var(--transition);
}

.login-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--hh-black);
}

.login-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--hh-black);
}

.login-submit svg {
  transition: transform var(--transition);
}

.login-submit:hover svg {
  transform: translateX(4px);
}

.login-footer-text {
  padding: 0 2rem 1.75rem;
  text-align: center;
}

.login-footer-text p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: var(--hh-gray-500);
  margin: 0;
}

.login-footer-text a {
  color: var(--hh-gray-700);
  text-decoration: underline;
  transition: color var(--transition);
}

.login-footer-text a:hover { color: var(--hh-yellow-dark); }

/* Background accent */
.login-bg-accent {
  position: fixed;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--hh-yellow-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Login page responsive */
@media (max-width: 480px) {
  .login-wrapper { padding: 1rem; }
  .login-header { padding: 2rem 1.5rem 1.5rem; }
  .login-form { padding: 1.5rem; }
  .login-footer-text { padding: 0 1.5rem 1.5rem; }
  .login-options { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* Masterack showcase page */

/* Hero */
.masterack-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--hh-black-deep);
  overflow: hidden;
}

.masterack-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(13,13,13,0.92) 0%, rgba(26,26,26,0.78) 45%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.masterack-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--hh-yellow);
}

.masterack-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.masterack-hero h1 {
  color: var(--hh-white);
  margin-bottom: 1.5rem;
}

.masterack-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--hh-gray-300);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.masterack-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust Strip */
.masterack-trust {
  background: var(--hh-black);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.masterack-trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.masterack-trust-item {
  color: var(--hh-white);
}

.masterack-trust-number {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--hh-yellow);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.masterack-trust-number span {
  font-size: 0.6em;
  opacity: 0.75;
  margin-left: 0.1em;
}

.masterack-trust-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hh-gray-300);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Category Cards Grid */
.masterack-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.masterack-cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--hh-black);
  background: var(--hh-white);
  border: 1px solid var(--hh-gray-200);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.masterack-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,26,26,0.12);
  border-color: var(--hh-yellow);
}

.masterack-cat-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hh-gray-100);
  overflow: hidden;
}

.masterack-cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.masterack-cat-card:hover .masterack-cat-image img {
  transform: scale(1.04);
}

.masterack-cat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-gray-500);
}

.masterack-cat-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.masterack-cat-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--hh-black);
  color: var(--hh-yellow);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
  font-weight: 700;
}

.masterack-cat-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.masterack-cat-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.masterack-cat-price {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hh-black);
}

.masterack-cat-body .card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hh-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

.masterack-cat-card:hover .card-link { color: var(--hh-yellow-dark); }

.masterack-cat-card:hover .card-link .arrow { transform: translateX(4px); }

.masterack-cat-body .card-link .arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.masterack-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 2px dashed var(--hh-gray-200);
  border-radius: 8px;
  color: var(--hh-gray-700);
}

.masterack-empty h3 { margin-bottom: 0.75rem; }

/* 2026 Innovations */
.masterack-innovations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.masterack-innovation {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--hh-yellow);
  padding: 2rem;
  border-radius: 4px;
  transition: transform var(--transition), border-color var(--transition);
}

.masterack-innovation:hover {
  transform: translateY(-3px);
  border-left-color: var(--hh-yellow);
  border-color: rgba(254,221,0,0.25);
}

.masterack-innovation-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hh-yellow);
  background: rgba(254,221,0,0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.masterack-innovation h3 {
  color: var(--hh-white);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.masterack-innovation p {
  color: var(--hh-gray-300);
  line-height: 1.65;
  margin: 0;
}

.masterack-innovation strong {
  color: var(--hh-yellow);
  font-weight: 700;
}

/* Why Masterack Benefits */
.masterack-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.masterack-benefit {
  text-align: center;
  padding: 1rem;
}

.masterack-benefit-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hh-black);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.masterack-benefit-icon svg {
  width: 28px;
  height: 28px;
}

.masterack-benefit h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.masterack-benefit p {
  color: var(--hh-gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .masterack-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .masterack-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .masterack-innovations { grid-template-columns: 1fr; }
  .masterack-benefits { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .masterack-hero { min-height: 60vh; padding-top: 90px; }
  .masterack-hero-actions .btn { width: 100%; justify-content: center; }
  .masterack-trust-inner { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
  .masterack-cat-grid { grid-template-columns: 1fr; }
  .masterack-innovation { padding: 1.5rem; }
}

/* Testimonials section */

.testimonials-section {
  overflow: hidden;
  padding: 5rem 0;
  background: var(--hh-gray-100);
}

.testimonials-section .container {
  position: relative;
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-track-wrap {
  overflow: hidden;
  padding: 0.5rem 0 0.25rem;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: testimonials-scroll var(--testimonials-duration, 300s) linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes testimonials-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testimonial-card {
  width: 300px;
  flex-shrink: 0;
  background: var(--hh-white);
  border: 1px solid var(--hh-gray-200);
  border-radius: 14px;
  padding: 1.375rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-bottom-color 0.2s ease;
  border-bottom: 3px solid transparent;
  cursor: default;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
  border-bottom-color: var(--hh-yellow);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hh-black);
  color: var(--hh-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  text-transform: uppercase;
}

.testimonial-meta {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--hh-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-company {
  font-size: 0.78rem;
  color: var(--hh-gray-700);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-badge {
  flex-shrink: 0;
  opacity: 0.6;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.testimonial-stars svg {
  display: block;
}

.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hh-gray-700, #374151);
  margin: 0;
  border: none;
  padding: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

@media (max-width: 640px) {
  .testimonial-card {
    width: 270px;
    padding: 1.125rem 1.25rem 1rem;
  }
}

/* Request a Quote — landing */
.quote-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58vh;
  padding: 140px 0 70px;
  background-size: cover;
  background-position: center 60%;
  background-color: var(--hh-black-deep);
  overflow: hidden;
}

.quote-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,13,13,0.94) 0%, rgba(13,13,13,0.82) 42%, rgba(13,13,13,0.35) 100%);
  z-index: 1;
}

.quote-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--hh-yellow);
  z-index: 2;
}

.quote-hero-content {
  position: relative;
  z-index: 2;
  max-width: 730px;
}

.quote-hero h1 {
  color: var(--hh-white);
  margin: 0 0 1.25rem;
}

.quote-hero h1 .highlight { color: var(--hh-yellow); }

.quote-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--hh-gray-300);
  margin: 0 0 2.25rem;
}

.quote-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 190px;
}

.quote-hero-facts strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--hh-yellow);
}

.quote-hero-facts span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--hh-gray-300);
}

/* Trust strip */
.quote-trust {
  background: var(--hh-black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.quote-trust-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 3vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}

.quote-trust-item {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hh-gray-300);
}

.quote-trust-item + .quote-trust-item::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  background: var(--hh-yellow);
}

/* Form + rail */
.quote-body {
  background: var(--hh-gray-100);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.quote-form-col .hh-quote-page { max-width: none; }

.quote-rail {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.quote-card {
  background: #fff;
  border: 2px solid var(--hh-black);
  box-shadow: 6px 6px 0 var(--hh-black);
  padding: 1.75rem;
}

.quote-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.quote-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hh-gray-700);
}

.quote-card--dark {
  background: var(--hh-black);
  border-color: var(--hh-black);
  color: var(--hh-white);
}

.quote-card--dark h3 { color: var(--hh-white); }
.quote-card--dark p { color: var(--hh-gray-300); }
.quote-card--dark .eyebrow { margin-bottom: 1.5rem; }

.quote-steps {
  counter-reset: quote-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.quote-steps li {
  counter-increment: quote-step;
  position: relative;
  padding-left: 3rem;
}

.quote-steps li::before {
  content: counter(quote-step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--hh-black);
  background: var(--hh-yellow);
}

.quote-steps h3 { margin-bottom: 0.35rem; }

.quote-card--media { padding: 0; }

.quote-card--media img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: center 45%;
  border-bottom: 2px solid var(--hh-black);
}

.quote-card--media .quote-card-body { padding: 1.5rem 1.75rem 1.75rem; }

.quote-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hh-black);
  border-bottom: 2px solid var(--hh-yellow);
  padding-bottom: 2px;
}

.quote-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.quote-link:hover svg { transform: translateX(4px); }

.quote-card--accent {
  background: var(--hh-yellow);
  border-color: var(--hh-black);
}

.quote-card--accent p { color: rgba(0,0,0,0.72); }
.quote-card--accent .btn { margin-top: 1.1rem; }

.quote-phone {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--hh-black);
}

.quote-phone:hover { color: var(--hh-yellow-hover); }

/* Bottom CTA */
.quote-foot {
  background: var(--hh-black);
  color: var(--hh-white);
  border-top: 4px solid var(--hh-yellow);
}

.quote-foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.quote-foot h2 {
  color: var(--hh-white);
  margin: 0 0 0.4rem;
}

.quote-foot p {
  margin: 0;
  color: var(--hh-gray-300);
  font-size: 0.95rem;
}

.quote-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-rail { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 640px) {
  .quote-hero { min-height: 0; padding: 120px 0 56px; }
  .quote-hero-facts { gap: 1.25rem 1.5rem; }
  .quote-hero-facts li { max-width: calc(50% - 0.75rem); }
  .quote-hero-facts strong { font-size: 1.7rem; }
  .quote-foot-actions { width: 100%; }
  .quote-foot-actions .btn { flex: 1 1 100%; justify-content: center; }
  .quote-rail { grid-template-columns: 1fr; }
  .quote-card { padding: 1.35rem; }
  .quote-card--media .quote-card-body { padding: 1.25rem 1.35rem 1.5rem; }
  .hh-quote-page .hh-contact-form { padding: 0 1.35rem 1.5rem; }
  .hh-quote-form-head { margin: 0 -1.35rem 1.5rem; padding: 1.25rem 1.35rem; }
  .hh-quote-items .hhpfb-quote-items-editor { padding: 1.35rem; }
}
