/* Produtos Vitrine — gallery page (/produtos/).
   Ports the "Produtos Vitrine" design into classes scoped under
   .produtos-vitrine, reusing the site tokens already defined in site.css
   (--gold/--bg/--text/--muted/--line/--surface/--surface-card/--shadow). The
   filter bar (.content-filter), CTA (.solid-btn/.cta-arrow) and theme toggle are
   styled by site.css and only positioned here. */

.produtos-inner {
  padding: 72px 0 80px;
}

/* The grid/panel/card display rules below would otherwise override the [hidden]
   attribute the filter/expand JS toggles, so re-assert it within the vitrine. */
.produtos-vitrine [hidden] {
  display: none !important;
}

.produtos-eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.produtos-title {
  margin: 14px 0 0;
  max-width: 760px;
  font-weight: 300;
  font-size: var(--h2);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.produtos-title strong {
  font-weight: 300;
  color: var(--gold);
}

.produtos-filters {
  margin: 36px 0 40px;
}

/* Shared bits ------------------------------------------------------------- */

.produtos-kicker {
  font-size: var(--fs-2xs);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.produtos-name {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--text);
}

.produtos-name--lg {
  font-size: var(--h4);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.produtos-tagline {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--muted);
}

.produtos-price {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.produtos-price strong {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
}

.produtos-price--sm {
  font-size: var(--fs-xs);
}

.produtos-price--sm strong {
  font-size: 14px;
}

.produtos-includes--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.produtos-include {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--text);
}

.produtos-check {
  flex: none;
  width: var(--icon-sm);
  height: var(--icon-sm);
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.produtos-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.produtos-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 11px;
}

.produtos-cta {
  align-self: flex-start;
  margin-top: 8px;
}

/* Price + inline CTA row (featured card and landing hero). */
.produtos-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.produtos-price-row .produtos-price,
.produtos-price-row .produtos-price--lg {
  margin: 0;
}

.produtos-price-cta {
  flex: none;
}

/* Media wrappers (featured / panel / card) -------------------------------- */

.produtos-featured-media,
.produtos-panel-media,
.produtos-card-media {
  position: relative;
  overflow: hidden;
}

.produtos-featured-media > div,
.produtos-panel-media > div,
.produtos-card-media > div {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Featured hero ----------------------------------------------------------- */

.produtos-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--gold);
  background: var(--surface-card);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  color: inherit;
  text-decoration: none;
}

/* Whole-card link (stretched) so real CTA links can sit above it. */
.produtos-featured-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Lift interactive CTAs above the overlay so they keep their own href. */
.produtos-featured .produtos-price-cta {
  position: relative;
  z-index: 2;
}

.produtos-featured-media {
  min-height: 380px;
}

.produtos-featured-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Expand-in-place panels -------------------------------------------------- */

.produtos-expanded {
  display: flex;
  flex-direction: column;
}

.produtos-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--gold);
  background: var(--surface-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.produtos-panel-media {
  min-height: 320px;
}

.produtos-panel-body {
  padding: var(--pad-card-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.produtos-panel .produtos-name {
  font-size: var(--h4);
  line-height: 1.08;
}

.produtos-panel .produtos-tagline {
  font-size: 15px;
}

.produtos-panel .produtos-price strong {
  font-size: 22px;
}

.pvc-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pvc-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pvc-x:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

/* Product grid ------------------------------------------------------------ */

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.produtos-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.produtos-card-media {
  aspect-ratio: 16 / 10;
}

.produtos-card-body {
  padding: var(--pad-card-sm);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Micro-interactions (from the design) ------------------------------------ */

.produtos-vitrine .pvc-lift {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.produtos-vitrine .pvc-lift:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.produtos-vitrine .pvc-card-img {
  transition: transform 0.45s ease;
}

.produtos-vitrine .pvc-lift:hover .pvc-card-img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .produtos-vitrine .pvc-lift,
  .produtos-vitrine .pvc-card-img {
    transition: none;
  }
  .produtos-vitrine .pvc-lift:hover {
    transform: none;
  }
  .produtos-vitrine .pvc-lift:hover .pvc-card-img {
    transform: none;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 920px) {
  .produtos-inner {
    padding: 48px 0 56px;
  }
  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .produtos-featured,
  .produtos-panel {
    grid-template-columns: 1fr;
  }
  .produtos-featured-media,
  .produtos-panel-media {
    min-height: 240px;
  }
  .produtos-featured-body,
  .produtos-panel-body {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .produtos-grid {
    grid-template-columns: 1fr;
  }
  .produtos-featured-body,
  .produtos-panel-body {
    padding: 24px;
  }
  .produtos-includes--grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================================
   PRODUCT LANDING PAGE — section blocks (ProductSection partials).
   ---------------------------------------------------------------------------
   Reuses the house design system; only section-specific layout lives here.

   Cohesion model (what makes a stack of admin-configured blocks read as ONE
   page instead of disconnected bands):
     1. Every block opens with the same anatomy — kicker -> heading -> 54x2 gold
        rule (.psec-head / .psec-rule), the brand's signature opener motif.
     2. Blocks alternate --bg / --surface automatically by DOM position
        (.product-detail > .section-block:nth-child(even)), so neighbours always
        separate without any per-block configuration.
     3. Responsive vertical rhythm: clamp() padding replaces the flat 92px so
        mobile isn't over-spaced.
     4. The final CTA is a gold-tinted band, deliberately UNLIKE the bordered
        offer card, so the two never read as duplicates when placed near each
        other.
   =========================================================================== */

/* Page wrapper — drives the zebra rhythm. The wrapper is the ONLY structural
   change to the page template; blocks themselves stay independent partials.
   :nth-of-type(section) counts only the <section> blocks, so the breadcrumb
   <nav> above them never shifts the stripe parity. */
.product-detail > .section-block {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--section-y) 0;
}
.product-detail > section.section-block:nth-of-type(even) {
  background: var(--surface);
}
.product-detail > .section-block:last-of-type {
  border-bottom: 0;
}

/* Slim breadcrumb row — replaces the old orphaned "Voltar para produtos"
   button that sat alone in a full 92px band at the page foot. */
.psec-breadcrumb {
  padding: 26px 0 0;
}

/* Accessible heading fallback: when the first block isn't a Hero the page would
   otherwise start at <h2>. We inject a visually-hidden <h1> with the product
   title so every product page has exactly one, correctly-ordered <h1>. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Shared block opener ------------------------------------------------------ */
.psec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.psec-head.is-center {
  align-items: center;
  text-align: center;
}
.psec-rule {
  display: block;
  width: 54px;
  height: 2px;
  margin: 2px 0;
  background: var(--gold);
}
/* Kicker — keep the gold label treatment. The kicker is a <p> inside
   .section-heading, so site.css `.section-heading p` (0,1,1) would otherwise
   override its gold colour and small size with muted 16px body text. Scope to
   .product-detail (0,2,0) to win it back across every block. */
.product-detail .section-kicker {
  color: var(--gold);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  line-height: 1;
}

/* Hero — the opening block needs presence even without an image.
   Scoped under .product-detail so the radial glow wins over the wrapper's
   base `.product-detail > .section-block { background: var(--bg) }` rule. */
.product-detail .psec-hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 40%),
    var(--bg);
}
.psec-hero .shell {
  display: grid;
  gap: 48px;
  align-items: center;
}
.psec-hero.has-media .shell {
  grid-template-columns: 1.1fr 0.9fr;
}
.psec-hero .section-heading {
  margin-bottom: 0;
  max-width: 760px;
}
.psec-hero h1 {
  margin: 0;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
  font-size: var(--h1);
}
.psec-hero h1 strong {
  font-weight: 300;
  color: var(--gold);
}
.psec-hero .content-description {
  font-size: 19px;
  max-width: 54ch;
}
.psec-hero .media-frame {
  aspect-ratio: 4 / 3;
}

/* Breadcrumb / back-to-products — replaces the old orphaned button section. */
.psec-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.psec-back:hover {
  color: var(--gold);
}
.psec-back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Big price — condensed display face, gold. Scoped under .product-detail to
   beat site.css `.section-heading p` (which otherwise forces the hero/pricing
   price to 15-16px muted, since the price <p> lives inside .section-heading). */
.produtos-price-row {
  margin-top: 4px;
}
.product-detail .produtos-price--lg {
  font-family: var(--about-display, inherit);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--gold);
}
.psec-price-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Rich text — constrained measure for readable prose. */
.psec-rich .section-heading {
  margin-bottom: 28px;
}

/* Benefits — checks render as SVG (see partial). A roomy two-column list with
   hairline row separators reads as structure, not a thin afterthought. */
.psec-include-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 72px;
  /* Fill the shell so the list lines up with its own heading (the cap made it
     read narrower than everything else above it). */
  max-width: none;
}
.psec-include {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.5;
}
.psec-include:nth-child(-n + 2) {
  border-top: 0;
}
.psec-check {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.psec-include-grid.one-col {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
}
.psec-include-grid.one-col .psec-include:nth-child(-n + 2) {
  border-top: 1px solid var(--line);
}
.psec-include-grid.one-col .psec-include:first-child {
  border-top: 0;
}

/* Media — consistent framing so plain images and videos share a rhythm. */
.psec-media .media-frame {
  aspect-ratio: 16 / 9;
  max-width: 1000px;
}
.psec-media .media-frame.is-image {
  aspect-ratio: 3 / 2;
}
.psec-video {
  position: relative;
}
.psec-video iframe,
.psec-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Testimonials */
.psec-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.psec-testimonial {
  margin: 0;
  padding: 32px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Static 5-star mark (curated quotes; no rating field on the model). */
.psec-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 3px;
  line-height: 1;
}
.psec-testimonial blockquote {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.psec-testimonial blockquote::before {
  content: "\201C";
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 0;
  vertical-align: -0.45em;
  margin-right: 4px;
}
.psec-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  /* Pin the attribution to the card foot so footers line up across a row. */
  margin-top: auto;
  padding-top: 4px;
}
.psec-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.psec-testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.psec-testimonial-name {
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.psec-testimonial-role {
  color: var(--muted);
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pricing — a two-column offer: left-aligned heading, bordered card on the
   right (matches the design's "Comece hoje" split). Stacks on narrow screens. */
.psec-pricing-block .shell {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.psec-pricing-block .section-heading {
  max-width: none;
  margin-bottom: 0;
}
.psec-pricing {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--gold);
  background: var(--surface-card);
  box-shadow: var(--shadow);
}
@media (max-width: 920px) {
  .psec-pricing-block .shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .psec-pricing {
    max-width: 520px;
  }
}
.psec-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.psec-pricing .produtos-price--lg {
  text-align: center;
}
.psec-pricing .solid-btn {
  align-self: stretch;
  text-align: center;
  padding: 15px 18px;
}

/* FAQ accordion */
.psec-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 840px;
}
.psec-faq-item {
  border: 1px solid var(--line);
  background: var(--surface-card);
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
.psec-faq-item[open] {
  border-color: var(--gold);
}
.psec-faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.psec-faq-item summary::-webkit-details-marker {
  display: none;
}
.psec-faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.psec-faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}
.psec-faq-item[open] summary::after {
  content: "\2013";
}
.psec-faq-answer {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* CTA — the closer: a gold-tinted band, distinct from the offer card. */
.psec-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(28px, 5vw, 56px);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    color-mix(in srgb, var(--gold) 7%, var(--surface-card));
}
.psec-cta h2 {
  margin: 0;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.04;
  font-size: var(--h3);
}
.psec-cta .content-description {
  max-width: 52ch;
}
.psec-cta .solid-btn {
  padding: 16px 32px;
}

/* Responsive */
@media (max-width: 920px) {
  .psec-hero.has-media .shell {
    grid-template-columns: 1fr;
  }
  .psec-hero .media-frame {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 640px) {
  .psec-include-grid {
    grid-template-columns: 1fr;
  }
  .psec-include:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }
  .psec-include:first-child {
    border-top: 0;
  }
  .psec-pricing {
    padding: 28px;
  }
}

/* ===== Vitrine expand/close motion (2026-06-26) =====
   The expand panel zooms/reveals in when a card is opened and reverses on
   close. The close is JS-driven (.is-closing -> hidden on animationend, with a
   timeout fallback) so the panel finishes its exit before its layout space is
   reclaimed. Motion tokens come from the global :root in site.css.
   scroll-margin-top clears the sticky header when the panel is scrolled into
   view. Reduced motion: the global universal rule collapses these animations to
   ~instant and the JS still completes on animationend / the fallback. */
.produtos-panel {
  transform-origin: top center;
  scroll-margin-top: 96px;
}
.produtos-panel.is-opening {
  animation: vitrine-panel-in var(--dur-base) var(--ease-athletic) both;
}
.produtos-panel.is-closing {
  animation: vitrine-panel-out var(--dur-fast) var(--ease-smooth) both;
}
@keyframes vitrine-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes vitrine-panel-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

/* Inline-style fold (UI-consistency pass): the empty-state fallback hero's body
   wrapper carried an inline margin-top; lifted into a class. */
.psec-hero-body {
  margin-top: var(--space-7);
}

/* Vitrine lead paragraph (optional, editable, under the title) ------------ */
.produtos-lede {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--muted);
}
