/* Colors */

:root {
  --primary: #002c5f;
  --primary-hover: #002c5f;
  --secondary: #002c5f;
  --secondary-hover: #002c5f;
  --third: #e4dcd3;
  --third-hover: #b8afa5;
  --input-fields: #f6f3f2;
  --primaryBtn: #002c5f;
  --primaryBtn-hover: #002c5f;
  --secondaryBtn: #00aad2;
  --secondaryBtn-hover: #006f8a;
  --tableHighlight: #f6f3f2;
  --headings-font-family: "HyundaiSansHead", Arial, sans-serif;
  --text-font-family: "HyundaiSansText", Tahoma, sans-serif;
}


/* Fonts */

@font-face {
  font-family: 'HyundaiSansHead';
  src: url('../font/HyundaiSansHead-Regular.woff2') format('woff2'),
      url('../font/HyundaiSansHead-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'HyundaiSansHead';
  src: url('../font/HyundaiSansHead-Medium.woff2') format('woff2'),
      url('../font/HyundaiSansHead-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;

}

@font-face {
  font-family: 'HyundaiSansHead';
  src: url('../font/HyundaiSansHead-Light.woff2') format('woff2'),
      url('../font/HyundaiSansHead-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;

}

@font-face {
  font-family: 'HyundaiSansHead';
  src: url('../font/HyundaiSansHead-Bold.woff2') format('woff2'),
      url('../font/HyundaiSansHead-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;

}

@font-face {
  font-family: 'HyundaiSansText';
  src: url('../font/HyundaiSansText-Regular.woff2') format('woff2'),
      url('../font/HyundaiSansText-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'HyundaiSansText';
  src: url('../font/HyundaiSansText-Medium.woff2') format('woff2'),
      url('../font/HyundaiSansText-Medium.woff.woff') format('woff');
  font-weight: 500;
  font-style: normal;

}

@font-face {
  font-family: 'HyundaiSansText';
  src: url('../font/HyundaiSansText-MediumItalic.woff2') format('woff2'),
      url('../font/HyundaiSansText-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;

}


@font-face {
  font-family: 'HyundaiSansText';
  src: url('../font/HyundaiSansText-Italic.woff2') format('woff2'),
      url('../font/HyundaiSansText-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;

}

@font-face {
  font-family: 'HyundaiSansText';
  src: url('../font/HyundaiSansText-BoldItalic.woff2') format('woff2'),
      url('../font/HyundaiSansText-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;

}

@font-face {
  font-family: 'HyundaiSansText';
  src: url('../font/HyundaiSansText-Bold.woff2') format('woff2'),
      url('../font/HyundaiSansText-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'hyundai-icons';
  src: url('../font/icons-hyundai.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'hyundai-iconfont';
  src: url('../font/hyundai-iconfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;

}


.brand{
  height:18px;
}

.upper_bar ul li a{
  color: #676767;
  font-size: 12px;
  font-weight: 400;
  font-family: var(--headings-font-family);
}

.upper_bar ul li a::after{
    content: "";
    height: 9px;
    margin-left: 1.5rem;
    border-right: 1px solid #ccc;
}

.upper_bar{
  height:34px;
}

.allmodels:has(.model-links) .onemodel {    
  background:#fff;
  border:0;
  position: relative; 
  isolation: isolate; 
  overflow: visible;
  z-index: 0; 
}

.allmodels:has(.model-links) .onemodel img {
  display: block;
  position: relative;
  z-index: 2; 
}

.allmodels:has(.model-links) .onemodel::after {   
    content:"";
    position:absolute;
    left:0; right:0;
    top:50%;    
    bottom:-14rem;    
    background: #f6f3f2;
    opacity:0;
    transition:opacity .25s ease;
    z-index:1;
    pointer-events:none;
}
.allmodels:has(.model-links) .onemodel:hover::after { opacity:1; }

.allmodels:has(.model-links) .onemodel > * { position: relative; }

.allmodels:has(.model-links) .onemodel:hover {
  z-index: 100;  
}

.allmodels:has(.onemodel:hover) .onemodel:not(:hover)::after {
  pointer-events: none;
}

.allmodels:has(.model-links) .onemodel .modelname{
  font-size:18px;
  z-index:10;
}

.allmodels:has(.model-links) .onemodel .model-links {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 10px);
    width: calc(100% - 4rem);
    padding-top: 1rem;       
    display: flex;
    flex-direction: column;
    gap: .5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 2;
}

.model-links div{
  display:none
}

.allmodels:has(.model-links) .onemodel:hover .model-links {
    opacity: 1;
    transform: translate(-50%, 0); 
    pointer-events: auto;
}

.allmodels:has(.model-links) .onemodel .model-links a {
    width: 100%;
    padding: 1rem 0;
    text-transform: uppercase;
    background:  #002c5f;
    color: #fff !important; 
    border-radius: 0;
    box-shadow: none;
    transition: box-shadow .15s ease;
    margin-top:0 !important;
}
.allmodels:has(.model-links) .onemodel .model-links a:hover {
    opacity:1;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    background:#003c78 !important;
}

.allmodels .onemodel:has(.model-links):hover{
  background:transparent;
  border:none;
}

.allmodels:has(.model-links) .onemodel .model-links a:focus-visible {
    outline: 3px solid  #002c5f;
    outline-offset: 2px;
}

.allmodels:has(.model-links) .onemodel .model-links a sup{
  color: #fff
}

/* Style */

.table-cell button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.table-cell button:before {
    content: "";
    display: block;
    position: absolute;
    background: #003c78;
    top: 0;
    bottom: 0;
    left: 0;
    right: 100%;
    z-index: 1;
    transition: right .5s cubic-bezier(.7,-.02,0,1);
}

.table-cell button:hover:before {
    right: 0;
}

.table-cell button .cta__arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    display: block;
    z-index: 5;
    opacity: 0;
    -webkit-transform: translate(-100%,-50%) scale(.7);
    transform: translate(-100%,-50%) scale(.7);
    -webkit-transition: opacity .1s ease-out .1s,-webkit-transform .3s ease-in .1s;
    transition: opacity .1s ease-out .1s,-webkit-transform .3s ease-in .1s;
    transition: transform .3s ease-in .1s,opacity .1s ease-out .1s;
    transition: transform .3s ease-in .1s,opacity .1s ease-out .1s,-webkit-transform .3s ease-in .1s
}

.table-cell button:hover .cta__arrow {
    opacity: 1;
    -webkit-transform: translate(-50%,-50%) scale(.7);
    transform: translate(-50%,-50%) scale(.7);
    -webkit-transition: opacity .2s ease-out .2s,-webkit-transform .2s ease-in .2s;
    transition: opacity .2s ease-out .2s,-webkit-transform .2s ease-in .2s;
    transition: transform .2s ease-in .2s,opacity .2s ease-out .2s;
    transition: transform .2s ease-in .2s,opacity .2s ease-out .2s,-webkit-transform .2s ease-in .2s
}

.table-cell button .cta__arrow:before {
    font-family: "hyundai-iconfont"!important;
    font-style: normal;
    font-weight: 400!important;
    vertical-align: middle;
    content: "\f108";
}

.right p, .thirdwidest p {
  font-size: 1.1rem;
}

.headercontent {
  background: #f6f3f2;
}

.secondheader:has(b) a::after{
  content:'\f101';
  font-family: 'hyundai-icons';
  padding:0 4px 0 8px;
  font-size:12px;
}

.secondheader #header-arrow{
  display:none
}

#rightmenu li a:hover{
  background: #004489
}

#rightmenu li a{
  padding-left:7px;
}

#rightmenu li a span {
  vertical-align: super;
}

#rightmenu li a::before{
  font-size:32px;
  font-family: "hyundai-icons";
  text-align: center;
  width: auto;
  min-width: 46px;
  padding-right: 8px;
}
#rightmenu .rightbuild::before{
  content: "\f119";
}
#rightmenu .rightoffer::before{
  content: "\f117";
}
#rightmenu .rightdrive::before{
  content: "\f123";
}
#rightmenu .rightservice::before{
  content: "\f11b";
}
#rightmenu .rightcontact::before{
  content: "\f11a";
}

#second .left ul li a, .leftmenu{
  letter-spacing: .02rem;
  font-size:16px;
  line-height: 22px;
}

#menu .topmenu div button::after {
  font-size: 32px;
  font-family: "hyundai-icons";
  }

#menu .topmenu .testdrivebutton #testdrive::after {
  content: "\f123";
}

#menu .topmenu #askoffer, #menu .topmenu #askoffer2{
  width: 32px;
}

#menu .topmenu .testdrivebutton #askoffer::after, #menu .topmenu .testdrivebutton #askoffer2::after {
  content: "\f117";
}

#menu .topmenu .servicebtn #service::after {
  content: "\f11b";
}

#menu ul li a, #menu ul li button {
    background-color: transparent;
    letter-spacing: .2px;
    letter-spacing: .02rem;
    color: #676767;
    font-weight: 400;
    transition: none;
}

#menu ul li a:hover, #menu ul li button:hover, #menu ul .sel a  {
  font-weight:500;

    letter-spacing: -.0022rem;
    color: #002c5f;

}

#menu ul li a:hover, #menu ul li button:hover {
   text-decoration: underline;
   text-underline-offset: 2px; 
}

.teenindusmenu .box ul li a,
.teenindusmenup .box ul li a {
  font-family: var(--headings-font-family);
  letter-spacing: .02rem;
}

.allmodels a, .allmodels p{
      color: #1c1b1b !important
}

.red:hover {
  opacity: .8;
}

.price-box .redprice, .car-item .discount-amount, .car-price .price-info:has(.original-price) .current-price{
  color:#FF0000;
}


.onemodel .newmodel{
  background: var(--primary);
}

#return-to-top{
transform: rotate(180deg);
border-radius: 50%;
}

#return-to-top::before{
font-family: "hyundai-icons";
content: "\f102";
transform:rotate(180deg);
font-size:1.2rem;
color:#fff;
}

.fixedinfo button{
  background:#fff;
  color:#002c5f
}

img.standard{
  filter: invert(15%) sepia(33%) saturate(3713%) hue-rotate(194deg) brightness(90%) contrast(106%);
}

#footer {
  background: #323232;
}

#footer #social img {
  display: none !important;
}

#footer #social a{
color:#fff;
}

#footer #social a:hover{
  color: #b7b7b7;
}

#social a::before{
  font-family: "hyundai-icons";
  font-size: 36px;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  position: relative;
  text-transform: none;
}

#social a.facebook::before {
  content: "\f12d";
}

#social a.youtube::before {
  content: "\f135";
}

#social a.instagram::before {
  content: "\f12f";
}

#social a.linkedin::before {
  content: "\f130";
}

#social a.twitter::before{
  content: "\f134";
}

#social a.google::before{
  content: "\f12e";
}

@media (min-width: 1020px) {
body:has(.upper_bar) { --upper-bar-h: 35px; }

.allmodels:has(.model-links) .onemodel .model-links a:has(sup)  span{
  width:60%
}
}

@media (max-width:1020px){
  .brand{
    height:20px
  }
  #menu .topmenu div button::after{
    font-size:24px;
  }
}

