/*
Theme Name: Portfolio
Theme URI: https://rodolfobitu.com
Author: Rodolfo Piter Bitu
Description: Tema de portfólio minimalista (preto e branco, claro/escuro) para UX Manager. Home com hero, sobre, números, trabalhos, experiência, skills e contato.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: portfolio
*/
:root{
  color-scheme: light;
  --ink:#111111;
  --paper:#ffffff;
  --grey:#6e6e6e;
  --muted:#2b2b2b;
  --line: rgba(17,17,17,0.14);
  --line-strong: rgba(17,17,17,0.4);
  --hover-muted:#bbbbbb;
  --dark:#0d0d0d;
  --dark-line: rgba(255,255,255,0.16);
  --footer-bg:#0d0d0d;
  --footer-fg:#ffffff;
  --footer-muted:#999999;
  --cta-bg:#ffffff;
  --cta-fg:#0d0d0d;
  --maxw: 1160px;
  --accent: #111111;
}
[data-theme="dark"]{
  color-scheme: dark;
  --ink:#f2f2f2;
  --paper:#111111;
  --grey:#9a9a9a;
  --muted:#cfcfcf;
  --line: rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.4);
  --hover-muted:#888888;
  --dark:#f2f2f2;
  --dark-line: rgba(17,17,17,0.16);
  --footer-bg:#f2f2f2;
  --footer-fg:#111111;
  --footer-muted:#666666;
  --cta-bg:#111111;
  --cta-fg:#ffffff;
  --accent: #f2f2f2;
}
.project-ebi{ --accent:#003889; }
.project-pulsekpi{ --accent:#6C4CE0; }
.project-inail{ --accent:#A44A63; }
.project-gutscore{ --accent:#8FA876; }
.project-frontagente{ --accent:#35507A; }
.project-colabcards{ --accent:#2F55FF; }
.project-bread-flow{ --accent:#B5582B; }

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family:'Archivo', -apple-system, sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
a:focus-visible, button:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
h1,h2{ margin:0; font-weight:900; letter-spacing:-0.02em; }

/* ---------- Nav ---------- */
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 24px; border-bottom:1px solid var(--line);
}
.nav .logo{ font-weight:800; letter-spacing:-0.01em; font-size:1.05rem; }
.pillnav{
  display:flex; gap:6px; border:1px solid var(--line); border-radius:999px; padding:5px;
}
.pillnav a{ font-size:0.82rem; padding:8px 16px; border-radius:999px; font-weight:500; }
.pillnav a:hover{ background: var(--ink); color:var(--paper); }
.nav-icons{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:0.78rem; font-weight:600;
  background:none; color:inherit; cursor:pointer; padding:0; font-family:inherit;
}
.icon-btn:hover{ border-color: var(--ink); }
.theme-toggle .theme-icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .theme-icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun{ display:block; }
@media (max-width:820px){ .pillnav{ display:none; } }

/* ---------- Hero ---------- */
.hero{ padding:48px 0 64px; }
.hero-grid{
  display:grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap:48px 56px;
  align-items:stretch;
}
.hero-portrait{ min-height:0; }
.hero-avatar{
  position:relative;
  height:100%;
  min-height:460px;
  border-radius:28px;
  overflow:hidden;
  background:var(--ink);
}
.hero-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 18%;
}
.hero-avatar .circle-arrow{
  position:absolute;
  left:20px;
  bottom:20px;
  background:var(--paper);
}
.circle-arrow{
  width:56px; height:56px; border-radius:50%; border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  background:none; cursor:pointer; flex-shrink:0;
}
.circle-arrow:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  padding:8px 0;
}
.hero-copy .tag{
  font-size:0.85rem; font-weight:600; letter-spacing:0.06em; color:var(--grey);
  white-space:nowrap;
}
.hero-copy h1{
  margin-top:16px;
  font-size:clamp(2.4rem, 6.4vw, 4.4rem);
  line-height:0.96;
  text-transform:uppercase;
}
.hero-copy .statement{
  margin:24px 0 0;
  max-width:36ch;
  font-size:1rem;
  color:var(--muted);
}
.skill-list{
  list-style:none; margin:40px 0 0; padding:0;
  display:flex; flex-direction:column; gap:12px;
}
.skill-list li{
  font-size:0.82rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase;
}
@media (max-width:820px){
  .hero-grid{ grid-template-columns:1fr; gap:32px; }
  .hero-avatar{ min-height:0; height:auto; aspect-ratio:4/5; }
  .hero-copy{ padding:0; }
  .skill-list{ margin-top:32px; }
}

/* ---------- About ---------- */
.about{ padding:96px 24px; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1.4fr; gap:32px; align-items:start; }
.about-label{ display:flex; align-items:center; gap:14px; }
.about-label h2{ font-size:clamp(2.2rem,5vw,3.2rem); text-transform:uppercase; }
.about .circle-arrow{ width:44px; height:44px; font-size:0.95rem; }
blockquote{ margin:0; font-size:1.15rem; font-weight:500; line-height:1.4; max-width:44ch; }
@media (max-width:820px){ .about{ grid-template-columns:1fr; } }

/* ---------- Stats ---------- */
.stats{
  display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.stat{ padding:36px 24px; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
.stat b{ display:block; font-size:clamp(1.8rem,4vw,2.6rem); font-weight:800; }
.stat span{ font-size:0.78rem; color:var(--grey); text-transform:uppercase; letter-spacing:0.03em; }
@media (max-width:640px){ .stats{ grid-template-columns:1fr; } .stat{ border-right:none; border-bottom:1px solid var(--line); } .stat:last-child{ border-bottom:none; } }

/* ---------- Featured work ---------- */
.featured{ padding:96px 24px; }
.featured-head{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.featured-head h2{ font-size:clamp(1.9rem,4.5vw,2.6rem); text-transform:uppercase; }
.toggle{ display:flex; gap:8px; }
.toggle .pill{
  border:1px solid var(--line-strong); border-radius:999px; padding:10px 20px;
  background:none; font-size:0.82rem; font-weight:600; cursor:pointer; font-family:inherit;
}
.toggle .pill.active{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.featured .circle-arrow{ width:44px; height:44px; font-size:0.95rem; }
.cards{ margin-top:44px; display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:32px; }
.card{ display:none; }
.card.show{ display:block; }
.card .panel{ border-radius:20px; aspect-ratio:4/3; }
.panel-a{ background: repeating-linear-gradient(135deg, #111 0 2px, #fff 2px 22px); }
.panel-b{ background: radial-gradient(circle at 30% 30%, #444, #0d0d0d 70%); }
.panel-c{ background-image: radial-gradient(#111 2px, transparent 2px); background-size:16px 16px; background-color:#f2f2f2; }
.panel-d{ background: linear-gradient(135deg, #111 50%, #f2f2f2 50%); }
.panel-e{ background: repeating-radial-gradient(circle at 50% 50%, #111 0 3px, #fff 3px 18px); }
.panel-f{ background: linear-gradient(160deg, #2b2b2b, #111 60%, #555); }
.panel-g{ background: repeating-linear-gradient(90deg, #111 0 3px, #fff 3px 24px); }
.card h3{ margin:20px 0 4px; font-size:1.15rem; font-weight:700; }
.card p{ margin:0; color:var(--grey); font-size:0.9rem; }
@media (max-width:760px){ .cards{ grid-template-columns:1fr; } }

/* ---------- Experience timeline ---------- */
.experience{ padding:96px 24px; border-top:1px solid var(--line); }
.experience h2{ font-size:clamp(1.9rem,5vw,2.8rem); text-transform:uppercase; max-width:20ch; }
.experience-sub{ margin:20px 0 0; max-width:56ch; color:var(--grey); font-size:0.95rem; }
.timeline{ margin-top:56px; position:relative; }
.timeline::before{ content:''; position:absolute; left:9px; top:4px; bottom:4px; width:1px; background:var(--line); }
.timeline-item{ position:relative; padding:0 0 44px 40px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{
  position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%;
  border:1px solid var(--line-strong); background:var(--paper); z-index:1;
}
.timeline-item.current .timeline-dot{ background:var(--ink); border-color:var(--ink); }
.timeline-date{ font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; color:var(--grey); }
.timeline-content h3{ margin:6px 0 2px; font-size:1.15rem; font-weight:800; }
.timeline-company{ display:block; font-size:0.85rem; font-weight:600; color:var(--muted); margin-bottom:8px; }
.timeline-content p{ margin:0; max-width:62ch; color:var(--grey); font-size:0.92rem; }

/* ---------- Services ---------- */
.services{ padding:96px 24px; border-top:1px solid var(--line); }
.services h2{ font-size:clamp(1.9rem,5vw,2.8rem); text-transform:uppercase; max-width:16ch; }
.services-sub{ margin:20px 0 0; max-width:52ch; color:var(--grey); font-size:0.95rem; }
.service-list{ list-style:none; margin:44px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
.service-list li{
  border:1px solid var(--line); border-radius:999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, border-radius .2s ease;
}
.skill-trigger{
  display:flex; align-items:center; gap:18px; width:100%;
  padding:10px 10px 10px 22px;
  background:none; border:0; color:inherit; font:inherit;
  cursor:pointer; text-align:left;
}
.service-list li .num{ font-size:0.85rem; color:var(--grey); width:16px; flex-shrink:0; }
.service-list li .label{ flex:1; font-size:1.05rem; font-weight:600; }
.service-list li .arrow{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; font-size:0.9rem; flex-shrink:0;
  transition: transform .2s ease, border-color .2s ease;
}
.skill-panel{
  display:grid; grid-template-rows:0fr;
  transition: grid-template-rows .28s ease;
}
.skill-panel-inner{ overflow:hidden; }
.skill-panel p{
  margin:0; padding:0 56px 20px 56px;
  font-size:0.92rem; line-height:1.5; max-width:62ch; opacity:.88;
}
.service-list li:hover,
.service-list li.open{
  background:var(--ink); color:var(--paper); border-color:var(--ink);
}
.service-list li:hover .num,
.service-list li.open .num{ color:var(--hover-muted); }
.service-list li:hover .arrow,
.service-list li.open .arrow{ border-color:var(--paper); }
.service-list li.open{ border-radius:28px; }
.service-list li.open .skill-panel{ grid-template-rows:1fr; }
.service-list li.open .arrow{ transform:rotate(-90deg); }
@media (max-width:640px){
  .skill-panel p{ padding:0 22px 18px 22px; }
}

/* ---------- Contact / dark footer ---------- */
.contact-dark{ background:var(--footer-bg); color:var(--footer-fg); padding:80px 24px 40px; }
.footer-links-row{
  display:flex; flex-wrap:wrap; gap:14px 28px; font-size:0.8rem; color:var(--footer-muted);
  text-transform:uppercase; letter-spacing:0.03em; margin-bottom:36px;
}
.contact-dark h2{
  font-size:clamp(2.6rem,10vw,5.5rem); text-transform:uppercase; line-height:0.95;
}
.footer-pills{ margin-top:40px; display:flex; flex-wrap:wrap; gap:14px; }
.footer-pills a,
.footer-pills button{
  border:1px solid var(--dark-line); border-radius:999px; padding:12px 24px; font-size:0.85rem; font-weight:600;
  font-family:inherit; color:inherit; background:none; cursor:pointer;
}
.footer-pills a:hover,
.footer-pills button:hover{ background:var(--cta-bg); color:var(--cta-fg); }
.footer-pills .cta{ background:var(--cta-bg); color:var(--cta-fg); }
.footer-bottom{
  margin-top:56px; padding-top:24px; border-top:1px solid var(--dark-line);
  display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
  font-size:0.78rem; color:var(--footer-muted);
}

/* ---------- Project pages ---------- */
.back{ font-size:0.85rem; font-weight:600; border:1px solid var(--line); border-radius:999px; padding:8px 16px; }
.back:hover{ background:var(--ink); color:var(--paper); }
.project .hero{ padding:56px 24px 24px; }
.project .hero .tag{ font-size:0.8rem; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; color:var(--accent); }
.project .hero h1{ margin:14px 0 0; font-size:clamp(2rem,6vw,3.4rem); font-weight:900; letter-spacing:-0.02em; text-transform:uppercase; line-height:1.02; max-width:16ch; }
.project .hero p{ margin:22px 0 0; max-width:60ch; font-size:1.02rem; color:var(--muted); }
.meta-row{ margin-top:28px; display:flex; flex-wrap:wrap; gap:10px; }
.meta-pill{ border:1px solid var(--line-strong); border-radius:999px; padding:6px 14px; font-size:0.78rem; font-weight:600; }
.screens{ padding:56px 24px 96px; border-top:1px solid var(--line); margin-top:48px; }
.screens h2{ font-size:1.3rem; font-weight:800; text-transform:uppercase; margin:0 0 32px; }
.phone-row{ display:flex; flex-wrap:wrap; gap:36px; justify-content:flex-start; }
.phone-col{ width:210px; }
.phone-frame{ width:210px; height:410px; border:9px solid #111; border-radius:34px; background:#fff; position:relative; overflow:hidden; box-shadow:0 18px 34px rgba(0,0,0,.14); }
.phone-notch{ position:absolute; top:0; left:50%; transform:translateX(-50%); width:56px; height:16px; background:#111; border-radius:0 0 10px 10px; z-index:2; }
.phone-screen{ position:absolute; inset:0; padding:26px 14px 14px; display:flex; flex-direction:column; gap:10px; }
.s-header{ font-weight:800; font-size:0.85rem; }
.s-row{ display:flex; align-items:center; gap:8px; padding:8px; border-radius:10px; background:#f4f4f4; }
.s-avatar{ width:26px; height:26px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.s-lines{ flex:1; display:flex; flex-direction:column; gap:5px; }
.s-line{ height:6px; border-radius:3px; background:#ddd; }
.s-line.short{ width:55%; }
.s-input{ display:flex; flex-direction:column; gap:4px; }
.s-input span{ font-size:0.62rem; color:var(--grey); font-weight:600; text-transform:uppercase; }
.s-input i{ height:30px; border-radius:8px; border:1px solid #ddd; background:#fafafa; display:block; font-style:normal; }
.s-btn{ margin-top:auto; height:36px; border-radius:999px; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; }
.s-stat-row{ display:flex; gap:8px; }
.s-stat{ flex:1; border-radius:10px; background:#f4f4f4; padding:8px; }
.s-stat b{ display:block; font-size:0.85rem; }
.s-stat span{ font-size:0.6rem; color:var(--grey); }
.s-bar-chart{ display:flex; align-items:flex-end; gap:6px; height:64px; flex:1; }
.s-bar{ flex:1; background:var(--accent); border-radius:4px 4px 0 0; opacity:0.85; }
.phone-caption{ margin-top:14px; font-size:0.85rem; font-weight:700; }
.phone-caption span{ display:block; font-weight:400; color:var(--grey); font-size:0.78rem; margin-top:2px; }
.project footer{ padding:28px 24px 48px; font-size:0.8rem; color:var(--grey); border-top:1px solid var(--line); }
@media (max-width:480px){ .phone-frame, .phone-col{ width:180px; } .phone-frame{ height:350px; } }

/* ---------- WordPress ---------- */
.card .panel{ background-size:cover; background-position:center; }
.card .panel img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:20px; }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:12px; top:12px; background:var(--paper); padding:8px 14px; z-index:100; }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.pillnav ul{ list-style:none; margin:0; padding:0; display:flex; gap:6px; }
.entry{ padding:56px 24px 96px; max-width:760px; margin:0 auto; }
.entry h1{ font-size:clamp(2rem,6vw,3.2rem); text-transform:uppercase; line-height:1.02; }
.entry-meta{ margin-top:10px; color:var(--grey); font-size:0.85rem; }
.entry-content{ margin-top:32px; font-size:1.02rem; line-height:1.65; }
.entry-content img{ max-width:100%; height:auto; border-radius:16px; }
.entry-content a{ text-decoration:underline; }
.entry-thumb img{ width:100%; height:auto; border-radius:20px; margin-top:32px; }
.post-list article{ padding:28px 0; border-top:1px solid var(--line); }
.post-list h2{ font-size:1.5rem; text-transform:none; }
.pagination{ margin-top:32px; display:flex; gap:12px; }
.pagination .page-numbers{ border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:0.85rem; }
.pagination .current{ background:var(--ink); color:var(--paper); }
.project .project-body{ padding:0 24px 96px; }
.project .project-body .entry-content{ max-width:720px; margin-top:0; }
.project-cover img{ width:100%; height:auto; border-radius:24px; }
.about-empty{ display:none; }


/* ---------- Header fixo ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:var(--paper);
  background:color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  backdrop-filter:saturate(180%) blur(12px);
}
.admin-bar .nav{ top:32px; }
@media (max-width:782px){ .admin-bar .nav{ top:46px; } }
@media (max-width:600px){ .admin-bar .nav{ top:0; } }
/* Âncoras não ficam escondidas atrás do header */
section[id], footer[id]{ scroll-margin-top:90px; }
.admin-bar section[id], .admin-bar footer[id]{ scroll-margin-top:122px; }
/* ---------- Trabalhos: tipos de visualização ---------- */
.card .panel{ overflow:hidden; }
.cards.view-grade-2{ grid-template-columns:repeat(2, 1fr); }
.cards.view-lista{ grid-template-columns:1fr; gap:0; }
.view-lista .card.show{
  display:grid; grid-template-columns:minmax(200px, 320px) 1fr; gap:32px; align-items:center;
  padding:28px 0; border-top:1px solid var(--line);
}
.view-lista .card:last-child{ border-bottom:1px solid var(--line); }
.view-lista .card h3{ margin-top:0; font-size:1.4rem; }
.cards.view-carrossel{
  display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:16px; scrollbar-width:thin;
}
.view-carrossel .card{ flex:0 0 min(80%, 340px); scroll-snap-align:start; }
@media (max-width:760px){
  .cards.view-grade-2{ grid-template-columns:1fr; }
  .view-lista .card.show{ grid-template-columns:1fr; gap:16px; }
}
.experience-empty{ margin-top:40px; color:var(--grey); font-size:.9rem; }
.experience-empty a{ text-decoration:underline; }
