/*
Theme Name: Ekaroon Corperate Website
Theme URI:
Author: Kritawit B.
Author URL:
Description: Theme for Underwear Corperation
Version: 1.0
License: GNU General Public License v3 or Later
License URL: https://www.gnu.org/licenses/gpl-3.0.html
Tags: underwear, mobile first, responsive, corperate, company
Text Domain: ekaroon
*/

html {
  box-sizing: border-box;
  /* font-family: 'Open Sans', sans-serif; */
  font-family: 'Raleway', sans-serif;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 24px;
}
.clear,
.clear::after {
  content: '';
  clear: both;
  display: block;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.sr-text {
  display: none;
}

/* Colors */
.primary {
  background-color: #37474f;
  transition: background-color 0.5s ease;
}

.secondary {
  background-color: #607d8b;
  transition: background-color 0.5s ease;
}

.primary:hover {
  background-color: #90a4ae;
}

.secondary:hover {
  background-color: #90a4ae;
}

/* HEADER */

header.site-header {
  border-bottom: 1px solid #c1c1c1;
  padding-bottom: 30px;
}
div.logo {
  text-align: center;
}

@media only screen and (min-width: 768px) {
  div.logo {
    text-align: left;
  }
}

@media only screen and (min-width: 992px) {
  div.logo {
    text-align: center;
  }
}

img.logoimage {
  width: 220px;
}

@media only screen and (min-width: 768px) {
  header.site-header .container {
    position: relative;
  }
  header.site-header .header-information {
    position: absolute;
    top: 0;
    right: 0;
  }
}

div.address {
  display: block;
  clear: both;
  padding-top: 10px;
}

div.address p {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  div.address p {
    text-align: right;
  }
}

/* Social Menu */
nav.socials ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

@media only screen and (min-width: 768px) {
  nav.socials ul {
    float: right;
  }
}
nav.socials ul li {
  position: relative;
  display: inline-block;
}
nav.socials ul li a:before {
  font-family: 'FontAwesome';
  display: inline-block;
  vertical-align: top;
  padding: 0 5px;
  content: '\f08e';
  font-size: 30px;
  color: #000000;
  -webkit-font-smoothing: antialiased;
}
nav.socials li a[href*='facebook.com']::before {
  content: '\f09a';
}
nav.socials li a[href*='twitter.com']::before {
  content: '\f081';
}

nav.socials li a[href*='instagram.com']::before {
  content: '\f16d';
}

/** Main Menu **/

site-nav ul ul {
  display: none;
}

.site-nav ul li:hover > ul {
  display: block;
}

.site-nav ul li ul li:hover > a {
  background-color: #d3d3d3;
}

.site-nav ul ul {
  display: none;
  list-style: none;
  position: absolute;
  padding: 0px;
  top: 3em;
  left: 0;
  z-index: 99999;
  width: 100%;
  background: #fff;
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
}

.site-nav ul ul li.menu-item {
  float: none;
  width: 100%;
  display: block;
  text-align: left;
}

.site-nav li {
  position: relative;
}

.sub-menu {
  display: list-item;
}

@media screen and (min-width: 768px) {
  nav.site-nav {
    display: block;
  }
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  nav.site-nav ul li {
    display: table-cell;
    width: 1%;
  }
}

/* @media screen and (min-width: 768px) {
  nav.site-nav {
    display: block;
  }
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  nav.site-nav ul li {
    display: table-cell;
    width: 1%;
  }
} */

nav.site-nav ul li a {
  text-align: center;
  padding: 20px 0;
  display: block;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  color: #000000;
  font-family: 'Raleway', sans-serif;
}

nav.site-nav ul li.current_page_item a[aria-current='page'],
.single-products nav.site-nav ul li.menu-item-27 a[aria-current='page'] {
  border-bottom: 8px solid #37474f;
}

.button {
  background-color: #37474f;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  width: auto;
  border-radius: 8px;
  color: #fff !important;
  padding: 15px 80px;
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive Menu Button Menu */
@media only screen and (max-width: 767px) {
  .mobile-menu a {
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    background-color: #37474f;
    width: 100%;
    display: block;
    color: white;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
  }
}

@media only screen and (min-width: 768px) {
  .mobile-menu a {
    display: none;
  }
}

/* Hero Image */
.hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 450px;
  display: table;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero .hero-content {
  display: table-cell;
  vertical-align: middle;
  color: #ffffff;
  z-index: 2;
  position: relative;
}

@media only screen and (min-width: 768px) {
  .hero-text {
    width: 80%;
    margin: 0 auto;
  }
}

@media only screen and (min-width: 992px) {
  .hero-text {
    width: 60%;
  }
}

.main-content {
  padding: 60px;
  background-color: #ffffff;
  position: relative;
}

@media only screen and (min-width: 768px) {
  .main-content {
    margin-top: -90px;
  }
}

.content-text p {
  font-size: 18px;
  line-height: 50px;
}

/* Boxes */

.box-information {
  display: grid;
}

@media screen and (min-width: 768px) {
  .box-information {
    grid-template-columns: repeat(3, 1fr);
  }
}

.single-box {
  display: grid;
  grid-template-columns: 2fr 3fr;
  color: white;
  text-align: center;
}

.single-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

@media screen and (max-device-width: 414px) and (min-device-width: 280px) {
  .single-box img {
    height: 30vh;
  }

  .single-box {
    display: grid;
    grid-template-columns: unset;
  }
}

@media screen and (min-width: 768px) {
  .single-box {
    grid-template-columns: unset;
    grid-template-rows: 1fr 1fr;
  }
}

.single-box:nth-child(1) {
  background-color: #f19f30;
}

.single-box:nth-child(2) {
  background-color: #127427;
}

.single-box:nth-child(3) {
  background-color: #37474f;
}

@media screen and (min-width: 768px) {
  .single-box:nth-child(2) img {
    order: 2;
  }
  .single-box:nth-child(2) div {
    order: 1;
  }
}

.content-box {
  display: grid;
  grid-template-rows: 10% 20% 50% 100%;
  grid-template-areas:
    '.'
    'top'
    'text'
    '.';
}

.content-box * {
  align-self: center;
  padding: 0 20px 20px 20px;
}

@media screen and (min-width: 768px) {
  .content-box {
    grid-template-rows: 20% 30% 30% 20%;
  }
}

.content-box h3 {
  grid-area: top;
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.content-box p {
  grid-area: text;
}

/* footer */
footer {
  margin-top: 30px;
  padding: 30px 0;
  border-top: 1px solid #c1c1c1;
  text-align: center;
}

footer nav ul {
  list-style: none;
}

footer nav ul li {
  display: inline;
}

footer nav ul li:last-child .separator {
  display: none;
}

footer nav ul li a {
  color: #000000;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
}

footer .location {
  margin-top: 30px;
}

footer p {
  margin: 0 0 5px;
  font-size: 14px;
}

footer p.copyright {
  margin-top: 20px;
}

/* Grid */

img {
  max-width: 100%;
  height: auto;
}

@media only screen and (min-width: 768px) {
  .container-grid {
    margin-left: 100px;
    margin-right: 100px;
  }
  .container-grid::after {
    content: '';
    display: block;
    clear: both;
  }
  [class*='column'] {
    padding: 0 10px;
    float: left;
  }
  .columns1-4 {
    width: 25%;
  }
  .columns2-4 {
    width: 50%;
  }
  .columns3-4 {
    width: 75%;
  }
  .columns1-3 {
    width: 33.3%;
  }
  .columns2-3 {
    width: 66.6%;
  }
}

/* Products */
.primary-text {
  color: #37474f;
}

.our-products {
  padding: 0 60px;
}

.product-content {
  padding: 20px;
}

.product-content a {
  color: #000000;
  text-decoration: none;
}

.product-content h4 {
  border-bottom: 1px solid #dfdfdd;
  padding: 15px 0;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.product-content h4 span {
  float: right;
  font-size: 20px;
  color: #f19f30;
  font-family: 'Open Sans', sans-serif;
}

.product-content p {
  color: #3d3d3d;
  line-height: 30px;
}

/* Single Products */
.single-products p.ingredients,
.single-products p.price {
  color: #37474f;
  font-size: 30px;
  margin: 0;
}

.single-products p.price span {
  color: #000;
}

/** GALLERY **/

.wp-block-column .wp-block-gallery .gallery-item {
  width: 50% !important;
  margin: 0 !important;
  padding: 0px 10px !important;
}

@media only screen and (min-width: 768px) {
  .wp-block-column .wp-block-gallery .gallery-item {
    width: 20% !important;
  }
}

.wp-block-column .wp-block-gallery .gallery-item img {
  border: none !important;
}

/* Contact US Page */
/* .contact {
  background-image: url(img/bg_contact.png);
  background-repeat: no-repeat;
  background-position: top left;
} */

@media only screen and (min-width: 768px) {
  .contact-info {
    justify-content: center;
    display: flex;
    justify-content: center;
  }
  form.contact-form {
    width: 80%;
    align-self: center;
  }
}

form.contact-form h2 {
  font-size: 20px;
  font-weight: 700;
}

form.contact-form .field {
  margin-bottom: 20px;
  width: 100%;
}

form.contact-form .field input,
form.contact-form .field textarea {
  width: 100%;
  border: 2px solid #000000;
  padding: 15px 10px;
  font-size: 16px;
}

form.contact-form .field textarea {
  height: 200px;
}

form.contact-form ::-webkit-input-placeholder {
  color: #000000 !important;
}

form.contact-form :moz-placeholder {
  color: #000000 !important;
}

form.contact-form ::moz-placeholder {
  color: #000000 !important;
}

form.contact-form ::-ms-input-placeholder {
  color: #000000 !important;
}

/* Fornt Page */
.home div.hero {
  height: 750px;
}

@media only screen and (min-width: 768px) {
  .home .main-content {
    margin-top: 0;
    padding: 0;
  }

  .home .hero-text {
    width: 50%;
  }
}

@media only screen and (min-width: 992) {
  .home .hero-text {
    width: 40%;
  }
}

.home .hero-text p {
  line-height: 40px;
  font-size: 18px;
}

.product-content {
  position: relative;
  overflow: hidden;
  display: table;
  padding: 5px;
}

.product-content .information {
  position: absolute;
  top: 100%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(92, 104, 109, 0.75);
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  color: #ffffff;
  padding: 5px;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.product-content:hover .information {
  top: 0;
  opacity: 1;
}

.product-content .information .price {
  font-size: 60px;
  font-weight: bold;
  color: #fff;
}

.product-content .information h3 {
  font-size: 20px;
  margin-top: 40px;
  font-weight: 700;
  color: #fff;
}

.product-content .information p {
  margin: 0 0 10px 0;
  color: #fff;
}

@media only screen and (max-width: 767px) {
  .product-content {
    overflow: visible;
    display: block;
    margin-bottom: 30px;
    justify-content: center;
  }
  .product-content .information {
    position: relative;
    opacity: 1;
    background-color: #607d8b;
    padding: 30px;
    justify-content: center;
  }
  .product-content img {
    width: 100%;
  }
}

/* Best Production */
section.best-production {
  background-image: url(img/bg_ingredients.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin-top: 50px;
  padding: 80px 0;
  color: #ffffff;
}

section.best-production h3 {
  line-height: 60px;
  font-size: 40px;
  font-weight: 700;
}

section.best-production p {
  line-height: 40px;
  font-size: 20px;
}

@media only screen and (max-width: 767px) {
  section.best-production p,
  section.best-production h3 {
    text-align: center;
  }

  section.best-production a {
    margin: 0 auto;
    display: block;
    width: 250px;
  }
}

section.best-production .image {
  padding-top: 30px;
  text-align: center;
}

section.best-production .image img {
  width: 80%;
}

/* Contact and Map */
section.location-contact-us {
  /* background-image: url(img/bg_ingredients.jpg); */
  /* background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; */
  margin-top: 50px;
  padding: 50px 0;
  border-style: solid;
}
.home .contact-info {
  margin: 0;
  padding-right: 30px;
}

.home .contact-info h2 {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 20px 0;
}

.home .contact-info input,
.home .contact-info textarea {
  background-color: transparent;
}

.home .contact-info input[type='submit'] {
  background-color: #37474f;
  border: none !important;
}
