/*
Theme Name: Prospecta Vet
Theme URI: https://prospectavet.com.br
Author: Stuido Flecha Real
Author URI: https://flechareal.com.br/
Description: Tema desenvolvido para a Prospecta Vet
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: studioflecha
*/

:root {
    --primary:#005538;
    --secondary:#fae158;
    --primary-dark:#00462e;
    --primary-light:#f4fcf5;
    --primary-hover:#03774f;
    --text:#000000;
    --white:#FFFFFF;
    --font-primary:'Gentium Book Plus', serif;
    --font-secondary:'Montserrat', sans-serif;
}

/* Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

body {
    font-family: var(--font-secondary);
    font-size: 18px;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-primary);
    color: var(--primary);
}

p {
    line-height: 140%;
}

img {
    width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.button {
    color: var(--secondary);
    background: var(--primary);
    border-radius: 10px;
    text-decoration: none;
    transition: all ease .3s;
    display: inline-block;
    font-family: var(--font-primary);
    width: max-content;
}

.button.large {
    font-size: 31px;
    font-weight: 600;
    padding: 20px 46px;
}

.button.medium {
    font-size: 18px;
    font-weight: 600;
    padding: 15px 45px;
}

.button.small {
    font-size: 18px;
    font-weight: 600;
    padding: 17px 15px;
}

.button:hover {
    background-color: var(--primary-hover);
}

.bt-agende a {
    color: var(--secondary) !important;
    background: var(--primary);
    border-radius: 10px;
    text-decoration: none;
    transition: all ease .3s;
    display: inline-block;
    font-family: var(--font-primary);
    width: max-content;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 14px !important;
}

.bt-agende a:hover {
    background-color: var(--primary-hover);
}


.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
}

.sub-header {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 16px;
}

.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sub-grid .left {
    display: flex;
    justify-content: flex-start;
}

.sub-grid .right {
    display: flex;
    justify-content: flex-end;
}

.header grid {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.header-grid {
    display: flex;
    align-items: center;
}

header {
    color: var(--white);
    position: relative;
}

.site-branding img {
    max-width: 220px;
    height: auto;
}

.breadcrumbs {
    background: #efefef;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.hero {
    background: url(img/bg-hero.png) no-repeat center center;
    background-size: cover;
    min-height: 780px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    justify-content: center;
    height: 100%;
    min-height: 630px;
}

.hero-grid .left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h2 {
    font-size: 60px;
    color: var(--white);
    line-height: 120%;
    margin-bottom: 30px;
}

.hero p {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    color: var(--white);
    max-width: 90%;
    line-height: 150%;
    margin-bottom: 30px;
}

.exames ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.exames ul li {
    position: relative;
    list-style: none;
    padding-left: 28px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.exames ul li::after {
    content: "";
    width: 22px;
    height: 22px;
    background: url(img/ico-pata.png) no-repeat center center;
    position: absolute;
    left: 0;
}

.exames-grid {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 50px;
}

.exames h2 {
    font-size: 32px;
    color: var(--primary);
    line-height: 130%;
    margin-bottom: 30px;
}

.clinica {
    background: var(--primary-light);
    text-align: center;
}

.clinica-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clinica img {
    max-width: 305px;
    margin-bottom: 30px;
}

.clinica h2 {
    font-size: 27px;
    color: var(--primary);
    line-height: 130%;
    margin-bottom: 40px;
    max-width: 80%;
}

.reviews-grid {
    display: flex;
    flex-direction: column;
}

.reviews .top {
    text-align: center;
    margin-bottom: 40px;
}

.reviews .top h2 {
    font-size: 31px;
}

.reviews .top img {
    max-width: 193px;
    margin-bottom: 20px;
}

.reviews .grw-review-inner {
    border: solid 1px #dbdde1 !important;
    border-radius: 12px !important;
}

.reviews .wp-gr .rpi-dot.active {
    background-color: var(--primary) !important;
}

.faq h2 {
    font-size: 36px;
    margin-left: 10px;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 80px;
}

.faq .left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.faq .left img {
    max-width: 375px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 10px;
}

.question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    cursor: pointer;
    font-weight: bold;
}

.question:hover {
    background-color: #fcfcfc;
}

.question p {
    margin: 0;
    font-size: 16px;
}

.icon {
    transition: transform 0.3s ease;
    font-size: 16px;
    padding: 2px 1px;
    line-height: 10px;
    border-radius: 2px;
    border: solid 1px #dbdde1;
}

/* Icone quando aberto */
.faq-item.active .icon {
    transform: rotate(180deg);
    background: #f19645;
    color: var(--white);
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 10px;
}

.answer p {
    margin: 0;
    padding: 0 0 15px 0;
    line-height: 1.5;
}

/* Quando ativo, expande a resposta */
.faq-item.active .answer {
    max-height: 200px; /* Ajuste conforme necessário */
}

.atendimento {
    background: var(--primary);
    padding: 65px 0 90px;
}

.atendimento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0;
}

.atendimento-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.atendimento h2 {
    color: var(--secondary);
    font-size: 120px;
    line-height: 110%;
}

.atendimento h3 {
    color: var(--white);
    font-size: 32px;
}

section.blog .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.blog h2 {
    font-size: 36px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 60px;
    gap: 60px;
    width: 100%;
}

article .blog-grid {
    padding: 0;
}

.blog-card {
    border: solid 1px #dbdde1;
    padding: 20px;
    border-radius: 15px;
    background: var(--primary-light);
}

.blog-card h3 {
    font-size: 24px;
    height: 80px;
    display: block;
    margin-top: 10px;
    line-height: 120%;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.blog-card h3 a {
    color: var(--primary);
    text-decoration: none;
}

.blog-card .btarea {
    margin-top: 10px;
}

.blog-card img {
    margin: 0;
}

.blog-card .btarea a {
    color: var(--primary);
    line-height: 22px;
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-underline-offset: 3px;
    transition: all ease .3s;
}

.blog-card .btarea a:hover {
    color: var(--primary-hover);
}

.subfooter {
    background: var(--primary);
    margin-top: 40px;
}

.subfooter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap:50px
}

.subfooter-item {
    width: 100%;
}

.subfooter-item h2,
.subfooter-item h3 {
    font-size: 24px;
    color: var(--white);
    padding-bottom: 30px;
}

.subfooter-item li {
    list-style: none;
    line-height: 180%;
}

.subfooter p {
    font-size: 16px;
    color: var(--white);
}

.subfooter p a {
    color: var(--white);
    text-decoration: none;
}

.subfooter li a {
    font-family: var(--font-secondary);
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
    transition: all ease .3s;
}

.subfooter li a:hover,
.subfooter p a:hover {
    text-decoration: underline;
}

footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 20px;
}

.inv {
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Page/Post CSS */

article h2,
article h3,
article h4,
article h5 {
    margin: 10px 0 20px 0;
}

article h1 {
    font-size: 50px;
    margin-bottom: 30px;
}

article h2 {
    font-size: 40px;
}

article h3 {
    font-size: 30px;
}

article p {
    margin-bottom: 10px;
}

article ul,
article ol {
    padding:20px 0 20px 20px
}

article ul li {
    list-style: disc inside;
    line-height: 160%;
}

article img {
    margin: 20px 0;
}

article .call-to-action {
    margin: 20px 0 0 0;
    padding: 20px;
    border: solid 2px var(--secondary);
    border-radius: 10px;
}
article .call-to-action strong {
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
}

.sidebar h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.sidebar .widget {
    margin-bottom: 30px;
}

.sidebar ul li {
    list-style: none;
    line-height: 160%;
}

.sidebar ul li a {
    color: var(--primary);
    text-decoration: none;
    display: block;
    padding: 5px;
}

.sidebar ul li a:hover {
    background: var(--primary-light);
}


/* Estilização do formulário de contato - Prospecta Vet */
.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-secondary);
  color: var(--text);
}

.wpcf7 label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-dark);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: var(--white);
  font-family: var(--font-secondary);
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 56, 0.15);
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: inline-block;
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* Mensagens de sucesso ou erro */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 14px;
  border-radius: 6px;
  font-family: var(--font-secondary);
  text-align: center;
  font-weight: 600;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background-color: #e6f4ea;
  color: var(--primary);
  border: 1px solid #b2e2b8;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .ajax-error {
  background-color: #fce8e6;
  color: #c53030;
  border: 1px solid #f0bfbf;
}

/* Spinner de carregamento */
.wpcf7-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0;
  visibility: hidden;
}

.wpcf7-submit.has-spinner .wpcf7-spinner {
  opacity: 1;
  visibility: visible;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsividade */
@media (max-width: 640px) {
  .wpcf7 {
    padding: 0 16px;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 16px;
  }
}


/* Mobile Styles */
@media screen and (max-width: 1024px) {
    .hero-grid,
    .exames-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        gap: 40px;
    }

    .subfooter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .sub-grid,
    .hero-grid,
    .exames-grid,
    .faq-grid,
    .atendimento-grid,
    .blog-grid,
    .subfooter-grid,
    .page-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        padding:30px 0;
    }

    .sub-header .left,
    .sub-header .right {
        text-align: center;
        justify-content: center;
    }

    .question p {
        margin: 0 10px 0 0;
    }

    .exames ul {
        grid-template-columns: 1fr;
    }
}