/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3.5rem;

  /*========== Colors (PETRONAS dark, default) ==========*/
  --first-color: #00A19C;          /* PETRONAS emerald / teal */
  --first-color-alt: #00857F;
  --first-color-light: #00E6DA;
  --accent-color: #dddd00;         /* Fluid gold accent */
  --title-color: #F2F7F7;
  --text-color: #A3A3A3;
  --text-color-light: #6E8689;
  --body-color: #0D0D0D;
  --container-color: #161616;
  --border-color: rgba(255, 255, 255, .1);
  --shadow: none;
  --glow: none;

  /*========== Font and typography ==========*/
  --body-font: 'Inter', sans-serif;
  --title-font: 'Rajdhani', sans-serif;
  --biggest-font-size: 2.6rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-toast: 200;
}

@media screen and (min-width: 768px){
  :root{
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Light theme ==========*/
body.light-theme{
  --title-color: #111111;
  --text-color: #5C5C5C;
  --text-color-light: #8AA0A3;
  --body-color: #FAFAFA;
  --container-color: #FFFFFF;
  --border-color: rgba(0, 0, 0, .1);
  --shadow: none;
  --glow: none;
}

/*========== BASE ==========*/
*,::before,::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: calc(var(--header-height) + 1.6rem) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color .3s, color .3s;
}

h1,h2,h3,p,ul{
  margin: 0;
}

h1,h2,h3{
  font-family: var(--title-font);
  letter-spacing: .02em;
}

ul{
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

button{
  font-family: inherit;
}

img{
  max-width: 100%;
  height: auto;
}

/*========== CLASS CSS ==========*/
.section{
  padding: 4rem 0 2rem;
}

.section-title, .section-subtitle{
  text-align: center;
}

.section-title{
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
  line-height: 1.2;
}

.section-subtitle{
  display: block;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container{
  max-width: 1080px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid{
  display: grid;
  gap: 1.5rem;
}

.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  border-bottom: 1px solid transparent;
  transition: .3s;
}

/*========== NAV ==========*/
.nav{
  max-width: 1080px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    border-radius: 0 0 1rem 1rem;
    border-bottom: 2px solid var(--first-color);
    z-index: var(--z-fixed);
  }
}

.nav__item{
  margin-bottom: var(--mb-2);
}

.nav__logo{
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--title-color);
}

.nav__logo-mark{
  display: inline-flex;
}

.nav__logo-text{
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  font-size: 1.25rem;
  letter-spacing: .08em;
  line-height: 1;
}

.nav__logo-text small{
  display: block;
  font-size: .6rem;
  letter-spacing: .32em;
  color: var(--first-color);
  margin-top: 2px;
}

.nav__link, .nav__toggle{
  color: var(--text-color);
  font-weight: var(--font-medium);
}

.nav__link{
  position: relative;
  transition: .3s;
}

.nav__link:hover{
  color: var(--first-color-light);
}

.nav__toggle{
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

.nav__actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.nav__cart-badge{
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem .7rem;
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  background: rgba(0, 161, 156, .1);
  color: var(--first-color-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: .3s;
}

.nav__cart-badge:hover{
  background: var(--first-color);
  color: #FFF;
}

.nav__cart-badge.bump{
  animation: bump .4s ease;
}

@keyframes bump{
  50%{ transform: scale(1.2); }
}

/*========== Button Dark/Light ==========*/
.change-theme{
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: .3s;
}

.change-theme:hover{
  color: var(--first-color);
}

/* Show menu */
.show-menu{
  top: calc(var(--header-height) + 1.6rem);
}

/* Active menu */
.active-link{
  color: var(--first-color-light);
}

/* Change background header */
.scroll-header{
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  border-bottom: 1px solid var(--border-color);
}

/* Scroll top */
.scrolltop{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: rgba(0, 161, 156, .6);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover{
  background-color: var(--first-color-alt);
}

.scrolltop__icon{
  font-size: 1.8rem;
  color: #FFF;
}

/* Show scrolltop */
.show-scroll{
  visibility: visible;
  bottom: 1.5rem;
}

/*========== BUTTONS ==========*/
.button{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--first-color);
  color: #FFF;
  font-weight: var(--font-semi-bold);
  padding: .8rem 1.25rem;
  border: none;
  border-radius: .5rem;
  cursor: pointer;
  transition: .3s;
}

.button:hover{
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.button--ghost{
  background: transparent;
  color: var(--first-color-light);
  border: 1px solid var(--first-color);
}

.button--ghost:hover{
  background: rgba(0, 161, 156, .12);
}

/*========== HOME ==========*/
.home__container{
  min-height: calc(100vh - var(--header-height));
  align-content: center;
  padding: 2rem 0;
}

.home__badge{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  margin-bottom: var(--mb-2);
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  background: rgba(0, 161, 156, .1);
  color: var(--accent-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: .08em;
}

.home__title{
  font-size: var(--biggest-font-size);
  color: var(--title-color);
  line-height: 1;
  margin-bottom: var(--mb-2);
}

.home__title span{
  color: var(--first-color);
}

.home__subtitle{
  font-size: var(--h2-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-2);
  line-height: 1.3;
}

.home__description{
  margin-bottom: var(--mb-4);
}

.home__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--mb-4);
}

.home__stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: var(--mb-3);
  border-top: 1px solid var(--border-color);
}

.home__stat-item{
  display: flex;
  flex-direction: column;
}

.home__stat-num{
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--first-color-light);
}

.home__stat-label{
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.home__visual{
  display: flex;
  justify-content: center;
}

.home__img{
  width: 320px;
}

/*========== ABOUT ==========*/
.about__data{
  text-align: center;
}

.about__description{
  margin-bottom: var(--mb-3);
}

.about__checklist{
  text-align: left;
  margin-bottom: var(--mb-4);
}

.about__checklist li{
  display: flex;
  gap: .6rem;
  margin-bottom: var(--mb-2);
  font-size: var(--small-font-size);
}

.about__checklist i{
  color: var(--first-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.about__checklist strong{
  color: var(--title-color);
}

.about__img{
  width: 300px;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  justify-self: center;
}

/*========== SERVICES ==========*/
.services__container{
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services__content{
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: .3s;
}

.services__content:hover{
  border-color: var(--first-color);
  box-shadow: var(--glow);
}

.services__icon-wrap{
  width: 88px;
  height: 88px;
  margin: 0 auto var(--mb-2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color);
}

.services__img{
  width: 48px;
  height: 48px;
  fill: var(--first-color);
}

.services__tag{
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: .12em;
  color: var(--accent-color);
  margin-bottom: .25rem;
}

.services__title{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.services__description{
  font-size: var(--small-font-size);
}

/*========== MENU / LUBRICANTS ==========*/
.menu__filters{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: var(--mb-4);
}

.menu__filter-btn{
  padding: .5rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: .3s;
}

.menu__filter-btn:hover{
  color: var(--first-color-light);
  border-color: var(--first-color);
}

.active-filter,
.active-filter:hover{
  background: var(--first-color);
  border-color: var(--first-color);
  color: #FFF;
}

.menu__container{
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.menu__content{
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: .3s;
}

.menu__content:hover{
  border-color: var(--first-color);
}

.menu__content.is-hidden{
  display: none;
}

.menu__badges{
  display: flex;
  justify-content: space-between;
}

.menu__grade-pill,
.menu__vol-pill{
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  padding: .15rem .6rem;
  border-radius: .4rem;
}

.menu__grade-pill{
  background: rgba(0, 161, 156, .15);
  color: var(--first-color-light);
}

.menu__vol-pill{
  background: rgba(255, 210, 60, .15);
  color: var(--accent-color);
}

.menu__img{
  width: 160px;
  align-self: center;
  margin: var(--mb-1) 0 var(--mb-2);
  transition: .4s;
}

.menu__content:hover .menu__img{
  transform: scale(1.05) rotate(-2deg);
}

.menu__name{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-bold);
}

.menu__detail{
  font-size: var(--smaller-font-size);
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.menu__spec-note{
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  flex-grow: 1;
}

.menu__footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu__preci{
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: var(--font-bold);
  color: var(--title-color);
}

.menu__button{
  padding: .6rem;
  font-size: 1.25rem;
  border-radius: .5rem;
}

/*========== OIL FINDER ==========*/
.finder__card{
  padding: 2rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  background: var(--container-color);
  box-shadow: var(--shadow);
}

.finder__subtext{
  text-align: center;
  margin-bottom: var(--mb-4);
}

.finder__controls{
  grid-template-columns: 1fr;
  margin-bottom: var(--mb-4);
}

.finder__field label{
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: .4rem;
}

.finder__select{
  width: 100%;
  padding: .8rem 1rem;
  border-radius: .5rem;
  border: 1px solid var(--border-color);
  background-color: var(--body-color);
  color: var(--title-color);
  font-family: inherit;
  font-size: var(--normal-font-size);
  cursor: pointer;
  outline: none;
}

.finder__select:focus{
  border-color: var(--first-color);
  box-shadow: var(--glow);
}

.finder__result{
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--first-color);
  background-color: var(--body-color);
  transition: .3s;
}

.finder__result.flash{
  animation: flash .6s ease;
}

@keyframes flash{
  0%{ box-shadow: 0 0 0 rgba(0,161,156,0); }
  50%{ box-shadow: 0 0 30px rgba(0,161,156,.5); }
  100%{ box-shadow: 0 0 0 rgba(0,161,156,0); }
}

.finder__rec-tag{
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: .15em;
  color: var(--accent-color);
}

.finder__rec-title{
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin: .25rem 0;
}

.finder__rec-desc{
  font-size: var(--small-font-size);
}

.finder__result-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.finder__rec-grade{
  font-family: var(--title-font);
  font-size: 1.75rem;
  font-weight: var(--font-bold);
  color: var(--first-color-light);
}

/*========== APP ==========*/
.app__data{
  text-align: center;
}

.app__description{
  margin-bottom: var(--mb-5);
}

.app__stores{
  margin-bottom: var(--mb-4);
}

.app__store{
  width: 130px;
  margin: 0 var(--mb-1);
  transition: .3s;
}

.app__store:hover{
  transform: translateY(-3px);
}

.app__img{
  width: 240px;
  justify-self: center;
}

/*========== CONTACT ==========*/
.contact__container{
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--container-color);
  border: 1px solid var(--border-color);
}

.contact__description{
  margin-bottom: var(--mb-3);
}

/*========== TOAST ==========*/
.toast{
  position: fixed;
  left: 50%;
  bottom: -5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: .75rem;
  background-color: var(--container-color);
  border: 1px solid var(--first-color);
  box-shadow: var(--glow);
  color: var(--title-color);
  font-size: var(--small-font-size);
  z-index: var(--z-toast);
  transition: bottom .4s ease;
  max-width: calc(100% - 2rem);
}

.toast__icon{
  color: var(--first-color);
  font-size: 1.4rem;
}

.toast.show-toast{
  bottom: 1.5rem;
}

/*========== FOOTER ==========*/
.footer{
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer__container{
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  row-gap: 2rem;
}

.footer__logo{
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  color: var(--first-color);
  font-weight: var(--font-bold);
  letter-spacing: .05em;
}

.footer__description{
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
}

.footer__social{
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
  transition: .3s;
}

.footer__social:hover{
  color: var(--first-color);
}

.footer__title{
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer__content li{
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.footer__link{
  display: inline-block;
  color: var(--text-color);
  transition: .3s;
}

.footer__link:hover{
  color: var(--first-color-light);
}

.footer__copy{
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== MEDIA QUERIES ==========*/
@media screen and (max-width: 360px){
  .home__stats{
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 576px){
  .home__container,
  .about__container,
  .app__container{
    grid-template-columns: repeat(2,1fr);
    align-items: center;
  }

  .about__data, .about__initial,
  .app__data, .app__initial,
  .contact__container, .contact__initial{
    text-align: initial;
  }

  .about__img, .app__img{
    width: 380px;
    order: -1;
  }

  .finder__controls{
    grid-template-columns: 1fr 1fr;
  }

  .finder__result{
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
  }

  .finder__result-meta{
    flex-direction: column;
    align-items: flex-end;
  }

  .contact__container{
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
    padding: 3rem;
  }
  .contact__button{
    justify-self: center;
  }
}

@media screen and (min-width: 768px){
  body{
    margin: 0;
  }

  .section{
    padding-top: 7rem;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list{
    display: flex;
    align-items: center;
  }
  .nav__item{
    margin-left: var(--mb-4);
    margin-bottom: 0;
  }
  .nav__actions{
    margin-left: var(--mb-4);
  }
  .nav__toggle{
    display: none;
  }

  .home__container{
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 3.5rem);
  }

  .services__container,
  .menu__container{
    margin-top: var(--mb-4);
  }

  .finder__card{
    padding: 3rem;
  }

  .app__store{
    margin: 0 var(--mb-1) 0 0;
  }
}

@media screen and (min-width: 960px){
  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }

  .home__img{
    width: 520px;
  }

  .about__container,
  .app__container{
    column-gap: 6rem;
  }

  .menu__container{
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
  html{ scroll-behavior: auto; }
}

/*========== CONCEPT DISCLAIMER ==========*/
.concept-banner{
  background-color: var(--first-color);
  color: #FFF;
  text-align: center;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  padding: .35rem 1rem;
  line-height: 1.4;
}

.concept-notice{
  max-width: 1080px;
  margin: 0 auto var(--mb-3);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--first-color);
  border-radius: .5rem;
  font-size: var(--small-font-size);
}

.concept-notice strong{
  color: var(--title-color);
}
