/* MartinsCode v37 — correções finas de navegação e páginas internas */

/* =========================
   Header: remover a bolinha superior do menu
   ========================= */
#header nav > a::before,
#header.compact nav > a::before{
  content:none !important;
  display:none !important;
}
#header nav > a:hover::after,
#header nav > a.active::after,
#header.compact nav > a:hover::after,
#header.compact nav > a.active::after{
  opacity:1 !important;
  transform:scaleX(1) !important;
}

/* =========================
   Fundos limpos nas páginas internas
   ========================= */
.about-page,
.portfolio-page,
.sites-page{
  position:relative !important;
  overflow-x:clip !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(106,77,255,.10), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(46,129,255,.08), transparent 30%),
    linear-gradient(180deg, #07080d 0%, #080b14 42%, #06070c 100%) !important;
}
html[data-theme="light"] .about-page,
html[data-theme="light"] .portfolio-page,
html[data-theme="light"] .sites-page{
  background:
    radial-gradient(circle at 14% 0%, rgba(106,77,255,.06), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(46,129,255,.05), transparent 32%),
    linear-gradient(180deg, #fbfbfe 0%, #f6f8ff 46%, #f8f8fc 100%) !important;
}
.about-page::before,
.about-page::after,
.portfolio-page::before,
.portfolio-page::after,
.sites-page::before,
.sites-page::after,
.about-page .page-hero::before,
.about-page .page-hero::after,
.portfolio-page .page-hero::before,
.portfolio-page .page-hero::after,
.sites-page .sites-hero::before,
.sites-page .sites-hero::after,
.sites-page .sites-showcase::before,
.sites-page .sites-showcase::after,
.portfolio-page .portfolio-section::before,
.portfolio-page .portfolio-section::after{
  content:none !important;
  display:none !important;
}

/* =========================
   Largura e ritmo iguais à home
   ========================= */
.about-page .page-hero,
.portfolio-page .page-hero,
.sites-page .sites-hero,
.about-page > .content,
.portfolio-page .portfolio-section,
.sites-page .sites-showcase,
.about-page .mc-cta-panel,
.portfolio-page .mc-cta-panel,
.sites-page .sites-note{
  width:min(1440px, calc(100% - 96px)) !important;
  max-width:1440px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}
.about-page .page-hero,
.portfolio-page .page-hero,
.sites-page .sites-hero{
  padding:86px 0 54px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}
html[data-theme="light"] .about-page .page-hero,
html[data-theme="light"] .portfolio-page .page-hero,
html[data-theme="light"] .sites-page .sites-hero{
  border-bottom-color:rgba(34,28,56,.10) !important;
}
.about-page .page-hero h1,
.portfolio-page .page-hero h1,
.sites-page .sites-hero h1{
  max-width:980px !important;
  margin:18px 0 18px !important;
  font-size:clamp(48px, 5vw, 78px) !important;
  line-height:1.02 !important;
  letter-spacing:-.055em !important;
  text-wrap:balance !important;
}
.about-page .page-hero p,
.portfolio-page .page-hero p,
.sites-page .sites-hero p{
  max-width:780px !important;
  font-size:17px !important;
  line-height:1.75 !important;
}
.about-page > .content,
.portfolio-page .portfolio-section{
  padding:58px 0 88px !important;
}
.sites-page .sites-showcase{
  padding:44px 0 80px !important;
}
.about-page .mc-cta-panel,
.portfolio-page .mc-cta-panel,
.sites-page .sites-note{
  margin-bottom:84px !important;
}

/* =========================
   Página Sobre
   ========================= */
.about-page .mc-intro-grid{
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) !important;
  gap:52px !important;
  align-items:start !important;
}
.about-page .mc-intro-kicker{
  position:sticky !important;
  top:112px !important;
}
.about-page .mc-intro-kicker h2{
  font-size:clamp(38px, 4vw, 64px) !important;
  line-height:1.04 !important;
}
.about-page .mc-intro-copy{
  padding-left:34px !important;
  border-left:1px solid rgba(255,255,255,.08) !important;
}
html[data-theme="light"] .about-page .mc-intro-copy{
  border-left-color:rgba(34,28,56,.10) !important;
}
.about-page .mc-stat-strip{
  margin-top:30px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:rgba(255,255,255,.08) !important;
}
html[data-theme="light"] .about-page .mc-stat-strip{
  border-color:rgba(34,28,56,.10) !important;
  background:rgba(34,28,56,.07) !important;
}
.about-page .mc-stat-strip > div{
  min-height:124px !important;
  background:rgba(12,14,22,.95) !important;
}
html[data-theme="light"] .about-page .mc-stat-strip > div{
  background:#fff !important;
}
.about-page .about-principles{
  gap:18px !important;
  margin-top:54px !important;
}
.about-page .about-principles section{
  min-height:250px !important;
  padding:26px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:linear-gradient(160deg, rgba(16,18,28,.95), rgba(10,12,18,.98)) !important;
}
html[data-theme="light"] .about-page .about-principles section{
  border-color:rgba(34,28,56,.10) !important;
  background:linear-gradient(160deg, #ffffff, #f8f8fe) !important;
}
.about-page .about-principles section h2{
  margin-top:112px !important;
}
.about-page .mc-process-band{
  margin-top:64px !important;
  padding:36px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  background:linear-gradient(135deg, rgba(108,78,255,.08), rgba(33,96,223,.05)) !important;
}
html[data-theme="light"] .about-page .mc-process-band{
  border-color:rgba(34,28,56,.10) !important;
}

/* =========================
   Projetos publicados (/sites/)
   ========================= */
.sites-page .sites-hero{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 220px !important;
  gap:42px !important;
  align-items:end !important;
}
.sites-page .sites-hero-meta{
  padding:26px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:24px !important;
  background:linear-gradient(160deg, rgba(16,18,28,.95), rgba(10,12,18,.98)) !important;
}
html[data-theme="light"] .sites-page .sites-hero-meta{
  border-color:rgba(34,28,56,.10) !important;
  background:linear-gradient(160deg, #ffffff, #f8f8fe) !important;
}
.sites-page .sites-showcase{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:24px !important;
  align-items:start !important;
}
.sites-page .showcase-project,
.sites-page .showcase-project:nth-child(even){
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  gap:0 !important;
  min-height:100% !important;
  padding:12px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:28px !important;
  background:linear-gradient(160deg, rgba(16,18,28,.95), rgba(10,12,18,.98)) !important;
  box-shadow:0 22px 60px rgba(0,0,0,.18) !important;
  overflow:hidden !important;
}
html[data-theme="light"] .sites-page .showcase-project,
html[data-theme="light"] .sites-page .showcase-project:nth-child(even){
  border-color:rgba(34,28,56,.10) !important;
  background:linear-gradient(160deg, #ffffff, #f8f8fe) !important;
  box-shadow:0 18px 44px rgba(26,18,48,.08) !important;
}
.sites-page .project-browser,
.sites-page .showcase-project:nth-child(even) .project-browser{
  order:1 !important;
  width:100% !important;
  border-radius:18px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:#0b0e15 !important;
  overflow:hidden !important;
}
.sites-page .browser-screen{
  height:clamp(250px, 24vw, 340px) !important;
}
.sites-page .browser-screen img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center top !important;
  display:block !important;
}
.sites-page .showcase-copy,
.sites-page .showcase-project:nth-child(even) .showcase-copy{
  order:2 !important;
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:column !important;
  padding:24px 18px 18px !important;
}
.sites-page .showcase-copy .project-count{
  top:20px !important;
  right:20px !important;
}
.sites-page .showcase-copy h2{
  font-size:clamp(30px, 3vw, 48px) !important;
  margin:0 0 10px !important;
}
.sites-page .showcase-copy > p{
  font-size:14px !important;
  line-height:1.7 !important;
}
.sites-page .showcase-actions{
  margin-top:auto !important;
  padding-top:22px !important;
}
.sites-page .project-pagination{
  grid-column:1 / -1 !important;
  margin-top:4px !important;
}

/* =========================
   Página Projetos (cards simples)
   ========================= */
.portfolio-page .portfolio-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:18px !important;
}
.portfolio-page .portfolio-card{
  min-height:280px !important;
  padding:26px !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:26px !important;
  background:linear-gradient(160deg, rgba(16,18,28,.95), rgba(10,12,18,.98)) !important;
  box-shadow:0 18px 52px rgba(0,0,0,.16) !important;
}
html[data-theme="light"] .portfolio-page .portfolio-card{
  border-color:rgba(34,28,56,.10) !important;
  background:linear-gradient(160deg, #ffffff, #f8f8fe) !important;
  box-shadow:0 16px 40px rgba(26,18,48,.07) !important;
}
.portfolio-page .portfolio-card h3{
  margin-top:96px !important;
}

/* =========================
   Responsividade
   ========================= */
@media (max-width: 1180px){
  .about-page .page-hero,
  .portfolio-page .page-hero,
  .sites-page .sites-hero,
  .about-page > .content,
  .portfolio-page .portfolio-section,
  .sites-page .sites-showcase,
  .about-page .mc-cta-panel,
  .portfolio-page .mc-cta-panel,
  .sites-page .sites-note{
    width:min(100%, calc(100% - 56px)) !important;
  }
  .about-page .mc-intro-grid{
    grid-template-columns:1fr !important;
    gap:34px !important;
  }
  .about-page .mc-intro-kicker{
    position:static !important;
  }
  .about-page .mc-intro-copy{
    padding-left:0 !important;
    border-left:0 !important;
    padding-top:4px !important;
  }
  .about-page .about-principles,
  .portfolio-page .portfolio-grid,
  .sites-page .sites-showcase{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width: 860px){
  .about-page .page-hero,
  .portfolio-page .page-hero,
  .sites-page .sites-hero,
  .about-page > .content,
  .portfolio-page .portfolio-section,
  .sites-page .sites-showcase,
  .about-page .mc-cta-panel,
  .portfolio-page .mc-cta-panel,
  .sites-page .sites-note{
    width:calc(100% - 32px) !important;
  }
  .about-page .page-hero,
  .portfolio-page .page-hero,
  .sites-page .sites-hero{
    padding:54px 0 34px !important;
  }
  .about-page .page-hero h1,
  .portfolio-page .page-hero h1,
  .sites-page .sites-hero h1{
    font-size:clamp(36px, 10vw, 52px) !important;
  }
  .about-page > .content,
  .portfolio-page .portfolio-section,
  .sites-page .sites-showcase{
    padding:34px 0 54px !important;
  }
  .sites-page .sites-hero{
    grid-template-columns:1fr !important;
    gap:20px !important;
  }
  .sites-page .sites-hero-meta{
    max-width:240px !important;
  }
  .about-page .mc-stat-strip,
  .about-page .mc-process-list,
  .portfolio-page .portfolio-grid,
  .sites-page .sites-showcase,
  .about-page .about-principles{
    grid-template-columns:1fr !important;
  }
  .about-page .mc-process-band{
    padding:26px !important;
  }
  .about-page .mc-process-band header,
  .about-page .mc-cta-panel,
  .portfolio-page .mc-cta-panel,
  .sites-page .sites-note{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
  .sites-page .browser-screen{
    height:235px !important;
  }
  .sites-page .showcase-actions{
    grid-template-columns:1fr !important;
  }
  .sites-page .showcase-actions .text-link{
    justify-self:start !important;
    text-align:left !important;
  }
}
