/* =========================
   CHEMIQ : NEW WEB
   ========================= */

/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'roboto';
  src: url('assets/fonts/roboto.ttf');
  font-display: swap;
}

body {
  background: #f5f5f5;
  font-family: roboto, sans-serif;
  overflow-x: hidden;
}

/* ---------- Layout Utilities ---------- */
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.centered { display: flex; justify-content: center; align-items: center; }

/* ---------- Header / Menu ---------- */
.brand {
  width: 150px;
  height: auto;
}

.menu {
  position: absolute;
  top: 90px;
  right: 0;
  padding: 20px;
  opacity: 1;
  z-index: 10;
  display: flex;
  flex-direction: row;
}

.menu > div { padding-left: 20px; }

/*----------- Link Part -----------*/
a {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 300;
  color: #28ac07;
  transition: color .2s ease;
  padding: 3px 0;
  margin-bottom: 15px;
  text-decoration: none;
}

a:hover {
  color: #3d3b3b;
}
  
a:hover::after, a:hover::before {
  width: 100%;
  left: 0;
}
  
a::after, a::before {
  content: ''; 
  position: absolute;
  top: calc(100% + 5px);
  width: 0;
  right: 0;
  height: 3px;
}
  
a::before {
  transition: width .4s cubic-bezier(0.51, 0.18, 0, 0.88) .1s;
  background: #44f321;
}
  
a::after {
  transition: width .2s cubic-bezier(0.29, 0.18, 0.26, 0.83);
  background: #bee709;
}

.topstrip a {
  color: #fff; /* shortened from #ffffff */
}

.topstrip a:hover {
  color: #3d3b3b;
}
  
.topstrip a:hover::after, .topstrip a:hover::before,
.flink a:hover::after, .flink a:hover::before,
.social a:hover::after, .social a:hover::before {
  width: 0;
  left: 0;
}

.flink a {
  color: #f00; /* shortened from #ff0000 */
  font-size: 0.70rem;
}

.flink a:hover {
  color: #807676;
}

/* ---------- Top Strip ---------- */
.topstrip {
  background-color: #28ac07;
  width: 100%;
  text-align: right;
  padding: 2px 20px;
  box-shadow: 0 0 5px grey;
}

.topstrip a {
  color: #fff;
  padding: 0;
  margin-bottom: 0;
  text-decoration: none;
  transition: color .2s ease;
}

.topstrip a:hover { color: #3d3b3b; }

/* ---------- Slideshow ---------- */
.slideshow {
  width: 100%;
  height: clamp(300px, 35vw, 700px);
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: fit-content;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.slide-img {
  width: 100%;
  height: clamp(300px, 35vw, 700px);
  object-fit: cover;
  object-position: center;
}

.caption {
  position: absolute;
  bottom: clamp(20px, 11vw, 80px);
  padding: 20px;
  width: 100%;
  color: snow;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(1rem, 3.5vw, 4rem);
  text-align: center;
  filter: drop-shadow(0 0 5px #000);
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 2s ease, transform 2s ease;
  pointer-events: none;
}

.slide.active .caption {
  opacity: 1;
  transform: translateY(-40%);
}

.controls {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  pointer-events: none;
}

.arrow {
  height: 30px;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 0 2px #000);
}

.next { transform: rotate(180deg); }

.dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active { background: #fff; }

/* ---------- Main Body ---------- */
.main {
  width: 100%;
  height: 300px;
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  background-color: #071f01;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-around;
  padding: 20px;
}

.footer > div { padding-top: 20px; }

.flds {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ---------- Form Elements ---------- */
.hldr, .hldrx, .hldrc {
  border: 1px solid gray;
  background-color: #f5f5f5;
  padding: 0 5px;
}

.hldr { height: 40px; width: 350px; }
.hldrx { height: 200px; width: 350px; }
.hldrc { height: 40px; width: 140px; }

input[type=text],
input[type=email],
input[type=password],
input[type=tel] {
  width: calc(100% - 3px);
  height: 50px;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 5px;
  font-size: 0.95rem;
}

input[type=submit],
input[type=reset] {
  width: 120px;
  height: 40px;
  font-size: 0.95rem;
  box-shadow: inset 0 0 8px rgb(128, 128, 127);
}

input[type=submit]:hover,
input[type=reset]:hover {
  background-color: #ecece4;
  box-shadow: inset 0 0 8px rgb(250, 250, 249);
}

textarea {
  width: calc(100% - 3px);
  height: 200px;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 5px;
  font-size: 0.95rem;
  resize: none;
  font-family: roboto;
}

textarea::placeholder { font-family: roboto; }

label {
  position: relative;
  top: -40px;
  left: 5px;
  pointer-events: none;
  font-size: 0.95rem;
  color: #717171;
  transition: top 0.5s ease;
}

input:is(:focus, :valid) ~ label {
  font-size: 0.75rem;
  color: #0bd404;
  top: -50px;
}

/* ---------- Captcha ---------- */
.caparea, .butarea {
  display: flex;
  justify-content: space-between;
  width: 350px;
}

#captcha {
  width: 140px;
  height: 40px;
  padding-right: 20px;
}

#rld {
  height: 40px;
  border-radius: 50%;
  filter: invert();
}

#rld:hover {
  box-shadow: inset 0 0 8px rgb(128, 128, 127);
  transform: rotate(60deg);
  transition-duration: 1s;
}

/* ---------- Messages ---------- */
.frmcap {
  font-size: 1.5rem;
  color: #f5f5f5;
  padding-bottom: 20px;
}

.errmsg {
  font-size: 0.95rem;
  color: #ff0000;
  padding-bottom: 20px;
}

.success {
  font-size: 1.2rem;
  color: #28ac07;
  padding-bottom: 20px;
}

/* ---------- Social ---------- */
.social { padding-top: 108px; }

.social img {
  width: 48px;
  height: 48px;
}

.social img:hover { filter: brightness(0.3); }

.visit, .copy { color: #fff; }

.visit { padding-top: 300px; }

.visit > div {
  width: 150px;
  border: 1px solid cornflowerblue;
  padding: 5px;
  text-align: center;
}

.blu {
  background-color: cornflowerblue;
  border-radius: 10px 10px 0 0;
}

.flink {
  color: #fff;
  padding-top: 50px;
}

.flink a {
  color: #ff0000;
  font-size: 0.70rem;
  text-decoration: none;
  transition: color .2s ease;
}

.ham { display: none; }

/* ---------- Install Banner ---------- */
#installBanner {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #0baa88;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: sans-serif;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

#installBanner.show { bottom: 0; opacity: 1; }
#installBanner.hide { bottom: -100px; opacity: 0; }

#installBanner button {
  margin-left: 8px;
  background: #fff;
  color: #0baa88;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- Responsive (Small Screens) ---------- */
@media only screen and (max-width: 1000px) {

  .footer > div { padding-top: 20px; }

  .brand {
    width: 100px;
    height: auto;
  }

  .menu {
  position: fixed;
  top: 0;
  right: 0; /* keep positioning reference */
  padding-top: 100px;
  opacity: 0.98;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background-color: #071f01;
  width: 300px;
  height: 100%;
  overflow-y: hidden;
  /* Start hidden by shifting fully to the right */
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
  will-change: transform; /* performance hint */
}

  .menu div {
    padding-top: 30px;
    padding-left: 40px;
  }

  /* Active state (slide in) */
.menu.active {
  transform: translateX(0);
}

  .ham { display: block; }

  .cover {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
  }

  .cover.active { left: 0; }

  .flink { padding-top: 100px; }

  /* ---------- Hamburger Button ---------- */
  .hamburger {
    position: fixed;
    top: 40px;
    right: 20px;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    z-index: 11;
  }

  .hamburger span {
    height: 4px;
    background: #333;
    border-radius: 2px;
    transition: all 0.8s ease;
    user-select: none;
  }

  /* ---------- Hamburger Animation ---------- */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7.5px, -7.5px);
  }
}