/* Barcellos Advogados — mobile-first UX layer v12.
 * The BASE design below is a narrow phone. Larger screens progressively gain
 * columns and, only at >=1024px, the original dense comparison table.
 * This is a presentation adaptation; services still come from Gabriel's PDFs.
 * Original mark, palette and three locally hosted font families are unchanged.
 */

/* Comparison is a vertical, single-axis reading task on phones by default. */
.mobile-comparison{display:block;width:100%;min-width:0}
.comparison-table-wrap{display:none}
.mobile-compare-group{margin:0;padding:0 0 17px;min-width:0}
.mobile-compare-group-title{font-family:var(--font);font-size:23px;line-height:1.3;letter-spacing:-.03em;font-weight:500;color:var(--pine);margin:0;padding:22px 0 14px;border-top:2px solid var(--pine)}
.mobile-compare-items{display:block}
.mobile-compare-item{min-width:0;border-top:1px solid rgba(27,48,40,.16);padding:18px 0 19px;background:var(--white)}
.mobile-compare-item[hidden],.mobile-compare-group[hidden]{display:none!important}
.mobile-compare-item h4{font-family:var(--font-body);font-size:15px;line-height:1.52;font-weight:500;letter-spacing:0;overflow-wrap:break-word;margin:0 0 13px;color:var(--pine)}
.mobile-compare-included{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.mobile-plan-pill{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 10px;border:1px solid rgba(27,48,40,.32);border-radius:7px;background:var(--white);font-family:var(--font-body);font-size:12px;font-weight:500;line-height:1.35;white-space:nowrap;color:var(--pine)}
.mobile-compare-note{font-family:var(--font-body);font-size:12.5px;line-height:1.72;color:rgba(27,48,40,.75);margin:16px 0 22px;max-width:640px}
.mobile-compare-back{display:inline-flex;gap:12px;align-items:center;justify-content:space-between;min-height:44px;color:var(--pine);font-family:var(--font-body);font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;border-bottom:1px solid var(--clay);padding:5px 0}
.mobile-compare-back:hover,.mobile-compare-back:focus-visible{color:var(--clay)}
.compare .comparison-tools{display:none;align-items:center;justify-content:flex-start;min-height:48px;margin:0 0 24px}
.has-js .compare .comparison-tools{display:flex}
.compare .comparison-filter{min-height:48px;border-radius:999px;padding:10px 17px 10px 10px;font-size:13px;line-height:1.3;font-weight:500;gap:12px}
.compare .comparison-switch{flex:0 0 35px;width:35px;height:21px}
.compare .comparison-switch::before{width:15px;height:15px;top:3px;left:3px}
.compare .comparison-filter[aria-pressed="true"] .comparison-switch::before{transform:translateX(14px)}
/* Product choices have readable labels before a visitor discovers swiping. */
.mobile-plan-picker{display:none}
.has-js .mobile-plan-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 15px;border-bottom:1px solid rgba(27,48,40,.24);width:100%;min-width:0}
.mobile-plan-option{appearance:none;min-width:0;border:0;border-radius:0;background:transparent;position:relative;display:flex;align-items:center;justify-content:center;min-height:51px;padding:10px 5px;color:rgba(27,48,40,.72);font-family:var(--font-body);font-size:12.5px;font-weight:500;line-height:1.4;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mobile-plan-option[aria-pressed="true"]{color:var(--pine);font-weight:600}
.mobile-plan-option[aria-pressed="true"]::after{content:'';position:absolute;bottom:-1px;left:13%;width:74%;height:3px;border-radius:1px;background:var(--pine)}
.mobile-plan-option:hover{color:var(--pine)}
.mobile-plan-option:focus-visible{outline:2px solid var(--clay);outline-offset:-3px;border-radius:5px}
.has-js .plans .plans-carousel-footer{display:none}
/* Core mobile ergonomics: fewer decorative gaps, generous touch targets. */
body{font-size:16px}
.hero .hero-layout{padding-top:44px;padding-bottom:48px}
.hero-kicker{font-size:14px;line-height:1.55;letter-spacing:.012em;margin-bottom:22px}
.hero h1{font-size:clamp(35px,9.1vw,49px);line-height:1.14;letter-spacing:-.048em}
.hero-description{font-size:15px;line-height:1.7;max-width:565px;margin:25px 0 25px}
.hero .hero-actions .action{font-size:14px;min-height:53px;padding:14px 18px}
.hero-credential{font-size:11.5px;line-height:1.65;margin-top:32px}
.section-pad{padding-block:clamp(57px,9vw,76px)}
.proposition-body{font-size:15px;line-height:1.75}
.proposition-body p{line-height:1.74;margin-bottom:17px}
.plans{padding-block:clamp(57px,9vw,76px)}
.plans-heading p{font-size:14.5px;line-height:1.72}
.plans .plan-card h3{font-size:clamp(36px,10vw,43px)}
.plans .plan-card .plan-persona{font-size:14px;line-height:1.67;min-height:0;margin-bottom:19px}
.plans .plan-card .plan-highlights li,.plans .plan-card-featured .plan-highlights li{font-size:13.5px;line-height:1.58;padding:10px 0}
.plans .plan-card .plan-action,.plans .plan-card-featured .plan-action{font-size:14px;min-height:54px;line-height:1.5}
.plans .plan-card .plan-recommended{font-size:12px;line-height:1.3;padding:7px 13px}
.plans .plans-afterline p{font-size:12.5px;line-height:1.65}
.plans .plans-afterline a{font-size:13px;min-height:44px}
.plans-legal{font-size:12px;line-height:1.72}
.compare .section-header{margin-bottom:21px}
.compare .section-header h2{font-size:clamp(34px,8.5vw,51px)}
.founder-layout{gap:28px}
.founder-visual{min-height:265px;padding:20px}
.founder-visual img{height:175px;max-height:80%}
.founder-text h2{font-size:clamp(53px,12.8vw,70px)}
.founder-text>p:not(.eyebrow):not(.founder-role){font-size:15px;line-height:1.72}
.founder-text .founder-role{font-size:12.5px}
.question-item summary{font-size:16.5px;line-height:1.45;min-height:76px}
.question-item>p{font-size:14.5px;line-height:1.75}
.question-form label{font-size:14.5px;line-height:1.53}
.question-form textarea{font-size:16px;line-height:1.65;min-height:125px}
.question-submit{font-size:14px;min-height:53px;padding-inline:17px}
.question-help{font-size:12.5px!important;line-height:1.68!important}
.contact-pitch>p:not(.eyebrow){font-size:14.5px;line-height:1.7}
.contact-info a,.contact-info p{font-size:15.5px;line-height:1.62}
/* The visitor can contact the firm without first traversing 22 detail rows. */
.detail-page .header-inner{gap:10px}
.detail-page .header-brand{flex:0 0 auto;width:clamp(124px,36vw,172px)}
.detail-page .detail-intro{padding-block:37px 45px}
.detail-title-wrap{padding-top:32px;gap:23px}
.detail-title-wrap h1{font-size:clamp(45px,13vw,67px);line-height:1.11;letter-spacing:-.048em;overflow-wrap:normal}
.detail-lead{font-size:15px;line-height:1.7}
.detail-breadcrumb,.detail-header-back{font-size:12.5px}
.detail-brand-symbol{display:none}
.detail-intro-contact{display:inline-flex;align-items:center;gap:12px;font-size:13.5px;font-family:var(--font-body);font-weight:600;line-height:1.45;text-decoration:none;color:var(--pine);border-bottom:1px solid var(--clay);min-height:46px;margin-top:24px;padding:9px 0}
.detail-intro-contact:hover,.detail-intro-contact:focus-visible{color:var(--clay)}
.detail-scope-section{padding-block:55px 67px}
.detail-scope-title{font-size:clamp(34px,8vw,48px);line-height:1.17;margin-bottom:31px}
.detail-scope-group{grid-template-columns:1fr;gap:17px;padding:28px 0 32px}
.detail-scope-group h2{font-size:24px;line-height:1.28}
.detail-scope-group li{font-size:14.5px;line-height:1.67;padding:11px 0 12px 18px}
.detail-scope-group li::before{top:21px}
.detail-contract-note{font-size:13px;line-height:1.75}
.detail-next{padding-block:55px 65px}
.detail-next h2{font-size:clamp(30px,7.5vw,42px)}
.detail-next p{font-size:14px;line-height:1.72}
.detail-next-actions .action{font-size:14px;min-height:54px}
.detail-return{font-size:13px;min-height:44px}
/* Tablet: prioritize scanability; two columns without sideway table scroll. */
@media(min-width:600px){
  .has-js .mobile-plan-picker{display:none}
  .has-js .plans .plans-carousel-footer{display:flex}
  .hero-description{font-size:15px}
  .mobile-compare-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .mobile-compare-item{border:1px solid rgba(27,48,40,.2);border-radius:11px;padding:17px 18px 20px}
  .mobile-compare-group-title{margin-bottom:15px}
  .mobile-compare-item h4{font-size:15px}
  .detail-brand-symbol{display:flex}
  .detail-intro-contact{display:none}
  .detail-scope-group{grid-template-columns:minmax(190px,.4fr) minmax(0,.6fr);gap:26px}
}
/* Tablet controls are finger-sized too, not just mouse-sized dots. */
@media(min-width:600px) and (max-width:1099px){
 .plans-arrow{min-width:44px;min-height:44px;width:44px;height:44px}
 .plans-dot{min-width:40px;min-height:44px;width:40px;height:44px}
}
/* Wider tablet: preserve the existing brand layout; still no sideway matrix. */
@media(min-width:761px){
  body{font-size:15px}
  .hero .hero-layout{padding-top:clamp(53px,5.1vw,78px);padding-bottom:48px}
  .hero-kicker{font-size:14px;letter-spacing:.025em}
  .hero h1{font-size:clamp(43px,5.6vw,79px)}
  .hero-description{font-size:clamp(14px,1.12vw,16px)}
  .hero-credential{font-size:11px;margin-top:42px}
  .section-pad{padding-block:clamp(76px,8vw,128px)}
  .plans{padding-block:clamp(76px,8vw,128px)}
  .plans-heading p{font-size:14px}
  .plans .plan-card .plan-persona{font-size:13px;min-height:84px}
  .plans .plan-card .plan-highlights li,.plans .plan-card-featured .plan-highlights li{font-size:12px}
  .plans .plan-card .plan-action,.plans .plan-card-featured .plan-action{font-size:12px;min-height:53px}
  .plans .plan-card .plan-recommended{font-size:11px}
  .plans .plans-afterline p{font-size:12px}
  .plans-legal{font-size:11px}
  .proposition-body{font-size:15px}
  .founder-visual{min-height:445px}
  .founder-visual img{height:280px}
  .founder-text>p:not(.eyebrow):not(.founder-role){font-size:14px}
  .question-item>p{font-size:13px}
  .question-form textarea{font-size:14px}
  .question-submit{font-size:12px;min-height:48px}
  .contact-pitch>p:not(.eyebrow){font-size:14px}
  .detail-intro-contact{display:none}
  .detail-page .header-brand{width:190px}
  .detail-title-wrap h1{font-size:clamp(65px,9vw,136px);letter-spacing:-.065em}
  .detail-scope-group li{font-size:13px}
}
/* A true table is appropriate only when all four columns fit comfortably. */
@media(min-width:1024px){
  .mobile-comparison{display:none}
  .comparison-table-wrap{display:block}
  .compare .comparison-tools{justify-content:flex-end;margin-bottom:18px}
  .comparison-filter{min-height:39px}
}
@media(min-width:1181px){.detail-page .header-brand{width:224px}}
@media(min-width:1100px){
  .plans .plans-carousel-footer{display:none}
  .has-js .plans .plans-carousel-footer{display:none}
}
@media(prefers-reduced-motion:reduce){
 .mobile-plan-option,.mobile-compare-item,.mobile-plan-pill{transition:none}
}
