/* Acabamento premium 2026 — camada de componentes, sem alterar a paleta Mauro Sousa. */
:root {
  --ui-card-radius: 18px;
  --ui-control-radius: 12px;
  --ui-media-radius: 16px;
  --ui-motion: cubic-bezier(.22, 1, .36, 1);
  --ui-fast: 220ms;
  --ui-medium: 480ms;
  --ui-focus: #16a085;
}

.section-title { letter-spacing: -.045em; text-wrap: balance; }
.section-heading > p { max-width: 420px; line-height: 1.7; }
.price-card .plan-label { font-size: 11px; line-height: 1.5; letter-spacing: .11em; }
.price-card .price-button { min-height: 52px; }
.price-card .price-heading { min-height: 0; }
.portfolio-meta h3 { letter-spacing: -.035em; }

/* Ritmo editorial e legibilidade. A família tipográfica existente é preservada. */
.inner-page .inner-hero h1 { max-width: 820px; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.13; letter-spacing: -.048em; }
.inner-page .inner-lead { max-width: 700px; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.75; }
.inner-page .detail-section > p,
.inner-page .detail-list li,
.inner-page .detail-faq p { font-size: 16px; line-height: 1.8; }
.inner-page .detail-related-card strong { font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.42; }
.inner-page .detail-related-card span { font-size: 11px; line-height: 1.5; }
.inner-page .detail-related-card { border-radius: var(--ui-card-radius); min-height: 208px; gap: 21px; }
.inner-page .detail-aside { border-radius: var(--ui-card-radius); overflow: hidden; }
.inner-page .detail-intro { border-radius: var(--ui-control-radius); }
.inner-page .detail-faq details { border-radius: var(--ui-control-radius); }
.inner-page .breadcrumbs { max-width: 100%; overflow-wrap: anywhere; }
.inner-page .inner-hero-actions .button { min-height: 48px; }
.inner-page .detail-related-card:hover,
.inner-page .detail-related-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 0, 0, .16); }

/* Ícones SVG vetoriais substituem glifos de setas ausentes em determinadas fontes. */
.inline-arrow-icon { display: inline-block; flex: none; width: 1em; height: 1em; margin-inline-start: .32em; vertical-align: -.13em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.detail-related-card .inline-arrow-icon { align-self: flex-end; width: 21px; height: 21px; margin-inline-start: auto; color: #8bb9ee; }
.detail-related-card b:has(.inline-arrow-icon) { display: contents; }
.intro-skip .inline-arrow-icon { width: 13px; height: 13px; }

/* Os quatro serviços deixam de comprimir suas etiquetas numa coluna estreita. */
.services-section .service-grid { gap: clamp(16px, 2.2vw, 28px); }
.services-section .service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  min-height: 284px;
  padding: clamp(25px, 2.7vw, 38px);
  border-radius: var(--ui-card-radius);
  transition: border-color var(--ui-fast) ease, box-shadow var(--ui-medium) var(--ui-motion), transform var(--ui-medium) var(--ui-motion);
}
.services-section .service-top {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 29px;
  min-width: 0;
}
.services-section .service-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; }
.services-section .service-icon svg { width: 44px; height: 44px; }
.services-section .service-top > span {
  max-width: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.45;
  text-wrap: pretty;
}
.services-section .service-card h3 { grid-column: 1; grid-row: 2; max-width: 460px; margin-bottom: 11px; font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.24; letter-spacing: -.035em; }
.services-section .service-card p { grid-column: 1; grid-row: 3; max-width: 490px; margin-bottom: 19px; line-height: 1.65; }
.services-section .service-tags { grid-column: 1; grid-row: 4; font-size: 12px; line-height: 1.5; }
.services-section .service-go { right: 26px; top: 31px; }
.services-section .service-card:nth-child(3) { background: linear-gradient(135deg, #eaf2fa, #fff 68%); }
.services-section .service-card:nth-child(4) { background: linear-gradient(140deg, #12283e, #101827 73%); border-color: #315573; box-shadow: 0 19px 44px rgba(11, 31, 55, .13); }
.services-section .service-card:nth-child(4):hover { background: linear-gradient(140deg, #173a52, #101827 79%); border-color: #16a085; }
.services-section .service-card:nth-child(4) h3 { color: #f1f5f9; }
.services-section .service-card:nth-child(4) p { color: #c1d1df; }
.services-section .service-card:nth-child(4) .service-tags,
.services-section .service-card:nth-child(4) .service-top > span { color: #7bd7c5; }
.services-section .service-card:nth-child(4) .service-go { color: #8fdbd0; }
.services-section .service-card:nth-child(4) .service-icon { color: #bce7ec; background: #1a4155; border-color: #2b7281; }

/* Menos caixas idênticas na área de artigos; a quarta leitura ocupa uma posição útil. */
body[data-page-kind="articles"] .detail-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
body[data-page-kind="articles"] .detail-related-card { min-height: 225px; padding: 30px; background: linear-gradient(145deg, #162b41, #111f30); }
body[data-page-kind="articles"] .detail-related-card:nth-child(2) { background: linear-gradient(145deg, #173c49, #102b37); }
body[data-page-kind="articles"] .detail-related-card:nth-child(3) { background: linear-gradient(145deg, #193653, #102137); }
body[data-page-kind="articles"] .detail-related-card:nth-child(4) { background: linear-gradient(145deg, #143439, #112a31); }
body[data-page-kind="articles"] .detail-related-card strong { font-size: clamp(1.2rem, 1.8vw, 1.6rem); max-width: 350px; }

/* Identidade própria para a primeira dobra dos quatro serviços. */
.inner-service-page .inner-hero { position: relative; overflow: hidden; isolation: isolate; }
.inner-service-page .inner-hero .container { position: relative; z-index: 2; }
.inner-service-page .inner-hero h1 { max-width: min(61%, 800px); }
.inner-service-page .inner-lead { max-width: 57%; }
.inner-service-page .inner-hero::after { content: ""; pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 62% at 84% 50%, rgba(37,99,235,.10), transparent 80%); z-index: -1; }
.inner-service-page .service-hero-art { position: absolute; top: 15%; right: 0; width: min(34vw, 390px); min-height: 325px; transform: rotate(-5deg) perspective(900px) rotateY(-8deg); pointer-events: none; }
.service-hero-art .art-window { width: 100%; border: 1px solid rgba(114,169,220,.34); border-radius: 19px; padding: 18px; background: linear-gradient(155deg, rgba(25,51,78,.96), rgba(12,28,46,.93)); box-shadow: 0 34px 65px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08); }
.service-hero-art .art-top { display:flex; align-items:center; gap:6px; padding-bottom:15px; border-bottom:1px solid rgba(162,200,229,.13); }
.service-hero-art .art-top i { width:7px; height:7px; border-radius:50%; background:#5787a1; }
.service-hero-art .art-top i:first-child { background:#16a085; }
.service-hero-art .art-top span { margin-left:auto; width:32%; height:6px; border-radius:3px; background:rgba(170,207,231,.16); }
.service-hero-art .art-body { display:grid; gap:13px; padding-top:22px; }
.service-hero-art .art-line { display:block; height:10px; border-radius:5px; background:rgba(151,185,216,.17); }
.service-hero-art .art-line:nth-child(1) { width:58%; height:13px; background:rgba(92,151,213,.42); }
.service-hero-art .art-line:nth-child(2) { width:83%; }
.service-hero-art .art-line:nth-child(3) { width:70%; }
.service-hero-art .art-accent { margin-top:7px; height:43px; width:48%; border-radius:10px; background:linear-gradient(105deg,#2563eb,#1a968b); box-shadow:0 10px 30px rgba(22,160,133,.24); }
.service-hero-art .art-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:9px; }
.service-hero-art .art-grid i { display:block; height:54px; border:1px solid rgba(128,181,214,.17); border-radius:10px; background:rgba(29,66,91,.45); }
.service-hero-art--landing .art-grid i:first-child { background:linear-gradient(145deg,rgba(22,160,133,.45),rgba(22,160,133,.08)); }
.service-hero-art--sites .art-window { background:linear-gradient(158deg,#1a3654,#102438); }
.service-hero-art--sites .art-accent { height:67px; width:100%; background:linear-gradient(130deg,#2467c6,#152f51); }
.service-hero-art--sites .art-grid { grid-template-columns:1fr 1fr; }
.service-hero-art--systems .art-window { transform:skewY(-2deg); }
.service-hero-art--systems .art-grid { grid-template-columns:repeat(4,1fr); }
.service-hero-art--systems .art-grid i { height:80px; background:linear-gradient(180deg,rgba(37,99,235,.4),rgba(22,160,133,.1)); }
.service-hero-art--systems .art-grid i:nth-child(even) { height:55px; align-self:end; }
.service-hero-art--security .art-window { border-color:rgba(22,160,133,.53); }
.service-hero-art--security .art-body { place-items:center; padding:26px 12px 6px; }
.service-hero-art--security .art-shield { width:140px; height:140px; color:#51d8c1; filter:drop-shadow(0 0 22px rgba(22,160,133,.28)); }
.service-hero-art--security .art-line,
.service-hero-art--security .art-accent,
.service-hero-art--security .art-grid { display:none; }

/* Interações perceptíveis, suaves e consistentes. */
.button, .portfolio-actions a, .copy-email, .tech-card, .detail-related-card { transition-timing-function: var(--ui-motion); }
.button:active, .portfolio-actions a:active, .copy-email:active { transform: scale(.98); }
.button:focus-visible, .menu-toggle:focus-visible, .main-nav a:focus-visible,
.portfolio-actions a:focus-visible, .price-button:focus-visible,
.service-card:focus-visible, .tech-card:focus-visible,
.detail-related-card:focus-visible, .contact-brief :is(input,select,textarea):focus-visible { outline:3px solid var(--ui-focus); outline-offset:4px; }
.main-nav a[aria-current="page"] { color:#fff; text-decoration: underline; text-decoration-color:#16a085; text-underline-offset:9px; }
.detail-aside-copy a, .about-profile-link a { text-underline-offset:5px; }
.inner-page .contact-brief :is(input,select,textarea) { min-height:50px; border-radius:var(--ui-control-radius); font-size:16px; }
.inner-page .contact-brief textarea { min-height:136px; }
.inner-page .brief-ack { font-size:14px; line-height:1.6; }

@media (max-width: 1100px) {
  .inner-service-page .service-hero-art { width:30vw; min-height:265px; }
  .inner-service-page .inner-hero h1 { max-width:65%; }
}
@media (max-width: 900px) {
  .inner-page .inner-hero h1 { max-width:740px; font-size:clamp(2.2rem,6.9vw,3.7rem); }
  .inner-service-page .inner-hero h1,
  .inner-service-page .inner-lead { max-width:100%; }
  .inner-service-page .service-hero-art { display:none; }
  .inner-service-page .inner-hero::after { background:radial-gradient(ellipse 75% 65% at 80% 0%,rgba(37,99,235,.11),transparent 76%); }
}
@media (max-width: 620px) {
  .inner-page .inner-hero h1 { font-size:clamp(2rem,8.6vw,2.75rem); letter-spacing:-.04em; overflow-wrap:anywhere; }
  .inner-page .inner-lead { font-size:16px; }
  .inner-page .detail-related-card { min-height:190px; padding:24px; }
  body[data-page-kind="articles"] .detail-related-grid { grid-template-columns:1fr; }
  body[data-page-kind="articles"] .detail-related-card { min-height:195px; padding:25px; }
  .services-section .service-card { min-height:236px; padding:24px; }
  .services-section .service-top { margin-bottom:21px; gap:13px; }
  .services-section .service-icon { width:51px; height:51px; flex-basis:51px; }
  .services-section .service-top > span { font-size:10px; letter-spacing:.075em; }
  .services-section .service-card h3 { font-size:21px; padding-right:22px; }
  .services-section .service-card p { font-size:15px; }
  .services-section .service-go { right:21px; top:29px; }
  .contact-methods>a, .contact-email { overflow-wrap:anywhere; }
  .inner-page .brief-ack { font-size:14px; }
}
@media (max-width: 380px) {
  .services-section .service-top { align-items:flex-start; }
  .services-section .service-top > span { margin-top:7px; }
  .inner-page .inner-hero-actions .button { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .button,.portfolio-actions a,.copy-email,.tech-card,.detail-related-card,.service-card { transition:none!important; }
  .inner-page .detail-related-card:hover { transform:none; }
}
