:root {
    --main-color: #228b22;
    --black: #13131a;
    --bg: #f8f8f8;
    --border: 0.1rem solid rgba(255,255,255,0.3);
    font-size: 53.13%;
}

html,body {
    scroll-behavior: smooth;
    background-color: var(--bg);
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-decoration: none;
    transition: 0.2s linear;
    font-family: "Poppins", sans-serif;
}

section {
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 99;
    border-bottom: var(--border);
    background-color: #228b22a8;
    backdrop-filter: blur(10px);
}

.header .logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar a {
    margin: 0 1rem;
    font-size: 1.8rem;
    color: #ffffff;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 0.1rem solid var(--main-color);
    padding-bottom: 0.5rem;
    transform: scale(1.1);
}

.btn {
    background-color: var(--main-color);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.7rem;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
    display: inline-block;
}

.btn:hover {
    letter-spacing: 0.1rem;
}

.home-container {
    background-image: url("./img/homepage.png");
    background-position: center;
    background-size: cover;
}

.home-container section {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.content {
    max-width: 90rem;
}

.content h3{
    color:#000000;
    font-size: 6rem;
}

.content p {
    color: #000000;
    font-size: 2rem;
    font-weight: 100;
    line-height: 1.8;
    padding: 1rem 0;
}

.title {
    font-size: 4.2rem;
    color: var(--main-color);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 4rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.about .row {
    display: flex;
    align-items: center;
    background-color: #e2e0e0;
    gap: 17rem;
}

.about .row .content {
    padding: 7rem;
}

.about .row img{
    width: auto;
    height: 370px;
    border-radius: 900px;
    padding-left: 7rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.about .row .content h3{
    font-size: 3rem;
    color: #000000;
}

.about .row .content p{
    font-size: 1.6rem;
    font-weight: 400;
    color: #000000;
    padding: 1rem 0;
    line-height: 1.8;
}

#special {
    font-size: 2rem;
    border-radius: 20px;
    padding-bottom: 0.5rem;
    color: #e2e0e0;
    cursor: pointer;
}

#special:hover {
    color: var(--main-color);
    background-color: var(--bg);
    border: 0.1rem solid var(--main-color);
}

.box-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(30rem, 1fr));
    gap: 1.5rem;
}

.services .box-container{
    grid-template-columns: repeat(1, minmax(30rem, 1fr));
}

.services .box-container .box {
    text-align: center;
    border: var(--border);
    padding: 2rem 6rem 9rem;
    background-color: #eee;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 690px;
    width: 100%;
    margin: 0 auto;
}

.services .box-container p{
    font-size: 1.9rem;
    text-align: left;
}

.services .box-container .box:hover {
    background-color: rgba(255,255,255,0.78);
}

.services .box-container .btn{
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.services .box-container img {
    max-width: 150px;
    width: 100%;
    height: auto;
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40% ;
    object-fit: cover;
}

.autoridade {
  background-color: #e2e0e0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.autoridade .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3rem;
  max-width: 1500px;
  margin: 0 auto;
  text-align: left;
}

.autoridade .frase {
  flex: 1 1 calc(25% - 3.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-left: 2rem;
}

.autoridade .destaque {
  font-size: 3.8rem;
  font-weight: bold;
  color: var(--main-color);
}

.autoridade .descricao {
  font-size: 1.9rem;
  margin-top: 0.5rem;
  color: #000;
}

.autoridade .frase:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  border-left: 1px dashed #999;
}

.modelo-atendimento {
    background-color: #e2e0e0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.modelo-atendimento .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.modelo-atendimento .textos {
    flex: 1;
}

.modelo-atendimento .textos .title {
    color: var(--black);
    font-size: 3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.modelo-atendimento .textos p {
    font-size: 2rem;
    line-height: 1.7;
    text-align: left;
    color: #000;
}

.modelo-atendimento img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.psicoterapia-conteudo {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.psicoterapia-conteudo img {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.psicoterapia .texto {
  flex: 1;
}

.review .box-container .box {
    border: var(--border);
    text-align: center;
    padding: 3rem 2rem;
    background-color: #eee;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3);
}

.review .box-container .box p {
    font-size: 1.5rem;
    color: #000000;
    padding: 2rem 0;
    line-height: 1.8;
    font-weight: 300;
}

.review .box-container .box h3 {
    color: #000000;
    font-size: 2rem;
    margin: 1rem 0;
}

.address {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.faq {
    max-width: 900px;
    margin: 3rem auto 5rem;
    padding: 0 1rem;
}

.faq .faq-item {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--main-color);
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq .faq-item h3 {
    font-weight: 600;
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.faq .faq-item p {
    font-size: 1.3rem;
    color: #222222;
    line-height: 1.5;
}

.footer {
    text-align: center;
    background-color: #228b22a8;
    color: #f0f0f0;
    width: 100vw;
    max-width: 100vw;
    padding: 3rem 2rem;
    position: relative;
    box-sizing: border-box;
    font-size: 1.2rem;
    left: 0;
    margin: 0;
    min-height: 300px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.footer-left {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
    padding-left: 20%;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.footer-right {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding-right: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-left img.consultorio {
    width: 40%;
    max-width: 200px;
    border-radius: 0.6rem;
    margin-bottom: 0rem;
    object-fit: cover;
}

.footer-right .foto {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 1.9rem;
}

.footer .share {
    padding: 1rem 0;
}

.footer .share img {
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 23%;
    padding: 1rem;
}

.footer .share img:hover {
    background-color: var(--main-color);
}

.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;   
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

section {
    scroll-margin-top: 110px;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  max-width: 1460px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease forwards;
  font-size: 1.8rem;
  gap: 2rem;
}

.popup-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40% !important;
  object-fit: cover;
}

.popup-image-small {
  max-width: 150px !important;
  height: auto !important;
  border-radius: 0% !important; 
}

.popup-text {
  flex: 1;
}

.popup-columns {
    display: flex;
    gap: 2rem;
}

.popup-columns .column {
    flex: 1;
}

.popup-columns .column-border {
  border-right: 1px dashed #ccc;
  padding-right: 2rem;
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 21px;
  height: 11px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}


@media (max-width: 768px) {
    :root {
        font-size: 7px;
    }

    /* Navbar (já está OK) */
    .header .logo img {
        height: 60px;
    }

      .menu-toggle {
    display: flex;
  }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #228b22c2;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        text-align: center;
    }

    .navbar a {
        margin: 1rem 0;
        font-size: 1.6rem;
    }

    .navbar.active {
        display: flex;
    }

    /* HOME */
    .home-container section {
        flex-direction: row;
        text-align: center;
        padding-top: 5rem;
    }

    .content h3 {
        font-size: 3.5rem;
        padding-top: 15rem;
    }

    .content p {
        font-size: 1.6rem;
        padding: 0.5rem 1rem;
    }

    .home-container {
    padding-top: 10rem;
    background-image: url('./img/homepage-mobile.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 11rem;
    min-height: 60vh;
    }

    /* SOBRE MIM */
    .about .row {
        flex-direction: column;
        gap: 0rem;
        text-align: center;
    }

    .about .row img {
        height: auto;
        width: 40%;
        border-radius: 40rem;
        padding-top: 3%;
        margin-left: 0%;
        margin-right: 10%;
        margin-bottom: -10rem;
    }

    .about .row .content {
        padding: 1rem;
    }

    .about .row .content h3 {
        font-size: 2.5rem;
    }

    .about .row .content p {
        font-size: 1.5rem;
    }

    .popup-content {
    padding: 1.5rem;
    font-size: 1.4rem;
    }
    

    /* COMO POSSO ESTAR COM VOCÊ */
    .services .box-container {
        grid-template-columns: repeat(1, minmax(20rem, 1fr));
    }

    .services .box-container .box {
        max-width: 280px;
        padding: 1.5rem 3rem 6rem;
    }

    .services .box-container .box .btn {
        font-size: 1.2rem !important;
        padding: 0.6rem 1.2rem !important;
        margin-top: auto; /* empurra para o fim da box */
        align-self: center;
        width: fit-content;
        max-width: 100%;
    }

    .modelo-atendimento > * {
        float: none !important;
        display: block !important;
        width: 100% !important;
    }

    .modelo-atendimento {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .modelo-atendimento .textos {
        width: 100%;
        margin-left: 1.5rem; /* margem esquerda para o texto */
    }

    .modelo-atendimento .btn {
        margin-left: 1.5rem;
        margin-top: 1rem;
    }

    .modelo-atendimento img {
        width: 40% !important;
        margin: 1rem auto 0 auto !important;
        max-width: 60%;
        height: auto;
        display: block;
        order: 99; /* força a imagem para baixo */
    }

    /* AVALIAÇÕES - está OK */
    .review .box-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 !important;
    }

    .review .box-container .box {
        font-size: 1.2rem !important;
        padding: 1.5rem 1rem !important;
    }

    /* ENDEREÇO - iframe ao invés de texto grande */
    .address {
        font-size: 1.1rem !important;
        text-align: center !important;
        padding: 1rem 0 !important;
        width: 100% !important;
    }

    .address iframe {
        width: 100% !important;
        height: 250px !important;
        border: 0 !important;
        margin-top: 1rem !important;
    }

    /* FOOTER */
    .footer {
        width: 100vw !important;
        padding: 2rem 1rem !important;
        text-align: center !important;
    }

    .footer-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .footer-left {
        width: 100% !important;
        display: flex !important;
        padding: 0 !important;
        padding-right: 0% !important;
    }

    .footer-left img.consultorio {
        width: 30% !important;
        margin: 4.6rem auto 1rem !important;
        display: block;
    }

    .footer-right > * {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .footer-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;   /* centraliza horizontalmente */
        text-align: center !important;    /* centraliza texto */
        gap: 0.5rem;                      /* espaçamento entre itens */
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .footer-right .foto {
        display: block !important;
        margin: 0 auto !important;
        max-width: 150px;    /* ajuste o tamanho conforme quiser */
        height: auto !important;
        padding: 0 !important;
    }

    .footer-right .contato {
        margin: 0 !important;  /* remove margens extras */
        padding: 0 !important;
        width: 100%;
    }

    /* Diminui tamanho das imagens dos botões Whats e Instagram */
    .footer .share img {
        width: 30px !important;
        height: 30px !important;
        margin: 0.2rem !important;
        padding: 0.3rem !important;
    }

    .popup-content {
        flex-direction: column;
        padding: 2rem 1.5rem;
        max-width: 100%;
        align-items: center;
    }
    
    .popup-image {
        width: 50%;
        max-width: 500px;
        height: auto;
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40% !important;
    }

    .popup-image-small {
        width: 27%;
        max-width: 400px !important;
        border-radius: 0 !important;
    }
    
    .popup-text {
        min-width: auto;
        width: 100%;
    }
    
    .popup-content p {
        font-size: 1.6rem;
    }

    .popup-columns {
        flex-direction: column;
    }

    .popup-columns .column-border {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px dashed #ccc;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .autoridade .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
        padding: 1rem;
    }

    .autoridade .frase {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px dashed #999;
    }

    .autoridade .frase:last-child {
        border-bottom: none;
    }

    .autoridade .destaque {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: var(--main-color);
        margin: 0 auto;
        align-items: center;
    }

    .autoridade .descricao {
        font-size: 1.5rem;
        color: #000;
        line-height: 1.4;
        margin: 0 auto;
        align-items: center;
    }

    .autoridade .frase:not(:first-child)::before {
        border-left: none !important;
    }

    .services .box-container img {
        max-width: 100px;
        width: auto;
    }

    .psicoterapia-conteudo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .psicoterapia .texto {
        width: 100%;
  }
}
