/* =========================================================
   ASADEPEIXE — páginas internas (serviços e portfólio de sites)
   Usa os tokens e componentes de style.css
   ========================================================= */
.pg { background: var(--paper); }
.pg .nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.pg-hero { padding: clamp(112px, 12vw, 168px) 0 clamp(56px, 7vw, 96px); background: var(--mist); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--asa); }
.crumbs [aria-current] { color: var(--ink); }
.pg-hero__label { margin-top: 36px; }
.pg-hero__title {
  font-family: var(--f-display);
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  margin-top: 18px;
  max-width: 16ch;
}
.pg-hero__lede { margin-top: 28px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.pg-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Seções ---------- */
.pg-section { padding: clamp(64px, 8vw, 120px) 0; }
.pg-section--mist { background: var(--mist); }
.pg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pg-h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  margin-top: 14px;
}
.pg-prose { display: grid; gap: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 58ch; }
.pg-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.pg-check { font-size: clamp(16px, 1.3vw, 18px); gap: 14px; }

/* ---------- Cartões de escopo ---------- */
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pg-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.pg-card h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.pg-card p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Galeria de marcas ---------- */
.pg-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pg-gallery a { display: block; overflow: hidden; border-radius: 16px; background: var(--mist); }
.pg-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.pg-gallery a:hover img { transform: scale(1.04); }

/* ---------- Processo ---------- */
.pg .steps { margin: 0; }
.pg .step:first-child { border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.015em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 28px; font-weight: 300; color: var(--asa); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Links para outros serviços ---------- */
.pg-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.pg-links a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
  text-decoration: none; transition: border-color .25s, transform .3s var(--ease);
}
.pg-links a:hover { border-color: var(--asa); transform: translateY(-2px); }
.pg-links .mono { grid-column: 1 / -1; }
.pg-links strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -.015em; }

/* ---------- Portfólio de sites ---------- */
.work-list { display: grid; gap: clamp(56px, 8vw, 112px); }
.work-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.work-item:nth-child(even) .work-item__shot { order: 2; }
.work-item__shot {
  display: block; height: clamp(360px, 44vw, 560px); overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line); background: var(--mist); position: relative;
}
.work-item__shot img { width: 100%; height: auto; transition: transform 6s linear; will-change: transform; }
.work-item__shot:hover img, .work-item__shot:focus-visible img { transform: translateY(calc(-100% + clamp(360px, 44vw, 560px))); }
.work-item__body { display: grid; gap: 18px; justify-items: start; }
.work-item__txt { color: var(--ink-2); max-width: 52ch; }

/* ---------- CTA e rodapé ---------- */
.cta--page { padding: clamp(56px, 7vw, 96px) 0; }
.footer--page { padding: 64px 0 28px; }
.footer--page .footer__legal { margin-top: 48px; }

@media (max-width: 960px) {
  .pg-split, .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-item__shot { order: 0; }
  .pg-cards, .pg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg .nav { display: none; }
}
@media (max-width: 600px) {
  .pg-cards, .pg-gallery { grid-template-columns: 1fr; }
  .pg-hero__title { max-width: none; }
  .faq summary { padding-right: 36px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .work-item__shot img, .pg-gallery img { transition: none; }
}
