/*
Theme Name: EPL Site Contínuo
Description: Site institucional da EPL Gestão de Projetos.
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: epl-site-continuo
*/
:root{--paper:#f7f9ff;--ink:#081638;--muted:#40516f;--blue:#1747d8;--line:#dce4f4;--white:#fff;color:var(--ink);background:var(--paper);font-family:system-ui,-apple-system,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;line-height:1.55}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(90deg,#e5eaf2 0 1px,transparent 1px 72px),repeating-linear-gradient(0deg,#e5eaf2 0 1px,transparent 1px 32px);opacity:.48;mask-image:linear-gradient(transparent,black 20%,black 90%,transparent)}
.shell{width:min(calc(100% - 5rem),80rem);margin-inline:auto}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding-block:1.65rem}
.brand{display:inline-flex;align-items:center;gap:1rem;background:var(--paper);color:var(--ink);text-decoration:none;flex-shrink:0}
.brand img{width:104px;height:auto;display:block}
.brand span{border-left:1px solid #b9c6df;padding-left:1rem;line-height:1.15;font-weight:700;font-size:.82rem}
.site-nav{margin-left:auto;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.4rem clamp(.7rem,1.55vw,1.5rem)}
.site-nav a{position:relative;text-decoration:none;color:var(--ink);font-size:.94rem;font-weight:600;padding:.35rem 0}
.site-nav a:hover,.site-nav a[aria-current=page]{color:var(--blue)}
.site-nav a[aria-current=page]::after{content:"";height:2px;background:var(--blue);position:absolute;inset:auto 0 0;border-radius:2px}
:focus-visible{outline:3px solid #4972e8;outline-offset:4px}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:clamp(20rem,42svh,32rem);display:grid;align-items:center;border-radius:1.5rem 10rem 23% 1.5rem / 1.5rem 6rem 13% 1.5rem;background:#071b33;color:white}
.hero.home{min-height:clamp(24rem,56svh,42rem)}
.hero img,.hero::after{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover;object-position:60% 48%}
.hero::after{content:"";z-index:-1;background:linear-gradient(90deg,#05142beb,#05142bab 38%,#05142b28 85%)}
.hero-copy{padding:clamp(1.7rem,5.4vw,5rem);max-width:56rem}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.5rem,5.5vw,5rem);line-height:1.05;letter-spacing:-.052em;margin-bottom:.9rem;text-wrap:balance}
.home h1{font-size:clamp(2.35rem,4.9vw,4.65rem)}
.hero p{max-width:34rem;margin-bottom:0;font-size:clamp(1rem,1.5vw,1.25rem)}
.button{display:inline-flex;align-items:center;gap:.6rem;min-height:44px;margin-top:1.35rem;background:white;color:var(--ink);border-radius:999px;padding:.55rem 1.1rem;text-decoration:none;font-weight:700}
.button:hover{background:#edf2fc}
.content{padding-block:clamp(2rem,5vw,4rem)}
.content h2{font-size:clamp(1.6rem,3vw,2.35rem);letter-spacing:-.035em;line-height:1.2}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.card{background:#ffffffed;border:1px solid var(--line);border-radius:1.2rem;padding:clamp(1.15rem,2.8vw,2rem);border-top:3px solid #9fb8f1}
.card h2,.card h3{font-size:1.23rem;line-height:1.25;letter-spacing:-.02em;margin-bottom:.65rem}
.card p,.card ul{color:var(--muted);margin-bottom:0}
.card ul{padding-left:1.15rem}
.card li+li{margin-top:.35rem}
a{color:var(--blue);text-underline-offset:.18em}
.partners .card{display:grid;place-items:center;min-height:7rem;text-align:center}
.partners .card h2{margin:0}
.site-footer{padding:1.35rem 0 2rem;border-top:1px solid var(--line);font-size:.9rem;color:var(--muted)}
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem;padding-bottom:1rem}
.footer-grid address{font-style:normal}
.footer-grid strong{display:block;color:var(--ink)}
.legal{margin:0;padding-top:1rem;border-top:1px solid var(--line)}
[hidden]{display:none!important}
@media(max-width:1100px){.site-header{gap:1rem}.site-nav{gap:.4rem .8rem}.site-nav a{font-size:.86rem}}
@media(max-width:850px){.shell{width:calc(100% - 2.5rem)}.site-header{flex-wrap:wrap;padding-block:1rem}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body::before{display:none}.shell{width:calc(100% - 1.75rem)}.site-nav{justify-content:flex-start;width:100%;gap:.2rem .85rem}.site-nav a{padding:.45rem 0}.hero{min-height:20rem;align-items:end;border-radius:1.15rem 4rem 16% 1.15rem / 1.15rem 3rem 9% 1.15rem}.hero.home{min-height:clamp(22rem,58svh,28rem)}.hero img{object-position:63% center}.hero::after{background:linear-gradient(0deg,#05142bf0 5%,#05142bb8 37%,transparent 95%)}.cards,.footer-grid{grid-template-columns:1fr}}

.story{
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.story p{
    text-align: justify;
    hyphens: auto;
    color: var(--muted);
    margin: 0 0 1rem;
}
.story p:last-child{margin-bottom:0}
.story strong{color:var(--ink)}
.story-partner{
    width: fit-content;
    max-width: 100%;
    padding: .85rem 1.2rem;
    margin-inline: auto;
    text-align: center;
    background: #edf3ff;
    border-top: 3px solid #9fb8f1;
}
.story-break{display:initial}
.site-footer{
    position: relative;
    border-top: 0;
}
.site-footer::before{
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 14px;
    border: 3px solid #9fb8f1;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}

.container-hero img{
    inset: 0 2% 0 auto;
    width: 68%;
    object-fit: contain;
    object-position: center;
}
.container-hero .hero-copy{max-width: 45%}
@media(max-width:700px){
    .container-hero img{inset: 0 0 auto;width:100%;height:65%;padding:1rem}
    .container-hero .hero-copy{max-width:none;padding-top:8rem}
}

.solution-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.solution-row+.solution-row{margin-top:1.4rem}
.solution-pair{display:grid;grid-template-rows:auto 1fr;gap:1rem;min-width:0}
.solution-photo{display:block;width:100%;aspect-ratio:1.9;object-fit:cover;border-radius:clamp(1rem,3vw,2.5rem)}
@media(max-width:700px){.solution-row{grid-template-columns:1fr}}
#method-title{text-align:center;margin-bottom:clamp(1.4rem,3.5vw,2.8rem)}
.method-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,3vw,3rem);align-items:start}
.method-columns ul{margin:0;padding-left:1.25rem;color:var(--muted)}
.method-columns li+li{margin-top:.65rem}
.method-prose{margin-top:clamp(1.8rem,4vw,3.5rem);padding-top:clamp(1.5rem,3vw,2.6rem);border-top:1px solid var(--line)}
.content .method-prose h2{font-size:clamp(1.15rem,1.65vw,1.5rem);line-height:1.25;margin-bottom:1.1rem}
.method-prose p{color:var(--muted)}
.method-prose p:last-child{margin-bottom:0}
@media(max-width:760px){.method-columns{grid-template-columns:1fr}.method-columns ul+ul{margin-top:-.35rem}}

.contact-content{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(1rem,4vw,4rem);align-items:center}
.contact-panel > p{margin-bottom:1.2rem}
.contact-name{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#epl-contact-form{display:grid;gap:1rem}
#epl-contact-form label{display:grid;gap:.35rem;font-weight:650;min-width:0}
#epl-contact-form input,#epl-contact-form textarea{width:100%;padding:.7rem .8rem;border:1px solid #aab9d2;border-radius:.65rem;background:white;color:var(--ink);font:inherit}
#epl-contact-form textarea{resize:vertical}
#epl-contact-form button{justify-self:start;border:0;border-radius:999px;background:#233752;color:white;padding:.65rem 1.2rem;min-height:44px;font:inherit;font-weight:700;cursor:pointer}
#contact-help{margin:0;font-size:.875rem}
.contact-projeta{margin:0;display:grid;place-items:center}
.contact-projeta img{display:block;width:min(100%,27rem);height:auto}
@media(max-width:760px){.contact-content{grid-template-columns:1fr}.contact-projeta{grid-row:1}.contact-projeta img{width:min(65%,15rem)}}
@media(max-width:420px){.contact-name{grid-template-columns:1fr}}

@media (prefers-reduced-motion: no-preference) {
    .preview-page:not([hidden]) .hero img { animation: epl-image-in 850ms ease-out both; }
    .preview-page:not([hidden]) .hero-copy { animation: epl-content-in 720ms cubic-bezier(.22,.61,.36,1) 120ms both; }
    .epl-reveal { animation: epl-content-in 720ms cubic-bezier(.22,.61,.36,1) both; }
}
@keyframes epl-content-in {
    from { opacity: .25; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes epl-image-in {
    from { opacity: .48; scale: 1.03; }
    to { opacity: 1; scale: 1; }
}

@media(min-width:601px){
    .cards.partners{grid-template-columns:repeat(6,minmax(0,1fr))}
    .partners .card{grid-column:span 2}
    .partners .card:nth-child(4){grid-column:2 / span 2}
    .partners .card:nth-child(5){grid-column:4 / span 2}
}

/* Soluções — seis serviços, com uma única imagem de abertura */
#solucoes .solutions-hero {
    min-height: clamp(13rem, 32svh, 22rem);
}
#solucoes .solutions-hero .hero-copy {
    padding-block: clamp(1.6rem, 4vw, 3.4rem);
}
#solucoes .solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 4rem);
}
#solucoes .solutions-grid + .solutions-grid {
    margin-top: clamp(.7rem, 2vw, 1.5rem);
}
#solucoes .solution-pair {
    display: block;
}
#solucoes .solution-service {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    box-shadow: none;
}
#solucoes .solutions-grid:hover {
    transform: none;
    box-shadow: none;
}
#solucoes .solution-service p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
}
#solucoes .solution-service h2 {
    font-size: 1.23rem;
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: .65rem;
}
@media (max-width: 47rem) {
    #solucoes .solutions-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    #solucoes .solution-pair + .solution-pair {
        border-top: 1px solid var(--line);
    }
}
#como-fazemos .method-columns { align-items: stretch; gap: clamp(.85rem, 2vw, 1.5rem); }
#como-fazemos .method-columns > .card { min-width: 0; }

:root{--ink:#132944;--muted:#455a73;--blue:#255a9a;--paper:#fff;--line:#dce5f0;--mist:#f1f5fa}
html{scroll-behavior:smooth}
body{background:#fff;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body::before{display:none}
.shell{width:min(calc(100% - 3rem),74rem)}
.topbar{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line)}
.site-header{min-height:74px;padding-block:.65rem;flex-wrap:nowrap;gap:1.2rem}
.brand img{width:74px}
.brand span{font-size:.74rem}
.site-nav{column-gap:clamp(.55rem,1.3vw,1.25rem)}
.site-nav a{font-size:.87rem}
.site-nav .nav-cta{background:var(--ink);color:#fff;border-radius:8px;padding:.67rem .85rem}
.site-nav .nav-cta:hover{background:var(--blue);color:white}
.menu-toggle{display:none}
.chapter{scroll-margin-top:84px}
.opening{background:var(--mist)}
.opening .hero.home{min-height:clamp(27rem,60svh,39rem);border-radius:0;color:white}
.opening .hero img{object-position:center 49%;animation:none}
.opening .hero::after{background:linear-gradient(90deg,#091a30f5 0%,#091a30db 30%,#091a3052 67%,#091a3027 100%)}
.home .hero-copy{width:min(calc(100% - 3rem),74rem);max-width:none;margin-inline:auto;padding:3rem 0}
.home h1{font-size:clamp(2.6rem,5.5vw,5rem);letter-spacing:-.065em;margin-bottom:1.15rem}
.home .eyebrow{color:#c9def6;font-size:.75rem;text-transform:uppercase;font-weight:750;letter-spacing:.13em;margin-bottom:1rem}
.opening .button{border-radius:8px;margin:.65rem .5rem 0 0}
.opening .secondary{background:#102743;color:white;border:1px solid #c9def6}
.opening .secondary:hover{background:#24496c}
.opening .home-pillars{padding-block:1.1rem}
.home-pillars .card{background:none;border:0;border-radius:0;border-left:2px solid #9db8dc;padding:.45rem 1rem}
.home-pillars .card h2{font-size:1rem}
.home-pillars .card p{font-size:.88rem}
.chapter:not(.opening){padding-block:clamp(2.6rem,6vw,5.4rem)}
.chapter-heading{margin-bottom:clamp(1.5rem,3.2vw,2.6rem)}
.chapter-heading h2{font-size:clamp(2rem,4.3vw,3.6rem);margin:0 0 .45rem;letter-spacing:-.05em;line-height:1.08}
.chapter-heading p{margin:0;max-width:42rem;color:var(--muted);font-size:clamp(1rem,1.7vw,1.18rem)}
.chapter:not(.opening) .content{padding-block:0}
#solucoes .service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 2rem}
#solucoes .service-grid .solution-service{border:0;border-top:2px solid #b5cce8;padding:1.35rem 0 1.7rem}
#solucoes .service-grid h3{font-size:1.22rem;margin-bottom:.6rem;line-height:1.23}
#sobre-nos,#como-fazemos,#contato{background:var(--mist)}
.about-layout,.governance-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem 2.2rem;align-items:start}
.about-layout img,.governance-layout img{display:block;width:100%;height:auto;max-height:22rem;object-fit:cover;border-radius:12px}
.about-layout details{margin:0;background:white;border:1px solid var(--line);border-radius:12px;padding:1.1rem 1.3rem}
.about-layout summary{cursor:pointer;font-size:1.13rem;font-weight:750}
.about-layout details p{margin:1rem 0 0;text-align:start}
.about-layout .story-partner{grid-column:1/-1;width:100%;border-radius:12px}
.governance-layout .cards{grid-template-columns:1fr}
.governance-layout .card{padding:1rem 1.2rem;border-radius:12px}
.method-overview h3{text-align:left;font-size:1.24rem}
.method-prose h3{font-size:1.18rem;line-height:1.22}
.contact-content .contact-panel{background:white}
.chapter-heading .button{margin-top:1rem;border-radius:8px;background:var(--ink);color:white}
.footer-band{background:#132944;color:white}
.footer-band .site-footer,.footer-band .site-footer strong,.footer-band .site-footer a{color:#edf4ff}
.footer-band .site-footer::before{display:none}
.footer-band .legal{border-color:#52708f}
@media(max-width:64rem){
 .site-header{flex-wrap:wrap}
 .menu-toggle:not([hidden]){display:block;margin-left:auto;background:white;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:.5rem .9rem;font:inherit;font-weight:700}
 .menu-toggle[aria-expanded=false]+.site-nav{display:none}
 .site-nav{width:100%;margin-left:0;justify-content:flex-start;gap:.45rem 1rem}
}
@media(max-width:48rem){
 .shell,.home .hero-copy{width:calc(100% - 2rem)}
 .about-layout,.governance-layout{grid-template-columns:1fr}
 #solucoes .service-grid{grid-template-columns:1fr 1fr;column-gap:1.25rem}
}
@media(max-width:35rem){
 .opening .hero.home{min-height:29rem;align-items:end}
 .opening .hero::after{background:linear-gradient(0deg,#091a30fa 0%,#091a30dd 50%,#091a3030 100%)}
 .home .hero-copy{padding-block:2rem}
 #solucoes .service-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

:root {
    --epl-bubble: 1.5rem 10rem 23% 1.5rem / 1.5rem 6rem 13% 1.5rem;
}
.opening {
    padding-top: clamp(.8rem, 2vw, 1.65rem);
}
.opening .hero.home {
    width: min(calc(100% - 3rem), 74rem);
    margin-inline: auto;
    min-height: clamp(23rem, 52svh, 33rem);
    border-radius: var(--epl-bubble);
}
.opening .home .hero-copy {
    width: 100%;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
}
.about-layout > img,
.governance-layout > img {
    border-radius: var(--epl-bubble);
}
@media (max-width: 48rem) {
    :root {
        --epl-bubble: 1.15rem 4rem 16% 1.15rem / 1.15rem 3rem 9% 1.15rem;
    }
    .opening .hero.home {
        width: calc(100% - 2rem);
    }
}
@media (max-width: 35rem) {
    .opening .hero.home {
        min-height: 24rem;
    }
}

.chapter-photo {
    margin-bottom: clamp(1.5rem, 3vw, 2.6rem);
}
.chapter-photo img {
    display: block;
    width: 100%;
    height: clamp(12rem, 27vw, 20rem);
    object-fit: cover;
    object-position: center 48%;
    border-radius: var(--epl-bubble);
}
@media (max-width: 35rem) {
    .chapter-photo img { height: clamp(11rem, 53vw, 15rem); }
}

.opening .hero.home { padding-bottom: 3.25rem; }
.opening .hero img.home-slide {
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 750ms ease;
    filter: blur(1px);
}
.opening .hero img.home-slide.is-active { opacity: 1; }
.slide-controls {
    position: absolute;
    bottom: .75rem;
    left: clamp(1.5rem, 5vw, 4rem);
    display: flex;
    gap: .35rem;
}
.slide-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: .25rem .55rem;
    font: inherit;
    font-size: .8rem;
    color: white;
    background: #102743;
    border: 1px solid #b1c6de;
    border-radius: 8px;
    cursor: pointer;
}
.slide-controls button[aria-current="true"] { color: #102743; background: white; }
#sobre-nos .about-layout { grid-template-columns: 1fr; }

#governanca .governance-layout { align-items: center; }
@media (prefers-reduced-motion: reduce) {
    .opening .hero img.home-slide { transition: none; }
}

.opening .hero img.home-slide:nth-of-type(3) {
    object-fit: contain;
    object-position: right center;
    background: #132944;
}

.history-flow {
    max-width: 64rem;
    margin-bottom: clamp(1.35rem, 3vw, 2.3rem);
}
.history-flow h3 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}
.history-flow ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .95rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.history-flow li {
    position: relative;
    border-top: 2px solid #9db8dc;
    border-radius: 12px;
    background: white;
    padding: .85rem 1rem 1rem;
}
.history-flow li:not(:nth-child(3n))::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    right: -1.5rem;
    width: 1.5rem;
    height: 2px;
    background: #9db8dc;
}
.history-date {
    display: inline-block;
    border-radius: 999px;
    padding: .2rem .65rem;
    background: #132944;
    color: white;
    font-size: .83rem;
    font-weight: 750;
}
.history-flow h4 { margin: .6rem 0 .3rem; line-height: 1.25; }
.history-flow p { color: var(--muted); margin: 0; font-size: .9rem; line-height: 1.5; }
@media (max-width: 48rem) {
    .history-flow ol { grid-template-columns: 1fr; gap: .75rem; }
    .history-flow li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: auto;
        bottom: -.75rem;
        left: 1.8rem;
        width: 2px;
        height: .75rem;
        background: #9db8dc;
    }
}
@media (min-width: 783px) { .admin-bar .topbar { top: 32px; } }
@media (min-width: 601px) and (max-width: 782px) { .admin-bar .topbar { top: 46px; } }

#solucoes .cycle { margin-block:0 clamp(2rem,5vw,4rem); border:1px solid var(--line); border-radius:1.2rem; padding:1.25rem; background:var(--mist); }
#solucoes .cycle h3 { margin-bottom:.85rem; }
#solucoes .cycle ol { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.75rem; list-style:none; padding:0; margin:0; }
#solucoes .cycle li { border-top:2px solid #9db8dc; padding-top:.55rem; overflow-wrap:anywhere; color:var(--muted); }
@media(max-width:48rem){ #solucoes .cycle ol { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:30rem){ #solucoes .cycle ol { grid-template-columns:repeat(2,minmax(0,1fr)); } }

@media (prefers-reduced-motion: no-preference) {
    .epl-enter-content {
        animation: epl-enter-content 850ms cubic-bezier(.2,.65,.35,1) both;
    }
    @keyframes epl-enter-content {
        from { opacity: .45; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
