/*
Theme Name: Ofício Jurídico V10.1
Theme URI: https://oficiojuridico.com.br/
Author: Rogério Almeida
Description: Block Theme V10.1 para a marca pessoal de Rogério Almeida, com direção editorial minimalista, catálogo de livros e landings comerciais de alta performance.
Version: 10.1
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: oficio-juridico
*/

:root{--ivory:#F6F2EA;--ivory-2:#FBF8F2;--navy:#14263A;--graphite:#30343A;--bronze:#B2874F;--muted:#6E7073;--white:#fff;--line:rgba(20,38,58,.12);--shadow:0 14px 34px rgba(20,38,58,.08);--serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;--sans:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--graphite);background:var(--ivory);font-family:var(--sans);line-height:1.65}a{text-underline-offset:3px}img{max-width:100%;height:auto}.wp-site-blocks{overflow:hidden}
.oj-container{width:min(calc(100% - 64px),1240px)!important;margin-inline:auto!important}.oj-eyebrow{font-size:12px!important;line-height:1.2!important;letter-spacing:.12em!important;text-transform:uppercase;color:var(--bronze)!important;font-weight:700!important;margin:0 0 14px!important}.oj-section-title{font-family:var(--serif)!important;font-size:clamp(38px,4.2vw,54px)!important;line-height:1.02!important;color:var(--navy)!important;margin:0!important}.oj-intro{font-size:18px;color:var(--muted);max-width:760px}.oj-btn .wp-block-button__link{min-height:50px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px!important;padding:0 22px!important;font-size:15px!important;font-weight:700!important}.oj-btn-primary .wp-block-button__link{background:var(--navy)!important;color:#fff!important}.oj-btn-secondary .wp-block-button__link{background:transparent!important;color:var(--bronze)!important;border:1px solid var(--bronze)!important}.oj-text-link{color:var(--bronze)!important;font-weight:700!important}
/* Header / Footer */
.oj-header{position:sticky;top:0;z-index:50;background:rgba(246,242,234,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(20,38,58,.07)}.oj-header-inner{min-height:84px}.oj-brand-name{font-family:var(--serif)!important;font-size:24px!important;color:var(--navy)!important;font-weight:700!important;letter-spacing:.01em!important;margin:0!important}.oj-brand-sub{font-size:11px!important;color:var(--muted)!important;margin:2px 0 0!important}.oj-header .wp-block-navigation{font-size:14px;font-weight:600}.oj-header .wp-block-navigation a:hover{color:var(--bronze)}
.oj-footer{background:#0f2031;color:rgba(255,255,255,.78);padding:52px 0 24px}.oj-footer h2,.oj-footer h3,.oj-footer p,.oj-footer a{color:inherit}.oj-footer-brand{font-family:var(--serif)!important;font-size:28px!important;color:#fff!important}.oj-footer-title{font-size:12px!important;text-transform:uppercase;letter-spacing:.08em;color:#d5b785!important;font-weight:800!important}.oj-footer .wp-block-navigation{font-size:14px}.oj-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:18px;margin-top:32px;font-size:12px}
/* Home */
.oj-hero{background:linear-gradient(90deg,var(--ivory) 0%,var(--ivory) 52%,#e8dfd1 52%,#e8dfd1 100%)}.oj-hero-grid{min-height:680px}.oj-hero-copy{padding:76px 72px 72px 0}.oj-hero h1{font-family:var(--serif)!important;font-size:clamp(54px,5.2vw,68px)!important;line-height:.98!important;letter-spacing:-.025em!important;color:var(--navy)!important;margin:0!important}.oj-hero-lead{font-size:22px!important;line-height:1.35!important;color:var(--navy)!important;margin:24px 0 0!important}.oj-hero-body{font-size:17px!important;color:var(--muted)!important;margin:18px 0 0!important}.oj-hero-media{height:680px}.oj-hero-media img{width:100%;height:100%;object-fit:cover}.oj-section{padding:92px 0}.oj-white{background:#fff}.oj-ivory2{background:var(--ivory-2)}.oj-pillars-grid>.wp-block-column{padding-right:36px;border-right:1px solid var(--line)}.oj-pillars-grid>.wp-block-column:last-child{border-right:0}.oj-pillar-num{font-size:12px!important;color:var(--navy)!important;font-weight:800!important;letter-spacing:.04em!important}.oj-pillar-title{font-family:var(--serif)!important;font-size:28px!important;line-height:1.05!important;color:var(--navy)!important;margin:7px 0 10px!important}.oj-pillar-text{color:var(--muted)}
.oj-query-grid .wp-block-post-template{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.oj-post-card{background:#fff;border:1px solid rgba(20,38,58,.08);box-shadow:0 8px 22px rgba(20,38,58,.03);padding-bottom:22px}.oj-post-card .wp-block-post-featured-image{margin:0}.oj-post-card .wp-block-post-featured-image img{aspect-ratio:16/9;object-fit:cover}.oj-post-card .wp-block-post-terms,.oj-post-card .wp-block-post-title,.oj-post-card .wp-block-post-excerpt,.oj-post-card .wp-block-read-more{margin-left:20px;margin-right:20px}.oj-post-card .wp-block-post-terms{font-size:11px;text-transform:uppercase;font-weight:800;margin-top:18px}.oj-post-card .wp-block-post-title{font-family:var(--serif);font-size:27px;line-height:1.05;color:var(--navy);margin-top:8px;margin-bottom:10px}.oj-post-card .wp-block-post-excerpt{font-size:15px;color:var(--muted)}.oj-post-card .wp-block-read-more{color:var(--bronze);font-weight:700}
.oj-framework{background:var(--navy);color:var(--ivory);padding:72px 0}.oj-framework .oj-section-title{color:var(--ivory)!important}.oj-framework .oj-intro{color:rgba(246,242,234,.78)}.oj-framework-grid>.wp-block-column{padding:0 28px;border-right:1px solid rgba(246,242,234,.17)}.oj-framework-grid>.wp-block-column:first-child{padding-left:0}.oj-framework-grid>.wp-block-column:last-child{border-right:0}.oj-qnum{font-family:var(--serif)!important;font-size:42px!important;line-height:1!important;color:var(--bronze)!important;margin:0!important}.oj-qtitle{font-family:var(--serif)!important;font-size:25px!important;line-height:1.05!important;color:var(--ivory)!important}.oj-qtext{color:rgba(246,242,234,.78)!important;font-size:15px!important}.oj-book-cover img{filter:drop-shadow(0 20px 25px rgba(20,38,58,.18));max-height:490px;width:auto;margin:auto}.oj-book-title{font-family:var(--serif)!important;font-size:48px!important;line-height:1!important;color:var(--navy)!important}.oj-about-photo img{width:100%;aspect-ratio:4/5;object-fit:cover}.oj-about-copy p{color:var(--muted)}
/* Generic page / article */
.oj-page-shell{padding:72px 0 96px;background:#fff;min-height:60vh}.oj-content-narrow{max-width:820px!important;margin-inline:auto!important}.oj-page-title{font-family:var(--serif)!important;font-size:clamp(46px,5vw,68px)!important;line-height:1!important;color:var(--navy)!important}.oj-entry-content{font-size:18px}.oj-entry-content h2,.oj-entry-content h3{font-family:var(--serif);color:var(--navy)}
/* Gutenberg editor parity: custom classes remain visible */
.editor-styles-wrapper .oj-eyebrow{color:var(--bronze)!important}.editor-styles-wrapper .oj-framework{background:var(--navy);color:var(--ivory)}
@media(max-width:991px){.oj-container{width:min(calc(100% - 48px),1240px)!important}.oj-hero{background:var(--ivory)}.oj-hero-grid{min-height:auto}.oj-hero-grid.wp-block-columns{flex-wrap:wrap!important}.oj-hero-grid>.wp-block-column{flex-basis:100%!important}.oj-hero-media{height:auto;aspect-ratio:16/10;order:-1}.oj-hero-copy{padding:52px 0 58px}.oj-pillars-grid{flex-wrap:wrap!important}.oj-pillars-grid>.wp-block-column{flex-basis:100%!important;border-right:0;border-bottom:1px solid var(--line);padding:0 0 26px}.oj-query-grid .wp-block-post-template{grid-template-columns:1fr 1fr}.oj-framework-grid{flex-wrap:wrap!important}.oj-framework-grid>.wp-block-column{flex-basis:50%!important}.oj-book-columns,.oj-about-columns{flex-wrap:wrap!important}.oj-book-columns>.wp-block-column,.oj-about-columns>.wp-block-column{flex-basis:100%!important}}
@media(max-width:767px){.oj-container{width:min(calc(100% - 40px),1240px)!important}.oj-header-inner{min-height:70px}.oj-hero-media{aspect-ratio:4/3}.oj-hero-copy{padding:38px 0 46px}.oj-hero h1{font-size:44px!important}.oj-hero-lead{font-size:18px!important}.oj-hero-body{font-size:16px!important}.oj-section{padding:62px 0}.oj-query-grid .wp-block-post-template{grid-template-columns:1fr}.oj-framework-grid>.wp-block-column{flex-basis:100%!important;padding:22px 0!important;border-right:0;border-bottom:1px solid rgba(246,242,234,.17)}.oj-framework-grid>.wp-block-column:last-child{border-bottom:0}.oj-book-title{font-size:40px!important}}

/* V6 — artigos: autoria, data, tempo de leitura e hierarquia editorial */
.oj-article-shell{background:var(--ivory);padding-top:76px}
.oj-article-header{max-width:900px!important;margin-inline:auto!important}
.oj-article-title{max-width:15ch;margin-bottom:18px!important}
.oj-post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 34px}
.oj-post-meta a{color:var(--navy);font-weight:650;text-decoration:none}
.oj-post-meta a:hover{text-decoration:underline;text-decoration-color:var(--bronze)}
.oj-post-meta-sep{color:rgba(20,38,58,.34)}
.oj-article-featured{width:min(calc(100% - 64px),1160px)!important;margin:0 auto 56px!important}
.oj-article-featured img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;box-shadow:0 18px 45px rgba(20,38,58,.08)}
.oj-entry-content{max-width:790px!important;margin-inline:auto!important;font-size:18.5px;line-height:1.76;color:var(--graphite)}
.oj-entry-content p{margin-top:0;margin-bottom:22px}
.oj-entry-content h2{font-size:clamp(31px,3vw,36px);line-height:1.08;margin-top:62px;margin-bottom:20px}
.oj-entry-content h3{font-size:clamp(22px,2.3vw,25px);line-height:1.15;margin-top:38px;margin-bottom:14px}
.oj-entry-content blockquote{border-left:3px solid var(--bronze);padding:5px 0 5px 20px;margin:38px 0;color:var(--navy);font-family:var(--serif);font-size:clamp(24px,2.5vw,28px);line-height:1.25}
.oj-entry-content blockquote p{margin:0}
@media(max-width:767px){
  .oj-article-shell{padding-top:48px}
  .oj-article-header{width:min(calc(100% - 40px),900px)!important}
  .oj-article-title{font-size:clamp(38px,10vw,44px)!important;line-height:1.04!important}
  .oj-post-meta{font-size:13px;margin-bottom:28px}
  .oj-article-featured{width:min(calc(100% - 40px),1160px)!important;margin-bottom:40px!important}
  .oj-article-featured img{border-radius:10px}
  .oj-entry-content{width:min(calc(100% - 40px),790px)!important;font-size:17px;line-height:1.72}
  .oj-entry-content h2{margin-top:46px}
}


/* =========================================================
   V10 — editorial minimalista, posicionamento 0.4
   ========================================================= */
:root{--oj-ivory:#F6F2EA;--oj-paper:#FBFAF7;--oj-navy:#14263A;--oj-graphite:#30343A;--oj-bronze:#B2874F;--oj-line:rgba(20,38,58,.12)}
body{background:var(--oj-paper)}
.oj-header{background:rgba(251,250,247,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(20,38,58,.07)}
.oj-header-inner{min-height:78px}
.oj-brand-name{font-size:.92rem!important;letter-spacing:.16em!important;font-weight:700!important}
.oj-brand-sub{font-size:.66rem!important;letter-spacing:.09em!important;color:#77736D!important}
.oj-header .wp-block-navigation-item__content{font-size:.78rem!important;font-weight:650!important}
.oj-hero{padding:clamp(70px,9vw,132px) 0!important;background:linear-gradient(180deg,#FCFAF7,var(--oj-ivory))!important}
.oj-hero-grid{gap:clamp(36px,6vw,92px)!important;align-items:center!important}
.oj-hero-copy h1{max-width:13ch!important;font-size:clamp(3rem,7.2vw,6.5rem)!important;line-height:.94!important;letter-spacing:-.052em!important;font-weight:500!important}
.oj-hero-lead{max-width:660px!important;font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(1.25rem,2vw,1.75rem)!important;line-height:1.35!important;color:var(--oj-navy)!important}
.oj-hero-body{max-width:640px!important;color:#66635E!important}
.oj-hero-media figure{max-width:430px;margin:auto!important}
.oj-hero-media img{border-radius:50%!important;box-shadow:0 22px 60px rgba(14,29,45,.12)!important}
.oj-eyebrow{letter-spacing:.16em!important;font-size:.67rem!important}
.oj-section{padding:clamp(72px,8vw,118px) 0!important}
.oj-section-title{max-width:18ch;font-size:clamp(2.25rem,4.6vw,4rem)!important;line-height:1.02!important;letter-spacing:-.035em!important;font-weight:500!important}
.oj-intro{max-width:780px!important;color:#68645E!important;font-size:1.03rem!important}
.oj-pillars-grid>.wp-block-column,.oj-framework-grid>.wp-block-column{border-top:1px solid var(--oj-line);padding-top:24px!important}
.oj-post-card{border:1px solid rgba(20,38,58,.09)!important;box-shadow:none!important;border-radius:12px!important;background:#fff!important}
.oj-post-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(14,29,45,.06)!important}
.oj-product-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:40px}
.oj-product-card{display:grid;gap:22px;padding:24px;border:1px solid var(--oj-line);border-radius:16px;background:#fff}
.oj-product-card img{width:min(100%,220px);max-height:300px;object-fit:contain;margin:auto}
.oj-product-card h3{margin:.1rem 0 .5rem;font-size:1.6rem}
.oj-product-card p{color:#66635E}
.oj-product-card--bundle{background:linear-gradient(145deg,#fff,#FBF7F0);border-color:rgba(178,135,79,.34)}
.oj-product-badge{display:inline-block;width:max-content;padding:6px 9px;border-radius:999px;background:var(--oj-navy);color:#fff;font-size:.62rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.oj-philosophy{padding:clamp(72px,8vw,116px) 0;background:var(--oj-navy);color:#E5E9ED}
.oj-philosophy h2{max-width:19ch;color:#fff!important;font-size:clamp(2.35rem,5vw,4.5rem)!important;line-height:1.02!important;font-weight:500!important}
.oj-philosophy p{max-width:760px;color:#D4DAE0}
.oj-philosophy strong{color:#fff}
.oj-page-shell{padding-top:72px!important;padding-bottom:96px!important}
.oj-book-list{display:grid;gap:22px;margin-top:44px}
.oj-book-item{display:grid;gap:26px;align-items:center;padding:26px 0;border-top:1px solid var(--oj-line)}
.oj-book-item img{width:180px;max-height:250px;object-fit:contain}
.oj-book-item h2{margin:.1rem 0 .55rem}
.oj-about-columns{align-items:center!important;gap:clamp(36px,6vw,84px)!important}
.oj-about-photo img{border-radius:50%!important;box-shadow:0 20px 55px rgba(14,29,45,.10)!important}
@media(min-width:780px){.oj-product-grid{grid-template-columns:repeat(3,1fr)}.oj-product-card{grid-template-rows:auto 1fr}.oj-book-item{grid-template-columns:210px 1fr}}
@media(max-width:781px){.oj-header-inner{min-height:68px}.oj-brand-sub{display:none}.oj-hero{padding-top:64px!important}.oj-hero-copy h1{font-size:clamp(2.7rem,14vw,4.6rem)!important}.oj-hero-media{order:-1}.oj-hero-media figure{max-width:240px}.oj-section{padding:68px 0!important}.oj-product-card{padding:20px}.oj-footer{padding-bottom:40px!important}}
