/* Páginas internas e seções abaixo do início - Instituto ECOA Brasil */
/* Banner das páginas */
.page-title{position:relative;overflow:hidden;padding:150px 0 110px!important;text-align:center}
.page-title:before{background:linear-gradient(135deg,rgba(31,51,32,.9),rgba(74,103,65,.78))!important}
.page-title:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:70px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 80 480 0 720 30s480 40 720 0V70H0z' fill='%23fff'/%3E%3C/svg%3E") center/100% 100% no-repeat;z-index:2}
.page-title .container{position:relative;z-index:3}
.page-title .container:before,.page-title .container:after{content:"";position:absolute;left:50%;top:50%;border:2px solid rgba(232,198,106,.35);border-radius:50%;transform:translate(-50%,-50%) scale(.3);animation:ecoRing 8s ease-out infinite;pointer-events:none;width:360px;height:360px;z-index:-1}
.page-title .container:after{animation-delay:4s}
@keyframes ecoRing{0%{transform:translate(-50%,-50%) scale(.3);opacity:.9}100%{transform:translate(-50%,-50%) scale(2.6);opacity:0}}
.page-title h1{font-weight:800;letter-spacing:.04em;text-transform:uppercase;animation:ecoUp .9s var(--eco-ease) both}
.page-title h1:after{content:"";display:block;width:70px;height:4px;margin:14px auto 0;border-radius:4px;background:linear-gradient(90deg,var(--eco-leaf),var(--eco-gold))}
.breadcrumbs{animation:ecoUp .9s .2s var(--eco-ease) both}
.breadcrumbs ol{display:inline-flex;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);padding:6px 18px;border-radius:999px;margin:10px 0 0}
@keyframes ecoUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
/* Seções com fundo vivo */
.section{position:relative}
.light-background{background:linear-gradient(180deg,#f6faf3,#fff)!important}
.blog-posts,.team,.contact,.why-us{background:radial-gradient(circle at 8% 12%,rgba(107,176,67,.09),transparent 40%),radial-gradient(circle at 92% 88%,rgba(201,162,75,.10),transparent 40%)}
/* Quem somos */
.why-us .swiper-slide>div,.why-us .swiper-slide .content{border-radius:14px}
.why-us h3{color:var(--eco-deep);font-weight:700;position:relative;padding-bottom:10px}
.why-us h3:after{content:"";position:absolute;left:0;bottom:0;width:44px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--eco-leaf),var(--eco-gold))}
.why-us img{border-radius:16px;box-shadow:0 14px 40px rgba(47,74,44,.22);transition:transform .6s var(--eco-ease)}
.why-us img:hover{transform:scale(1.03) rotate(-.6deg)}
.swiper-pagination-bullet-active{background:var(--eco-leaf)!important}
.swiper-button-next,.swiper-button-prev{color:var(--eco-green)!important;transition:.3s}
.swiper-button-next:hover,.swiper-button-prev:hover{transform:scale(1.2)}
/* Equipe */
.team-member{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 28px rgba(47,74,44,.1);border:1px solid #e8f0e4;position:relative}
.team-member:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--eco-leaf),var(--eco-gold));transform:scaleX(0);transform-origin:left;transition:.5s var(--eco-ease);z-index:3}
.team-member:hover:before{transform:scaleX(1)}
.team-member .member-info{padding:18px 16px 22px;text-align:center}
.team-member .member-info h4{color:var(--eco-deep);font-weight:700}
.team-member .member-info span{display:inline-block;margin-top:6px;background:#eaf4e3;color:var(--eco-green);font-size:.72rem;font-weight:600;letter-spacing:.08em;padding:4px 12px;border-radius:999px}
.team-member .social a{transition:.3s var(--eco-ease)}
.team-member .social a:hover{background:var(--eco-leaf);color:#fff;transform:translateY(-4px) scale(1.12)}
/* Contato */
.contact .info-item{background:#fff;border:1px solid #e8f0e4;border-radius:16px;padding:22px;margin-bottom:18px;box-shadow:0 8px 26px rgba(47,74,44,.08);transition:.4s var(--eco-ease)}
.contact .info-item:hover{transform:translateX(8px);box-shadow:0 14px 34px rgba(47,74,44,.16);border-color:var(--eco-leaf)}
.contact .info-item>i{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,var(--eco-leaf),var(--eco-green));color:#fff!important;display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-right:16px;transition:.4s var(--eco-ease)}
.contact .info-item:hover>i{transform:rotate(360deg) scale(1.08)}
.contact form,.contact .php-email-form{background:#fff;border:1px solid #e8f0e4;border-radius:18px;padding:28px!important;box-shadow:0 10px 34px rgba(47,74,44,.1)}
.contact button[type=submit]{background:linear-gradient(135deg,var(--eco-leaf),var(--eco-green))!important;border:0!important;border-radius:999px!important;padding:12px 34px!important;box-shadow:0 8px 22px rgba(107,176,67,.4);transition:.3s var(--eco-ease)}
.contact button[type=submit]:hover{transform:translateY(-3px) scale(1.04)}
/* Transparência (apenas o entorno do card) */
.proj-card{animation:ecoUp .9s .1s var(--eco-ease) both}
.transp-docs-wrap h3{text-align:center;margin-bottom:12px}
.transp-docs a{position:relative;overflow:hidden}
.transp-docs a:after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-20deg);transition:.7s}
.transp-docs a:hover:after{left:130%}
/* Chamada à ação e rodapé */
.call-to-action{background-attachment:fixed}
.call-to-action:before{background:linear-gradient(135deg,rgba(31,51,32,.88),rgba(74,103,65,.78))!important}
.footer{border-top:4px solid transparent;border-image:linear-gradient(90deg,var(--eco-leaf),var(--eco-gold)) 1}
.footer .footer-links a{transition:.3s}
.footer .footer-links a:hover{color:var(--eco-leaf);padding-left:6px}
/* Cards de projetos recentes e serviços */
.recent-posts .post-box,.services .service-item{border-radius:16px;background:#fff;border:1px solid #e8f0e4;box-shadow:0 8px 26px rgba(47,74,44,.08)}
.features .nav-link{border-radius:12px;transition:.3s var(--eco-ease)}
.features .nav-link:hover{transform:translateX(6px)}
@media(max-width:768px){.page-title{padding:120px 0 90px!important}.call-to-action{background-attachment:scroll}}

/* ===== Fundo animado (todas as páginas) ===== */
.section:not(.dark-background){background:transparent!important}
.light-background{background:linear-gradient(180deg,rgba(246,250,243,.85),rgba(255,255,255,.4))!important}
.eco-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.eco-bg .blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.28;animation:ecoBlob 22s ease-in-out infinite alternate}
.eco-bg .b1{width:460px;height:460px;background:#6BB043;top:-120px;left:-120px}
.eco-bg .b2{width:520px;height:520px;background:#e8c66a;bottom:-160px;right:-140px;animation-delay:4s}
.eco-bg .b3{width:340px;height:340px;background:#4a6741;top:45%;left:55%;opacity:.14;animation-delay:8s}
@keyframes ecoBlob{to{transform:translate(70px,50px) scale(1.18)}}
.eco-bg .leaf{position:absolute;bottom:-60px;width:26px;height:26px;opacity:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4C9 4 4 10 4 17c0 1 .2 2 .5 3C6 12 11 9 20 9c-6 1-11 5-13 12 9 0 13-6 13-17z' fill='%236BB043' fill-opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat;animation:ecoLeaf linear infinite}
@keyframes ecoLeaf{0%{transform:translateY(0) rotate(0);opacity:0}10%{opacity:1}90%{opacity:.8}100%{transform:translateY(-110vh) translateX(60px) rotate(300deg);opacity:0}}

/* ===== Nossa História e Missão ===== */
.features h3{font-weight:800;color:var(--eco-deep);position:relative;padding-bottom:14px;margin-bottom:22px!important}
.features h3:after{content:"";position:absolute;left:0;bottom:0;width:70px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--eco-leaf),var(--eco-gold))}
.features .icon-list{height:100%;align-items:flex-start;gap:14px;background:#fff;border:1px solid #e8f0e4;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(47,74,44,.07);transition:.4s var(--eco-ease)}
.features .icon-list:hover{transform:translateY(-6px);box-shadow:0 16px 36px rgba(47,74,44,.15);border-color:var(--eco-leaf)}
.features .icon-list i{flex:0 0 46px;width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;background:color-mix(in srgb,currentColor 14%,#fff);transition:.5s var(--eco-ease)}
.features .icon-list:hover i{transform:rotate(-10deg) scale(1.15);background:color-mix(in srgb,currentColor 24%,#fff)}
.features .icon-list span{font-size:.92rem;line-height:1.55;color:#3d5266}
.features .col-lg-5{position:relative;display:flex;align-items:center;justify-content:center}
.features .col-lg-5:before{content:"";position:absolute;width:78%;height:86%;border-radius:28px;border:3px solid var(--eco-gold);transform:translate(18px,18px) rotate(3deg);opacity:.7;animation:ecoFloat 7s ease-in-out infinite alternate}
.features .col-lg-5:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(107,176,67,.35),transparent 70%);z-index:0;animation:ecoFloat 9s ease-in-out infinite alternate-reverse}
.features .col-lg-5 img{position:relative;z-index:1;border-radius:26px;box-shadow:0 22px 50px rgba(47,74,44,.28);max-height:560px;width:auto;max-width:100%;object-fit:cover;animation:ecoFloat 8s ease-in-out infinite alternate}
@keyframes ecoFloat{to{transform:translateY(-14px)}}
.features .col-lg-5:before{animation-name:ecoFrame}
@keyframes ecoFrame{from{transform:translate(18px,18px) rotate(3deg)}to{transform:translate(10px,26px) rotate(-1deg)}}

/* ===== Projetos do instituto ===== */
.recent-posts .row>div{display:flex}
.recent-posts .post-box{display:flex;flex-direction:column;width:100%;overflow:hidden;padding:0;position:relative}
.recent-posts .post-img{border-radius:0;height:210px;background:#fff}
.recent-posts .post-img img{width:100%;height:100%;object-fit:cover}
.recent-posts .col-xl-3:nth-child(n+3) .post-img img,.recent-posts .col-xl-3:first-child .post-img img{object-fit:contain;padding:14px}
.recent-posts .meta,.recent-posts .post-title,.recent-posts p,.recent-posts .readmore{margin-left:20px;margin-right:20px}
.recent-posts .meta{margin-top:16px;font-size:.78rem}
.recent-posts .post-date{background:#eaf4e3;color:var(--eco-green);padding:3px 10px;border-radius:999px;font-weight:600}
.recent-posts .post-title{margin-top:12px;font-size:1.08rem;font-weight:700;color:var(--eco-deep);line-height:1.3}
.recent-posts p{font-size:.88rem;line-height:1.55;color:#4b6075;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.recent-posts .readmore{margin-top:auto;margin-bottom:20px;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;background:var(--eco-green);color:#fff!important;padding:8px 18px;border-radius:999px;font-size:.85rem;font-weight:500;transition:.3s var(--eco-ease)}
.recent-posts .readmore:hover{background:var(--eco-leaf);gap:12px}

/* ===== WhatsApp flutuante ===== */
.eco-whats{position:fixed;right:20px;bottom:20px;z-index:9998;display:flex;align-items:center;gap:10px;text-decoration:none}
.eco-whats .ico{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#25d366,#128c4a);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.9rem;box-shadow:0 8px 24px rgba(18,140,74,.5);position:relative;transition:.3s var(--eco-ease);animation:ecoWhats 3.2s ease-in-out infinite}
.eco-whats .ico:before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #25d366;animation:ecoWave 2.4s ease-out infinite}
.eco-whats:hover .ico{transform:scale(1.12) rotate(-8deg)}
.eco-whats .tip{background:#fff;color:#1b2f45;font-weight:600;font-size:.85rem;padding:8px 14px;border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.18);opacity:0;transform:translateX(10px);transition:.3s;white-space:nowrap}
.eco-whats:hover .tip{opacity:1;transform:none}
@keyframes ecoWave{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.7);opacity:0}}
@keyframes ecoWhats{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.scroll-top{bottom:92px!important;right:28px!important}
@media(max-width:768px){.eco-whats .tip{display:none}.eco-whats{right:14px;bottom:14px}.scroll-top{right:22px!important;bottom:84px!important}.features .col-lg-5{margin-top:30px}}

/* ===== Logo do Instituto em pontos estratégicos ===== */
/* Carregamento: logo no centro com anel */
#preloader:before{width:110px!important;height:110px!important;top:calc(50% - 55px)!important;left:calc(50% - 55px)!important;border-width:4px!important}
#preloader:after{content:"";position:fixed;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;background:url(../img/Logo1.png) center/contain no-repeat;animation:ecoLogoBeat 1.6s ease-in-out infinite}
@keyframes ecoLogoBeat{50%{transform:scale(1.15)}}
/* Banners: marca d'água grande e flutuante */
.page-title:before{z-index:0}
.page-title .container{overflow:visible}
.page-title .container>h1:before{content:"";position:absolute;right:-4%;top:50%;width:230px;height:230px;margin-top:-115px;background:url(../img/Logo1.png) center/contain no-repeat;opacity:.16;filter:brightness(1.4);animation:ecoFloat 8s ease-in-out infinite alternate;pointer-events:none}
.page-title .container>h1{position:relative}
@media(max-width:768px){.page-title .container>h1:before{width:130px;height:130px;margin-top:-65px;right:-2%}}
/* Fundo geral: marca d'água suave que gira devagar */
.eco-bg:after{content:"";position:absolute;right:-6%;bottom:-8%;width:560px;height:560px;background:url(../img/Logo1.png) center/contain no-repeat;opacity:.06;animation:ecoSpin 90s linear infinite}
.eco-bg:before{content:"";position:absolute;left:-7%;top:18%;width:380px;height:380px;background:url(../img/Logo1.png) center/contain no-repeat;opacity:.04;animation:ecoSpin 120s linear infinite reverse}
@keyframes ecoSpin{to{transform:rotate(360deg)}}
/* Emblema acima dos títulos de seção */
.section-title h2:before{content:"";display:block;width:54px;height:54px;margin:0 auto 10px;background:url(../img/Logo1.png) center/contain no-repeat;animation:ecoFloat 5s ease-in-out infinite alternate;filter:drop-shadow(0 4px 8px rgba(47,74,44,.25))}
/* Chamada à ação */
.call-to-action{overflow:hidden}
.call-to-action:after{content:"";position:absolute;right:6%;top:50%;width:300px;height:300px;margin-top:-150px;background:url(../img/Logo1.png) center/contain no-repeat;opacity:.13;filter:brightness(1.5);pointer-events:none;animation:ecoFloat 9s ease-in-out infinite alternate}
@media(max-width:768px){.call-to-action:after{width:180px;height:180px;margin-top:-90px;right:-2%}}
/* Rodapé */
.footer{position:relative;overflow:hidden}
.footer .logo img{max-height:80px!important;height:auto!important;width:auto;filter:drop-shadow(0 4px 10px rgba(0,0,0,.2));transition:.4s var(--eco-ease)}
.footer .logo:hover img{transform:scale(1.06)}
.footer:after{content:"";position:absolute;right:-60px;bottom:-60px;width:340px;height:340px;background:url(../img/Logo1.png) center/contain no-repeat;opacity:.07;pointer-events:none}
/* Formulário de contato */
.contact form,.contact .php-email-form{background-image:linear-gradient(rgba(255,255,255,.94),rgba(255,255,255,.94)),url(../img/Logo1.png)!important;background-repeat:no-repeat!important;background-position:center,right 24px bottom 24px!important;background-size:auto,150px!important}
/* Menu: logo cresce ao passar o mouse */
.header .logo img{transition:.4s var(--eco-ease)}
.header .logo:hover img{transform:scale(1.1) rotate(-4deg)}

/* ===== Projetos do instituto (versão corrigida) ===== */
.recent-posts .post-box{padding:0!important;display:flex;flex-direction:column;height:100%;border-radius:18px;overflow:hidden}
.recent-posts .post-box .post-img{height:210px;border-radius:0;background:#fff;flex:0 0 210px}
.recent-posts .post-box .post-img img{width:100%;height:100%;object-fit:cover}
.recent-posts .col-xl-3:nth-child(n+3) .post-box .post-img img,.recent-posts .col-xl-3:first-child .post-box .post-img img{object-fit:contain;padding:14px}
.recent-posts .post-box .meta{margin:16px 20px 0;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.recent-posts .post-box .meta .post-date{background:#eaf4e3;color:var(--eco-green);padding:3px 11px;border-radius:999px;font-size:.76rem;font-weight:600}
.recent-posts .post-box .meta .post-author{font-size:.8rem}
.recent-posts .post-box .post-title{margin:12px 20px 0;font-size:1.08rem;line-height:1.3;color:var(--eco-deep)}
.recent-posts .post-box p{margin:10px 20px 0;font-size:.88rem;line-height:1.55;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.recent-posts .post-box .readmore{display:inline-flex;align-self:flex-start;margin:auto 20px 20px;padding:9px 20px;background:var(--eco-green);color:#fff!important;border-radius:999px;font-size:.85rem;gap:6px}
.recent-posts .post-box>p+.readmore{margin-top:18px}
.recent-posts .post-box .readmore:hover{background:var(--eco-leaf);gap:12px}
.recent-posts .post-box .post-title+p{flex:1 1 auto}

/* ===== Seta de voltar ao topo no lado esquerdo ===== */
.scroll-top{left:22px!important;right:auto!important;bottom:28px!important}
@media(max-width:768px){.scroll-top{left:16px!important;right:auto!important;bottom:20px!important}}

/* ===== Logo estática (somente as folhas se mexem) ===== */
.page-title .container>h1:before,.eco-bg:after,.eco-bg:before,.section-title h2:before,.call-to-action:after,#preloader:after{animation:none!important}
.header .logo:hover img,.footer .logo:hover img{transform:none!important}
.header .logo img,.footer .logo img{transition:none}

/* ===== Tela inicial no celular: árvore centralizada ===== */
@media(max-width:768px){
  .hero{background:#1f3320}
  .hero>img{height:72%!important;bottom:auto!important;top:0!important;object-fit:cover!important;object-position:98% 0!important;-webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent);translate:none!important}
  .hero:before{background:linear-gradient(180deg,rgba(20,33,20,0) 30%,rgba(20,33,20,.88) 70%)!important}
}

/* ===== Nossos Princípios (cartões no mesmo estilo da História e Missão) ===== */
.services .service-item{width:100%;height:100%;align-items:flex-start;gap:16px;background:#fff!important;border:1px solid #e8f0e4!important;border-radius:16px!important;padding:22px!important;box-shadow:0 8px 24px rgba(47,74,44,.07)!important;position:relative;transition:.4s var(--eco-ease)}
.services .service-item:hover{transform:translateY(-6px);box-shadow:0 16px 36px rgba(47,74,44,.15)!important;border-color:var(--eco-leaf)!important}
.services .service-item .icon{flex:0 0 52px;width:52px;height:52px;margin:0!important;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#f6faf3}
.services .service-item .icon i{font-size:1.5rem;color:inherit;margin:0}
.services .service-item .title{font-size:1.05rem;font-weight:700;color:var(--eco-deep);margin:0 0 8px}
.services .service-item .description{font-size:.9rem;line-height:1.55;color:#3d5266;margin-bottom:12px}
.services .service-item .readmore{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:600;color:var(--eco-green)}
.services .service-item .readmore:hover{gap:10px;color:var(--eco-leaf)}

/* ===== Responsividade geral ===== */
html,body{max-width:100%;overflow-x:hidden}
img,video,iframe{max-width:100%}
.page-title h1{font-size:clamp(1.5rem,7.5vw,2.8rem)!important;line-height:1.15;word-break:break-word;overflow-wrap:anywhere}
.section-title h2{font-size:clamp(1.5rem,6vw,2.2rem)}
@media(max-width:991px){
  .features .col-lg-5{margin-top:28px}
  .features .col-lg-5 img{max-height:460px}
}
@media(max-width:768px){
  .page-title{padding:110px 0 80px!important}
  .page-title h1{letter-spacing:.02em}
  .page-title .container>h1:before{display:none}
  .page-title .container:before,.page-title .container:after{width:220px;height:220px}
  .section{padding:44px 0}
  .container{padding-left:18px;padding-right:18px}
  .hero h1{font-size:clamp(1.6rem,7vw,2.2rem)}
  .services .service-item{padding:18px!important}
  .features .icon-list,.contact .info-item{padding:16px}
  .contact form,.contact .php-email-form{padding:20px!important}
  .contact .info-item:hover{transform:none}
  .team-member:hover,.service-item:hover{transform:none}
  .footer .logo img{max-height:64px!important}
  .footer .footer-top .row>div{text-align:center}
  .footer .social-links{justify-content:center}
  .recent-posts .post-box .post-img{height:190px;flex-basis:190px}
  .call-to-action h3{font-size:1.5rem}
  .eco-whats .ico{width:54px;height:54px;font-size:1.7rem}
}
@media(max-width:400px){
  .page-title h1{font-size:1.45rem!important}
  .proj-title{font-size:1.25rem}
  .transp-card .transp-year{font-size:1.3rem}
}
