:root {
  --jc-background: #070707;
  --jc-foreground: #F2F2F2;
  --jc-card: #0F0F0F;
  --jc-primary: #030303;
  --jc-primary-fg: #FCFCFC;
  --jc-secondary: #0D0D0D;
  --jc-muted: #161616;
  --jc-muted-fg: #A4A4A4;
  --jc-accent: #AEAEAE;
  --jc-border: #333333;
  --jc-input: #424242;
}

html {
  scroll-behavior: smooth;
  background-color: var(--jc-background);
}

body.jc-dark-theme {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background-color: var(--jc-background);
  color: var(--jc-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

body.jc-dark-theme h1,
body.jc-dark-theme h2,
body.jc-dark-theme h3,
body.jc-dark-theme h4 {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

section[id],
[id="escritorio"],
[id="areas"],
[id="advogado"],
[id="metodo"],
[id="manifesto"],
[id="publicacoes"],
[id="contato"] {
  scroll-margin-top: 80px;
}

.site-container,
.jc-site-container {
  width: min(100% - 96px, 1280px) !important;
  margin-inline: auto !important;
}

.jc-site-header .jc-site-container,
.jc-site-header .site-container {
  max-width: none !important;
  width: calc(100% - 96px) !important;
}

.jc-col {
  display: flex !important;
  flex-direction: column !important;
}

.jc-btn-pill-light,
.jc-btn-pill-outline {
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.e-svg-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.e-svg-base svg {
  display: block;
}

/* Header */
.jc-site-header {
  position: fixed !important;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 250ms ease, height 250ms ease;
}

.jc-site-header[data-scrolled="true"] {
  background-color: var(--jc-primary) !important;
}

.jc-nav-link {
  font-size: 14px;
  border-bottom: 1px solid transparent;
  padding-block: 4px;
  transition: border-color 180ms ease;
  text-decoration: none;
  color: inherit;
}

.jc-nav-link:hover {
  border-color: currentColor;
}

.jc-menu-toggle {
  cursor: pointer;
}

.jc-menu-toggle[aria-expanded="false"] .jc-menu-icon-close,
.jc-menu-toggle[aria-expanded="true"] .jc-menu-icon-bars {
  display: none !important;
}

.jc-mobile-nav:not(.is-open) {
  display: none !important;
}

.jc-mobile-nav.is-open {
  display: flex !important;
  flex-direction: column;
  background-color: var(--jc-primary);
  padding: 0 24px 20px;
}

@media (min-width: 1024px) {
  .jc-mobile-nav,
  .jc-mobile-nav.is-open {
    display: none !important;
  }
}

.jc-mobile-nav a {
  border-bottom: 1px solid rgba(252, 252, 252, 0.15);
  padding: 12px 0;
  font-size: 14px;
  color: var(--jc-primary-fg);
  text-decoration: none;
}

/* Fold sections & subtle M monogram background pattern */
.jc-hero-section {
  min-height: max(39.583vw, 600px);
}

.jc-fold {
  min-height: 39.583vw;
  position: relative;
  isolation: isolate;
}

.jc-fold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%2290%22 viewBox=%220 0 140 90%22%3E%3Cg fill=%22white%22%3E%3Cg transform=%22translate%28-58 6%29%22%3E%3Cpath d=%22M93.4249 32.3125H96.6805L83.2348 5.40991H80.6259L75.7299 15.2019L70.8339 5.40991H68.2249L62.2447 17.3732L63.8767 20.6429L69.5322 9.3205L81.024 32.3125H84.2823L77.359 18.4603L81.9275 9.3205%22/%3E%3C/g%3E%3Cg transform=%22translate%2812 51%29%22%3E%3Cpath d=%22M93.4249 32.3125H96.6805L83.2348 5.40991H80.6259L75.7299 15.2019L70.8339 5.40991H68.2249L62.2447 17.3732L63.8767 20.6429L69.5322 9.3205L81.024 32.3125H84.2823L77.359 18.4603L81.9275 9.3205%22/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 90px;
  opacity: 0.07;
  mask-image: radial-gradient(ellipse 60% 70% at 15% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 15% 50%, black 0%, transparent 75%);
}

.jc-fold-even::before {
  mask-image: radial-gradient(ellipse 60% 70% at 85% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 50%, black 0%, transparent 75%);
}

/* Monochrome photos */
.jc-mono-photo,
.jc-mono-photo img {
  filter: grayscale(1) contrast(1.05);
}

.jc-hero-photo,
.jc-hero-photo img {
  object-position: center center !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

.jc-cover-img,
.jc-cover-img img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* Reveal animation */
@keyframes jcReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jc-hero-copy {
  animation: jcReveal 700ms ease-out both;
}

/* Hover rows (Areas Accordion) */
.jc-hover-row {
  position: relative;
  transition: padding-left 300ms ease, background-color 300ms ease;
}

.jc-hover-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 400ms ease;
}

.jc-hover-row:hover {
  padding-left: 16px !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.jc-hover-row:hover::before {
  width: 100%;
}

/* Native Elementor e-accordion styling to match Lovable */
.jc-accordion {
  border-top: 1px solid rgba(252, 252, 252, 0.15);
}

.jc-accordion details.e-con {
  border-bottom: 1px solid rgba(252, 252, 252, 0.15);
}

.jc-accordion summary {
  list-style: none;
}

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

.jc-accordion details[open] summary svg {
  transform: rotate(180deg);
}

.jc-accordion summary svg {
  transition: transform 200ms ease;
}

/* Hover cards (Método + Contato card) */
.jc-hover-card {
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.jc-hover-card:hover {
  transform: translateY(-6px);
  border-color: var(--jc-border) !important;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

.jc-hover-num {
  transition: color 300ms ease;
}

.jc-hover-card:hover .jc-hover-num {
  color: var(--jc-foreground) !important;
}

/* Hover posts (Publicações) */
.jc-hover-post {
  transition: transform 300ms ease;
}

.jc-hover-post:hover {
  transform: translateY(-6px);
}

.jc-hover-post img {
  transition: transform 600ms ease, filter 600ms ease;
}

.jc-hover-post:hover img {
  transform: scale(1.05);
  filter: grayscale(0.6) contrast(1.05);
}

.jc-hover-post:hover .jc-post-card-title {
  text-decoration: underline;
}

/* Lawyer Slider (#advogado) */
.jc-lawyer-bg-0,
.jc-lawyer-bg-1,
.jc-lawyer-veil-1 {
  transition: opacity 700ms ease;
}

.jc-lawyer-bg-0[data-active="false"],
.jc-lawyer-bg-1[data-active="false"],
.jc-lawyer-veil-1[data-active="false"] {
  opacity: 0 !important;
  pointer-events: none;
}

.jc-lawyer-bg-0[data-active="true"],
.jc-lawyer-bg-1[data-active="true"],
.jc-lawyer-veil-1[data-active="true"] {
  opacity: 1 !important;
}

.jc-lawyer-bg-0,
.jc-lawyer-bg-0 img {
  object-position: center 25% !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

.jc-lawyer-bg-1,
.jc-lawyer-bg-1 img {
  object-position: center 0% !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

.jc-lawyer-slide-0[data-active="false"],
.jc-lawyer-slide-1[data-active="false"] {
  display: none !important;
}

.jc-lawyer-slide-0[data-active="true"],
.jc-lawyer-slide-1[data-active="true"] {
  display: flex !important;
  animation: jcReveal 500ms ease-out both;
}

.jc-lawyer-dot-0,
.jc-lawyer-dot-1 {
  cursor: pointer;
  transition: width 250ms ease, background-color 250ms ease;
}

.jc-lawyer-dot-0.is-active,
.jc-lawyer-dot-1.is-active {
  width: 40px !important;
  background-color: var(--jc-primary-fg) !important;
}

.jc-lawyer-dot-0:not(.is-active),
.jc-lawyer-dot-1:not(.is-active) {
  width: 20px !important;
  background-color: rgba(252, 252, 252, 0.4) !important;
}

.jc-lawyer-prev,
.jc-lawyer-next {
  cursor: pointer;
}

/* Contact Form 7 styling inside #contato card */
.jc-cf7-slot .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jc-cf7-slot .wpcf7-form p {
  margin: 0;
}

.jc-cf7-slot .wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--jc-foreground);
}

.jc-cf7-slot .wpcf7-form input[type="text"],
.jc-cf7-slot .wpcf7-form input[type="email"],
.jc-cf7-slot .wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--jc-border);
  background: transparent;
  color: var(--jc-foreground);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 180ms ease;
}

.jc-cf7-slot .wpcf7-form input:focus,
.jc-cf7-slot .wpcf7-form textarea:focus {
  border-bottom-color: var(--jc-primary-fg);
}

.jc-cf7-slot .wpcf7-form input[type="submit"],
.jc-cf7-slot .wpcf7-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9999px;
  background-color: var(--jc-foreground);
  color: var(--jc-background);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.jc-cf7-slot .wpcf7-form input[type="submit"]:hover,
.jc-cf7-slot .wpcf7-submit:hover {
  opacity: 0.9;
}

.jc-cf7-slot .wpcf7-not-valid-tip {
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.jc-cf7-slot .wpcf7-response-output {
  margin: 8px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 6px;
  border: 1px solid var(--jc-border) !important;
  font-size: 13px;
  color: var(--jc-foreground);
}

/* Internal pages (Publicações, Posts, Política de Privacidade) */
.jc-internal-header {
  background-color: var(--jc-primary);
  border-bottom: 1px solid rgba(252, 252, 252, 0.1);
}

.jc-header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jc-header-logo {
  width: 192px;
  height: auto;
  display: block;
}

.jc-desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  color: var(--jc-primary-fg);
}

.jc-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--jc-foreground);
  color: var(--jc-background);
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-left: 8px;
  transition: opacity 180ms ease;
}

.jc-header-cta:hover {
  opacity: 0.9;
}

.jc-internal-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--jc-primary-fg);
  font-size: 24px;
  padding: 6px;
  line-height: 1;
}

.jc-internal-menu-toggle .jc-menu-icon-close {
  display: none;
}

.jc-internal-menu-toggle[aria-expanded="true"] .jc-menu-icon-bars {
  display: none;
}

.jc-internal-menu-toggle[aria-expanded="true"] .jc-menu-icon-close {
  display: inline;
}

.jc-internal-main {
  padding-top: 80px;
  background-color: var(--jc-background);
  color: var(--jc-foreground);
  min-height: calc(100vh - 82px);
}

.jc-internal-hero {
  min-height: 0 !important;
  padding-block: 72px 36px;
}

.jc-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--jc-accent);
  margin: 0 0 16px;
}

.jc-article-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--jc-foreground);
  margin: 0;
}

.jc-article-meta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--jc-muted-fg);
}

.jc-back-link {
  color: var(--jc-foreground);
  text-decoration: underline;
}

.jc-article-thumb-wrap {
  margin-top: 40px;
}

.jc-article-thumb {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.jc-article-body-section {
  padding-bottom: 88px;
}

.jc-article-prose {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(242, 242, 242, 0.85);
}

.jc-article-prose .alignwide,
.jc-article-prose .alignfull {
  max-width: 100%;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.jc-article-prose h2,
.jc-article-prose h3 {
  color: var(--jc-foreground);
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 600;
}

.jc-article-prose p {
  margin: 0 0 1.25em;
}

.jc-article-prose ul,
.jc-article-prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.jc-article-prose li {
  margin-bottom: 0.5em;
}

.jc-article-cta-box {
  margin-top: 56px;
  padding: 32px;
  border-radius: 8px;
  background-color: var(--jc-secondary);
  border: 1px solid rgba(252, 252, 252, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.jc-article-cta-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--jc-foreground);
}

.jc-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  background-color: var(--jc-foreground);
  color: var(--jc-background);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.jc-archive-desc {
  margin-top: 16px;
  max-width: 600px;
  color: var(--jc-muted-fg);
  font-size: 15px;
  line-height: 1.65;
}

.jc-posts-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.jc-post-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
}

.jc-post-img-wrap {
  overflow: hidden;
  border-radius: 8px;
}

.jc-post-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.jc-post-cat {
  margin: 20px 0 0;
}

.jc-post-title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.375;
  color: var(--jc-foreground);
}

.jc-hover-post:hover .jc-post-title {
  text-decoration: underline;
}

.jc-site-footer {
  border-top: 1px solid rgba(252, 252, 252, 0.1);
  background-color: var(--jc-primary);
  padding: 32px 0;
}

.jc-footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jc-footer-left {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.jc-footer-copy,
.jc-footer-dev-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(252, 252, 252, 0.5);
}

.jc-footer-sep {
  margin-inline: 6px;
  color: rgba(252, 252, 252, 0.35);
}

.jc-footer-link {
  color: rgba(252, 252, 252, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}

.jc-footer-link:hover {
  color: var(--jc-primary-fg);
  text-decoration: underline;
}

.jc-footer-dev {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.jc-footer-colla-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 180ms ease;
}

.jc-footer-colla-link:hover {
  opacity: 1;
}

.jc-footer-colla-logo,
.jc-footer-colla-logo img {
  height: 16px !important;
  width: auto !important;
  display: block;
}

@media (max-width: 1023px) {
  .jc-desktop-nav {
    display: none;
  }
  .jc-internal-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .site-container,
  .jc-site-container,
  .jc-site-header .jc-site-container,
  .jc-site-header .site-container {
    width: calc(100% - 40px) !important;
  }
  .jc-header-logo {
    width: 160px;
  }
  .jc-hero-section {
    min-height: 640px;
  }
  .jc-fold {
    min-height: 0;
  }
  .jc-hero-photo,
  .jc-hero-photo img {
    object-position: 62% center !important;
  }
  .jc-posts-grid {
    grid-template-columns: 1fr;
  }
  .jc-footer-inner,
  .jc-footer-left {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .jc-footer-sep {
    display: none;
  }
  .jc-footer-copy .jc-footer-link {
    display: block;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .jc-hero-copy {
    animation: none;
  }
  .jc-hover-row,
  .jc-hover-card,
  .jc-hover-post {
    transition: none;
  }
  .jc-hover-card:hover,
  .jc-hover-post:hover {
    transform: none;
  }
}
