/*
Theme Name: W/P Representações
Theme URI: https://wp-representacoes-guia.gestor13.chatgpt.site
Author: W/P Representações
Description: Tema oficial do diretório de indicações W/P Representações.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-representacoes
*/

:root {
  --wpr-ink: #171717;
  --wpr-muted: #6b675f;
  --wpr-paper: #f8f4ed;
  --wpr-paper-strong: #fffdf9;
  --wpr-gold: #c9902f;
  --wpr-gold-dark: #93651e;
  --wpr-line: rgba(23, 23, 23, 0.13);
  --wpr-shadow: 0 18px 60px rgba(34, 26, 16, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--wpr-paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 87% 4%, rgba(201, 144, 47, 0.12), transparent 26rem),
    linear-gradient(180deg, #fbf8f2, var(--wpr-paper));
  color: var(--wpr-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .wpr-topbar {
  top: 32px;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wpr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wpr-skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--wpr-ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.wpr-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--wpr-line);
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(16px);
}

.wpr-nav {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wpr-brand-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wpr-brand-link:focus-visible,
.custom-logo-link:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(201, 144, 47, 0.38);
  outline-offset: 5px;
}

.wpr-brand-image,
.custom-logo {
  display: block;
  width: 205px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.wpr-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wpr-nav-links a {
  font-size: 0.79rem;
  font-weight: 750;
  text-decoration: none;
}

.wpr-nav-links a:not(.wpr-nav-cta):hover {
  color: var(--wpr-gold-dark);
}

.wpr-nav-cta {
  padding: 11px 17px;
  border: 1px solid var(--wpr-ink);
  border-radius: 999px;
}

.wpr-nav-cta:hover {
  background: var(--wpr-ink);
  color: #fff;
}

.wpr-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--wpr-line);
}

.wpr-hero::after {
  position: absolute;
  right: -18vw;
  bottom: -44vw;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  background: rgba(201, 144, 47, 0.045);
  content: "";
}

.wpr-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 92px 0 84px;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 80px;
}

.wpr-eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 11px;
  color: var(--wpr-gold-dark);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wpr-eyebrow::before {
  width: 30px;
  height: 1px;
  background: var(--wpr-gold);
  content: "";
}

.wpr-hero h1,
.wpr-section-head h2,
.wpr-how-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.wpr-hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(4.1rem, 7.8vw, 7.2rem);
  line-height: 0.87;
}

.wpr-hero h1 em {
  color: var(--wpr-gold-dark);
  font-weight: 400;
}

.wpr-hero-copy {
  max-width: 650px;
  margin: 32px 0 0;
  color: var(--wpr-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.68;
}

.wpr-hero-actions {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.wpr-primary-button,
.wpr-secondary-button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.wpr-primary-button {
  border: 1px solid var(--wpr-ink);
  background: var(--wpr-ink);
  color: #fff;
}

.wpr-secondary-button {
  border: 1px solid var(--wpr-line);
  background: rgba(255, 255, 255, 0.36);
}

.wpr-primary-button:hover,
.wpr-secondary-button:hover {
  transform: translateY(-2px);
}

.wpr-hero-mark {
  display: grid;
  min-height: 430px;
  border: 1px solid rgba(201, 144, 47, 0.2);
  border-radius: 46% 54% 54% 46% / 42% 46% 54% 58%;
  background: rgba(255, 253, 249, 0.54);
  box-shadow: var(--wpr-shadow);
  place-items: center;
  transform: rotate(2deg);
}

.wpr-hero-logo {
  width: min(82%, 410px);
  height: auto;
  transform: rotate(-2deg);
}

.wpr-trust-strip {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  grid-template-columns: repeat(3, 1fr);
}

.wpr-trust-item {
  padding: 0 30px;
  border-left: 1px solid var(--wpr-line);
}

.wpr-trust-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.wpr-trust-item strong,
.wpr-trust-item span {
  display: block;
}

.wpr-trust-item strong {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.wpr-trust-item span {
  color: var(--wpr-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.wpr-directory-section,
.wpr-how-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.wpr-section-head {
  display: flex;
  margin-bottom: 34px;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.wpr-section-head h2,
.wpr-how-section h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.wpr-section-head > p {
  max-width: 420px;
  margin: 0;
  color: var(--wpr-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.wpr-search-panel {
  display: grid;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--wpr-line);
  border-radius: 18px;
  align-items: center;
  background: rgba(255, 253, 249, 0.74);
  box-shadow: 0 10px 35px rgba(34, 26, 16, 0.04);
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.wpr-search-field {
  display: flex;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--wpr-line);
  border-radius: 12px;
  align-items: center;
  background: #fff;
  gap: 9px;
}

.wpr-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wpr-ink);
}

.wpr-search-icon {
  color: var(--wpr-gold-dark);
  font-size: 1.3rem;
}

.wpr-category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  scrollbar-width: thin;
}

.wpr-category-tab {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--wpr-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.wpr-category-tab:hover,
.wpr-category-tab.is-active {
  border-color: var(--wpr-ink);
  background: var(--wpr-ink);
  color: #fff;
}

.wpr-results-meta {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  color: var(--wpr-muted);
  font-size: 0.74rem;
}

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

.wpr-company-card {
  display: flex;
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--wpr-line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 10px 35px rgba(34, 26, 16, 0.035);
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wpr-company-card:hover {
  box-shadow: var(--wpr-shadow);
  transform: translateY(-4px);
}

.wpr-company-card[hidden] {
  display: none;
}

.wpr-company-card-top {
  display: flex;
  min-height: 66px;
  margin-bottom: 22px;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.wpr-partner-logo {
  display: grid;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--wpr-line);
  border-radius: 17px;
  background: #fff;
  color: var(--wpr-gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 700;
  place-items: center;
}

.wpr-partner-logo img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.wpr-company-badge {
  max-width: 145px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(201, 144, 47, 0.1);
  color: var(--wpr-gold-dark);
  font-size: 0.62rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.wpr-company-category {
  margin: 0 0 7px;
  color: var(--wpr-gold-dark);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.wpr-company-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 500;
}

.wpr-company-card > p:not(.wpr-company-category) {
  margin: 0;
  color: var(--wpr-muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.wpr-company-details {
  margin: 18px 0 22px;
  padding: 12px 0;
  border-block: 1px solid var(--wpr-line);
}

.wpr-company-details summary {
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
}

.wpr-company-details p {
  margin: 10px 0 0;
  color: var(--wpr-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.wpr-company-link {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 13px 20px;
  border: 1px solid var(--wpr-ink);
  border-radius: 999px;
  background: var(--wpr-ink);
  box-shadow: 0 9px 22px rgba(23, 23, 23, 0.14);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.79rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wpr-company-link:hover {
  border-color: var(--wpr-gold-dark);
  background: var(--wpr-gold-dark);
  box-shadow: 0 12px 26px rgba(147, 101, 30, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

.wpr-company-link:focus-visible {
  outline: 3px solid rgba(201, 144, 47, 0.42);
  outline-offset: 3px;
}

.wpr-company-link:active {
  box-shadow: 0 6px 16px rgba(23, 23, 23, 0.14);
  transform: translateY(0) scale(0.99);
}

.wpr-company-link--disabled {
  border-color: var(--wpr-line);
  background: rgba(23, 23, 23, 0.07);
  box-shadow: none;
  color: var(--wpr-muted);
  cursor: not-allowed;
}

.wpr-company-link--disabled:hover {
  border-color: var(--wpr-line);
  background: rgba(23, 23, 23, 0.07);
  box-shadow: none;
  color: var(--wpr-muted);
  transform: none;
}

.wpr-empty-state {
  display: grid;
  min-height: 230px;
  padding: 32px;
  border: 1px dashed var(--wpr-line);
  border-radius: 22px;
  color: var(--wpr-muted);
  grid-column: 1 / -1;
  place-items: center;
  text-align: center;
}

.wpr-how-wrap {
  background: var(--wpr-ink);
  color: #fff;
}

.wpr-how-section .wpr-eyebrow {
  color: #e5b75e;
}

.wpr-how-grid {
  display: grid;
  margin-top: 52px;
  grid-template-columns: repeat(3, 1fr);
}

.wpr-how-card {
  min-height: 270px;
  padding: 28px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.wpr-how-card:first-child {
  padding-left: 0;
  border-left: 0;
}

.wpr-how-number {
  display: block;
  margin-bottom: 46px;
  color: #e5b75e;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.wpr-how-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.wpr-how-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.82rem;
  line-height: 1.65;
}

.wpr-disclosure {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  color: var(--wpr-muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.wpr-disclosure strong {
  color: var(--wpr-ink);
}

.wpr-footer {
  border-top: 1px solid var(--wpr-line);
}

.wpr-footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 116px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--wpr-muted);
  font-size: 0.82rem;
}

.wpr-footer-email {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--wpr-gold-dark);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.wpr-footer-email:hover,
.wpr-footer-email:focus-visible {
  text-decoration: underline;
}

.wpr-footer-links {
  display: flex;
  gap: 18px;
}

.wpr-footer-links a {
  text-decoration: none;
}

.wpr-basic-page {
  width: min(760px, calc(100% - 40px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 90px 0;
}

.wpr-basic-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
}

.wpr-basic-page p,
.wpr-basic-page li {
  color: var(--wpr-muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .wpr-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .wpr-hero-mark {
    display: none;
  }

  .wpr-company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wpr-search-panel {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 720px) {
  .wpr-nav {
    width: min(100% - 28px, 1180px);
    min-height: 70px;
    gap: 10px;
  }

  .wpr-brand-image,
  .custom-logo {
    width: 155px;
    max-height: 46px;
  }

  .wpr-nav-links a:not(.wpr-nav-cta) {
    display: none;
  }

  .wpr-nav-cta {
    padding: 9px 13px;
    font-size: 0.76rem;
  }

  .wpr-hero-inner,
  .wpr-directory-section,
  .wpr-how-section,
  .wpr-trust-strip,
  .wpr-disclosure,
  .wpr-footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .wpr-hero-inner {
    padding: 68px 0 54px;
  }

  .wpr-hero h1 {
    font-size: clamp(3rem, 16vw, 4.9rem);
  }

  .wpr-trust-strip {
    padding: 20px 0;
    grid-template-columns: 1fr;
  }

  .wpr-trust-item,
  .wpr-trust-item:first-child {
    padding: 14px 0;
    border-top: 1px solid var(--wpr-line);
    border-left: 0;
  }

  .wpr-trust-item:first-child {
    border-top: 0;
  }

  .wpr-directory-section,
  .wpr-how-section {
    padding: 68px 0;
  }

  .wpr-section-head {
    align-items: start;
    flex-direction: column;
  }

  .wpr-company-grid,
  .wpr-how-grid {
    grid-template-columns: 1fr;
  }

  .wpr-company-card {
    min-height: 300px;
  }

  .wpr-how-card,
  .wpr-how-card:first-child {
    min-height: auto;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .wpr-how-card:first-child {
    border-top: 0;
  }

  .wpr-how-number {
    margin-bottom: 18px;
  }

  .wpr-footer-inner {
    padding: 24px 0;
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .wpr-brand-image,
  .custom-logo {
    width: 138px;
  }

  .wpr-nav-cta {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
