:root {
  --brand-color: #002164;
  --secondary-brand-color: #27479c;
  --background-color: #eef0f3;
  --text-color: #595959;
}

@font-face {
  font-family: "Noto Sans Thai";
  /* src: url(../fonts/NotoSansThai-Regular.ttf); */
  src: URL("../fonts/NotoSansThai-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Noto Sans Thai";
  /* src: url(../fonts/NotoSansThai-Medium.ttf); */
  src: URL("../fonts/NotoSansThai-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Noto Sans Thai";
  /* src: url(../fonts/NotoSansThai-SemiBold.ttf); */
  src: URL("../fonts/NotoSansThai-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

html,
body {
  margin: 0;
  color: #232527;
  font-family: "Noto Sans Thai";
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand-color);
}

a {
  text-decoration: none;
}

ul {
  padding-left: 20px;
  list-style: none;
}

ul li::before {
  content: "\2022";
  position: relative;
  top: 3px;
  line-height: 1;
  color: var(--brand-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 22px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 100;
}

section.header-container {
  text-align: center;
  height: 100%;
}

section,
footer {
  position: relative;
  height: 100vh;
  padding: 60px 5% 60px;
  box-sizing: border-box;
}

#landing {
  background-image: url(../images/thaimetal-01.jpg);
}

#intro {
  background-image: url(../images/thaimetal-07.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
}

#intro2 {
  color: #232527;
  background-color: #eef0f3;
}

#product-industry,
#product-windows {
  display: flex;
  padding: 0;
}

#certification {
  background-image: url(../images/thaimetal-05.jpg);
}

#banner {
  background-image: url(../images/thaimetal-02.jpg);
  background-color: rgba(0, 0, 0, 0.5);
  height: 60vh;
}

footer {
  background-color: var(--brand-color);
  height: 100%;
}

.text-s {
  font-size: 18px;
}

.text-m {
  font-size: 20px;
}

.text-l {
  font-size: 24px;
}

.v-center {
  display: flex;
  align-items: center;
}

.image-background {
  background-size: cover;
  background-position: center center;
}

.image-background.fixed {
  background-attachment: fixed;
}

.header-text-content h1 {
  margin-bottom: 10px;
}

.logo {
  display: block;
  margin-bottom: 15px;
}

.logo img {
  width: 300px;
}

.mr-10 {
  margin-right: 20px;
}

.ml-10 {
  margin-left: 20px;
}

.header-card-content {
  max-width: 930px;
  justify-content: space-around;
  display: flex;
  margin: auto;
  align-content: stretch;
}

.responsive-card {
  margin: 0px 12px;
  background: #eef0f3;
  padding: 24px;
  transition: 0.25s;
}

.responsive-card .card-body {
  color: #27479c;
}

.responsive-card:hover {
  background: #27479c;
}

.responsive-card:hover .card-body {
  color: #fff;
}

.header-card-content a {
  width: 46%;
}

.card-header {
  width: 100%;
}

.img-card {
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.card-header img {
  width: 100%;
  height: auto;
}

.card-body {
  padding: 0px;
  text-align: left;
}

.card-body-title {
  font-weight: 600;
  justify-content: space-between;
  display: flex;
}

.card-body-title svg {
  margin-top: 12px;
}

.card-body-description {
  max-width: 90%;
  line-height: 1.4;
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.overlay.black {
  background-color: #000;
  opacity: 0.6;
}

.overlay.blue {
  background-color: var(--background-color);
  opacity: 0.9;
}

.text-on-banner {
  max-width: 800px;
  margin: auto;
  text-align: center;
  z-index: 10;
  line-height: 35px;
}

.tm-half {
  width: 50%;
}

.content {
  position: relative;
}

.content.half {
  max-width: 430px;
  margin: auto;
  padding: 0 5%;
}

.half h2 {
  margin-bottom: 10px;
}

.half h5 {
  font-size: 18px;
  margin: 0px;
  color: var(--brand-color);
  line-height: 1.4;
}

.product-windows h5 {
  color: #002164;
}

.button {
  display: flex;
  align-items: center;
  width: max-content;
  /* padding: 8px 24px; */
  padding: 12px 40px;
  color: #fff;
  background-color: var(--secondary-brand-color);
  /* border-radius: 60px; */
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid transparent;
  transition-property: all;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}

.white-style-button {
  color: var(--secondary-brand-color);
}

.alter-style-button {
  background-color: #002164;
}

.button.alter-style-button:hover {
  color: #002164;
  background-color: #fff;
  border-color: #002164;
}

.button:hover {
  background-color: var(--brand-color);
}

.button svg {
  margin-left: 8px;
  width: 16px;
  height: auto;
}

.dark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dark,
.dark h1,
.dark h2,
.dark h5 {
  color: #fff;
}

.dark .button {
  color: var(--brand-color);
  background-color: #fff;
}

.dark .button:hover {
  color: #fff;
  background-color: transparent;
  border-color: #fff;
}

.dark ul li::before {
  color: #fff;
}

#landing .content {
  max-width: 770px;
  margin: 180px auto 0;
  text-align: center;
}

#landing h1 {
  margin-bottom: 5px;
}

.japanese-title {
  margin-top: -10px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--brand-color);
}

#product-industry .tm-half:nth-child(1) {
  background-color: var(--brand-color);
}

#product-industry .tm-half:nth-child(2) {
  background-image: url(../images/thaimetal-08.jpg);
  background-position: left center;
}

#product-windows .tm-half:nth-child(1) {
  background-image: url(../images/thaimetal-04.jpg);
}

#product-industry ul,
#product-windows ul {
  margin-bottom: 24px;
}

section#certification {
  height: 100%;
}

#certification .content {
  max-width: 1200px;
  margin: 20px auto 20px;
}

#certification h2 {
  text-align: center;
}

#certification ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 44px;
  max-width: 1000px;
  margin: 24px auto 0;
  line-height: 24px;
  letter-spacing: -0.12px;
}

.half ul li {
  margin: 10px 0px;
}

#certification ul li {
  margin: 10px 0px;
}

.certification-image {
  margin-top: 60px;
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.certification-image img {
  height: 108px;
  padding: 12px;
}

footer .content {
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.address {
  margin: 12px 0;
}

.contact {
  margin: 24px 0 12px;
}

.contact a {
  color: #fff;
}

.social-icons {
  margin-top: 24px;
}

.social-icons a + a {
  margin-left: 24px;
}

.social-icons a {
  transition-property: all;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}

.social-icons a:hover {
  opacity: 0.8;
}

.credit {
  margin-top: 80px;
  left: auto;
  width: 100%;
  font-size: 12px;
  opacity: 0.5;
  text-align: center;
}

.line-icons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

.line-icons button {
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
}

.line-icons img {
  box-shadow: 0 10px 20px 0 #00000020;
  border-radius: 50%;
}

.duns {
  margin-top: 24px;
  text-align: center;
}

#certification h2 {
  margin-bottom: 10px;
}

.googlemap {
  display: flex;
  justify-content: center;
  margin: 24px 0 36px;
}

.googlemap a {
  color: #fff;
  display: flex;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.googlemap a:hover {
  opacity: 0.5;
}

.googlemap svg {
  margin-left: 5px;
  margin-top: 3px;
}

.footer-logo img {
  width: 140px;
  height: auto;
}

.button-container {
  width: 100%;
}

@media screen and (max-width: 960px) {
  section,
  footer {
    height: auto;
  }

  .header-card-content a {
    width: 40%;
  }

  .card {
    width: 90%;
    margin: 20px auto 20px auto;
    height: 380px;
  }

  .mr-10,
  .ml-10 {
    margin-left: 0px;
    margin-right: 0px;
  }

  .content.half {
    padding: 15% 10%;
  }

  section#banner {
    height: 40vh;
  }

  .half ul li {
    margin: 5px 0px;
  }

  #certification ul li {
    margin: 5px 0px;
  }
}

@media screen and (max-width: 767px) {
  h1,
  h2 {
    font-size: 24px;
  }

  .responsive-card {
    margin: 24px 0px;
    padding: 20px;
  }

  .card {
    background: none;
  }

  .logo img {
    width: 260px;
  }

  .header-card-content {
    display: block;
  }

  section {
    padding: 70px 5% 70px;
  }

  section.header-container {
    padding: 60px 5% 60px;
  }

  #logo {
    width: 90px;
    height: auto;
  }

  .button {
    margin: auto;
  }

  #product-industry,
  #product-windows {
    flex-direction: column;
  }

  .tm-half {
    width: 100%;
  }

  .image-background {
    height: 0px;
    padding-bottom: 100%;
  }

  #certification ul {
    grid-template-columns: 1fr;
  }

  #certification .content {
    margin: 10px auto 0;
  }

  #product-industry .tm-half:nth-child(1) {
    order: 2;
  }

  #product-industry .tm-half:nth-child(2) {
    order: 1;
  }

  #landing .content,
  footer .content {
    margin: 0px auto 0;
  }

  .mr-10 {
    margin-right: 0px;
  }

  .ml-10 {
    margin-left: 0px;
  }

  .credit {
    margin-top: 40px;
  }

  footer {
    padding: 40px 5% 40px;
  }

  .text-s {
    font-size: 16px;
    line-height: 1.4;
  }

  .text-m {
    line-height: 1.4;
  }

  .text-l {
    line-height: 1.4;
  }

  .card-body-title svg {
    margin-top: 6px;
  }

  .line-icons {
    bottom: 10px;
    right: 10px;
  }
}
