/*
Theme Name: Voltes Energia Solar 1.0
Theme URI: http://www.amson.ca/
Description: Voltes Energia Solar 1.0 theme developed by <a href="https://rodrigosakata.com/" target="_blank">Rodrigo Sakata</a>.
Version: 1.0
Author: <a href="https://rodrigosakata.com/" target="_blank">Rodrigo Sakata</a>
Author URI: 
Tags: 
*/

/* Imports */

@import url('styles/reset.css');

/* Base */

:root {
  --theme--header-h: 6.75rem;
  --theme--header-h-mobile: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 100%;
}

.site {
  width: 100vw;
  position: relative;
}

.content {
  margin-top: var(--theme--header-h);
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 600px) {
  .content {
    margin-top: var(--theme--header-h-mobile);
  }
}

/* Header */

.header {
  width: 100vw;
  height: var(--theme--header-h);
  background-color: var(--wp--preset--color--base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .625rem;
  padding-bottom: 1rem;
  padding-left: 1.2rem;
  padding-right: var(--wp--preset--spacing--small);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: 0 .125rem 1rem rgba(0, 0, 0, .2);
}

.admin-bar .header {
  top: 2rem;
}

.header .logo img {
  height: auto;
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }

  .header {
    height: var(--theme--header-h-mobile);
  }

  .admin-bar .header {
    top: 2.875rem;
  }

  .header .logo {
    max-width: 7.5rem;
    margin-right: 1.5rem;
  }
}

/* Form */

.form {
  border-width: .0625rem;
  border-style: solid;
  border-color: var(--wp--preset--color--gray);
  border-radius: 1rem;
  padding: var(--wp--preset--spacing--small);
}

.form .fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, auto));
  gap: 1.25rem;
  margin-bottom: var(--wp--preset--spacing--small);
}

.form small {
  display: block;
  margin-bottom: 1rem;
}

.wpcf7-form-control {
  width: 100%;
  background-color: transparent;
  color: var(--wp--preset--color--text);
  padding-top: .625rem;
  padding-bottom: .625rem;
  border: 0;
  border-bottom: .0625rem solid var(--wp--preset--color--gray);
  border-radius: 0;
  transition: all 150ms ease-out;
}

.wpcf7-form-control::placeholder {
  color: var(--wp--preset--color--text);
}

.wpcf7-form-control:focus-visible {
  outline: none;
  border-color: var(--wp--preset--color--yellow);
}

.wpcf7-form-control:focus::placeholder {
  color: rgba(153, 153, 153, .5);
}

.wpcf7-not-valid-tip {
  color: var(--wp--preset--color--yellow);
  font-size: var(--wp--preset--font-size--small);
  margin-top: .625rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: .625rem 1rem;
  border: .0625rem solid var(--wp--preset--color--base);
  border-radius: 1rem;
  display: inline-block;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--wp--preset--color--yellow);
}

/* Hero */

.hero {
  height: calc(100vh - (var(--theme--header-h) + 2rem));
  min-height: 43.75rem;
  justify-content: flex-start;
  align-items: flex-end;
}

@media screen and (max-width: 600px) {
  .hero {
    min-height: 44rem;
  }

  h1 br {
    display: none;
  }
}

.admin-bar .hero {
  height: calc(100vh - (var(--theme--header-h) + 2rem + 2rem));
}

.hero .wp-block-cover__inner-container {
  width: 50%;
}

.hero .form {
  background-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(1.25rem);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .4);
}

.hero .wpcf7-form-control {
  color: var(--wp--preset--color--base);
  border-bottom: .0625rem solid var(--wp--preset--color--base);
}

.hero .wpcf7-form-control::placeholder {
  color: var(--wp--preset--color--base);
}

.hero .wpcf7-form-control:focus-visible {
  border-color: var(--wp--preset--color--yellow);
}

.hero .wpcf7-form-control:focus::placeholder {
  color: rgba(255, 255, 255, .5);
}

@media screen and (max-width: 600px) {
  .hero .wp-block-cover__background {
    background: rgba(0, 0, 0, .6) !important;
  }

  .hero .wp-block-cover__inner-container {
    width: 100%;
  }
}

/* Elements */

a {
  transition: all 150ms ease-out;
}

.border-bottom {
  border-bottom: .0625rem solid var(--wp--preset--color--gray);
}

.button,
.wpcf7-form-control.wpcf7-submit {
  width: inherit;
  padding: 1rem 3.125rem;
  background-color: var(--wp--preset--color--yellow);
  color: var(--wp--preset--color--blue);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 3.125rem;
  transition: all 150ms ease-out;
  white-space: nowrap;
}

@media screen and (max-width: 600px) {
  .button,
  .wpcf7-form-control.wpcf7-submit {
    padding: .75rem 1rem;
  }
}

.wp-block-button__link {
  transition: all 150ms ease-out;
}

.button:hover,
.wpcf7-form-control.wpcf7-submit:hover,
.wp-block-button__link:hover {
  box-shadow: 0 0 1rem var(--wp--preset--color--yellow);
}

.valorizacao {
  position: relative;
}

.valorizacao::after {
  content: '$$$';
  color:  var(--wp--preset--color--yellow);
  font-weight: 400;
  border: .0625rem solid var(--wp--preset--color--yellow);
  padding: 0 .375rem;
  border-radius: 1rem;
  position: absolute;
  top: -.125rem;
  right: 0;
}

/* Projetos */

.projetos__loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26.25rem, auto));
}

.projetos__loop .projeto {
  position: relative;
}

.projetos__loop .projeto__image {
  width: 100%;
  height: auto;
}

.projetos__loop .projeto__caption {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .3);
  backdrop-filter: blur(1rem);
  padding: var(--wp--preset--spacing--small);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 150ms ease-out;
}

.projetos__loop .projeto__title {
  width: 100%;
  font-size: var(--wp--preset--font-size--large);
  color: var(--wp--preset--color--base);
  margin-top: var(--wp--preset--spacing--small);
  transition: all 200ms ease-out;
}

.projetos__loop .projeto__info {
  width: 100%; 
}

.projetos__loop .projeto__info p {
  color: var(--wp--preset--color--base);
  padding-bottom: .5rem;
  margin-bottom: .5rem;
  border-bottom: .0625rem solid rgba(255, 255, 255, .2);
}

.projetos__loop .projeto__info p:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.projetos__loop .projeto:hover .projeto__caption {
  opacity: 1;
}

.projetos__loop .projeto:hover .projeto__title {
  margin-top: 0;
}

@media screen and (max-width: 600px) {
  .projetos__loop .projeto {
    width: 100vw;
  }

  .projetos__loop .projeto__caption {
    height: inherit;
    background-color: transparent;
    backdrop-filter: none;
    position: relative;
    opacity: 1;
  }

  .projetos__loop .projeto__title {
    margin-top: 0;
  }
}

/* Financiamento */

.finance p strong {
  text-decoration: underline;
}

/* Quem somos */

@media screen and (max-width: 600px) {
  .team .wp-block-column {
    margin-bottom: var(--wp--preset--spacing--default);
  }
}

/* Footer */

.footer .ico-whatsapp {
  margin-inline-end: .625rem !important;
  position: relative;
  top: .125rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--wp--preset--color--yellow);
}
