:root {
  --primary-white: #fff;
  --secondary-white: #f3f3f3;

  --primary-blue: #d8f9ff;

  --text-color: rgb(0, 67, 145);
  --information-text: rgb(0, 123, 185);
  --color-hightlight: rgb(0, 189, 248);

  --normal-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
  --drop-shadow: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Prompt", "Noto Sans Thai", sans-serif;

  width: 100%;
  max-width: 100vw;

  min-height: 100vh;
  overflow-x: clip;
}

header {
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: row;

  width: 100%;
  height: 4rem;

  background-color: var(--primary-white);

  box-shadow: var(--normal-shadow);
  -webkit-box-shadow: var(--normal-shadow);

  z-index: 9999;
}

nav {
  width: 100%;

  display: flex;
  flex-direction: row;

  justify-content: flex-start;
  align-items: center;

  gap: 1rem;
}

nav a {
  color: var(--text-color);
  padding: 1rem;
  border-bottom: 2px solid transparent;

  user-select: none;
  cursor: pointer;

  transition: border-bottom-color 200ms ease-in-out;
}

nav a:hover,
nav a:active {
  color: var(--color-hightlight);
  border-bottom-color: var(--color-hightlight);
}

nav .close {
  display: none;

  position: absolute;
  top: 0;
  right: 0;

  color: var(--text-color);

  font-weight: 600;
  line-height: 0;

  padding: 1rem;

  user-select: none;
  cursor: pointer;
}

.header-img-wrapper {
  height: 100%;
}

.header-img-wrapper img {
  height: 100%;
}

.header-hamberger-menu {
  display: none;
  padding: 0.25rem;

  background: none;
  border: transparent;

  cursor: pointer;
}

.header-hamberger-menu path {
  fill: var(--color-hightlight);
  transition: fill 200ms ease-in-out;
}

.header-hamberger-menu:hover path {
  fill: var(--text-color);
}

article,
#home {
  scroll-margin-top: 4rem;
}

main {
  width: 100%;
  height: 100%;

  margin-top: 4rem;
}

.main-image {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100%;
  margin: 0;
  padding: 0;
}

.main-image img {
  width: 100%;
  height: 100%;
}

.main-article {
  display: flex;
  flex-direction: column;

  font-size: 1.875rem;
  justify-content: flex-start;
  align-items: center;

  width: 100%;
  height: 100%;

  padding: 1.5rem;

  background: linear-gradient(
    to bottom,
    var(--primary-blue),
    var(--secondary-white)
  );
}

.main-article p {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-color);
}

.main-article .secondary-content {
  font-size: 1.15rem;
}

.after-about {
  width: 100%;
}

.after-about img {
  width: 100%;
}

.location {
  width: 100%;

  display: flex;
  flex-direction: column;

  justify-content: flex-start;
  align-items: center;

  padding: 1rem;
  gap: 1rem;
}

.location img {
  width: 30%;
  border-radius: 15px;
}

.location .text {
  width: 100%;

  text-align: center;
  color: var(--text-color);
}

h1,
h2 {
  font-weight: 500;
  color: var(--color-hightlight);
}

.location .find-us {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}

.find-us-btn {
  position: relative;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-hightlight);
  background: none;

  border: 2px solid var(--color-hightlight);
  border-radius: 8px;

  box-shadow: var(--normal-shadow);
  -webkit-box-shadow: var(--normal-shadow);

  cursor: pointer;
  overflow: hidden;

  transition:
    0.3s var(--fill-delay, 0s),
    background-position 0.3s calc(0.3s - var(--fill-delay, 0s));
}

.find-us-btn:hover,
.find-us-btn:active {
  color: white;
}

.liquid {
  background: linear-gradient(var(--color-hightlight)) no-repeat
    calc(200% - var(--fill-level, 0%)) 100% / 200% var(--fill-level, 0.2em);

  transition:
    0.3s var(--fill-delay, 0s),
    background-position 0.3s calc(0.3s - var(--fill-delay, 0s));
}

.liquid:hover,
.liquid:active {
  --fill-level: 100%;
  --fill-delay: 0.3s;
  color: var(--primary-white);
}

h4 {
  color: var(--color-hightlight);
}

.services {
  width: 100%;
  margin-top: 2rem;

  display: flex;
  flex-direction: column;

  justify-content: flex-start;
  align-items: center;
}

.services .products-row {
  width: 100%;

  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 3rem;
  padding-right: 3rem;

  display: flex;
  flex-direction: column;

  gap: 1rem;
}

.services .products-row h2 {
  color: var(--text-color);
}

.services .products-row .products {
  width: 100%;

  display: flex;
  flex-direction: row;

  align-items: center;

  padding: 0.25rem;
  gap: 0.75rem;

  scroll-behavior: smooth;
  overflow-x: auto;
}

.scrollable-x {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

.scrollable-x::-webkit-scrollbar {
  height: 8px;
}

.scrollable-x::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-x::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 999px;
}

.scrollable-x::-webkit-scrollbar-thumb:hover,
.scrollable-x::-webkit-scrollbar-thumb:active {
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.products-row .products .product-card {
  position: relative;

  width: 300px;
  height: 300px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;

  border-radius: 16px;

  box-shadow: var(--normal-shadow);
  -webkit-box-shadow: var(--normal-shadow);

  overflow: hidden;
  transition: transform 250ms ease-in-out;
}

/* base corner style */
.product-card .corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid transparent;
  pointer-events: none;

  transition: border-color 250ms ease-in-out;
}

.product-card:hover .corner,
.corner {
  border-color: var(--color-hightlight);
}

/* top-left */
.corner.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 16px 0 0 0;
}

/* top-right */
.corner.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 16px 0 0;
}

/* bottom-left */
.corner.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 16px;
}

/* bottom-right */
.corner.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 16px 0;
}

.products .product-card .product-image {
  width: 100%;
  height: 200px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
}

.product-card .product-image.height img {
  height: 100%;
}

.products .product-card .product-info {
  height: 100px;

  display: flex;
  flex-direction: column;

  justify-content: flex-start;
  align-items: flex-start;

  padding: 1rem;
  overflow: auto;
}

.product-card .product-info p {
  color: var(--information-text);
}

.employee {
  width: 100%;

  display: flex;
  flex-direction: column;

  justify-content: flex-start;
  align-items: center;

  gap: 1rem;
  padding: 1rem;
}

.employee .position-container {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 2rem;
}

.employee .position {
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 0.75rem;
}

.employee .position h3 {
  color: var(--text-color);
  font-weight: 500;
}

.employee-list {
  width: 100%;

  display: flex;
  flex-direction: row;

  justify-content: flex-start;

  gap: 1.5rem;
  padding: 0.5rem;

  overflow-x: auto;
}

.employee-list .employee-container {
  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  margin-inline: auto;
}

.employee-card {
  width: 275px;
  aspect-ratio: 1 / 1.25;

  padding: 1rem;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 1rem;

  background: var(--secondary-white);
  border-radius: 16px;

  border-bottom: 2px solid transparent;

  box-shadow: var(--normal-shadow);
  -webkit-box-shadow: var(--normal-shadow);

  overflow: hidden;
  transition: all 200ms ease-in-out;
}

.employee-card:hover,
.employee-card:active {
  transform: scale(1.025);
  border-bottom-color: var(--color-hightlight);
}

.employee-card .image-wrapper {
  width: 100%;
  border-radius: 12px;

  overflow: hidden;
}

.employee-card .image-wrapper img {
  width: 100%;
  border-radius: 12px;
}

.employee-container {
  color: var(--text-color);
}

.policy {
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 1rem;
  padding: 1rem;
}

.policy .image-wrapper {
  width: 15%;
}

.policy .image-wrapper img {
  width: 100%;
}

.policy .policy-text {
  width: 50%;
  color: var(--text-color);
  text-align: center;
}

.policy-text .main {
  font-size: 1.25rem;

  color: var(--color-hightlight);
}

.policy-text .highlight {
  color: var(--color-hightlight);
  font-weight: 500;
}

.contact {
  margin-top: 0.5rem;

  position: relative;
  width: 100%;

  display: flex;
  flex-direction: row;

  gap: 1rem;
  padding: 1rem;

  justify-content: center;
}

.contact::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: 95%;
  height: 1px;

  transform: translateX(-50%);

  background: var(--color-hightlight);
}

.contact .call-us {
  width: 25%;
}

.contact .call-us img {
  width: 100%;
  transition: transform 200ms ease-in-out;
}

.contact .call-us:hover img,
.contact .call-us:active img {
  transform: translateY(-5px);
}

.contact-info {
  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 1rem;
}

.contact-info .address {
  font-size: 0.85rem;
  font-weight: 400;

  color: var(--text-color);
}

.contact-info .address .factory-name {
  font-size: 1rem;
  font-weight: 500;
}

.contact-bar {
  display: flex;
  flex-direction: row;

  gap: 1rem;
}

.copyright {
  display: flex;
  justify-content: center;
  align-items: center;

  font-weight: 300;

  color: var(--text-color);
}

.social {
  display: flex;
  flex-direction: row;

  gap: 0.75rem;
}

.social .social-icon {
  width: 2rem;
  height: 2rem;

  display: flex;
  justify-content: center;
  align-items: center;

  filter: var(--drop-shadow);
  -webkit-filter: var(--drop-shadow);

  border-radius: 9999px;
  border: 1px solid var(--color-hightlight);

  transition: all 200ms ease-in-out;
}

.social .social-icon:hover,
.social .social-icon:active {
  background: var(--color-hightlight);
  transform: scale(1.05);
}

.social-icon svg path {
  transition: fill 200ms ease-in-out;
}

.social-icon:hover svg path,
.social-icon:active svg path {
  fill: var(--primary-white);
}

@media (max-width: 768px) {
  nav {
    gap: 0.5rem;
  }

  nav a {
    padding: 0.75rem;
  }

  .employee-card {
    width: 275px;
  }

  .policy .image-wrapper {
    width: 30%;
  }
}

@media (max-width: 480px) {
  header {
    align-items: center;
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 0;
    left: 100%;

    flex-direction: column;

    height: 100vh;

    padding-top: 1.25rem;

    background: var(--primary-white);

    transition: left 200ms ease-in-out;
    z-index: 99999;
  }

  nav .close {
    display: block;
  }

  nav.show {
    left: 0;
  }

  .header-hamberger-menu {
    display: block;
  }

  .location iframe {
    width: 100%;
  }

  .services h2 {
    text-align: center;
  }

  .services .products-row {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .products .product-card .product-image {
    height: 150px;
  }

  .products .product-card .product-info {
    height: 50px;
    padding: 0.5rem;
  }

  .products-row .products .product-card {
    width: 200px;
    height: 200px;
  }

  .employee-card {
    width: 250px;
  }

  .policy .image-wrapper {
    width: 50%;
  }

  .policy .policy-text {
    width: 75%;
  }

  .contact {
    flex-direction: column;
  }

  .contact .call-us {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
  }
}
