/* secao de instrucoes*/
.secao-instrucoes {
    width: 100%;
    min-height: 100vh;
    background-color: linear-gradient(180deg, #D8E0E3 -1.38%, #F3F4F6 15.95%);
    padding-top: 182px;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.cabecalho-instrucoes {
    max-width: 1279px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
   
}

.cabecalho-instrucoes h1 {
    color: var(--Primary-Pressed---500, #204551);
    font-family: 'Mulish';
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    height: 41px;
    flex-shrink: 0;
    align-self: stretch;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.cabecalho-instrucoes h1::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 42px;
    height: 6px;
    transform: rotate(-90deg);
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--Complementary-Red-and-orange-300, #F8B490);
}

.cabecalho-instrucoes p {
    color: var(--Neutral-colors-Black-Colors-200, #3B3E43);
    font-family: 'Roboto';
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.instrucoes-container {
    width: 1047px;
    justify-content: space-between;
    align-items: flex-end;
    margin: 2rem auto;
}

.instrucoes-grid {
    display: flex;
    width: 1047px;
    justify-content: space-between;
    align-items: flex-end;
}

.instrucoes-lista-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instrucoes-titulo {
    color: #204551;
    font-family: 'Mulish';
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
}

.instrucoes-lista {
    width: 720px;
    height: 276px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--Bilbao-50, #F3FAF3);
    padding: 2rem;
}

.instrucao-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 680px;
    height: 32px;
    flex-shrink: 0;
    white-space: nowrap;
}

.instrucao-item span:last-child {
    color: #000;
    font-family: 'Roboto';
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 125%;
    white-space: nowrap;
}

.instrucao-numero {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: var(--Bilbao-100, #E2F6E3);
    color: var(--Bilbao-500, #42A547);
    font-family: 'Nunito';
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contagem-tempo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contagem-tempo-titulo {
    color: #204551;
    font-family: 'Mulish';
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: 125%;
}

.contagem-tempo {
    width: 307px;
    height: 276px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 12px;
    background: var(--Bilbao-50, #F3FAF3);
}

.contagem-tempo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto';
    font-size: 24px;
    font-style: normal;
    line-height: 125%;
}

.tempo-label {
    color: var(--Neutral-colors-Black-Colors-200, #3B3E43);
    font-weight: 400;
}

.tempo-valor {
    color: var(--Bilbao-700, #2A6B2D);
    font-weight: 300;
}

/* secao de respiração */

.header-respiracao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: linear-gradient(180deg, #D8E0E3 -1.38%, #F3F4F6 15.95%);
    z-index: -1;
}

.respiracao-container {
    position: relative;
    width: 100%;
    min-height: 656px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-svg {
    position: absolute;
    top: 60%;
    right: 50%;
    left: 50%;
  
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    max-width: 1440px;
    height: auto;
    min-height: 50vh;
    max-height: 90vh;
    background-color:white;
}

.animacao-container {
    margin-top: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    width: 440px;
    height: 428px;
    padding: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.circulo-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.ponto-topo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 3;
}

.texto-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Mulish';
    font-size: 36px;
    color: var(--Primary-Defaunt---400, #3A6573);
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
    width: auto;
    height: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 182px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.texto-central:focus:not(:focus-visible) {
    outline: none;
}

.texto-central:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Estilos para os círculos da animação */
.circulo-inspire {
    fill: none;
    stroke: #E2F6E3;
    stroke-width: 8;
    stroke-dasharray: 115.8 386.85;
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
    transform-origin: 100px 100px;
}

.circulo-segure {
    fill: none;
    stroke: #BDCCD1;
    stroke-width: 8;
    stroke-dasharray: 185.1 317.55;
    stroke-dashoffset: -115.8;
    transform: rotate(-90deg);
    transform-origin: 100px 100px;
}

.circulo-expira {
    fill: none;
    stroke: #C7EBC9;
    stroke-width: 8;
    stroke-dasharray: 211.8 290.85;
    stroke-dashoffset: -290.9;
    transform: rotate(-90deg);
    transform-origin: 100px 100px;
}

/* Animações para o ponto */
@keyframes rotacaoPonto {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    40.05% {
        transform: translateX(-50%) rotate(150deg);
    }

    /* 4s - Inspire */
    68.89% {
        transform: translateX(-50%) rotate(240deg);
    }

    /* 7s - Segure */
    100% {
        transform: translateX(-50%) rotate(360deg);
    }

    /* 8s - Expira */
}

.ponto-topo.animando {
    transform-origin: 50% 150px;
    animation: rotacaoPonto 19s linear infinite;
}

/* Estados do texto */
.texto-inspire {
    color: #3A6573;
}

.texto-segure {
    color: #476970;
}

.texto-expira {
    color: #3A6573;
}

/* Animação para o círculo container */
@keyframes escalaCirculo {
    0% {
        transform: scale(1);
    }

    21.05% {
        transform: scale(1.2);
    }

    /* Inspire - 4 segundos */
    57.89% {
        transform: scale(1.2);
    }

    /* Segure - 7 segundos */
    100% {
        transform: scale(1);
    }

    /* Expire - 8 segundos */
}

/* Manter a animação da bolinha separada */
.ponto-topo.animando {
    animation: rotacaoPonto 19s linear infinite;
}

/* Aplicar a animação de escala no container do círculo */
.circulo-container.animando {
    animation: escalaCirculo 19s linear infinite;
}

/* Adicione estas media queries no final do arquivo */

@media screen and (max-width: 768px) {
    .ponto-topo {
        width: 18px;
        height: 18px;
    }
}
/* Media query para telas grandes */
@media screen and (min-width: 1442px) {
    .background-svg {
        width: 100%;
        max-width: 1920px;
        min-height: 60vh;
        max-height: 95vh;
    }
 
    .circulo-container {
        width: auto;
        height: auto;
    }

    .texto-central {
        font-size: 42px;
        min-width: 220px;
    }
}


@media screen and (max-width: 480px) {
    .header-respiracao {
        padding: 20px 20px 0;
        margin-bottom: 60px;
    }

    .curvas-background {
        bottom: -60px;
    }

    .texto-container h1 {
        font-size: 32px;
    }

    .ilustracao-container {
        max-width: 250px;

    }
}

/* Responsividade para seção de instruções */
@media screen and (max-width: 1300px) {
    .secao-instrucoes {
        padding-top: 100px;
    }

    .cabecalho-instrucoes {
        max-width: 90%;
        margin-bottom: 60px;
    }

    .cabecalho-instrucoes h1 {
        font-size: 28px;
    }

    .cabecalho-instrucoes p {
        font-size: 18px;
    }

    .instrucoes-container {
        width: 90%;
    }

    .instrucoes-grid {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }


    .instrucoes-lista {
        width: 100%;
        height: auto;
        padding: 1.5rem;
    }

    .instrucao-item {
        width: 100%;
        height: auto;
        white-space: normal;
    }

    .contagem-tempo {
        width: 100%;
        max-width: 307px;
        margin-top: 2rem;
    }

    .contagem-tempo-item {
        font-size: 20px;

    }
}

/* Media query para tablets e telas pequenas */
@media screen and (max-width: 820px) {
    .secao-instrucoes {
        padding-top: 80px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cabecalho-instrucoes {
        max-width: 90%;
        margin-bottom: 40px;
        padding: 0;
    }

    .cabecalho-instrucoes h1 {
        font-family: 'Nunito';
        margin-bottom: 40px;
        font-size: 32px;
        font-style: normal;
        font-weight: 600;
        line-height: 125%;
        letter-spacing: 0.25px;
    }

    .cabecalho-instrucoes h1::before {
        left: -30px;
        margin-top: 20px;
        width: 70px;
        height: 5px;
    }

    .cabecalho-instrucoes p {
        font-size: 16px;
        line-height: 140%;
    }

    .instrucoes-container {
        width: 100%;
        margin: 1rem auto;
    }

    .instrucoes-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .instrucoes-titulo {
        font-size: 32px;
        text-align: left;
        margin-bottom: 0.5rem;
        color: #204551;
    }

    .instrucoes-lista {
        width: 100%;
        padding: 1rem;
        height: auto;
    }

    .instrucao-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        height: auto;
        white-space: normal;
    }

    .instrucao-item span:last-child {
        font-size: 16px;
        line-height: 140%;
        white-space: normal;
        word-wrap: break-word;
    }

    .instrucao-numero {
        width: 25px;
        height: 25px;
        font-size: 14px;
        flex-shrink: 0;
        margin-top: 2px;
    }

}

/* Ajustes para seção de instruções em telas de 540px */
@media screen and (max-width: 540px) {
    .secao-instrucoes {
        padding: 60px 1rem 2rem;
    }

    .cabecalho-instrucoes {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .cabecalho-instrucoes h1 {
        font-family: 'Nunito';
        font-size: 32px;
        font-style: normal;
        font-weight: 600;
        line-height: 125%;
        letter-spacing: 0.25px;
    }

    .cabecalho-instrucoes h1::before {
        width: 120px;
        transform: rotate(-90deg);
        align-self: stretch;
        margin-top: 30px;
        left: -60px;
    }

    .cabecalho-instrucoes p {
        font-family: 'Roboto';
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 143%;
        letter-spacing: 0.17px;
        margin-top: 50px;
    }

    .contagem-tempo-titulo h3 {
        color: #204551;
        font-family: 'Mulish';
        font-size: 24px;
        font-style: normal;
        font-weight: 300;
        line-height: 125%;
        text-align: left;
        margin-bottom: -20px;
    }

    .instrucoes-lista {

        height: 276px;
        flex-shrink: 0;
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .instrucao-item {
        width: 260px;
    }
}

/* Media query para smartphones */
.secao-respiracao {
    width: 100%;
    position: relative;
}

.header-respiracao {
    position: relative;
    width: 100%;
    padding: 40px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
    z-index: 0;
}

.header-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.texto-container {
    max-width: 585px;
    height: 299px;
    flex-shrink: 0;
    margin-bottom: 150px;
    margin-left: 70px;
    margin-right: -50px;
    position: relative;
}

.texto-container h1 {
    color: #204551;
    font-family: "Wix Madefor Display", sans-serif;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
    margin-bottom: 24px;
    text-align: left;
    letter-spacing: -0.5px;
}

.texto-container p {
    color: #204551;
    font-family: 'Nunito';
    font-size: 22px;
    height: 192px;
    text-align: left;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
}


.curvas-background {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100vw;
    z-index: -1;
}

.ilustracao-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1800px;
    z-index: 1;
}

.meditacao-img {
    width: 940px;
    max-width: 1600px;
    height: 540px;
    position: relative;
    z-index: 1;
    margin-bottom: 130px;
    right: -200px;
}

.respiracao-icon {
    position: absolute;
    width: 703.608px;
    height: 612.172px;
    right: -60px;
    top: 10px;
    z-index: 2;

}

@media screen and (min-width: 1600px) {

    .meditacao-img {
        width: 1100px;
        height: 540px;
        left: 90px;
        margin-bottom: 190px;
    }

    .texto-container {
        margin-left: 120px;
        right: 120px;
    }

    .respiracao-icon {
        width: 803.608px;
        height: 712.172px;
        right: 90px;
        top: -40px;
    }
}

@media screen and (max-width: 1280px) {
    .header-content {
        gap: 20px;
    }

    .meditacao-img {
        width: 700px;
        height: 440px;
        left: 190px;
        margin-bottom: 110px;
    }

    .texto-container {
        margin-left: 60px;
        margin-right: 20px;
        height: 260px;
    }

    .texto-container h1 {
        font-size: 48px;
    }

    .texto-container p {
        font-size: 18px;
    }

    .respiracao-icon {
        width: 503.608px;
        height: 512.172px;
        right: -60px;
        top: -20px;
    }
}

@media screen and (max-width: 1024px) {

    .meditacao-img {
        width: 600px;
        height: 440px;
        left: 130px;
        margin-bottom: 80px;
    }

    .texto-container {
        width: 400px;
        margin-left: 30px;
        margin-right: 20px;
        height: 180px;
    }

    .texto-container h1 {
        font-size: 38px;
    }

    .texto-container p {
        font-size: 14px;
    }


}

@media screen and (max-width: 912px) {
    .meditacao-img {
        width: 500px;
        height: 340px;
        left: 125px;
        margin-bottom: 65px;
    }

    .respiracao-icon {
        width: 403.608px;
        height: 412.172px;
    }
}

@media screen and (max-width: 853px) {


    .meditacao-img {
        width: 400px;
        height: 340px;
        left: 120px;
        margin-bottom: 55px;
    }

    .texto-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 0 20px;
        height: auto;
        left: 30px;
        text-align: center;
    }

    .texto-container h1 {
        font-size: 32px;
        text-align: center;
        margin-bottom: 16px;
    }

    .texto-container p {
        font-size: 16px;
        text-align: center;
        line-height: 140%;
    }

    .respiracao-icon {
        width: 403.608px;
        height: 312.172px;
        right: -110px;
        top: 60px;
    }
}

@media screen and (max-width: 540px) {
    .meditacao-img {
        width: 300px;
        height: 260px;
        margin-bottom: -20px;
        right: -20px;
    }

    .texto-container {
        padding: 0 15px;
        width: 65%;
        left: 50px;
    }

    .texto-container h1 {
        font-size: 26px;
    }

    .texto-container p {
        font-size: 14px;
    }

    .background-svg {
        display: none;
    }


    .animacao-container {
        width: 100%;
        height: 300px;
    }  
}

@media screen and (max-width: 390px) {
    .animacao-container {
        width: 100%;
    }

    .respiracao-container {
        min-height: 500px;
        width: 100%;
    }

    .contagem-tempo-titulo,
    .contagem-tempo-titulo h3 {
        color: #204551;
        font-family: 'Mulish';
        font-size: 24px;
        font-style: normal;
        font-weight: 300;
        line-height: 125%;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    .contagem-tempo-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
    } 
}


/* ============================================================== */
/* === REGRAS PARA RESPONSIVIDADE (Telas menores que 768px) === */
/* ============================================================== */
@media (max-width: 540px) {
  /* Esconde o container das ilustrações */
 

  /* Ajusta o padding e a justificação do conteúdo */
  .header-respiracao {
    padding: 40px 20px;
    justify-content: flex-start;
    align-items: flex-start; /* Alinha os itens no topo */
    min-height: auto; /* Remove a altura mínima para se ajustar ao conteúdo */
  }

  /* Garante que o container do conteúdo ocupe o espaço */
  .header-content {
    justify-content: flex-start;
    width: 100%;
    flex-direction: column; /* Organiza o texto em coluna */
    align-items: flex-start; /* Alinha o texto à esquerda */
  }

  /* Ajusta o container do texto para o layout desejado */
  .texto-container {
    margin: 0;
    height: auto;
    display: block;
    text-align: left;
    width: 100%;
    max-width: 100%; /* Permite que o texto ocupe toda a largura */
    position: static; /* Remove posicionamento complexo */
  }
  
  /* Aplica o novo gradiente de fundo para o mobile */
  .header-respiracao::before {
    background: linear-gradient(359deg, rgba(77, 77, 77, 0.21) 5.83%, rgba(37, 37, 37, 0.08) 20.39%, rgba(13, 13, 13, 0.00) 77.49%);
}

  /* Aplica os novos estilos para o H1 em mobile */
  .texto-container h1 {
    width: auto; /* Largura automática */
    color: var(--Primary-Pressed---500, #204551);
    font-family: Mulish;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2; /* 48px */
    letter-spacing: -0.5px;
    text-align: left;
  }

  /* Aplica os novos estilos para o P em mobile */
  .texto-container p {
    color: var(--Primary-Pressed---500, #204551);
    font-family: Mulish;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%; /* 32px */
    width: 100%; /* Ocupa toda a largura disponível */
    height: auto; /* Altura automática */
    flex-shrink: 0;
    text-align: left;
  }

  /* Garante que a imagem de meditação seja ocultada */
  .meditacao-img {
      display: none;
  }
}
