/*
Theme Name: webpopular Child
Theme URI: https://webpopular.net/wordpress-theme
Description: Child theme for webpopular â€” site custom CSS, shortcodes, and QR code form.
Author: webpopular.net
Author URI: https://webpopular.net/
Template: webpopular
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 5.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webpopular-child
*/

/* Nested submenu parents: keep vertical stack (parent .menu li:has(.sub-menu) was inline-flex). */
.menu .sub-menu li:has(.sub-menu) {
  display: block;
}

.menu .sub-menu li:has(.sub-menu) a {
  flex: unset;
}

/* Shortcodes */
.accent {
  color: #8abfd1;
}

.service-blocks,
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}

.services a {
  color: black;
  text-decoration: none;
}

.services img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.services h3 {
  text-align: center;
  margin-top: 10px;
}

.service-pages .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 20px;
  text-align: center;
  margin-bottom: 50px;
}

.projects-portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 35px;
}

.hover-box {
  position: relative;
  box-shadow: 0px 10px 14px -7px #000;
}

.hover-box .overlay {
  height: 100%;
  width: 100%;
  position: absolute;
}

.hover-box .overlay.dark {
  background-color: rgba(0, 0, 0, 0.2);
}

.hover-box .overlay.darker {
  background-color: rgba(0, 0, 0, 0.4);
}

.hover-box:hover .overlay,
.hover-box:hover .overlay.dark,
.hover-box:hover .overlay.darker {
  background-color: rgba(0, 0, 0, 0.5);
}

.hover-box .image {
  height: 380px;
}

.hover-box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hover-box .details {
  position: absolute;
  text-align: center;
  padding: 20px;
  width: 100%;
  transition: transform 300ms;
}

.hover-box:hover .details {
  transform: translate3d(0, -100%, 0);
}

.hover-box p,
.hover-box h2 {
  color: white;
}

.hover-box h2 {
  font-weight: 600;
  font-size: 30px;
  padding-bottom: 10px;
  opacity: 0;
  transition: opacity 300ms ease-in-out, transform 300ms;
  transform: translate3d(0, -150%, 0);
}

.hover-box:hover h2 {
  opacity: 1;
  transform: translate3d(0, -5px, 0);
}

.hover-box .excerpt {
  max-width: 80%;
  margin: auto;
  font-style: italic;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.hover-box:hover .excerpt {
  opacity: 1;
}

.projects-portfolio .hover-box .image {
  height: 368px;
}

/* QR Code form */
.qr-form .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
}

.qr-form input[type='submit'] {
  cursor: pointer;
  background: #8abfd1;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  color: white;
  font-weight: 600;
  width: auto;
  margin-left: auto;
  margin-top: 30px;
}

.qr-form input[type='submit']:hover,
.qr-form input[type="file"]::file-selector-button:hover {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 20px;
  filter: brightness(1.15);
}

.qr-form input[type='file'] {
  position: relative;
}

.qr-form input[type="file"]::file-selector-button {
  right: 0;
  position: absolute;
}

.qr-form .confirmation {
  margin-top: 50px;
}

.qr-form .jumping-dots {
  display: none;
  position: relative;
  text-align: right;
}

.jumping-dots div {
  background-color: darkgray;
  position: relative;
  animation: webpopular-child-jump 1s infinite;
  display: inline-block;
  border-radius: 50%;
  margin-right: 3px;
  width: 8px;
  height: 8px;
}

.jumping-dots .dot-1 {
  animation-delay: 200ms;
}

.jumping-dots .dot-2 {
  animation-delay: 400ms;
}

.jumping-dots .dot-3 {
  animation-delay: 600ms;
}

@keyframes webpopular-child-jump {
  0% { bottom: 0; }
  20% { bottom: 5px; }
  40% { bottom: 0; }
}

@media screen and (max-width: 1000px) {
  .service-blocks,
  .services,
  .projects-portfolio,
  .qr-form .grid {
    grid-template-columns: 1fr;
  }

  .service-pages .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 580px) {
  .service-pages .grid {
    grid-template-columns: 1fr 1fr;
  }

  .hover-box h2 {
    font-size: 24px;
  }
}

