/*
Theme Name: Sao Judas Contabilidade
Theme URI: https://saojudascontabilidade.com.br/
Author: Copilot
Description: Tema WordPress da Sao Judas baseado no padrao visual do site de referencia.
Version: 2.0.0
Text Domain: saojudas
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f6f8;
  --text: #02020a;
  --muted: #8d8c8c;
  --line: #ececf0;
  --brand: #166031;
  --accent: #166031;
  --accent-dark: #0f4b26;
  --brand-soft: #eaf3ee;
  --radius: 14px;
  --shadow: 0 20px 48px rgba(2, 2, 10, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: "Open Sans", sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
}

.section {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.elementor-content-hook {
  padding-top: 1.2rem;
  padding-bottom: 0;
}

.elementor-content-hook.is-empty {
  display: none;
}

.elementor-content-hook.is-elementor {
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.kicker {
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.section-head {
  max-width: 720px;
  display: grid;
  gap: 0.95rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-img,
.custom-logo {
  width: 176px;
  height: auto;
}

.abnt-header-logo {
  width: 36px;
  height: auto;
}

.nav {
  justify-self: center;
}

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

.nav-list a {
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-list a:hover {
  color: var(--accent);
}

.topbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.topbar-client-area {
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.91rem;
}

.topbar-cta {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--accent);
  box-shadow: 0 10px 18px rgba(22, 96, 49, 0.16);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.topbar-cta:hover {
  background: var(--accent-dark);
}

.topbar-cta,
.btn,
.service-btn {
  gap: 0.5rem;
}

.whatsapp-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: currentColor;
}

.whatsapp-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  margin: 3px auto;
  background: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  align-items: stretch;
}

.hero {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
}

.hero-copy p {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  padding: 0.78rem 1.25rem;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 18px rgba(22, 96, 49, 0.14);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #d2d2d8;
  background: #f8f8fb;
}

.hero-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.hero-panel li {
  border-top: 1px solid #dddddf;
  padding-top: 0.9rem;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.55rem;
}

.hero-panel strong {
  color: var(--text);
  font-weight: 800;
}

.metric-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero-panel li div {
  display: grid;
  gap: 0.18rem;
}

.service-grid,
.feature-grid,
.article-grid,
.testimonial-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.google-reviews-wrap {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 26px rgba(2, 2, 10, 0.05);
  padding: 1rem;
}

.service-card,
.feature-card,
.testimonial,
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  box-shadow: 0 12px 26px rgba(2, 2, 10, 0.05);
  display: grid;
  gap: 0.55rem;
}

.article-card {
  grid-template-rows: auto auto 1fr auto;
}

.article-thumb-link {
  display: block;
  margin: -1.05rem -1.05rem 0.15rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #eff6ef;
}

.article-thumb {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.feature-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.feature-card h3,
.feature-card p {
  max-width: none;
}

.feature-card {
  align-content: start;
}

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.service-card h3,
.service-card p {
  margin: 0;
}

.service-text {
  display: grid;
  gap: 0.4rem;
}

.service-summary,
.service-full {
  color: var(--muted);
  line-height: 1.7;
}

.service-details {
  border-top: 1px solid var(--line);
  padding-top: 0.3rem;
}

.service-details summary {
  list-style: none;
  cursor: pointer;
  color: var(--brand);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.service-details summary::after {
  content: "▾";
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.service-details[open] summary::after {
  transform: rotate(180deg);
}

.service-details-label-close {
  display: none;
}

.service-details[open] .service-details-label-open {
  display: none;
}

.service-details[open] .service-details-label-close {
  display: inline;
}

.service-full {
  margin-top: 0.35rem;
}

.service-image {
  width: calc(100% + 2.5rem);
  max-width: none;
  margin: -1.25rem -1.25rem 0.1rem;
  height: 138px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.service-btn {
  margin-top: auto;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1.1rem;
}

.consult-cta {
  padding: clamp(1.4rem, 4vw, 2.4rem) 0;
  position: relative;
  overflow: visible;
  display: grid;
  place-items: center;
  background: transparent;
}

.section-headline,
.features,
.blog-list,
.testimonials {
  padding-top: clamp(4rem, 8vw, 5.5rem);
}

.consult-card {
  background: linear-gradient(132deg, #3da96a 0%, #65ba7a 52%, #c8e3b6 100%);
  border: 1px solid rgba(170, 218, 173, 0.7);
  border-radius: 32px;
  padding: clamp(1.9rem, 4vw, 3rem);
  display: grid;
  gap: 1.1rem;
  width: min(920px, calc(100% - 1.5rem));
  margin: 0 auto;
  color: #06212f;
  box-shadow: 0 22px 48px rgba(13, 105, 52, 0.24);
  text-align: center;
  justify-items: center;
}

.consult-copy {
  display: grid;
  gap: 1rem;
  justify-items: center;
  max-width: 720px;
}

.consult-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.consult-copy p {
  font-size: 1.04rem;
  max-width: 60ch;
  color: rgba(6, 33, 47, 0.88);
}

.consult-card .btn-primary {
  background: #fff;
  color: #12683b;
  border-color: #fff;
}

.consult-card .btn-primary:hover {
  background: #f1fff4;
  color: #0f5e35;
  border-color: #f1fff4;
}

.office-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.office-copy {
  display: grid;
  gap: 1rem;
}

.office-image {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  width: 100%;
}

.contact {
  background: var(--surface-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.contact-copy {
  display: grid;
  gap: 0.95rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.55rem;
}

.contact-list strong {
  color: var(--text);
}

.contact-list li div {
  display: grid;
  gap: 0.18rem;
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-copy > p {
  max-width: 55ch;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  display: grid;
  gap: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #d9d9de;
  border-radius: 10px;
  padding: 0.72rem 0.82rem;
  font-size: 0.95rem;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-feedback {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.contact-feedback.success {
  background: #eef8f0;
  color: #12683b;
  border: 1px solid #bfe2ca;
}

.contact-feedback.error {
  background: #fff2f2;
  color: #8f1d1d;
  border: 1px solid #f0c0c0;
}

.article-card h3 a,
.text-link {
  color: var(--text);
}

.text-link {
  font-weight: 700;
  color: var(--brand);
}

.text-link:hover {
  color: var(--accent);
}

.page-hero {
  padding-bottom: 1.6rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.7vw, 2.55rem);
  font-weight: 600;
}

.article-wrap {
  padding-top: 0.3rem;
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.article-meta {
  font-size: 0.92rem;
  color: #6f6f76;
}

.article-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #4f5860;
}

.article-hero-image-wrap {
  margin: 1rem auto 1.1rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(2, 2, 10, 0.09);
  width: 100%;
  max-width: 900px;
  background: #edf5ec;
}

.article-hero-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .consult-card {
    max-width: none;
  }
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text);
  font-weight: 600;
}

.article-body > * {
  margin-bottom: 1rem;
}

.history-hero {
  padding-bottom: 2rem;
}

.history-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: center;
}

.history-copy {
  display: grid;
  gap: 1rem;
}

.history-copy p {
  max-width: 62ch;
}

.history-hero-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(2, 2, 10, 0.07);
}

.history-content {
  padding-top: 0;
}

.history-family {
  padding-top: 0.4rem;
  padding-bottom: 0.6rem;
}

.history-family-card {
  background: linear-gradient(140deg, #ffffff 0%, #f4f8f5 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 30px rgba(2, 2, 10, 0.06);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  display: grid;
  gap: 0.8rem;
}

.history-family-card h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
}

.history-family-card p {
  margin: 0;
  color: #4f5860;
  line-height: 1.8;
}

.history-timeline {
  padding-top: 2.4rem;
}

.timeline-list {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(2, 2, 10, 0.05);
  display: grid;
  gap: 0.5rem;
}

.timeline-year {
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: 1.05rem;
}

.timeline-item p {
  margin: 0;
  color: #59626a;
}

.site-footer {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: #090912;
  color: #d6d8e2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.04rem;
  margin-bottom: 0.65rem;
}

.site-footer a,
.site-footer p {
  display: block;
  color: #c7c9d4;
  margin-bottom: 0.44rem;
}

.abnt-logo {
  margin-top: 0.65rem;
  width: 34px;
}

.copy {
  text-align: center;
  background: #04040b;
  color: #9b9db0;
  padding: 0.9rem;
  font-size: 0.84rem;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.js .reveal.show {
  opacity: 1;
  transform: translateY(0);
}

body.admin-bar .topbar {
  top: 2.7rem;
}

.wp-site-blocks,
.site-content {
  display: block;
}

@media (max-width: 1080px) {
  .topbar-inner {
    grid-template-columns: auto auto;
    row-gap: 0.6rem;
    padding: 0.7rem 0;
  }

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

  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }

  .nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
  }

  .topbar-cta {
    display: none;
  }

  .topbar-client-area {
    display: none;
  }

  .hero-grid,
  .contact-grid,
  .history-hero-grid,
  .office-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .contact-list li {
    grid-template-columns: 32px 1fr;
  }

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

@media (max-width: 720px) {
  .logo-img,
  .custom-logo {
    width: 154px;
  }

  .abnt-header-logo {
    width: 31px;
  }

  .hero-panel li,
  .contact-list li {
    grid-template-columns: 28px 1fr;
  }

  .service-grid,
  .feature-grid,
  .article-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
