/*
Theme Name: Bloghoot
Theme URI: https://websiteinwp.com/Bloghoot/
Author: WebsiteinWP
Author URI: https://websiteinwp.com/
Description: Bloghoot is a sleek and minimal WordPress theme built for Full Site Editing.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blooghoot
*/

/* ======================
   CONTACT FORM 7
====================== */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-number,
.wpcf7-form-control.wpcf7-select {
  border-radius: 5px;
  border: 1px solid #dad7d7;
  padding: 15px;
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

.wpcf7-form-control.has-spinner.wpcf7-submit {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--light-color);
  border: 0;
  font-size: 16px;
  padding: 15px 40px;
  transition: all 0.23s ease;
}

.wpcf7-form-control.has-spinner.wpcf7-submit:hover {
  background: var(--wp--preset--color--secondary);
}

/* ======================
   COMMENTS
====================== */
form.comment-form {
  border-radius: 20px;
  margin-top: 24px;
}

form.comment-form input,
form.comment-form textarea {
  border-radius: 0;
  margin: 12px 0 25px;
}

.wp-block-comment-author-name {
  font-weight: 600;
}

/* ======================
   WOOCOMMERCE
====================== */
.woocommerce ul.products li.product a img {
  border-radius: 5px;
  height: 350px;
  object-fit: cover;
}

.woocommerce ul.products li.product {
  width: 23.1%;
  margin: 0 2.5% 2.992em 0;
}

/* ======================
   LINKS
====================== */
p a,
.wp-block-heading a {
  text-decoration: underline;
}

/* ======================
   SWIPER
====================== */
.swiper-button-prev:after,
.swiper-button-next:after {
  color: var(--wp--preset--color--primary);
}

/* ======================
   IMAGES
====================== */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ======================
   MOBILE FIX (CLEAN)
====================== */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }

  /* IMAGENS */
  img,
  .wp-block-image img,
  .post-thumbnail img {
    max-width: 100%;
    height: auto;
  }

  /* LAYOUT */
  .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-column {
    width: 100%;
  }

  /* TIPOGRAFIA */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  /* ======================
     MENU MOBILE ÚNICO
  ====================== */
  .wp-block-navigation__responsive-container {
    position: fixed;
    top: 60px;
    left: 5%;
    width: 90%;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 99999;
    display: none;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    display: flex;
    flex-direction: column;
  }

  .wp-block-navigation a {
    color: #111;
    padding: 12px 15px;
    display: block;
  }

  /* FEATURED IMAGE GAP FIX */
  .wp-block-post-featured-image,
  .post-thumbnail {
    margin-bottom: 8px;
  }

  .entry-content {
    margin-top: 0;
  }
}

@media (max-width: 768px) {

  /* fundo do menu */
  .wp-block-navigation__responsive-container {
    background: #0c67e6 !important;
  }

  /* links brancos */
  .wp-block-navigation a,
  .wp-block-navigation__responsive-container a {
    color: #ffffff !important;
  }

  /* hover mais suave */
  .wp-block-navigation a:hover {
    color: #e6f0ff !important;
    opacity: 0.9;
  }

}


@media (max-width: 768px) {

  /* fundo do menu */
  .wp-block-navigation__responsive-container {
    background: #0c67e6 !important;
    height: auto !important;              /* <- deixa crescer só o necessário */
    max-height: 280px !important;         /* <- LIMITA o tamanho */
    top: 60px !important;                 /* <- abaixo do header */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 92% !important;                /* <- não ocupa tela toda */
    border-radius: 12px;
    overflow-y: auto;
    position: fixed !important;
    z-index: 9999;
  }

  /* conteúdo interno compacto */
  .wp-block-navigation__responsive-container-content {
    padding: 10px 15px;
  }

  /* links */
  .wp-block-navigation a {
    color: #ffffff !important;
    padding: 10px 0;
    font-size: 15px;
  }

}
@media (max-width: 768px) {

  /* base */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* imagens de post (corrige corte) */
  .wp-block-post-featured-image img,
  .post-thumbnail img,
  .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* importante: restaura visual do tema */
  }

  /* evita cortes em banners */
  .wp-block-cover {
    min-height: unset !important;
  }

  .wp-block-cover img {
    object-fit: cover;
  }

}
@media (max-width: 768px) {

  /* container da imagem do post */
  .wp-block-post-featured-image {
    width: 100%;
    height: auto !important;
    margin-bottom: 10px;
  }

  /* imagem do post ABERTA (sem corte) */
  .wp-block-post-featured-image img,
  .post-thumbnail img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }

  /* remove qualquer altura travada do theme */
  .wp-block-post-featured-image,
  .post-thumbnail {
    max-height: none !important;
  }

}