/*
Theme Name: Papel Visual Lite
Theme URI: https://papelalgodao.com.br/
Author: Papel Algodão
Description: Tema leve para a experiência institucional do Papel Algodão em WordPress.
Version: 0.1.6
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: papel-visual-lite
*/

:root {
  --pa-ink: #171717;
  --pa-graphite: #2e3231;
  --pa-paper: #f7f4ed;
  --pa-mist: #ebe7dd;
  --pa-white: #fffdf8;
  --pa-gold: #d8aa31;
  --pa-green: #375146;
  --pa-blue: #53687b;
  --pa-line: rgba(23, 23, 23, 0.14);
  --pa-shadow: 0 22px 58px rgba(23, 23, 23, 0.16);
  --pa-header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pa-ink);
  background: var(--pa-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  background: var(--pa-ink);
  color: var(--pa-white);
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-150%);
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 244, 237, 0.86);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  display: flex;
  gap: 24px;
  height: var(--pa-header-h);
  justify-content: space-between;
  left: 0;
  padding: 0 32px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

body.admin-bar .site-header {
  top: 32px;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  min-width: 160px;
}

.brand img {
  height: 42px;
  width: auto;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link,
.menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--pa-graphite);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 650;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
}

.menu-button::after {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  height: 6px;
  margin-top: -4px;
  transform: rotate(45deg);
  width: 6px;
}

.nav-link:focus-visible,
.menu-button:focus-visible,
.header-cta:focus-visible,
.mobile-toggle:focus-visible,
.mobile-close:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--pa-gold);
  outline-offset: 3px;
}

.mega-menu {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(23, 23, 23, 0.10);
  box-shadow: var(--pa-shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 1fr 1fr;
  left: 50%;
  min-width: 760px;
  opacity: 0;
  padding: 22px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 12px);
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  visibility: hidden;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.mega-intro {
  background: var(--pa-ink);
  color: var(--pa-white);
  min-height: 230px;
  padding: 24px;
}

.mega-kicker,
.section-kicker,
.hero-kicker {
  color: var(--pa-gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.mega-intro strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.12;
  margin-bottom: 12px;
}

.mega-intro p,
.mega-column p {
  margin: 0;
}

.mega-column {
  display: grid;
  gap: 8px;
}

.mega-column h2 {
  font-size: 0.82rem;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.mega-link {
  border-bottom: 1px solid rgba(23, 23, 23, 0.10);
  display: block;
  padding: 9px 0;
}

.mega-link strong {
  display: block;
  font-size: 0.96rem;
}

.mega-link span {
  color: rgba(23, 23, 23, 0.63);
  display: block;
  font-size: 0.83rem;
  margin-top: 2px;
}

.header-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.header-cta {
  align-items: center;
  background: var(--pa-ink);
  color: var(--pa-white);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 750;
  min-height: 42px;
  padding: 0 16px;
}

.mobile-toggle,
.mobile-close {
  appearance: none;
  background: var(--pa-ink);
  border: 0;
  color: var(--pa-white);
  cursor: pointer;
  display: none;
  height: 42px;
  place-items: center;
  width: 42px;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  width: 18px;
}

.mobile-toggle::before {
  transform: translateY(-6px);
}

.mobile-toggle::after {
  transform: translateY(6px);
}

.mobile-panel {
  background: var(--pa-white);
  box-shadow: -18px 0 44px rgba(23, 23, 23, 0.22);
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  max-width: 420px;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(104%);
  transition: transform 220ms ease;
  width: min(88vw, 420px);
  z-index: 300;
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.mobile-panel img {
  height: 38px;
  width: auto;
}

.mobile-close {
  display: grid;
  font-size: 1.45rem;
}

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  border-bottom: 1px solid var(--pa-line);
  font-size: 1.08rem;
  font-weight: 720;
  padding: 14px 2px;
}

.mobile-overlay {
  background: rgba(23, 23, 23, 0.45);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 250;
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  align-items: end;
  color: var(--pa-white);
  display: grid;
  isolation: isolate;
  min-height: 92vh;
  overflow: hidden;
  padding: calc(var(--pa-header-h) + 78px) 32px 46px;
  position: relative;
}

.hero-media {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -3;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(15, 17, 17, 0.78), rgba(15, 17, 17, 0.42) 46%, rgba(15, 17, 17, 0.12)),
    linear-gradient(0deg, rgba(15, 17, 17, 0.78), rgba(15, 17, 17, 0.04) 52%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-inner {
  max-width: 1180px;
  width: 100%;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-size: 4.8rem;
  font-weight: 820;
  line-height: 0.98;
  margin: 0 0 22px;
}

.hero p {
  color: rgba(255, 253, 248, 0.86);
  font-size: 1.18rem;
  margin: 0 0 28px;
  max-width: 650px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--pa-gold);
  color: #17130a;
}

.button-secondary {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 253, 248, 0.44);
  color: var(--pa-white);
}

.hero-strip {
  align-items: center;
  border-top: 1px solid rgba(255, 253, 248, 0.22);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  padding-top: 22px;
}

.hero-strip strong {
  display: block;
  font-size: 1.16rem;
}

.hero-strip span {
  color: rgba(255, 253, 248, 0.68);
  display: block;
  font-size: 0.86rem;
  margin-top: 2px;
}

.section {
  padding: 88px 32px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.page-hero {
  background: var(--pa-paper);
  padding: calc(var(--pa-header-h) + 76px) 32px 88px;
}

.page-hero-inner {
  align-items: stretch;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
}

.page-hero-copy {
  align-self: center;
}

.page-hero h1 {
  font-size: 4.15rem;
  font-weight: 820;
  line-height: 0.98;
  margin: 0 0 24px;
}

.page-hero p {
  color: rgba(23, 23, 23, 0.70);
  font-size: 1.15rem;
  margin: 0 0 28px;
  max-width: 760px;
}

.button-on-light {
  border-color: rgba(23, 23, 23, 0.24);
  color: var(--pa-ink);
}

.page-hero-panel {
  background: var(--pa-white);
  border: 1px solid rgba(23, 23, 23, 0.10);
  box-shadow: var(--pa-shadow);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 520px;
}

.page-hero-panel img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.page-hero-panel div {
  border-top: 1px solid rgba(23, 23, 23, 0.10);
  padding: 22px;
}

.page-hero-panel strong,
.page-hero-panel span {
  display: block;
}

.page-hero-panel strong {
  font-size: 1.14rem;
  margin-bottom: 5px;
}

.page-hero-panel span {
  color: rgba(23, 23, 23, 0.66);
}

.section-head {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  margin-bottom: 34px;
}

.section h2,
.cta h2 {
  font-size: 2.75rem;
  line-height: 1.06;
  margin: 0;
}

.section-head p,
.service-card p,
.process-step p,
.faq summary + p,
.cta p {
  color: rgba(23, 23, 23, 0.68);
  margin: 0;
}

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

.service-card {
  background: var(--pa-white);
  border: 1px solid rgba(23, 23, 23, 0.10);
  color: var(--pa-ink);
  overflow: hidden;
}

.service-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.service-card--paper img,
.service-card--canvas img,
.service-card--frame img {
  background: var(--pa-white);
  height: clamp(330px, 30vw, 430px);
  object-fit: contain;
  padding: 16px;
}

.service-card--frame img {
  object-position: center top;
  padding: 14px;
}

.service-card-body {
  padding: 20px;
}

.service-card h3 {
  color: var(--pa-ink);
  font-size: 1.22rem;
  line-height: 1.16;
  margin: 0 0 9px;
}

.service-card a {
  color: var(--pa-green);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 770;
  margin-top: 16px;
}

.card-number {
  color: var(--pa-gold);
  display: block;
  font-size: 0.82rem;
  font-weight: 780;
  margin-bottom: 10px;
}

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

.quality-card {
  background: var(--pa-white);
  border: 1px solid rgba(23, 23, 23, 0.10);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quality-card img {
  aspect-ratio: 4 / 3;
  background: var(--pa-white);
  object-fit: contain;
  width: 100%;
}

.quality-card--certificate img {
  padding: 22px;
}

.quality-card h3 {
  font-size: 1.16rem;
  line-height: 1.18;
  margin: 20px 20px 8px;
}

.quality-card p {
  color: rgba(23, 23, 23, 0.68);
  margin: 0 20px 22px;
}

.service-feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, 1fr);
}

.service-feature-card {
  background: var(--pa-white);
  border: 1px solid rgba(23, 23, 23, 0.10);
  color: var(--pa-ink);
  display: grid;
  grid-column: span 3;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
}

.service-feature-card:nth-child(5) {
  grid-column: 2 / span 4;
}

.service-feature-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-feature-card--paper img,
.service-feature-card--canvas img,
.service-feature-card--frame img {
  background: var(--pa-white);
  object-fit: contain;
  padding: 22px;
}

.service-feature-card--frame img {
  object-position: center top;
  padding: 18px;
}

.service-feature-body {
  align-content: center;
  display: grid;
  padding: 28px;
}

.service-feature-body h3 {
  color: var(--pa-ink);
  font-size: 1.45rem;
  line-height: 1.12;
  margin: 0 0 12px;
}

.service-feature-body p {
  color: rgba(23, 23, 23, 0.68);
  margin: 0;
}

.service-feature-body a {
  color: var(--pa-green);
  display: inline-block;
  font-weight: 780;
  margin-top: 18px;
}

.dark-band {
  background: var(--pa-ink);
  color: var(--pa-white);
}

.dark-band .section-head p,
.dark-band .process-step p {
  color: rgba(255, 253, 248, 0.68);
}

.process-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  background: rgba(255, 253, 248, 0.07);
  min-height: 240px;
  padding: 24px;
}

.process-step span {
  color: var(--pa-gold);
  display: block;
  font-size: 0.86rem;
  font-weight: 760;
  margin-bottom: 34px;
}

.process-step h3 {
  font-size: 1.25rem;
  line-height: 1.18;
  margin: 0 0 10px;
}

.service-path {
  display: grid;
  gap: 32px;
}

.service-path h2 {
  color: var(--pa-white);
}

.service-path > .reveal > p {
  color: rgba(255, 253, 248, 0.70);
  max-width: 760px;
}

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

.materials {
  background: var(--pa-mist);
}

.comparison-grid {
  background: rgba(23, 23, 23, 0.10);
  display: grid;
  gap: 1px;
}

.comparison-row {
  align-items: start;
  background: var(--pa-white);
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
  padding: 24px 28px;
}

.comparison-row strong {
  font-size: 1.05rem;
}

.comparison-row span {
  color: rgba(23, 23, 23, 0.68);
}

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

.quote-card {
  background: var(--pa-white);
  border: 1px solid rgba(23, 23, 23, 0.10);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
  min-height: 260px;
  padding: 28px;
}

.quote-card p {
  color: rgba(23, 23, 23, 0.72);
  font-size: 1.03rem;
  margin: 0;
}

.quote-card strong {
  color: var(--pa-ink);
}

.materials-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.85fr;
}

.material-panel {
  background: var(--pa-white);
  border: 1px solid rgba(23, 23, 23, 0.10);
  min-height: 360px;
  padding: 32px;
}

.material-panel.featured {
  background: var(--pa-green);
  color: var(--pa-white);
  overflow: hidden;
  position: relative;
}

.material-panel.featured::after {
  background: var(--pa-gold);
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.material-panel h3 {
  font-size: 2rem;
  line-height: 1.08;
  margin: 0 0 18px;
}

.material-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.material-list li {
  align-items: center;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding-top: 12px;
}

.material-panel.featured .material-list li {
  border-color: rgba(255, 253, 248, 0.22);
}

.faq {
  background: var(--pa-white);
}

.faq-list {
  border-top: 1px solid var(--pa-line);
}

.faq details {
  border-bottom: 1px solid var(--pa-line);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 750;
  list-style: none;
  padding: 22px 48px 22px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.45rem;
  position: absolute;
  right: 6px;
  top: 16px;
}

.faq details[open] summary::after {
  content: "-";
}

.faq summary + p {
  max-width: 720px;
  padding: 0 0 22px;
}

.cta {
  background: var(--pa-blue);
  color: var(--pa-white);
  padding: 78px 32px;
}

.cta .section-inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cta .section-inner.contact-layout {
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.cta p {
  color: rgba(255, 253, 248, 0.74);
  margin-top: 12px;
  max-width: 620px;
}

.contact-card {
  background: var(--pa-white);
  color: var(--pa-ink);
  display: grid;
  gap: 8px;
  padding: 28px;
}

.contact-logo-box {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 142px;
  padding: 22px;
  width: 100%;
}

.contact-logo-box img {
  height: auto;
  max-width: 210px;
  width: 100%;
}

.contact-card strong {
  font-size: 1.1rem;
}

.contact-address {
  display: grid;
  font-style: normal;
  gap: 3px;
  margin: 4px 0 0;
}

.contact-card span,
.contact-card small,
.contact-card a {
  color: rgba(23, 23, 23, 0.70);
}

.contact-card a {
  overflow-wrap: anywhere;
}

.contact-card small {
  display: block;
  margin-top: 8px;
}

.site-footer {
  background: var(--pa-ink);
  color: rgba(255, 253, 248, 0.74);
  padding: 26px 32px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-inner strong {
  color: var(--pa-white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .site-header {
    padding: 0 20px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 3.25rem;
  }

  .page-hero-panel {
    min-height: 460px;
  }

  .section-head,
  .materials-grid,
  .cta .section-inner,
  .cta .section-inner.contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card--paper img,
  .service-card--canvas img,
  .service-card--frame img {
    height: clamp(360px, 52vw, 480px);
  }

  .quality-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-feature-card,
  .service-feature-card:nth-child(5) {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .service-feature-card img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .service-path-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 700px) {
  :root {
    --pa-header-h: 68px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    height: 34px;
  }

  .hero {
    min-height: 88vh;
    padding: calc(var(--pa-header-h) + 54px) 18px 28px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .page-hero {
    padding: calc(var(--pa-header-h) + 54px) 18px 62px;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .page-hero-panel {
    min-height: 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-strip,
  .services-grid,
  .quality-grid,
  .testimonial-grid,
  .service-feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card--paper img,
  .service-card--canvas img,
  .service-card--frame img {
    height: auto;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-strip {
    gap: 12px;
    margin-top: 34px;
  }

  .section,
  .cta {
    padding: 62px 18px;
  }

  .section h2,
  .cta h2 {
    font-size: 2rem;
  }

  .process-step {
    min-height: 190px;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}
