/*
Theme Name: AJ Consultoria
Theme URI: https://ajconsultoriaempresarial.com.br
Author: AJ Consultoria
Description: Tema WordPress nativo e editável para AJ Consultoria Empresarial.
Version: 1.0.0
Text Domain: aj-consultoria
*/

:root {
  --bg: #ffffff;
  --soft-bg: #f3f3f3;
  --ink: #333333;
  --muted: #565656;
  --faint: #7a7a7a;
  --line: #e7e7e7;
  --line-strong: #cfcfcf;
  --dark: #050505;
  --brand: #f5b31f;
  --brand-strong: #efab10;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  padding: 18px 0 0;
  background: #fff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.brand .custom-logo {
  width: 96px;
  height: auto;
}

.brand__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.brand__fallback img {
  width: 96px;
  height: auto;
}

.brand__text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list .menu-item {
  margin: 0;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-list a::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: transparent;
  border-radius: 999px;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a {
  color: #111;
}

.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after,
.nav-list .current-menu-ancestor > a::after {
  background: var(--brand);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 10px 0 16px;
}

.mobile-nav__inner {
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
}

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

.mobile-nav .nav-list a {
  justify-content: flex-start;
  padding: 10px 0;
}

.hero {
  padding: 66px 0 82px;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  gap: 66px;
  align-items: center;
}

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

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 0;
  background: var(--brand);
  color: #111;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
  padding: 0 0 22px;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  width: 138px;
  height: 176px;
  background: #000;
}

.hero-media::before {
  top: -28px;
  right: -86px;
}

.hero-media::after {
  right: -86px;
  bottom: -30px;
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.section {
  padding: 68px 0;
}

.section--soft {
  background: var(--soft-bg);
}

.section-heading {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 26px;
}

.section-heading--center {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.section-heading--center .section-heading__bar {
  align-self: center;
}

.section-heading__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-heading__bar {
  width: 76px;
  height: 4px;
  background: var(--brand);
}

.copy-block {
  max-width: 1040px;
}

.copy-block p {
  margin: 0 0 16px;
  font-size: 0.93rem;
  line-height: 1.68;
  color: #4c4c4c;
}

.highlight {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("assets/images/institutional.jpg") center/cover no-repeat;
  color: #fff;
}

.highlight__inner {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.highlight__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
}

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

.team-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 18px;
  border: 1px solid #ececec;
  background: #fff;
}

.team-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.team-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.team-card__head {
  min-width: 0;
}

.team-card__name {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.team-card__role {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--faint);
}

.team-card__bio {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #4e4e4e;
}

.team-card__bio--muted {
  margin-bottom: 18px;
}

.team-card__more {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.42rem 0.8rem;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #666;
  font-size: 0.78rem;
  line-height: 1;
  border-radius: 2px;
}

.contact {
  padding: 92px 0;
  background: var(--dark);
}

.contact__inner {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: min(100%, 560px);
  padding: 24px 26px 26px;
  background: #fff;
  border: 1px solid #ececec;
}

.contact-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-info {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-info p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4c4c4c;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
}

.field__label {
  font-size: 0.73rem;
  font-weight: 600;
  color: #444;
}

.field__control {
  width: 100%;
  min-height: 31px;
  padding: 0.42rem 0.55rem;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #333;
}

.field__control:focus {
  outline: 2px solid rgba(245, 179, 31, 0.22);
  border-color: var(--brand);
}

.field__control--textarea {
  min-height: 92px;
  resize: vertical;
}

.form-submit {
  width: 96px;
  margin: 10px auto 0;
}

.form-feedback {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

.form-feedback--success {
  color: #0f7a2e;
}

.form-feedback--error {
  color: #a92f2f;
}

.site-footer {
  padding: 34px 0 20px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 700;
}

.footer-title__bar {
  width: 38px;
  height: 3px;
  margin: 8px 0 16px;
  background: var(--brand);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.5;
}

.footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #4d4d4d;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #111;
}

.footer-links--icons svg,
.footer-links--contact svg {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-links--contact svg {
  width: 12px;
  height: 12px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  color: #4d4d4d;
  text-decoration: none;
  transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.footer-socials svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #9a9a9a;
}

.footer-bottom--note {
  margin-top: 8px;
}

.cases-page {
  padding: 42px 0 72px;
  background: #fff;
}

.cases-section + .cases-section {
  margin-top: 60px;
}

.case-list {
  display: grid;
  gap: 22px;
}

.case-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.case-card {
  position: relative;
  padding: 34px 26px 28px 24px;
  border: 1px solid #ececec;
  border-left: 6px solid #111;
  background: #fff;
  transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card-link:hover .case-card,
.case-card-link:focus-visible .case-card {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.case-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.3rem 0.7rem;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.case-card__title {
  margin: 18px 0 0;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.23;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 26px;
}

.case-meta__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.case-meta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #444;
}

.case-meta__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.case-meta__label {
  display: block;
  margin-bottom: 2px;
  color: #6e6e6e;
  font-size: 0.92rem;
  line-height: 1.2;
}

.case-meta strong {
  display: block;
  font-size: 1rem;
  line-height: 1.46;
  font-weight: 700;
  color: #333;
}

.case-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0.34rem 0.62rem;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 700;
}

.cases-section--secondary .section-heading {
  margin-top: 8px;
}

.case-status--dark {
  background: #111;
}

.archive-grid {
  display: grid;
  gap: 18px;
}

.content-block,
.entry-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.content-block p,
.entry-content p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.content-block h2,
.content-block h3,
.entry-content h2,
.entry-content h3 {
  color: var(--ink);
}

.content-block ul,
.entry-content ul {
  padding-left: 1.25rem;
}

.entry-page,
.entry-single {
  background: #fff;
}

.team-card__bio--expanded {
  display: none;
  margin-top: 10px;
}

.team-card.is-expanded .team-card__bio--expanded {
  display: block;
}

.team-card.is-expanded .team-card__bio--muted {
  display: none;
}

.team-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  margin-top: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.team-card__more:hover {
  background: var(--soft-bg);
  border-color: var(--ink);
}

.team-card__more svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.team-card.is-expanded .team-card__more svg {
  transform: rotate(180deg);
}

.case-detail {
  padding: 42px 0 72px;
  background: #fff;
}

.case-detail__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.25;
  margin-bottom: 24px;
}

.case-detail__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 42px;
}

.detail-section {
  margin-top: 48px;
}

.detail-section__title {
  font-size: 1.34rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-section__bar {
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin-bottom: 24px;
}

.process-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.process-table tr {
  border-bottom: 1px solid var(--line);
}

.process-table td {
  padding: 14px 16px;
  font-size: 0.94rem;
  color: var(--ink);
}

.process-table td:first-child {
  font-weight: 600;
  width: 280px;
  color: var(--muted);
}

.attachment-table {
  width: 100%;
  border-collapse: collapse;
}

.attachment-table tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.attachment-table tr:hover {
  background: #fbfbfb;
}

.attachment-table td {
  padding: 14px 16px;
  font-size: 0.94rem;
  vertical-align: middle;
}

.attachment-table td a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.15s ease;
}

.attachment-table td a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.attachment-cell-btn {
  text-align: right;
  white-space: nowrap;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn--outline svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

main {
  animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .shell {
    width: min(100%, calc(100% - 24px));
  }

  .desktop-nav {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-media {
    order: 1;
    justify-self: start;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 28px;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  body.nav-open .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background: #fff;
  }

  .site-header {
    padding-top: 14px;
  }

  .brand .custom-logo {
    width: 88px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }

  .hero-media {
    width: min(100%, 470px);
  }

  .hero-media::before,
  .hero-media::after {
    width: 96px;
    height: 138px;
  }

  .hero-media::before {
    top: -18px;
    right: -28px;
  }

  .hero-media::after {
    right: -28px;
    bottom: -18px;
  }

  .section {
    padding: 58px 0;
  }

  .highlight {
    padding: 72px 0;
  }

  .highlight__inner {
    min-height: 230px;
  }

  .contact {
    padding: 74px 0;
  }

  .contact-card {
    width: 100%;
    padding: 22px 18px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-socials {
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
  }

  .cases-page {
    padding-top: 28px;
  }

  .case-card {
    padding-right: 18px;
  }

  .case-card__title {
    font-size: 1.42rem;
  }
}

@media (max-width: 560px) {
  .hero-grid {
    gap: 34px;
  }

  .hero-media {
    width: calc(100% - 16px);
  }

  .hero-media::before,
  .hero-media::after {
    width: 74px;
    height: 106px;
  }

  .hero-media::before {
    top: -14px;
    right: -18px;
  }

  .hero-media::after {
    right: -18px;
    bottom: -14px;
  }

  .copy-block p {
    font-size: 0.9rem;
  }

  .team-card {
    min-height: 0;
  }

  .case-card {
    padding: 26px 14px 22px 14px;
  }

  .case-meta__item {
    gap: 10px;
  }

  .case-meta__icon {
    width: 30px;
    height: 30px;
  }

  .case-meta__icon svg {
    width: 24px;
    height: 24px;
  }

  .attachment-cell-btn {
    white-space: normal;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
