/*
Theme Name: Sul Brasil RH
Theme URI: https://sulbrasilrh.com.br
Author: Sul Brasil RH
Author URI: https://sulbrasilrh.com.br
Description: Tema institucional da Sul Brasil RH, com conteúdo editável via Advanced Custom Fields.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: sulbrasilrh
*/

:root{
  --navy:#283071;
  --navy-deep:#181D4A;
  --orange:#EE7402;
  --orange-dark:#C25F00;
  --red:#CF1230;
  --ink:#14141A;
  --paper:#FFFFFF;
  --warm:#F6F4EE;
  --line:#E4E0D4;
  --line-on-dark:rgba(255,255,255,0.18);
  --max:1280px;
  --sans:'Montserrat', -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:'IBM Plex Mono', "SF Mono", Consolas, Menlo, "Liberation Mono", monospace;
  --r:10px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 32px; position:relative;}

.label{
  font-family:var(--mono); font-size:12.5px; font-weight:500; letter-spacing:0.4px;
  color:var(--orange-dark); text-transform:uppercase; display:block; margin-bottom:18px;
}
h1,h2,h3{font-weight:700; letter-spacing:-0.01em; color:var(--navy);}
h2{font-size:clamp(26px,3.4vw,38px); line-height:1.2; max-width:620px;}
.section{padding:96px 0;}
.section-alt{background:var(--warm);}
.lead{color:#4a4a58; font-size:15.5px; max-width:560px; margin-top:14px;}

/* ---------- BOTÕES ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--orange); color:#fff; font-weight:700; font-size:14.5px;
  padding:15px 26px; letter-spacing:0.2px; border:1.5px solid var(--orange); border-radius:var(--r);
  transition:background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor:pointer;
}
.btn:hover{background:var(--orange-dark); border-color:var(--orange-dark); transform:translateY(-1px);}

.btn-outline{background:transparent; color:var(--navy); border:1.5px solid var(--navy);}
.btn-outline:hover{background:var(--navy); color:#fff; transform:translateY(-1px);}

.btn-outline-light{background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.5);}
.btn-outline-light:hover{background:#fff; color:var(--navy); border-color:#fff; transform:translateY(-1px);}

.btn-sm{padding:10px 20px; font-size:13.5px; gap:6px;}

/* ---------- ICON SYSTEM ---------- */
.icon{width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; display:block;}
.icon-badge{
  width:52px; height:52px; border-radius:12px; background:var(--warm); color:var(--navy);
  display:flex; align-items:center; justify-content:center; flex:none;
  transition:background .18s ease, color .18s ease;
}
.icon-badge.sm{width:40px; height:40px; border-radius:10px;}
.icon-badge.sm .icon{width:19px; height:19px;}
.icon-badge.on-dark{background:rgba(255,255,255,0.08); color:var(--orange);}

/* ---------- SCROLL REVEAL ---------- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1!important; transform:none!important; transition:none!important;}
}

/* ---------- PHOTOS ---------- */
.photo-frame{position:relative; overflow:hidden; border-radius:var(--r); background:var(--warm);}
.photo-frame img{width:100%; height:100%; object-fit:cover; display:block;
  filter:grayscale(0.35) contrast(1.05) brightness(0.98); transition:transform .6s ease;}
.photo-frame:hover img{transform:scale(1.045);}
.photo-frame::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(150deg, rgba(40,48,113,0.5) 0%, rgba(238,116,2,0.2) 100%);
  mix-blend-mode:multiply; pointer-events:none;
}
.photo-caption{
  position:absolute; z-index:2; left:0; right:0; bottom:0; padding:26px 28px;
  background:linear-gradient(0deg, rgba(24,29,74,0.94) 0%, rgba(24,29,74,0) 100%);
}
.photo-caption .label{color:var(--orange); margin-bottom:6px;}
.photo-caption strong{display:block; color:#fff; font-size:16px; font-weight:700; line-height:1.3;}
.photo-caption h3{color:#fff; font-size:19px; margin-bottom:8px; font-weight:700;}
.photo-caption p{color:rgba(255,255,255,0.78); font-size:14px; margin:0;}

/* ---------- TOPBAR ---------- */
.topbar{background:var(--navy-deep); color:rgba(255,255,255,0.75);}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; padding:9px 32px; max-width:var(--max); margin:0 auto;}
.topbar-contact{display:flex; gap:24px;}
.topbar-contact a{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:500; color:rgba(255,255,255,0.75); transition:color .15s ease;}
.topbar-contact a:hover{color:var(--orange);}
.topbar-contact .icon{width:14px; height:14px;}
.topbar-social{display:flex; gap:14px;}
.topbar-social a{color:rgba(255,255,255,0.6); transition:color .15s ease;}
.topbar-social a:hover{color:var(--orange);}
.topbar-social .icon{width:15px; height:15px;}
@media (max-width:900px){ .topbar{display:none;} }

/* ---------- HEADER ---------- */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.94); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:var(--max); margin:0 auto;}
.logo{font-size:18px; font-weight:800; color:var(--navy); letter-spacing:0.2px;}
.logo img{max-height:60px; width:auto;}
.logo span{color:var(--orange);}
.nav-links{display:flex; gap:34px; font-size:13.5px; font-weight:600; color:var(--ink);}
.nav-links a{position:relative; padding-bottom:3px;}
.nav-links a::after{content:'';position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--orange); transition:width .15s ease;}
.nav-links a:hover::after{width:100%;}
.nav-actions{display:flex; align-items:center; gap:14px;}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle-bar{width:22px; height:2px; background:var(--navy); border-radius:2px; transition:transform .2s ease, opacity .2s ease;}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2){opacity:0;}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-panel{
  display:none; max-height:0; overflow:hidden; background:#fff; border-bottom:1px solid var(--line);
  transition:max-height .28s ease;
}
.mobile-panel.is-open{max-height:100%;}
.mobile-panel nav{display:flex; flex-direction:column; padding:8px 32px;}
.mobile-panel nav a{padding:14px 0; border-bottom:1px solid var(--line); font-size:15px; font-weight:600; color:var(--ink);}
.mobile-panel .btn{margin:18px 32px 22px;}

@media (max-width:900px){
  .nav-links{display:none;}
  .nav-actions .btn{display:none;}
  .nav-toggle{display:flex;}
  .mobile-panel{display:block;}
}

/* ---------- HERO ---------- */
.hero{position:relative; overflow:hidden; background:var(--navy); color:#fff; padding:110px 0 0;}
.hero-grid{display:grid; grid-template-columns:1.05fr 0.85fr; gap:48px; align-items:center; padding-bottom:64px;}
.hero-mark{
  position:absolute; top:-30px; right:-10px; z-index:0;
  font-family:var(--sans); font-weight:800; font-size:clamp(140px,18vw,260px); line-height:1;
  color:transparent; -webkit-text-stroke:2px rgba(255,255,255,0.12);
  pointer-events:none; user-select:none;
}
.hero-inner{position:relative; z-index:1;}
.hero .label, .hero .photo-caption .label{color:var(--orange);}
.hero h1{color:#fff; font-size:clamp(32px,4.2vw,48px); line-height:1.14; font-weight:700; letter-spacing:-0.01em; margin-bottom:22px;}
.hero p{font-size:16.5px; color:rgba(255,255,255,0.78); max-width:520px; margin-bottom:12px;}
.hero-actions{display:flex; gap:14px; margin-top:32px; flex-wrap:wrap;}
.hero-photo{position:relative; z-index:1; aspect-ratio:4/5; align-self:stretch;}
.hero-foot{
  position:relative; z-index:1; padding:22px 0; border-top:1px solid var(--line-on-dark);
  font-family:var(--mono); font-size:12.5px; color:rgba(255,255,255,0.55); letter-spacing:0.3px;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-photo{aspect-ratio:16/10; margin-top:12px;}
}

/* ---------- DESAFIOS ---------- */
.ed-list{margin-top:12px;}
.ed-row{display:flex; gap:20px; align-items:center; padding:18px 4px; border-bottom:1px solid var(--line); transition:background .18s ease;}
.ed-row:hover{background:var(--warm);}
.ed-row:hover .icon-badge{background:var(--orange); color:#fff;}
.ed-row p{font-size:16px; font-weight:600; color:var(--ink); margin:0;}
.challenge-note{margin-top:32px; font-size:16.5px; color:var(--navy); font-weight:600; max-width:600px;}

/* ---------- TECNOLOGIA ---------- */
.tech-layout{display:grid; grid-template-columns:1fr 0.85fr; gap:56px; align-items:center;}
.tech-list{margin-top:28px;}
.tech-item{display:flex; gap:18px; align-items:flex-start; padding:18px 4px; border-bottom:1px solid var(--line); transition:background .18s ease;}
.tech-item:hover{background:var(--warm);}
.tech-item:hover .icon-badge{background:var(--navy); color:var(--orange);}
.tech-item:last-child{border-bottom:none;}
.tech-item h4{font-size:15.5px; font-weight:700; color:var(--navy); margin-bottom:4px; padding-top:6px;}
.tech-item p{font-size:14px; color:#4a4a58; margin:0;}
.tech-visual{position:relative; margin-top:12px; aspect-ratio:4/5; border-left:2px solid var(--orange);}
.tech-visual img{width:100%; height:100%;}

/* ---------- NÚMEROS / TIMELINE ---------- */
.stats{background:var(--navy-deep); color:#fff;}
.stats h2{color:#fff;}
.stats .label{color:var(--orange);}
.stats-figure{display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-bottom:28px; margin-bottom:34px; border-bottom:1px solid rgba(255,255,255,0.12);}
.stats-figure-num{font-size:clamp(48px,6vw,68px); font-weight:800; color:var(--orange); line-height:1; font-variant-numeric:tabular-nums;}
.stats-figure-label{font-size:14px; color:rgba(255,255,255,0.62); max-width:260px;}

.timeline{position:relative; margin-top:60px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--r); padding:44px 32px 34px;}
.timeline-row{display:grid; grid-template-columns:repeat(5,1fr); gap:12px; position:relative;}
.timeline-row::before{
  content:''; position:absolute; top:22px; left:22px; right:22px; height:2px; background:rgba(255,255,255,0.14); z-index:0;
}
.timeline-fill{
  position:absolute; top:22px; left:22px; height:2px; width:0; background:var(--orange); z-index:0;
  transition:width 1.2s cubic-bezier(.2,.7,.3,1);
}
.timeline-fill.is-visible{width:calc(100% - 44px);}
.tl-stop{position:relative; z-index:1; padding-right:14px;}
.tl-node{
  width:44px; height:44px; border-radius:50%; background:var(--navy-deep); border:2px solid var(--orange);
  color:var(--orange); display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.tl-node .icon{width:20px; height:20px;}
.tl-stop:last-child .tl-node{background:var(--orange); color:#fff;}
.tl-year{font-family:var(--mono); font-size:12.5px; color:var(--orange); display:block; margin-bottom:8px;}
.tl-stop h4{font-size:15px; color:#fff; font-weight:700; margin-bottom:6px;}
.tl-stop p{font-size:13.5px; color:rgba(255,255,255,0.6); margin:0;}
@media (max-width:900px){
  .timeline{padding:32px 24px;}
  .timeline-row{grid-template-columns:1fr; row-gap:32px;}
  .timeline-row::before{top:0; bottom:0; left:22px; right:auto; width:2px; height:auto; background:var(--orange); opacity:0.35;}
  .timeline-fill{display:none;}
  .tl-stop{padding-left:64px; padding-right:0;}
  .tl-node{position:absolute; left:0; top:0;}
}

/* ---------- SOLUÇÕES ---------- */
.sol-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--line); margin-top:44px; border:1px solid var(--line);}
.sol-card{background:#fff; padding:32px 28px; transition:background .18s ease, border-color .18s ease;}
.sol-card:hover{background:var(--warm);}
.sol-card:hover .icon-badge{background:var(--navy); color:var(--orange);}
.sol-card h3{font-size:18px; margin:18px 0 8px;}
.sol-tag{font-size:14.5px; font-weight:600; color:var(--ink); margin-bottom:10px;}
.sol-desc{font-size:13.5px; color:#5a5a68; margin-bottom:16px;}
.sol-link{font-size:13.5px; font-weight:700; color:var(--orange); display:inline-flex; align-items:center; gap:6px;}
.sol-link .arrow{transition:transform .15s ease;}
.sol-card:hover .sol-link .arrow{transform:translateX(4px);}
.sol-card.wide{
  grid-column:span 2; display:flex; align-items:center; gap:28px;
  background:var(--warm); border-left:3px solid var(--orange); padding:30px 34px;
  cursor: default;
}
.sol-card.wide:hover{background:#F0ECE1;}
.sol-card.wide .sol-copy{flex:1; min-width:0;}
.sol-card.wide h3{margin:0 0 6px;}
.sol-card.wide .sol-tag{margin-bottom:4px;}
.sol-card.wide .sol-desc{margin-bottom:0;}
.sol-card.wide .sol-link{flex:none; white-space:nowrap;}
@media (max-width:700px){
  .sol-card.wide{flex-direction:column; align-items:flex-start; gap:16px;}
  .sol-card.wide .sol-link{align-self:flex-start;}
}
@media (max-width:900px){ .sol-grid{grid-template-columns:1fr;} }

/* ---------- POR QUE ---------- */
.why-list{margin-top:36px; display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--line); border:1px solid var(--line);}
.why-item{background:#fff; padding:28px; display:flex; gap:18px; transition:background .18s ease;}
.why-item:hover{background:var(--warm);}
.why-item:hover .icon-badge{background:var(--orange); color:#fff;}
.why-item h3{font-size:16.5px; margin-bottom:6px;}
.why-item p{font-size:14.5px; color:#565666;}
@media (max-width:900px){ .why-list{grid-template-columns:1fr;} }

/* ---------- QUEM SOMOS ---------- */
.about-layout{display:grid; grid-template-columns:400px 1fr; gap:56px; align-items:center;}
.about-photo{position:relative; aspect-ratio:4/5;}
.about-text p{font-size:15.5px; color:#4a4a58; margin-bottom:16px; max-width:620px;}
@media (max-width:700px){ .about-layout{grid-template-columns:1fr;} .about-photo{max-width:280px; margin-bottom:16px;} }

/* ---------- TRADE ---------- */
.trade{background:var(--warm); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.trade-inner{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; padding-top:80px; padding-bottom:80px;}
.trade-badge{font-family:var(--mono); font-size:12px; letter-spacing:0.3px; color:var(--red); text-transform:uppercase;
  display:block; margin-bottom:18px; border-left:2px solid var(--red); padding-left:12px;}
.trade h2{font-size:28px; max-width:100%;}
.trade p{font-size:15px; color:#4a4a58; margin:16px 0 22px;}
.trade-rule{border-top:1px solid var(--line); padding-top:24px; margin-top:8px; font-family:var(--sans); font-size:12.5px; color:var(--navy);}
.trade-photo{aspect-ratio:4/3;}
@media (max-width:900px){ .trade-inner{grid-template-columns:1fr;} .trade-photo{order:-1;} }

/* ---------- CARREIRAS + CTA ---------- */
.cta-grid{display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--line); border:1px solid var(--line); margin-top:44px;}
.cta-card{background:#fff; padding:48px 44px; transition:background .18s ease;}
.cta-card:hover{background:var(--warm);}
.cta-card:hover .icon-badge{background:var(--navy); color:var(--orange);}
.cta-card h3{font-size:22px; margin:20px 0 10px;}
.cta-card p{font-size:15px; color:#565666; margin-bottom:26px; max-width:380px;}
.cta-card.featured{background:var(--navy); color:#fff;}
.cta-card.featured:hover{background:var(--navy-deep);}
.cta-card.featured h3{color:#fff;}
.cta-card.featured p{color:rgba(255,255,255,0.75);}
.cta-card.featured .icon-badge{background:rgba(255,255,255,0.1); color:var(--orange);}
.cta-card.featured:hover .icon-badge{background:rgba(255,255,255,0.18); color:var(--orange);}
@media (max-width:900px){ .cta-grid{grid-template-columns:1fr;} }

/* ---------- CONTATO ---------- */
.contact-layout{display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:start;}
.contact-form{display:flex; flex-direction:column; gap:0; margin-top:32px; border-top:1px solid var(--line);}
.contact-form input, .contact-form textarea{
  border:none; border-bottom:1px solid var(--line); padding:16px 2px; font-family:var(--sans); font-size:14.5px;
  background:transparent; width:100%;
}
.contact-form input:focus, .contact-form textarea:focus{outline:none; border-color:var(--orange);}
.contact-form .btn{margin-top:24px; align-self:flex-start; border:1.5px solid var(--orange);}
.contact-form-notice{margin-top:20px; padding:14px 16px; border-radius:var(--r); font-size:13.5px;}
.contact-form-notice.success{background:#e9f7ee; color:#1c6b3a; border:1px solid #bfe6cf;}
.contact-form-notice.error{background:#fbeaea; color:var(--red); border:1px solid #f3c8ce;}
.contact-info{margin-top:32px; display:flex; flex-direction:column; gap:2px; background:var(--line); border:1px solid var(--line);}
.contact-info .row{display:flex; gap:16px; align-items:center; padding:20px; background:#fff; transition:background .18s ease;}
.contact-info .row:hover{background:var(--warm);}
.contact-info .row:hover .icon-badge{background:var(--navy); color:var(--orange);}
.contact-info h4{font-size:15px; color:var(--navy); margin-bottom:2px;}
.contact-info p{font-size:14px; color:#565666; margin:0;}
@media (max-width:900px){ .contact-layout{grid-template-columns:1fr;} }

/* ---------- FOOTER ---------- */
footer{background:var(--navy-deep); color:rgba(255,255,255,0.6); padding:72px 0 0; font-size:13.5px;}
.footer-top{display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:48px;}
.footer-brand .footer-logo{color:#fff; font-weight:800; font-family:var(--sans); font-size:17px; margin-bottom:14px;}
.footer-brand .footer-logo img{max-height:120px; width:auto;}
.footer-logo span{color:var(--orange);}
.footer-brand p{font-size:13.5px; color:rgba(255,255,255,0.55); max-width:230px; margin-bottom:22px;}
.footer-social{display:flex; gap:12px;}
.footer-social a{
  width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.7);
  transition:background .15s ease, color .15s ease;
}
.footer-social a:hover{background:var(--orange); color:#fff;}
.footer-social .icon{width:16px; height:16px;}
.footer-heading{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.4px; text-transform:uppercase;
  color:rgba(255,255,255,0.4); display:block; margin-bottom:18px;
}
.footer-col{display:flex; flex-direction:column; gap:13px;}
.footer-col a{font-size:13.5px; color:rgba(255,255,255,0.72); display:inline-flex; align-items:center; gap:9px; transition:color .15s ease;}
.footer-col a:hover{color:var(--orange);}
.footer-col a .icon{width:15px; height:15px; flex:none; color:rgba(255,255,255,0.4);}
.footer-col a:hover .icon{color:var(--orange);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1); padding:22px 0; font-size:12.5px; font-family:var(--sans);
  color:rgba(255,255,255,0.45); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
}
.footer-bottom a{color:rgba(255,255,255,0.45); transition:color .15s ease;}
.footer-bottom a:hover{color:#fff;}
.footer-bottom-links{display:flex; gap:22px; align-items:center;}
.back-to-top{
  display:inline-flex; align-items:center; gap:7px; color:rgba(255,255,255,0.45);
  font-family:var(--mono); font-size:12.5px; transition:color .15s ease;
}
.back-to-top .icon{width:14px; height:14px;}
.back-to-top:hover{color:var(--orange);}
@media (max-width:900px){
  .footer-top{grid-template-columns:1fr 1fr; row-gap:36px;}
}
@media (max-width:560px){
  .footer-top{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column; align-items:flex-start;}
}

@media (max-width:900px){
  .tech-layout, .about-layout, .contact-layout{grid-template-columns:1fr !important;}
}
