/* Global styles shared by all HD Truck Body pages.
   Header/footer are injected via partials/header.html + footer.html
   (see assets/include-partials.js). These rules cover hover states
   that used to be the "style-hover" DC-only attribute, which does
   NOT work on plain injected HTML — real CSS is required here. */

.hdtb-nav-link:hover { color: #D31F26 !important; }
.hdtb-call-btn:hover { background: #B3161C !important; }
.hdtb-footer-link:hover { color: #D31F26 !important; }

/* ---- Header: nav desktop + dropdown Services + hamburguesa mobile ---- */
.hdtb-header { position: sticky; top: 0; z-index: 50; background: rgba(14,17,19,0.96); border-bottom: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(6px); }
.hdtb-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.hdtb-logo { display: flex; align-items: center; gap: 12px; }
.hdtb-logo img { height: 46px; width: auto; display: block; }
.hdtb-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hdtb-nav-link { color: #E7E9EA; text-decoration: none; }
.hdtb-sub-toggle { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
.hdtb-caret { font-size: 12px; }
.hdtb-has-sub { position: relative; }
.hdtb-submenu { display: none; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 300px; background: #14181B; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 24px 48px rgba(0,0,0,0.45); padding: 8px 0; flex-direction: column; }
.hdtb-submenu.open { display: flex; }
.hdtb-sub-link { display: block; padding: 11px 20px; color: #E7E9EA; text-decoration: none; font-size: 16px; letter-spacing: 0.05em; }
.hdtb-sub-link:hover { background: #1F2529; color: #D31F26; }
.hdtb-header-cta { display: flex; gap: 10px; align-items: center; }
.hdtb-call-btn { background: #D31F26; color: #FFFFFF; text-decoration: none; padding: 11px 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hdtb-call-mobile { display: none; }
.hdtb-burger { display: none; width: 46px; height: 46px; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 1px solid rgba(255,255,255,0.22); cursor: pointer; }
.hdtb-burger span { display: block; width: 20px; height: 2px; background: #E7E9EA; }
@media (max-width: 959px) {
  .hdtb-header-inner { flex-wrap: wrap; }
  .hdtb-burger { display: flex; margin-left: auto; }
  .hdtb-header-cta { display: none; }
  .hdtb-nav { display: none; order: 3; flex-basis: 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 20px; max-height: 76vh; overflow-y: auto; padding-bottom: 18px; }
  .hdtb-nav.open { display: flex; }
  .hdtb-nav > .hdtb-nav-link, .hdtb-nav .hdtb-sub-toggle { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; justify-content: space-between; text-align: left; }
  .hdtb-nav .hdtb-caret { color: #D31F26; font-size: 14px; }
  .hdtb-submenu { position: static; min-width: 0; box-shadow: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0; background: #14181B; }
  .hdtb-sub-link { padding: 14px 18px; color: #A9B1B6; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .hdtb-call-mobile { display: block; margin-top: 18px; text-align: center; padding: 15px 18px; font-size: 19px; }
}


/* Cookie consent banner (#cookie-banner in every page) — original rules,
   recovered from cookies.html's own <style> block. */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: #0E1113; color: #E7E9EA; border-top: 3px solid #D31F26;
  padding: 18px 20px; display: none;
}
#cookie-banner.show { display: block; }
#cookie-banner .inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
#cookie-banner p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #C9CFD3; max-width: 70ch; }
#cookie-banner a { color: #F0888C; text-decoration: underline; }
#cookie-banner .actions { display: flex; gap: 10px; flex: none; }
#cookie-banner button {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 15px; font-weight: 700; padding: 10px 18px; cursor: pointer; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #FFFFFF;
}
#cookie-banner button.accept { background: #D31F26; border-color: #D31F26; }
#cookie-banner button.accept:hover { background: #B3161C; }
#cookie-banner button.decline:hover { border-color: #FFFFFF; }

html, body { height: auto; min-height: 100%; }
#dc-root { height: auto !important; width: auto !important; }